mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -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;
|
break;
|
||||||
|
|
||||||
case SPR_TU_W:
|
case SPR_TU_W:
|
||||||
TU = PowerPC::ppcState.gpr[inst.RD];
|
TU(PowerPC::ppcState) = PowerPC::ppcState.gpr[inst.RD];
|
||||||
SystemTimers::TimeBaseSet();
|
SystemTimers::TimeBaseSet();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -207,7 +207,7 @@ static void ResetRegisters()
|
|||||||
IBATUpdated();
|
IBATUpdated();
|
||||||
|
|
||||||
TL(PowerPC::ppcState) = 0;
|
TL(PowerPC::ppcState) = 0;
|
||||||
TU = 0;
|
TU(PowerPC::ppcState) = 0;
|
||||||
SystemTimers::TimeBaseSet();
|
SystemTimers::TimeBaseSet();
|
||||||
|
|
||||||
// MSR should be 0x40, but we don't emulate BS1, so it would never be turned off :}
|
// 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 SRR1(ppc_state) (ppc_state).spr[SPR_SRR1]
|
||||||
#define GQR(ppc_state, x) (ppc_state).spr[SPR_GQR0 + (x)]
|
#define GQR(ppc_state, x) (ppc_state).spr[SPR_GQR0 + (x)]
|
||||||
#define TL(ppc_state) (ppc_state).spr[SPR_TL]
|
#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)
|
inline void SetCarry(u32 ca)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user