From fe77505d4ddd23614d9ea9fe8081df92b86aa07b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 4 Jun 2015 20:52:53 -0400 Subject: [PATCH] Jit: Make IsInCodeSpace() const --- 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 c982245912..ed1f464904 100644 --- a/Source/Core/Common/CodeBlock.h +++ b/Source/Core/Common/CodeBlock.h @@ -51,7 +51,7 @@ public: region_size = 0; } - bool IsInSpace(u8 *ptr) + bool IsInSpace(u8 *ptr) const { return (ptr >= region) && (ptr < (region + region_size)); } diff --git a/Source/Core/Core/PowerPC/JitArm64/Jit.h b/Source/Core/Core/PowerPC/JitArm64/Jit.h index e0ee7c5a83..18463b669e 100644 --- a/Source/Core/Core/PowerPC/JitArm64/Jit.h +++ b/Source/Core/Core/PowerPC/JitArm64/Jit.h @@ -35,7 +35,7 @@ public: JitBaseBlockCache *GetBlockCache() { return &blocks; } - bool IsInCodeSpace(u8 *ptr) { return IsInSpace(ptr); } + bool IsInCodeSpace(u8 *ptr) const { return IsInSpace(ptr); } bool HandleFault(uintptr_t access_address, SContext* ctx) override;