From: "Abid, Hafiz" <hafiz_abid@mentor.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: <vapier@gentoo.org>, <gdb-patches@sourceware.org>
Subject: Re: [patch, sim] Add isel instruction
Date: Tue, 30 Apr 2013 16:29:00 -0000 [thread overview]
Message-ID: <1367319223.12146.2@abidh-ubunto1104> (raw)
In-Reply-To: <20130430104701.GA16143@adacore.com> (from brobecker@adacore.com on Tue Apr 30 11:47:01 2013)
Joel,
Thansk for lettting me know. If this is urgent for you then I can
revert as it may take me some time to find a fix.
Regards,
Abid
On 30/04/13 11:47:01, Joel Brobecker wrote:
> Abid,
>
> > This patch adds support for isel instruction in the ppc simulator.
> > Tested manually by running a small assembly file through the
> > simulator. Is this ok?
> >
> > Regards,
> > Abid
> >
> > sim/ChangeLog:
> > 2013-04-19 Nathan Froyd <froydnj@codesourcery.com>
> >
> > * ppc-instructions (isel): New instruction.
>
> This patch causes the sim build to fail when configured with
> --enable-sim-float=spe. The full configure command-line used was:
>
> % configure --disable-nls --disable-tui --without-zlib
> --prefix=/[...]/install --enable-sim --enable-sim-float=spe
> --without-python --with-libexpat-prefix=/[...]/libexpat
> --target=powerpc-eabispe
>
> The error I get is:
>
> | ./igen -E -F 32,f,o,e500 -CSRI 1024 -N 5 \
> | [...]
> | expanding ...
> | -n icache.h
> | -h
> | -c tmp-icache.h
> | gen-icache.c:66: assertion failed - entry->nr_insn == 1
> | make: *** [tmp-igen] Error 1
>
> I am not familiar with this part of the code, so can you please fix
> or revert?
>
> Interestingly, no problem with --enable-sim-float=altivec.
>
> Thank you.
>
> >
> > diff --git a/sim/ppc/ppc-instructions b/sim/ppc/ppc-instructions
> > index 1b8fd89..d76a765 100644
> > --- a/sim/ppc/ppc-instructions
> > +++ b/sim/ppc/ppc-instructions
> > @@ -3455,6 +3455,19 @@
> > void::function::invalid_zero_divide_operation:cpu *processor,
> > unsigned_word cia,
> > PPC_INSN_MFCR(RT_BITMASK);
> >
> > #
> > +# I.3.3.15 Fixed-Point Select
> > +#
> > +
> > +0.31,6.RT,11.RA,16.RB,21.BF,26.15,31./:A::isel:Integer Select
> > + unsigned_word a;
> > + if (RA_is_0) a = 0;
> > + else a = *rA;
> > + if (CR & (1 << (31 - BF)))
> > + *rT = a;
> > + else
> > + *rT = *rB;
> > +
> > +#
>
> --
> Joel
>
next prev parent reply other threads:[~2013-04-30 10:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-19 19:02 Abid, Hafiz
2013-04-30 12:02 ` Joel Brobecker
2013-04-30 15:30 ` Joel Brobecker
2013-04-30 16:29 ` Abid, Hafiz [this message]
2013-04-30 16:30 ` Joel Brobecker
2013-04-30 17:12 ` Abid, Hafiz
[not found] <201304191348.39851.vapier@gentoo.org>
2013-04-19 20:48 ` Abid, Hafiz
2013-04-20 7:37 ` Mike Frysinger
[not found] <201304301309.48611.vapier@gentoo.org>
2013-05-03 7:26 ` Abid, Hafiz
2013-05-06 10:28 ` Joel Brobecker
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=1367319223.12146.2@abidh-ubunto1104 \
--to=hafiz_abid@mentor.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=vapier@gentoo.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