From 7341cf2a2068be10be5c6bc229272e6804856e21 Mon Sep 17 00:00:00 2001 From: TomW Date: Thu, 15 Oct 2015 19:40:53 +0100 Subject: [PATCH] Disabled opcode 0x86 (XCHG byte) on x86-64 recompiler. --- src/codegen_ops_xchg.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/codegen_ops_xchg.h b/src/codegen_ops_xchg.h index 7762266..25ff4c7 100644 --- a/src/codegen_ops_xchg.h +++ b/src/codegen_ops_xchg.h @@ -44,6 +44,9 @@ OP_XCHG_EAX_(EBP) static uint32_t ropXCHG_b(uint8_t opcode, uint32_t fetchdat, uint32_t op_32, uint32_t op_pc, codeblock_t *block) { +#ifdef __amd64__ + return 0; +#else int src_reg, dst_reg, temp_reg; if ((fetchdat & 0xc0) != 0xc0) @@ -56,6 +59,7 @@ static uint32_t ropXCHG_b(uint8_t opcode, uint32_t fetchdat, uint32_t op_32, uin STORE_REG_TARGET_B_RELEASE(temp_reg, fetchdat & 7); return op_pc + 1; +#endif } static uint32_t ropXCHG_w(uint8_t opcode, uint32_t fetchdat, uint32_t op_32, uint32_t op_pc, codeblock_t *block) {