mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
Jit: Add feature flag for performance monitor
By making the JIT cache check if the current state of MMCR0 and MMRC1 matches the state they had at the time the JIT block was compiled, we solve a correctness issue (marked in a comment as a speed hack). Not known to affect any games.
This commit is contained in:
@ -761,6 +761,7 @@ static void WriteRegister()
|
||||
break;
|
||||
case 131:
|
||||
ppc_state.spr[SPR_MMCR0] = re32hex(bufptr);
|
||||
PowerPC::MMCRUpdated(ppc_state);
|
||||
break;
|
||||
case 132:
|
||||
ppc_state.spr[SPR_PMC1] = re32hex(bufptr);
|
||||
@ -773,6 +774,7 @@ static void WriteRegister()
|
||||
break;
|
||||
case 135:
|
||||
ppc_state.spr[SPR_MMCR1] = re32hex(bufptr);
|
||||
PowerPC::MMCRUpdated(ppc_state);
|
||||
break;
|
||||
case 136:
|
||||
ppc_state.spr[SPR_PMC3] = re32hex(bufptr);
|
||||
|
Reference in New Issue
Block a user