From 48466169242df0530de579787ac6dc030585860d Mon Sep 17 00:00:00 2001 From: SarahW Date: Wed, 8 Aug 2018 22:14:52 +0100 Subject: [PATCH] Handle REP prefixed instructions without a dedicated REP instruction handler properly in the recompiler. Fixes Windows XP setup. --- src/codegen.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/codegen.c b/src/codegen.c index 8a06538..a43a728 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -485,6 +485,12 @@ generate_call: } } + if ((op_table == x86_dynarec_opcodes_REPNE || op_table == x86_dynarec_opcodes_REPE) && !op_table[opcode | op_32]) + { + op_table = x86_dynarec_opcodes; + recomp_op_table = recomp_opcodes; + } + op = op_table[((opcode >> opcode_shift) | op_32) & opcode_mask]; if (!test_modrm ||