Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
target/ppc: PMU do not clear MMCR0[FCECE] on performance monitor alert
FCECE does not get cleared according to the ISA v3.1B.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20230530134313.387252-1-npiggin@gmail.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
  • Loading branch information
npiggin authored and danielhb committed Jun 10, 2023
1 parent 6494d2c commit 82ce3d5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion target/ppc/power8-pmu.c
Expand Up @@ -289,7 +289,6 @@ static void fire_PMC_interrupt(PowerPCCPU *cpu)
pmu_update_cycles(env);

if (env->spr[SPR_POWER_MMCR0] & MMCR0_FCECE) {
env->spr[SPR_POWER_MMCR0] &= ~MMCR0_FCECE;
env->spr[SPR_POWER_MMCR0] |= MMCR0_FC;

/* Changing MMCR0_FC requires summaries and hflags update */
Expand Down

0 comments on commit 82ce3d5

Please sign in to comment.