From: Stafford Horne <shorne@gmail.com>
To: Richard Henderson <richard.henderson@linaro.org>
Cc: QEMU Development <qemu-devel@nongnu.org>,
"Jason A . Donenfeld" <Jason@zx2c4.com>
Subject: Re: [PATCH] target/openrisc: Do not reset delay slot flag on early tb exit
Date: Thu, 12 May 2022 21:47:39 +0900 [thread overview]
Message-ID: <Yn0B6xk4Olu5uRxY@antec> (raw)
In-Reply-To: <9eb36cb4-e727-9c10-df6a-2dfe22943244@linaro.org>
On Wed, May 11, 2022 at 07:11:20PM -0700, Richard Henderson wrote:
> On 5/11/22 15:34, Stafford Horne wrote:
> > In this case I don't see how the tb->flag would be updated, ooh, I guess it
> > would have been set earlier when the TB was generated. Maybe that is what I am
> > missing.
>
> Correct, it should be unchanged (and correct) from generation.
OK, its very clear now thanks.
With that said, I am still not convinced we need something like:
--- a/target/openrisc/cpu.c
+++ b/target/openrisc/cpu.c
@@ -37,6 +37,7 @@ static void openrisc_cpu_synchronize_from_tb(CPUState *cs,
OpenRISCCPU *cpu = OPENRISC_CPU(cs);
cpu->env.pc = tb->pc;
+ cpu->env.dflag = (tb->flags & TB_FLAGS_DFLAG) ? 1 : 0;
}
I will leave it out for now as I feel comfortable that the env.dflag will be
correct. But if you think of something let me know.
-Stafford
prev parent reply other threads:[~2022-05-12 12:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-11 12:05 [PATCH] target/openrisc: Do not reset delay slot flag on early tb exit Stafford Horne
2022-05-11 14:32 ` Richard Henderson
2022-05-11 21:43 ` Stafford Horne
2022-05-11 21:56 ` Richard Henderson
2022-05-11 22:34 ` Stafford Horne
2022-05-12 2:11 ` Richard Henderson
2022-05-12 12:47 ` Stafford Horne [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=Yn0B6xk4Olu5uRxY@antec \
--to=shorne@gmail.com \
--cc=Jason@zx2c4.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.