Hi, This new version implements Richard's suggestions made in the v2 review.
Changes from v2: - Patch 1: * fixed "PMC[1-5]" comment in target/ppc/cpu.h - Former patch 4: squashed into patch 1 - Patch 4 (former 5): * use boolean variables instead of uint32_t * added Richard's r-b - v2 link: https://lists.gnu.org/archive/html/qemu-devel/2022-01/msg00117.html Daniel Henrique Barboza (1): target/ppc: do not call hreg_compute_hflags() in helper_store_mmcr0() Richard Henderson (3): target/ppc: Cache per-pmc insn and cycle count settings target/ppc: Rewrite pmu_increment_insns target/ppc: Use env->pnc_cyc_cnt target/ppc/cpu.h | 3 + target/ppc/cpu_init.c | 1 + target/ppc/helper_regs.c | 2 +- target/ppc/machine.c | 2 + target/ppc/power8-pmu.c | 238 +++++++++++++++++---------------------- target/ppc/power8-pmu.h | 14 +-- 6 files changed, 117 insertions(+), 143 deletions(-) -- 2.33.1