From a1910954cd98341c5f2d11d36e7f6ba82613670d Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 12 Mar 2018 13:19:04 -0400 Subject: [PATCH] target/i386/mem_helper: Perform comparison pass against qemu Ensure formatting and relevant code are in order --- qemu/target/i386/mem_helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qemu/target/i386/mem_helper.c b/qemu/target/i386/mem_helper.c index 4ecfb7e8..80b0c1bb 100644 --- a/qemu/target/i386/mem_helper.c +++ b/qemu/target/i386/mem_helper.c @@ -60,6 +60,7 @@ void helper_cmpxchg8b(CPUX86State *env, target_ulong a0) int eflags; eflags = cpu_cc_compute_all(env, CC_OP); + cmpv = deposit64(env->regs[R_EAX], 32, 32, env->regs[R_EDX]); newv = deposit64(env->regs[R_EBX], 32, 32, env->regs[R_ECX]); @@ -106,6 +107,7 @@ void helper_cmpxchg16b_unlocked(CPUX86State *env, target_ulong a0) raise_exception_ra(env, EXCP0D_GPF, GETPC()); } eflags = cpu_cc_compute_all(env, CC_OP); + cmpv = int128_make128(env->regs[R_EAX], env->regs[R_EDX]); newv = int128_make128(env->regs[R_EBX], env->regs[R_ECX]);