From 726aa67d1bd61b9f6bd2ee86448adf7cdb4b483a Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 14 Dec 2024 13:56:18 +1000 Subject: [PATCH] CPU/CodeCache: Only cache EXP1 blocks up to 0x1F060000 Neither cart type has code mapped above this address. Saves ~91MB of memory. --- src/core/cpu_code_cache.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/cpu_code_cache.cpp b/src/core/cpu_code_cache.cpp index 681401106..fc8fcbfe1 100644 --- a/src/core/cpu_code_cache.cpp +++ b/src/core/cpu_code_cache.cpp @@ -253,15 +253,15 @@ static constexpr LUTRangeList GetLUTRanges() { const LUTRangeList ranges = {{ {0x00000000, 0x00800000}, // RAM - {0x1F000000, 0x1F800000}, // EXP1 + {0x1F000000, 0x1F060000}, // EXP1 {0x1FC00000, 0x1FC80000}, // BIOS {0x80000000, 0x80800000}, // RAM - {0x9F000000, 0x9F800000}, // EXP1 + {0x9F000000, 0x9F060000}, // EXP1 {0x9FC00000, 0x9FC80000}, // BIOS {0xA0000000, 0xA0800000}, // RAM - {0xBF000000, 0xBF800000}, // EXP1 + {0xBF000000, 0xBF060000}, // EXP1 {0xBFC00000, 0xBFC80000} // BIOS }}; return ranges;