From c3a127f01cfaded60567c67daf34237eeacbe684 Mon Sep 17 00:00:00 2001 From: SarahW Date: Mon, 4 Dec 2017 22:15:30 +0000 Subject: [PATCH] Fixed alignment check in x86-64 recompiler. Fixes crash in Windows 95 setup. --- 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 9501a5f..f50eba2 100644 --- a/src/codegen_ops_x86-64.h +++ b/src/codegen_ops_x86-64.h @@ -5885,9 +5885,9 @@ static inline int MEM_LOAD_ADDR_EA_L_NO_ABRT(x86seg *seg) addbyte(0xc1); /*SHR ESI, 12*/ addbyte(0xe8 | REG_ESI); addbyte(12); - addbyte(0xf7); /*TEST EDI, 1*/ + addbyte(0xf7); /*TEST EDI, 3*/ addbyte(0xc7); - addlong(1); + addlong(3); if (IS_32_ADDR(readlookup2)) { addbyte(0x67); /*MOV RSI, readlookup2[ESI*8]*/