Skip to content

Commit

Permalink
Merge pull request #12213 from dreamsyntax/128_CODE_SIZE_AND_FARCODE_…
Browse files Browse the repository at this point in the history
…SIZE

Jit64: Increase farcode & nearcode cache size
  • Loading branch information
AdmiralCurtiss committed Oct 10, 2023
2 parents 9ebb525 + 219610d commit 410ec83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Core/PowerPC/Jit64Common/FarCodeCache.h
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Core/PowerPC/Jit64Common/Jit64Constants.h
Expand Up @@ -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;

0 comments on commit 410ec83

Please sign in to comment.