mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-14 00:09:24 +01:00
commit
909ab23df5
@ -268,11 +268,15 @@ bool IsImmLogical(uint64_t value, unsigned int width, unsigned int *n, unsigned
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ARM64XEmitter::SetCodePtr(u8* ptr)
|
void ARM64XEmitter::SetCodePtrUnsafe(u8* ptr)
|
||||||
{
|
{
|
||||||
m_code = ptr;
|
m_code = ptr;
|
||||||
if (!m_lastCacheFlushEnd)
|
}
|
||||||
m_lastCacheFlushEnd = ptr;
|
|
||||||
|
void ARM64XEmitter::SetCodePtr(u8* ptr)
|
||||||
|
{
|
||||||
|
SetCodePtrUnsafe(ptr);
|
||||||
|
m_lastCacheFlushEnd = ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
const u8* ARM64XEmitter::GetCodePtr() const
|
const u8* ARM64XEmitter::GetCodePtr() const
|
||||||
|
@ -378,6 +378,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SetCodePtr(u8* ptr);
|
void SetCodePtr(u8* ptr);
|
||||||
|
void SetCodePtrUnsafe(u8* ptr);
|
||||||
void ReserveCodeSpace(u32 bytes);
|
void ReserveCodeSpace(u32 bytes);
|
||||||
const u8* AlignCode16();
|
const u8* AlignCode16();
|
||||||
const u8* AlignCodePage();
|
const u8* AlignCodePage();
|
||||||
|
@ -227,13 +227,13 @@ private:
|
|||||||
void SwitchToFarCode()
|
void SwitchToFarCode()
|
||||||
{
|
{
|
||||||
nearcode = GetWritableCodePtr();
|
nearcode = GetWritableCodePtr();
|
||||||
SetCodePtr(farcode.GetWritableCodePtr());
|
SetCodePtrUnsafe(farcode.GetWritableCodePtr());
|
||||||
}
|
}
|
||||||
|
|
||||||
void SwitchToNearCode()
|
void SwitchToNearCode()
|
||||||
{
|
{
|
||||||
farcode.SetCodePtr(GetWritableCodePtr());
|
farcode.SetCodePtrUnsafe(GetWritableCodePtr());
|
||||||
SetCodePtr(nearcode);
|
SetCodePtrUnsafe(nearcode);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dump a memory range of code
|
// Dump a memory range of code
|
||||||
|
Loading…
x
Reference in New Issue
Block a user