From: David Gibson <david@gibson.dropbear.id.au>
To: "Imran, Talha" <Talha_Imran@mentor.com>
Cc: "agraf@suse.de" <agraf@suse.de>,
"qemu-trivial@nongnu.org" <qemu-trivial@nongnu.org>,
"qemu-ppc@nongnu.org" <qemu-ppc@nongnu.org>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH] target-ppc/fpu_helper: Fix efscmp* instructions handling
Date: Wed, 1 Jun 2016 16:24:07 +1000 [thread overview]
Message-ID: <20160601062407.GC15455@voom.fritz.box> (raw)
In-Reply-To: <3052678E9DA67D4CB879A6625EE420753DD7A3D1@EU-MBX-02.mgc.mentorg.com>
[-- Attachment #1: Type: text/plain, Size: 1904 bytes --]
On Fri, May 27, 2016 at 07:43:46AM +0000, Imran, Talha wrote:
>
> On 05/27/2016 06:37 AM, David Gibson wrote:
> > On Thu, May 19, 2016 at 05:11:35PM +0500, Talha Imran wrote:
> >> With specification at hand from the reference manual from Freescale
> >> http://cache.nxp.com/files/32bit/doc/ref_manual/SPEPEM.pdf , I have found a fix
> >> to efscmp* instructions handling in QEMU.
> >>
> ...
> >> Signed-off-by: Talha Imran <talha_imran@mentor.com>
> >
> > Does this patch supersede the earlier patch you posted for efcmp
> > instructions on e500v1? Or is it in addition to that patch?
> >
> [talha]: Yes, it supersedes the earlier patches. This is a better
> solution.
Ok, I managed to read up enough on the SPE instructions to convince
myself this was correct, so I've merged it to ppc-for-2.7.
>
> >> ---
> >> target-ppc/fpu_helper.c | 2 +-
> >> 1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/target-ppc/fpu_helper.c b/target-ppc/fpu_helper.c
> >> index b67ebca..6fd56a8 100644
> >> --- a/target-ppc/fpu_helper.c
> >> +++ b/target-ppc/fpu_helper.c
> >> @@ -1442,7 +1442,7 @@ static inline uint32_t efststeq(CPUPPCState *env, uint32_t op1, uint32_t op2)
> >> #define HELPER_SINGLE_SPE_CMP(name) \
> >> uint32_t helper_e##name(CPUPPCState *env, uint32_t op1, uint32_t op2) \
> >> { \
> >> - return e##name(env, op1, op2) << 2; \
> >> + return e##name(env, op1, op2); \
> >> }
> >> /* efststlt */
> >> HELPER_SINGLE_SPE_CMP(fststlt);
> >
>
>
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
prev parent reply other threads:[~2016-06-01 22:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-19 12:11 [Qemu-devel] [PATCH] target-ppc/fpu_helper: Fix efscmp* instructions handling Talha Imran
2016-05-27 1:37 ` [Qemu-devel] [Qemu-ppc] " David Gibson
2016-05-27 7:43 ` Imran, Talha
2016-06-01 6:24 ` David Gibson [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=20160601062407.GC15455@voom.fritz.box \
--to=david@gibson.dropbear.id.au \
--cc=Talha_Imran@mentor.com \
--cc=agraf@suse.de \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=qemu-trivial@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).