mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
BlockCache: Use const_cast
This commit is contained in:
parent
36c99df9f5
commit
1aff8c4eb1
@ -33,8 +33,8 @@ void JitBlockCache::WriteLinkBlock(const JitBlock::LinkData& source, const JitBl
|
|||||||
void JitBlockCache::WriteDestroyBlock(const JitBlock& block)
|
void JitBlockCache::WriteDestroyBlock(const JitBlock& block)
|
||||||
{
|
{
|
||||||
// Only clear the entry points as we might still be within this block.
|
// Only clear the entry points as we might still be within this block.
|
||||||
Gen::XEmitter emit((u8*)block.checkedEntry);
|
Gen::XEmitter emit(const_cast<u8*>(block.checkedEntry));
|
||||||
emit.INT3();
|
emit.INT3();
|
||||||
Gen::XEmitter emit2((u8*)block.normalEntry);
|
Gen::XEmitter emit2(const_cast<u8*>(block.normalEntry));
|
||||||
emit2.INT3();
|
emit2.INT3();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user