mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
One more case of 64-bit code outside _M_X64, pointed out by omegadox.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5518 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -103,13 +103,13 @@ const u8 *TrampolineCache::GetWriteTrampoline(const InstructionInfo &info)
|
|||||||
if (GetSpaceLeft() < 1024)
|
if (GetSpaceLeft() < 1024)
|
||||||
PanicAlert("Trampoline cache full");
|
PanicAlert("Trampoline cache full");
|
||||||
|
|
||||||
|
const u8 *trampoline = GetCodePtr();
|
||||||
|
|
||||||
|
#ifdef _M_X64
|
||||||
X64Reg dataReg = (X64Reg)info.regOperandReg;
|
X64Reg dataReg = (X64Reg)info.regOperandReg;
|
||||||
if (dataReg != EAX)
|
if (dataReg != EAX)
|
||||||
PanicAlert("Backpatch write - not through EAX");
|
PanicAlert("Backpatch write - not through EAX");
|
||||||
|
|
||||||
const u8 *trampoline = GetCodePtr();
|
|
||||||
|
|
||||||
#ifdef _M_X64
|
|
||||||
X64Reg addrReg = (X64Reg)info.scaledReg;
|
X64Reg addrReg = (X64Reg)info.scaledReg;
|
||||||
|
|
||||||
// It's a write. Yay. Remember that we don't have to be super efficient since it's "just" a
|
// It's a write. Yay. Remember that we don't have to be super efficient since it's "just" a
|
||||||
|
Reference in New Issue
Block a user