From 219610d8a0e5a2c12d074314c6f2e62a4b43d7e4 Mon Sep 17 00:00:00 2001 From: dreamsyntax Date: Sat, 30 Sep 2023 22:15:37 -0700 Subject: [PATCH] Jit64: Increase nearcode/farcode size --- Source/Core/Core/PowerPC/Jit64Common/FarCodeCache.h | 4 ++-- Source/Core/Core/PowerPC/Jit64Common/Jit64Constants.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/Core/PowerPC/Jit64Common/FarCodeCache.h b/Source/Core/Core/PowerPC/Jit64Common/FarCodeCache.h index 959e5f1edc..08cfe3f8ab 100644 --- a/Source/Core/Core/PowerPC/Jit64Common/FarCodeCache.h +++ b/Source/Core/Core/PowerPC/Jit64Common/FarCodeCache.h @@ -8,8 +8,8 @@ // a bit of a hack; the MMU results in a vast amount more code ending up in the far cache, // mostly exception handling, so give it a whole bunch more space if the MMU is on. -constexpr size_t FARCODE_SIZE = 1024 * 1024 * 8; -constexpr size_t FARCODE_SIZE_MMU = 1024 * 1024 * 48; +constexpr size_t FARCODE_SIZE = 1024 * 1024 * 64; +constexpr size_t FARCODE_SIZE_MMU = 1024 * 1024 * 128; // A place to throw blocks of code we don't want polluting the cache, e.g. rarely taken // exception branches. diff --git a/Source/Core/Core/PowerPC/Jit64Common/Jit64Constants.h b/Source/Core/Core/PowerPC/Jit64Common/Jit64Constants.h index ab5e6fcd30..39e16c7eea 100644 --- a/Source/Core/Core/PowerPC/Jit64Common/Jit64Constants.h +++ b/Source/Core/Core/PowerPC/Jit64Common/Jit64Constants.h @@ -20,4 +20,4 @@ constexpr Gen::X64Reg RMEM = Gen::RBX; // to address as much as possible in a one-byte offset form. constexpr Gen::X64Reg RPPCSTATE = Gen::RBP; -constexpr size_t CODE_SIZE = 1024 * 1024 * 32; +constexpr size_t CODE_SIZE = 1024 * 1024 * 128;