mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-24 12:30:05 +00:00
Fixed MTSPR for time base regs
This commit is contained in:
parent
043aedb9ad
commit
e1c0ec3dd2
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user