From d3629321e1e374b8fc3d2970d093fe377e97ed5c Mon Sep 17 00:00:00 2001 From: Maschell Date: Mon, 3 Oct 2022 21:30:14 +0200 Subject: [PATCH] Update sCheckDataRange to support 0x00800000 - 0x010000000 memory region --- source/function_replacements.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/function_replacements.cpp b/source/function_replacements.cpp index c4af093..dfa0d29 100644 --- a/source/function_replacements.cpp +++ b/source/function_replacements.cpp @@ -11,7 +11,7 @@ DECL_FUNCTION(uint32_t, KiEffectiveToPhysical, uint32_t addressSpace, uint32_t v } DECL_FUNCTION(int32_t, sCheckDataRange, uint32_t address, uint32_t maxDataSize) { - if ((address & 0xF0000000) == (MEMORY_START_BASE & 0xF0000000)) { + if ((address >= 0x00800000 && address < 0x01000000) || (address & 0xF0000000) == (MEMORY_START_BASE & 0xF0000000)) { return 1; }