target/i386: cleanup cc_op changes for REP/REPZ/REPNZ
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Apr 2024 10:29:52 +0000 (12:29 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 May 2024 06:51:31 +0000 (08:51 +0200)
commitbbba9594e84f60707558cce9cd3e4d70b9bd0fec
tree7312ed6c4d27e2dabd29442045d1690b8111982b
parent64ddadc6bb80376da2a818b38ae6a51fe1b7f5f2
target/i386: cleanup cc_op changes for REP/REPZ/REPNZ

gen_update_cc_op must be called before control flow splits.  Do it
where the jump on ECX!=0 is translated.

On the other hand, remove the call before gen_jcc1, which takes care of
it already, and explain why REPZ/REPNZ need not use CC_OP_DYNAMIC---the
translation block ends before any control-flow-dependent cc_op could
be observed.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/translate.c