From 00baf193ac00577c5bafccf0cb06a2dcb8a9bebe Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 8 Jan 2017 18:05:28 -0500 Subject: [PATCH] CodeBlock: Const correctness for IsInSpace --- Source/Core/Common/CodeBlock.h | 2 +- Source/Core/Core/PowerPC/JitArm64/Jit.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Common/CodeBlock.h b/Source/Core/Common/CodeBlock.h index 5696976a5a..7bd554b9aa 100644 --- a/Source/Core/Common/CodeBlock.h +++ b/Source/Core/Common/CodeBlock.h @@ -71,7 +71,7 @@ public: } } - bool IsInSpace(u8* ptr) const { return (ptr >= region) && (ptr < (region + region_size)); } + bool IsInSpace(const u8* ptr) const { return ptr >= region && ptr < (region + region_size); } // Cannot currently be undone. Will write protect the entire code region. // Start over if you need to change the code (call FreeCodeSpace(), AllocCodeSpace()). void WriteProtect() { Common::WriteProtectMemory(region, region_size, true); } diff --git a/Source/Core/Core/PowerPC/JitArm64/Jit.h b/Source/Core/Core/PowerPC/JitArm64/Jit.h index e388dfa212..d0975db561 100644 --- a/Source/Core/Core/PowerPC/JitArm64/Jit.h +++ b/Source/Core/Core/PowerPC/JitArm64/Jit.h @@ -30,7 +30,7 @@ public: void Shutdown() override; JitBaseBlockCache* GetBlockCache() override { return &blocks; } - bool IsInCodeSpace(u8* ptr) const { return IsInSpace(ptr); } + bool IsInCodeSpace(const u8* ptr) const { return IsInSpace(ptr); } bool HandleFault(uintptr_t access_address, SContext* ctx) override; void ClearCache() override;