From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: Blue Swirl <blauwirbel@gmail.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] microblaze: Add support for the sleep insn
Date: Sat, 30 Mar 2013 15:13:35 +0100 [thread overview]
Message-ID: <20130330141335.GA15741@smtp.vpn> (raw)
In-Reply-To: <CAAu8pHv967164KzsiwRHvLQAqtrKChwZ0+uwLRsi2Tx6Ghdtzw@mail.gmail.com>
On Sat, Mar 30, 2013 at 01:45:26PM +0000, Blue Swirl wrote:
> On Fri, Mar 29, 2013 at 9:44 PM, <edgar.iglesias@gmail.com> wrote:
> > From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>
> >
> > Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
> > ---
> > target-microblaze/translate.c | 15 +++++++++++++++
> > 1 file changed, 15 insertions(+)
> >
> > diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c
> > index a74da8e..21a7119 100644
> > --- a/target-microblaze/translate.c
> > +++ b/target-microblaze/translate.c
> > @@ -1317,6 +1317,21 @@ static void dec_br(DisasContext *dc)
> > /* Memory barrier. */
> > mbar = (dc->ir >> 16) & 31;
> > if (mbar == 2 && dc->imm == 4) {
> > + /* mbar IMM & 16 decodes to sleep. */
> > + if (dc->rd & 16) {
> > + TCGv_i32 tmp = tcg_const_i32(EXCP_HLT);
> > +
> > + LOG_DIS("sleep\n");
> > +
> > + t_sync_flags(dc);
> > + tcg_gen_st_i32(tcg_const_i32(1), cpu_env,
>
> This leaks the result of tcg_const_i32(1).
Fixed in v2, thanks
Edgar
prev parent reply other threads:[~2013-03-30 14:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-29 21:44 [Qemu-devel] [PATCH] microblaze: Add support for the sleep insn edgar.iglesias
2013-03-30 13:45 ` Blue Swirl
2013-03-30 14:13 ` Edgar E. Iglesias [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=20130330141335.GA15741@smtp.vpn \
--to=edgar.iglesias@gmail.com \
--cc=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.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).