From 9e7b2ed1539d7b1dca78ad841c9a511cf74afd00 Mon Sep 17 00:00:00 2001 From: PSISP Date: Thu, 8 Nov 2018 17:17:30 -0500 Subject: [PATCH] Debugger: Make EE kernel region accessible to debugger. (#2559) Currently, none of the EE kernel is viewable from the debugger, which poses issues when debugging code that makes use of syscalls. This PR should allow the memory region 0x80000000 - 0x800FFFFF to have readable disassembly. --- pcsx2/DebugTools/DebugInterface.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcsx2/DebugTools/DebugInterface.cpp b/pcsx2/DebugTools/DebugInterface.cpp index f70142dae0..fa10b533db 100644 --- a/pcsx2/DebugTools/DebugInterface.cpp +++ b/pcsx2/DebugTools/DebugInterface.cpp @@ -604,7 +604,9 @@ bool R5900DebugInterface::isValidAddress(u32 addr) case 0xA: case 0xB: // [ 8000_0000 - BFFF_FFFF ] kernel - // return true; + // We only need to access the EE kernel (which is 1 MB large) + if (lopart < 0x100000) + return true; break; case 0xF: // [ 8000_0000 - BFFF_FFFF ] IOP or kernel stack