target/i386: unify REP and REPZ/REPNZ generation
authorPaolo Bonzini <pbonzini@redhat.com>
Sun, 15 Dec 2024 09:06:02 +0000 (10:06 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Jan 2025 10:35:33 +0000 (11:35 +0100)
commitb519556f58dcb548f295c5cbbf91617377c5c564
tree93aff364f422e01f3bbd35800c7c1174d40bfd76
parente604be4fb4ed1abe5286f8f4145701bf3fc15b97
target/i386: unify REP and REPZ/REPNZ generation

It only differs in a single call to gen_jcc, so use a "bool" argument
to distinguish the two cases; do not duplicate code.

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