mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
PowerPC: Parametrize TU macro.
This commit is contained in:
parent
a7d3315b4f
commit
0dcf228aaf
@ -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;
|
||||
|
||||
|
@ -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 :}
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user