target/i386: fix RF handling for string instructions
authorPaolo Bonzini <pbonzini@redhat.com>
Sun, 15 Dec 2024 09:06:06 +0000 (10:06 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Jan 2025 10:35:33 +0000 (11:35 +0100)
commit0d82d9e84644ecee3e626bdf204e9847ffe10bce
tree12a7bedb188938241bac5ed75b998e3cd33c5534
parent4d7704ebc59a1f52d6ab65e5fff8e3160c1f4d79
target/i386: fix RF handling for string instructions

RF must be set on traps and interrupts from a string instruction,
except if they occur after the last iteration.  Ensure it is set
before giving the main loop a chance to execute.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Link: https://lore.kernel.org/r/20241215090613.89588-8-pbonzini@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/translate.c