PowerPC: Parametrize CTR macro.

This commit is contained in:
Admiral H. Curtiss
2023-01-10 01:19:56 +01:00
parent 0a343007cb
commit c13ca271d8
4 changed files with 10 additions and 9 deletions

View File

@ -441,7 +441,7 @@ static void ReadRegister()
wbe32hex(reply, LR(PowerPC::ppcState));
break;
case 68:
wbe32hex(reply, CTR);
wbe32hex(reply, CTR(PowerPC::ppcState));
break;
case 69:
wbe32hex(reply, PowerPC::ppcState.spr[SPR_XER]);
@ -653,7 +653,7 @@ static void WriteRegister()
LR(PowerPC::ppcState) = re32hex(bufptr);
break;
case 68:
CTR = re32hex(bufptr);
CTR(PowerPC::ppcState) = re32hex(bufptr);
break;
case 69:
PowerPC::ppcState.spr[SPR_XER] = re32hex(bufptr);