diff --git a/qemu/target/arm/helper.c b/qemu/target/arm/helper.c index 4e3a0e81..48b7e517 100644 --- a/qemu/target/arm/helper.c +++ b/qemu/target/arm/helper.c @@ -1014,7 +1014,7 @@ static void pmccfiltr_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value) { pmccntr_sync(env); - env->cp15.pmccfiltr_el0 = value & 0x7E000000; + env->cp15.pmccfiltr_el0 = value & 0xfc000000; pmccntr_sync(env); }