PowerPC: Parametrize TU macro.

This commit is contained in:
Admiral H. Curtiss 2023-01-10 01:49:07 +01:00
parent a7d3315b4f
commit 0dcf228aaf
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB
3 changed files with 3 additions and 3 deletions

View File

@ -314,7 +314,7 @@ void Interpreter::mtspr(UGeckoInstruction inst)
break;
case SPR_TU_W:
TU = PowerPC::ppcState.gpr[inst.RD];
TU(PowerPC::ppcState) = PowerPC::ppcState.gpr[inst.RD];
SystemTimers::TimeBaseSet();
break;

View File

@ -207,7 +207,7 @@ static void ResetRegisters()
IBATUpdated();
TL(PowerPC::ppcState) = 0;
TU = 0;
TU(PowerPC::ppcState) = 0;
SystemTimers::TimeBaseSet();
// MSR should be 0x40, but we don't emulate BS1, so it would never be turned off :}

View File

@ -252,7 +252,7 @@ void UpdatePerformanceMonitor(u32 cycles, u32 num_load_stores, u32 num_fp_inst);
#define SRR1(ppc_state) (ppc_state).spr[SPR_SRR1]
#define GQR(ppc_state, x) (ppc_state).spr[SPR_GQR0 + (x)]
#define TL(ppc_state) (ppc_state).spr[SPR_TL]
#define TU PowerPC::ppcState.spr[SPR_TU]
#define TU(ppc_state) (ppc_state).spr[SPR_TU]
inline void SetCarry(u32 ca)
{