From 19a91a69ea5aec64f9be3e8a541a8a6037aa04c1 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Sun, 29 Nov 2026 05:08:16 +0000 Subject: [PATCH] EE-INT: in LD do memory read before checking write for TLB miss check --- pcsx2/R5900OpcodeImpl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcsx2/R5900OpcodeImpl.cpp b/pcsx2/R5900OpcodeImpl.cpp index 0104f5b020..bcaf90f72e 100644 --- a/pcsx2/R5900OpcodeImpl.cpp +++ b/pcsx2/R5900OpcodeImpl.cpp @@ -729,9 +729,11 @@ void LD() if (addr & 7) [[unlikely]] RaiseAddressError(addr, false); + u64 mem = memRead64(addr); + if (!_Rt_) return; - cpuRegs.GPR.r[_Rt_].UD[0] = memRead64(addr); + cpuRegs.GPR.r[_Rt_].UD[0] = mem; } static const u64 LDL_MASK[8] =