From a88abd4aa88e7b1076f3d2c81cc55ab6e799c510 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Tue, 9 Dec 2025 13:08:18 +0000 Subject: [PATCH] EE: Correct addresses for counter event test --- pcsx2/R5900OpcodeImpl.cpp | 10 +++++----- pcsx2/x86/ix86-32/iR5900LoadStore.cpp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pcsx2/R5900OpcodeImpl.cpp b/pcsx2/R5900OpcodeImpl.cpp index a8943c5a7b..9463511fc4 100644 --- a/pcsx2/R5900OpcodeImpl.cpp +++ b/pcsx2/R5900OpcodeImpl.cpp @@ -526,7 +526,7 @@ void LB() cpuRegs.GPR.r[_Rt_].SD[0] = temp; // Force event test on EE counter read to improve read + interrupt syncing. Namely ESPN Games. - if ((addr & 0xFFFFE0000) == 0x10000000) + if ((addr & 0xFFFFE000) == 0x10000000) { intUpdateCPUCycles(); intEventTest(); @@ -542,7 +542,7 @@ void LBU() cpuRegs.GPR.r[_Rt_].UD[0] = temp; // Force event test on EE counter read to improve read + interrupt syncing. Namely ESPN Games. - if ((addr & 0xFFFFE0000) == 0x10000000) + if ((addr & 0xFFFFE000) == 0x10000000) { intUpdateCPUCycles(); intEventTest(); @@ -562,7 +562,7 @@ void LH() cpuRegs.GPR.r[_Rt_].SD[0] = temp; // Force event test on EE counter read to improve read + interrupt syncing. Namely ESPN Games. - if ((addr & 0xFFFFE0000) == 0x10000000) + if ((addr & 0xFFFFE000) == 0x10000000) { intUpdateCPUCycles(); intEventTest(); @@ -582,7 +582,7 @@ void LHU() cpuRegs.GPR.r[_Rt_].UD[0] = temp; // Force event test on EE counter read to improve read + interrupt syncing. Namely ESPN Games. - if ((addr & 0xFFFFE0000) == 0x10000000) + if ((addr & 0xFFFFE000) == 0x10000000) { intUpdateCPUCycles(); intEventTest(); @@ -602,7 +602,7 @@ void LW() cpuRegs.GPR.r[_Rt_].SD[0] = (s32)temp; // Force event test on EE counter read to improve read + interrupt syncing. Namely ESPN Games. - if ((addr & 0xFFFFE0000) == 0x10000000) + if ((addr & 0xFFFFE000) == 0x10000000) { intUpdateCPUCycles(); intEventTest(); diff --git a/pcsx2/x86/ix86-32/iR5900LoadStore.cpp b/pcsx2/x86/ix86-32/iR5900LoadStore.cpp index 36e155e0be..ffaf7635a0 100644 --- a/pcsx2/x86/ix86-32/iR5900LoadStore.cpp +++ b/pcsx2/x86/ix86-32/iR5900LoadStore.cpp @@ -113,7 +113,7 @@ static void recLoad(u32 bits, bool sign) const u32 srcadr = g_cpuConstRegs[_Rs_].UL[0] + _Imm_; // Force event test on EE counter read to improve read + interrupt syncing. Namely ESPN Games. - if (bits <= 32 && (srcadr & 0xFFFFE0000) == 0x10000000) + if (bits <= 32 && (srcadr & 0xFFFFE000) == 0x10000000) needs_flush = true; x86reg = vtlb_DynGenReadNonQuad_Const(bits, sign, false, srcadr, alloc_cb);