From: David Gibson <david@gibson.dropbear.id.au>
To: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Cc: qemu-devel@nongnu.org, qemu-ppc@nongnu.org, richard.henderson@linaro.org
Subject: Re: [Qemu-devel] [PATCH v2 1/8] target/ppc: implement complete set of Vsr* macros
Date: Wed, 2 Jan 2019 13:38:57 +1100 [thread overview]
Message-ID: <20190102023857.GD27457@umbus.fritz.box> (raw)
In-Reply-To: <20181228135235.6859-2-mark.cave-ayland@ilande.co.uk>
[-- Attachment #1: Type: text/plain, Size: 1576 bytes --]
On Fri, Dec 28, 2018 at 01:52:28PM +0000, Mark Cave-Ayland wrote:
> This prepares us for eliminating the use of direct array access within the VMX
> instruction implementations.
>
> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Applied to ppc-for-4.0, thanks.
> ---
> target/ppc/internal.h | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/target/ppc/internal.h b/target/ppc/internal.h
> index c7c0f77dd6..f26a71ffcf 100644
> --- a/target/ppc/internal.h
> +++ b/target/ppc/internal.h
> @@ -206,16 +206,23 @@ EXTRACT_HELPER_SPLIT_3(DCMX_XV, 5, 16, 0, 1, 2, 5, 1, 6, 6);
>
> #if defined(HOST_WORDS_BIGENDIAN)
> #define VsrB(i) u8[i]
> +#define VsrSB(i) s8[i]
> #define VsrH(i) u16[i]
> +#define VsrSH(i) s16[i]
> #define VsrW(i) u32[i]
> +#define VsrSW(i) s32[i]
> #define VsrD(i) u64[i]
> +#define VsrSD(i) s64[i]
> #else
> #define VsrB(i) u8[15 - (i)]
> +#define VsrSB(i) s8[15 - (i)]
> #define VsrH(i) u16[7 - (i)]
> +#define VsrSH(i) s16[7 - (i)]
> #define VsrW(i) u32[3 - (i)]
> +#define VsrSW(i) s32[3 - (i)]
> #define VsrD(i) u64[1 - (i)]
> +#define VsrSD(i) s64[1 - (i)]
> #endif
> -
> static inline void getVSR(int n, ppc_vsr_t *vsr, CPUPPCState *env)
> {
> vsr->VsrD(0) = env->vsr[n].u64[0];
--
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-02 3:50 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 [this message]
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
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=20190102023857.GD27457@umbus.fritz.box \
--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 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.