target/i386: do not clobber T0 on string operations
commitc0099cd40e368d8a8505c93813bffdd752c2b859
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 Oct 2023 14:55:39 +0000 (19 16:55 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 29 Dec 2023 21:03:24 +0000 (29 22:03 +0100)
tree75cc7502c60820bf8696917ffb33ad5924762b0b
parent24c0573bb0c3f55c47926e3cb047a716608cd113
target/i386: do not clobber T0 on string operations

The new decoder would rather have the operand in T0 when expanding SCAS, rather
than use R_EAX directly as gen_scas currently does.  This makes SCAS more similar
to CMP and SUB, in that CC_DST = T0 - T1.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/translate.c