Jit: Make IsInCodeSpace() const

This commit is contained in:
Lioncash 2015-06-04 20:52:53 -04:00
parent 4f276ede0f
commit fe77505d4d
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ public:
region_size = 0; region_size = 0;
} }
bool IsInSpace(u8 *ptr) bool IsInSpace(u8 *ptr) const
{ {
return (ptr >= region) && (ptr < (region + region_size)); return (ptr >= region) && (ptr < (region + region_size));
} }

View File

@ -35,7 +35,7 @@ public:
JitBaseBlockCache *GetBlockCache() { return &blocks; } 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; bool HandleFault(uintptr_t access_address, SContext* ctx) override;