diff --git a/Source/Core/Common/Src/x64Emitter.cpp b/Source/Core/Common/Src/x64Emitter.cpp index be525c8035..fe839d8537 100644 --- a/Source/Core/Common/Src/x64Emitter.cpp +++ b/Source/Core/Common/Src/x64Emitter.cpp @@ -927,7 +927,7 @@ namespace Gen void AND (int bits, const OpArg &a1, const OpArg &a2) {WriteNormalOp(bits, nrmAND, a1, a2);} void OR (int bits, const OpArg &a1, const OpArg &a2) {WriteNormalOp(bits, nrmOR , a1, a2);} void XOR (int bits, const OpArg &a1, const OpArg &a2) {WriteNormalOp(bits, nrmXOR, a1, a2);} - inline void MOV (int bits, const OpArg &a1, const OpArg &a2) + void MOV (int bits, const OpArg &a1, const OpArg &a2) { _assert_msg_(DYNA_REC, !a1.IsSimpleReg() || !a2.IsSimpleReg() || a1.GetSimpleReg() != a2.GetSimpleReg(), "Redundant MOV @ %p", code); @@ -1315,7 +1315,8 @@ namespace Gen Write8(0x9B); } - + void RTDSC() { Write8(0x0F); Write8(0x31); } + namespace Util { diff --git a/Source/Core/Common/Src/x64Emitter.h b/Source/Core/Common/Src/x64Emitter.h index b62b24f786..995143b91a 100644 --- a/Source/Core/Common/Src/x64Emitter.h +++ b/Source/Core/Common/Src/x64Emitter.h @@ -160,7 +160,7 @@ namespace Gen return false; return GetSimpleReg() == reg; } - bool CanDoOpWith(OpArg &other) const + bool CanDoOpWith(const OpArg &other) const { if (IsSimpleReg()) return true; if (!IsSimpleReg() && !other.IsSimpleReg() && !other.IsImm()) return false; @@ -520,6 +520,8 @@ namespace Gen void PMOVMSKB(X64Reg dest, OpArg arg); void PSHUFB(X64Reg dest, OpArg arg); + void RTDSC(); + namespace Util { // Sets up a __cdecl function.