mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-25 19:56:57 +00:00
target/arm: Fix bitmask for PMCCFILTR writes
It was shifted to the left one bit too few. Backports commit ac57fd24cd864d42e7551f82266bc0930bd39547 from qemu
This commit is contained in:
parent
99a0be89a8
commit
4ed7524444
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue