target/ppc: Rewrite pmu_increment_insns
commitffae5616c3677f7d6ad15267e6a15b895357b674
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 4 Jan 2022 06:55:35 +0000 (4 07:55 +0100)
committerCédric Le Goater <clg@kaod.org>
Tue, 4 Jan 2022 06:55:35 +0000 (4 07:55 +0100)
tree952cca9a2fb81572146fa2520ef06a3704ed8f67
parent6e8b990354d244ad5af40c747fdf3c008962b4e3
target/ppc: Rewrite pmu_increment_insns

Use the cached pmc_ins_cnt value.  Unroll the loop over the
different PMC counters.  Treat the PMC4 run-latch specially.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220103224746.167831-3-danielhb413@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
target/ppc/power8-pmu.c