diff options
| author | OatmealDome <OatmealDome@users.noreply.github.com> | 2024-04-22 12:32:32 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-22 12:32:32 -0400 |
| commit | e69486d2cb4e3e01dd622d760350b26d6cbd59f5 (patch) | |
| tree | 608c5a3043421ae5eba5b752159098268c919854 /Source/Core/Common/CodeBlock.h | |
| parent | 697dbfee014f9eb1f8980a68a232af8aedc2aef1 (diff) | |
| parent | e8154a529f9ecf34e1ade2376a74b7841d40019e (diff) | |
Merge pull request #12664 from JosJuice/jitarm64-256-mib
JitArm64: Increase farcode & nearcode cache size
Diffstat (limited to 'Source/Core/Common/CodeBlock.h')
| -rw-r--r-- | Source/Core/Common/CodeBlock.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/Common/CodeBlock.h b/Source/Core/Common/CodeBlock.h index fbd4cdb00a..9efc82edeb 100644 --- a/Source/Core/Common/CodeBlock.h +++ b/Source/Core/Common/CodeBlock.h @@ -82,6 +82,10 @@ public: } bool IsInSpace(const u8* ptr) const { return ptr >= region && ptr < (region + region_size); } + bool IsInSpaceOrChildSpace(const u8* ptr) const + { + return ptr >= region && ptr < (region + total_region_size); + } void WriteProtect(bool allow_execute) { Common::WriteProtectMemory(region, region_size, allow_execute); @@ -106,7 +110,7 @@ public: bool HasChildren() const { return region_size != total_region_size; } u8* AllocChildCodeSpace(size_t child_size) { - ASSERT_MSG(DYNA_REC, child_size < GetSpaceLeft(), "Insufficient space for child allocation."); + ASSERT_MSG(DYNA_REC, child_size <= GetSpaceLeft(), "Insufficient space for child allocation."); u8* child_region = region + region_size - child_size; region_size -= child_size; ResetCodePtr(); |
