]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/i386: emulate: fix scas
authorMohamed Mediouni <mohamed@unpredictable.fr>
Sat, 28 Feb 2026 21:47:04 +0000 (22:47 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 1 Mar 2026 15:02:54 +0000 (16:02 +0100)
Signed-off-by: Mohamed Mediouni <mohamed@unpredictable.fr>
Link: https://lore.kernel.org/r/20260228214704.19048-9-mohamed@unpredictable.fr
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/emulate/x86_emu.c

index 6c4ccc45383d25770a77de671e2c6699ec736592..55b1a68eb6c9d501429d5a8f86ae952ac13de0c6 100644 (file)
@@ -745,6 +745,8 @@ static bool exec_scas(CPUX86State *env, struct x86_decode *decode)
 {
     decode->op[0].type = X86_VAR_REG;
     decode->op[0].reg = R_EAX;
+    decode->op[0].regptr = x86_reg(env, R_EAX);
+
     if (decode->rep) {
         string_rep(env, decode, exec_scas_single, decode->rep);
     } else {