From 10dabd9975bac7bac6cf1bf3b046638fd1e70807 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Tue, 10 Jan 2023 01:23:29 +0100 Subject: [PATCH] PowerPC: Remove rDEC macro. --- Source/Core/Core/PowerPC/PowerPC.cpp | 2 +- Source/Core/Core/PowerPC/PowerPC.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/Core/PowerPC/PowerPC.cpp b/Source/Core/Core/PowerPC/PowerPC.cpp index a9e1b2bc89..646605d715 100644 --- a/Source/Core/Core/PowerPC/PowerPC.cpp +++ b/Source/Core/Core/PowerPC/PowerPC.cpp @@ -212,7 +212,7 @@ static void ResetRegisters() // MSR should be 0x40, but we don't emulate BS1, so it would never be turned off :} ppcState.msr.Hex = 0; - rDEC = 0xFFFFFFFF; + ppcState.spr[SPR_DEC] = 0xFFFFFFFF; SystemTimers::DecrementerSet(); } diff --git a/Source/Core/Core/PowerPC/PowerPC.h b/Source/Core/Core/PowerPC/PowerPC.h index e6dc31b965..0bdb64b9fc 100644 --- a/Source/Core/Core/PowerPC/PowerPC.h +++ b/Source/Core/Core/PowerPC/PowerPC.h @@ -248,7 +248,6 @@ void UpdatePerformanceMonitor(u32 cycles, u32 num_load_stores, u32 num_fp_inst); #define LR(ppc_state) (ppc_state).spr[SPR_LR] #define CTR(ppc_state) (ppc_state).spr[SPR_CTR] -#define rDEC PowerPC::ppcState.spr[SPR_DEC] #define SRR0 PowerPC::ppcState.spr[SPR_SRR0] #define SRR1 PowerPC::ppcState.spr[SPR_SRR1] #define SPRG0 PowerPC::ppcState.spr[SPR_SPRG0]