From: "Alex Bennée" <alex.bennee@linaro.org>
To: Richard Henderson <richard.henderson@linaro.org>
Cc: pbonzini@redhat.com, ehabkost@redhat.com, qemu-devel@nongnu.org
Subject: Re: [PATCH for-5.1?] target/i386: Save cc_op before loop insns
Date: Fri, 24 Jul 2020 20:23:01 +0100 [thread overview]
Message-ID: <87mu3osooa.fsf@linaro.org> (raw)
In-Reply-To: <20200720154028.477457-1-richard.henderson@linaro.org>
Richard Henderson <richard.henderson@linaro.org> writes:
> We forgot to update cc_op before these branch insns,
> which lead to losing track of the current eflags.
>
> Buglink: https://bugs.launchpad.net/qemu/+bug/1888165
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> target/i386/translate.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/target/i386/translate.c b/target/i386/translate.c
> index a1d31f09c1..caea6f5fb1 100644
> --- a/target/i386/translate.c
> +++ b/target/i386/translate.c
> @@ -7148,6 +7148,7 @@ static target_ulong disas_insn(DisasContext *s,
> CPUState *cpu)
At first I thought that was too broad to go in disas_insn and then I
realised it was one of those mega functions....
> l1 = gen_new_label();
> l2 = gen_new_label();
> l3 = gen_new_label();
> + gen_update_cc_op(s);
Seems legit:
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
<snip>
--
Alex Bennée
prev parent reply other threads:[~2020-07-24 19:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-20 15:40 [PATCH for-5.1?] target/i386: Save cc_op before loop insns Richard Henderson
2020-07-24 18:34 ` Richard Henderson
2020-07-24 18:53 ` Paolo Bonzini
2020-07-24 21:47 ` Richard Henderson
2020-07-24 19:23 ` Alex Bennée [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mu3osooa.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=ehabkost@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).