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:
JosJuice
2023-06-23 17:06:39 +02:00
parent ca7e05bbc4
commit 62787085e1
10 changed files with 63 additions and 16 deletions

View File

@ -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);