summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-06-04 20:52:53 -0400
committerLioncash <mathew1800@gmail.com>2015-06-04 20:52:53 -0400
commitfe77505d4ddd23614d9ea9fe8081df92b86aa07b (patch)
treeb72634e3a15872125330402ec54c94b76db91d92 /Source/Core
parent4f276ede0f6f4682a3d956d04c0d1db73fb43c58 (diff)
Jit: Make IsInCodeSpace() const
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Common/CodeBlock.h2
-rw-r--r--Source/Core/Core/PowerPC/JitArm64/Jit.h2
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;