From: David Gibson <david@gibson.dropbear.id.au>
To: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Cc: richard.henderson@linaro.org, qemu-ppc@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2 0/8] target/ppc: remove various endian hacks from int_helper.c
Date: Mon, 21 Jan 2019 09:28:25 +1300 [thread overview]
Message-ID: <20190120202824.GA2423@umbus> (raw)
In-Reply-To: <41c0bc74-a976-93e1-1104-99b191934d89@ilande.co.uk>
[-- Attachment #1: Type: text/plain, Size: 2170 bytes --]
On Fri, Jan 18, 2019 at 01:25:37PM +0000, Mark Cave-Ayland wrote:
> On 02/01/2019 02:59, David Gibson wrote:
>
> > On Fri, Dec 28, 2018 at 01:52:27PM +0000, Mark Cave-Ayland wrote:
> >> >From working on the TCG vector operations patchset, it is apparent that there
> >> are a large number of endian-based hacks in int_helper.c which can be removed by
> >> making use of the various Vsr* macros.
> >>
> >> Patch 1 is simple enough, and implements the complete set of Vsr* macros for
> >> both big endian and little endian hosts.
> >>
> >> Patches 2 and 3 rework the vector merge and multiply algorithms so that they
> >> no longer require the endian-dependent HI_IDX and LO_IDX macros.
> >>
> >> Patches 4 and 5 then completely remove the HI_IDX/LO_IDX and EL_IDX macros by
> >> replacing the element accesses with their equivalent Vsr* macro instead.
> >>
> >> Patches 6 and 7 tidy up the VEXT_SIGNED macro and fix a potential shift bug
> >> in the ROTRu32 and ROTRu64 macros pointed out by Richard during the review of
> >> v1.
> >>
> >> Finally patch 8 is an inspection-based removal of other HOST_WORDS_BIGENDIAN
> >> hacks in int_helper.c, again replacing accesses with the relevant Vsr* macro
> >> instead.
> >>
> >> Note that there are still some endian hacks left in int_helper.c after this
> >> patchset: in particular the delightfully evil VECTOR_FOR_INORDER_I macro still
> >> remains in places where the index variable was used for purposes other than
> >> accessing elements within the vector.
> >>
> >> There were also some parts where additional conversion could be done, but I
> >> wasn't confident enough to make the change without access to PPC64 test images
> >> or real big-endian host hardware.
> >
> > Applied to ppc-for-4.0, thanks.
>
> Just checking your ppc-for-4.0 branch on github, I can't see where this has been
> applied? Is it queued in a local branch still?
Yeah, probably. I've pushed it out now.
--
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: 833 bytes --]
next prev parent reply other threads:[~2019-01-21 0:01 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-28 13:52 [Qemu-devel] [PATCH v2 0/8] target/ppc: remove various endian hacks from int_helper.c Mark Cave-Ayland
2018-12-28 13:52 ` [Qemu-devel] [PATCH v2 1/8] target/ppc: implement complete set of Vsr* macros Mark Cave-Ayland
2019-01-02 2:38 ` David Gibson
2018-12-28 13:52 ` [Qemu-devel] [PATCH v2 2/8] target/ppc: rework vmrg{l, h}{b, h, w} instructions to use " Mark Cave-Ayland
2018-12-28 13:52 ` [Qemu-devel] [PATCH v2 3/8] target/ppc: rework vmul{e, o}{s, u}{b, " Mark Cave-Ayland
2018-12-28 13:52 ` [Qemu-devel] [PATCH v2 4/8] target/ppc: eliminate use of HI_IDX and LO_IDX macros from int_helper.c Mark Cave-Ayland
2018-12-28 13:52 ` [Qemu-devel] [PATCH v2 5/8] target/ppc: eliminate use of EL_IDX " Mark Cave-Ayland
2018-12-28 13:52 ` [Qemu-devel] [PATCH v2 6/8] target/ppc: simplify VEXT_SIGNED macro in int_helper.c Mark Cave-Ayland
2018-12-29 21:14 ` Richard Henderson
2018-12-28 13:52 ` [Qemu-devel] [PATCH v2 7/8] target/ppc: remove ROTRu32 and ROTRu64 macros from int_helper.c Mark Cave-Ayland
2018-12-29 21:39 ` Richard Henderson
2018-12-28 13:52 ` [Qemu-devel] [PATCH v2 8/8] target/ppc: remove various HOST_WORDS_BIGENDIAN hacks in int_helper.c Mark Cave-Ayland
2018-12-29 21:46 ` Richard Henderson
2019-01-02 2:59 ` [Qemu-devel] [PATCH v2 0/8] target/ppc: remove various endian hacks from int_helper.c David Gibson
2019-01-18 13:25 ` Mark Cave-Ayland
2019-01-20 20:28 ` David Gibson [this message]
2019-01-21 5:15 ` Mark Cave-Ayland
2019-01-26 1:53 ` David Gibson
2019-01-27 8:23 ` Mark Cave-Ayland
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=20190120202824.GA2423@umbus \
--to=david@gibson.dropbear.id.au \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@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).