Fixed bug in x86-64 recompiler introduced by rev 581.

This commit is contained in:
SarahW 2016-12-10 11:50:41 +00:00
commit 6131d9b7d9

View file

@ -3390,9 +3390,9 @@ static int LOAD_HOST_REG(int host_reg)
if (host_reg & 8) if (host_reg & 8)
addbyte(0x44); addbyte(0x44);
addbyte(0x89); 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) static int ZERO_EXTEND_W_B(int reg)