From c0a6e2159906b9cb8ecfd6a8c80e57cce43c12ed Mon Sep 17 00:00:00 2001 From: Ty Lamontagne Date: Sat, 6 Apr 2024 17:34:06 -0400 Subject: [PATCH] DebugTools: Properly Mark Addresses < 0xBFC00000 as Invalid Fixes asserts and possible crashes in release when these addresses are accessed in the debugger. --- pcsx2/DebugTools/DebugInterface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcsx2/DebugTools/DebugInterface.cpp b/pcsx2/DebugTools/DebugInterface.cpp index 31ca7fddc2..ea4e00f9fc 100644 --- a/pcsx2/DebugTools/DebugInterface.cpp +++ b/pcsx2/DebugTools/DebugInterface.cpp @@ -700,7 +700,8 @@ bool R5900DebugInterface::isValidAddress(u32 addr) case 0xA: case 0xB: // [ 8000_0000 - BFFF_FFFF ] kernel - return true; + if (lopart >= 0xFC00000) + return true; case 0xF: // [ 8000_0000 - BFFF_FFFF ] IOP or kernel stack if (lopart >= 0xfff8000)