target/i386: emulate: fix scas
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>
Mohamed Mediouni committed
Feb 28, 2026 at 22:47 UTC
5a0f9481b0cf344c4437515b596e4ecf57ccc30f
1 file changed
+2
target/i386/emulate/x86_emu.c
+2
@@ -745,6 +745,8 @@ static bool exec_scas(CPUX86State *env, struct x86_decode *decode)
745
{
746
decode->op[0].type = X86_VAR_REG;
747
decode->op[0].reg = R_EAX;
748
+ decode->op[0].regptr = x86_reg(env, R_EAX);
749
+
750
if (decode->rep) {
751
string_rep(env, decode, exec_scas_single, decode->rep);
752
} else {