target/ppc: Use env->pnc_cyc_cnt
commiteec4dfdadbc68d2103a02e449618b191eb9c0886
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)
tree686896f24c2bbd42f6d0c0a8bdff71630743c786
parentffae5616c3677f7d6ad15267e6a15b895357b674
target/ppc: Use env->pnc_cyc_cnt

Use the cached pmc_cyc_cnt value in pmu_update_cycles
and pmc_update_overflow_timer.  This leaves pmc_get_event
and pmc_is_inactive unused, so remove them.

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