projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cea677e
)
target/i386: add a note about gen_jcc1
author
Paolo Bonzini
<pbonzini@redhat.com>
Wed, 14 Aug 2024 11:44:47 +0000
(13:44 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Thu, 31 Oct 2024 17:28:33 +0000
(18:28 +0100)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/translate.c
patch
|
blob
|
history
diff --git
a/target/i386/tcg/translate.c
b/target/i386/tcg/translate.c
index 6e89d4faef1d472641f92d530cdfd3dcd08dc6e0..5d729e68c98ce4c1b4c4c32604a5b7329f9efd24 100644
(file)
--- a/
target/i386/tcg/translate.c
+++ b/
target/i386/tcg/translate.c
@@
-1193,6
+1193,10
@@
static inline void gen_jcc1(DisasContext *s, int b, TCGLabel *l1)
{
CCPrepare cc = gen_prepare_cc(s, b, NULL);
+ /*
+ * Note that this must be _after_ gen_prepare_cc, because it
+ * can change the cc_op from CC_OP_DYNAMIC to CC_OP_EFLAGS!
+ */
gen_update_cc_op(s);
if (cc.use_reg2) {
tcg_gen_brcond_tl(cc.cond, cc.reg, cc.reg2, l1);