mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
Merge pull request #4635 from lioncash/const
CodeBlock: Const correctness for IsInSpace
This commit is contained in:
commit
3212300dd4
@ -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); }
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user