Fixed MTSPR for time base regs

This commit is contained in:
dingusdev 2020-01-29 20:47:12 -07:00
parent 043aedb9ad
commit e1c0ec3dd2

View File

@ -1333,10 +1333,12 @@ void ppc_mtspr() {
switch (ref_spr) {
//Mirror the TBRs in the SPR range to the user-mode TBRs.
case 268:
case 284:
ppc_state.ppc_spr[284] = ppc_state.ppc_gpr[reg_s];
ppc_state.ppc_tbr[TBR::TBL] = ppc_state.ppc_gpr[reg_s];
break;
case 269:
case 285:
ppc_state.ppc_spr[285] = ppc_state.ppc_gpr[reg_s];
ppc_state.ppc_tbr[TBR::TBU] = ppc_state.ppc_gpr[reg_s];
break;
case 528: