diff options
author | bunnei <bunneidev@gmail.com> | 2015-08-15 04:29:08 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-08-16 00:03:27 +0200 |
commit | b39c053785abc4a94ce380885a846c5d8be89675 (patch) | |
tree | 42911208a051652a7452c8bbbd35ec91aa2d4e20 /src/common/x64/emitter.cpp | |
parent | Common: Cleanup CPU capability detection code. (diff) | |
download | yuzu-b39c053785abc4a94ce380885a846c5d8be89675.tar yuzu-b39c053785abc4a94ce380885a846c5d8be89675.tar.gz yuzu-b39c053785abc4a94ce380885a846c5d8be89675.tar.bz2 yuzu-b39c053785abc4a94ce380885a846c5d8be89675.tar.lz yuzu-b39c053785abc4a94ce380885a846c5d8be89675.tar.xz yuzu-b39c053785abc4a94ce380885a846c5d8be89675.tar.zst yuzu-b39c053785abc4a94ce380885a846c5d8be89675.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/x64/emitter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/x64/emitter.cpp b/src/common/x64/emitter.cpp index 030c73918..4b79acd1f 100644 --- a/src/common/x64/emitter.cpp +++ b/src/common/x64/emitter.cpp @@ -164,7 +164,7 @@ void XEmitter::WriteSIB(int scale, int index, int base) void OpArg::WriteRex(XEmitter *emit, int opBits, int bits, int customOp) const { if (customOp == -1) customOp = operandReg; -#ifdef ARCHITECTURE_X64 +#ifdef ARCHITECTURE_x86_64 u8 op = 0x40; // REX.W (whether operation is a 64-bit operation) if (opBits == 64) op |= 8; @@ -236,7 +236,7 @@ void OpArg::WriteRest(XEmitter *emit, int extraBytes, X64Reg _operandReg, _offsetOrBaseReg = 5; emit->WriteModRM(0, _operandReg, _offsetOrBaseReg); //TODO : add some checks -#ifdef ARCHITECTURE_X64 +#ifdef ARCHITECTURE_x86_64 u64 ripAddr = (u64)emit->GetCodePtr() + 4 + extraBytes; s64 distance = (s64)offset - (s64)ripAddr; ASSERT_MSG( @@ -1463,7 +1463,7 @@ void XEmitter::MOVD_xmm(const OpArg &arg, X64Reg src) {WriteSSEOp(0x66, 0x7E, sr void XEmitter::MOVQ_xmm(X64Reg dest, OpArg arg) { -#ifdef ARCHITECTURE_X64 +#ifdef ARCHITECTURE_x86_64 // Alternate encoding // This does not display correctly in MSVC's debugger, it thinks it's a MOVD arg.operandReg = dest; |