mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-11 02:45:32 +00:00
target/arm: Mask PMOVSR writes based on supported counters
This is an amendment to my earlier patch: commit 7ece99b17e832065236c07a158dfac62619ef99b Backports commit 599b71e277ac7e92807191b20b7163a28c5450ad from qemu
This commit is contained in:
parent
10c6887e0b
commit
1596801693
|
@ -1043,6 +1043,7 @@ static void pmcntenclr_write(CPUARMState *env, const ARMCPRegInfo *ri,
|
|||
static void pmovsr_write(CPUARMState *env, const ARMCPRegInfo *ri,
|
||||
uint64_t value)
|
||||
{
|
||||
value &= pmu_counter_mask(env);
|
||||
env->cp15.c9_pmovsr &= ~value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue