summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu
diff options
context:
space:
mode:
author Ville Linde <villedevs@gmail.com>2016-04-02 19:33:50 +0300
committer Ville Linde <villedevs@gmail.com>2016-04-02 19:35:21 +0300
commitb2578a2283b6fdf81d4db99ba96c660f1a93f03e (patch)
treef0afcdba5bfd9d8930495cc5d9571f207e23c8bb /src/devices/cpu
parentae5258faec99adee80ed26e0822241c3eff7c66c (diff)
x86emit: SSE prefix comes before REX on MOVQ (nw)
Diffstat (limited to 'src/devices/cpu')
-rw-r--r--src/devices/cpu/x86emit.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/cpu/x86emit.h b/src/devices/cpu/x86emit.h
index 45e1c456737..e57e19e65d5 100644
--- a/src/devices/cpu/x86emit.h
+++ b/src/devices/cpu/x86emit.h
@@ -2936,10 +2936,10 @@ inline void emit_movd_m32_r128(x86code *&emitptr, x86_memref memref, UINT8 sreg)
#if (X86EMIT_SIZE == 64)
-inline void emit_movq_r128_r64(x86code *&emitptr, UINT8 dreg, UINT8 sreg) { emit_op_modrm_reg(emitptr, OP_MOVD_Vd_Ed, OP_64BIT, dreg, sreg); }
-inline void emit_movq_r128_m64(x86code *&emitptr, UINT8 dreg, x86_memref memref) { emit_op_modrm_mem(emitptr, OP_MOVD_Vd_Ed, OP_64BIT, dreg, memref); }
-inline void emit_movq_r64_r128(x86code *&emitptr, UINT8 dreg, UINT8 sreg) { emit_op_modrm_reg(emitptr, OP_MOVD_Ed_Vd, OP_64BIT, sreg, dreg); }
-inline void emit_movq_m64_r128(x86code *&emitptr, x86_memref memref, UINT8 sreg) { emit_op_modrm_mem(emitptr, OP_MOVD_Ed_Vd, OP_64BIT, sreg, memref); }
+inline void emit_movq_r128_r64(x86code *&emitptr, UINT8 dreg, UINT8 sreg) { emit_byte(emitptr, 0x66); emit_op_modrm_reg(emitptr, OP_MOVD_Pd_Ed, OP_64BIT, dreg, sreg); }
+inline void emit_movq_r128_m64(x86code *&emitptr, UINT8 dreg, x86_memref memref) { emit_byte(emitptr, 0x66); emit_op_modrm_mem(emitptr, OP_MOVD_Pd_Ed, OP_64BIT, dreg, memref); }
+inline void emit_movq_r64_r128(x86code *&emitptr, UINT8 dreg, UINT8 sreg) { emit_byte(emitptr, 0x66); emit_op_modrm_reg(emitptr, OP_MOVD_Ed_Pd, OP_64BIT, sreg, dreg); }
+inline void emit_movq_m64_r128(x86code *&emitptr, x86_memref memref, UINT8 sreg) { emit_byte(emitptr, 0x66); emit_op_modrm_mem(emitptr, OP_MOVD_Ed_Pd, OP_64BIT, sreg, memref); }
#endif