From 6131d9b7d96b1a2f61c3f49beb0b31d6758611f3 Mon Sep 17 00:00:00 2001 From: SarahW Date: Sat, 10 Dec 2016 11:50:41 +0000 Subject: [PATCH] Fixed bug in x86-64 recompiler introduced by rev 581. --- src/codegen_ops_x86-64.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codegen_ops_x86-64.h b/src/codegen_ops_x86-64.h index 951a25b..48612d2 100644 --- a/src/codegen_ops_x86-64.h +++ b/src/codegen_ops_x86-64.h @@ -3390,9 +3390,9 @@ static int LOAD_HOST_REG(int host_reg) if (host_reg & 8) addbyte(0x44); addbyte(0x89); - addbyte(0xc0 | REG_ECX | ((host_reg & 7) << 3)); + addbyte(0xc0 | REG_EBX | ((host_reg & 7) << 3)); - return REG_ECX | (host_reg & 0x10); + return REG_EBX | (host_reg & 0x10); } static int ZERO_EXTEND_W_B(int reg)