From: Richard Henderson <richard.henderson@linaro.org>
To: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>,
qemu-devel@nongnu.org, qemu-ppc@nongnu.org,
david@gibson.dropbear.id.au
Subject: Re: [Qemu-devel] [PATCH v3 9/9] target/ppc: replace AVR* macros with Vsr* macros
Date: Thu, 20 Dec 2018 10:03:07 -0800 [thread overview]
Message-ID: <068c98c7-7279-46cf-771b-a6addf3f4145@linaro.org> (raw)
In-Reply-To: <20181220163123.9233-10-mark.cave-ayland@ilande.co.uk>
On 12/20/18 8:31 AM, Mark Cave-Ayland wrote:
> Now that the VMX and VSR register sets have been combined, the same macros can
> be used to access both AVR and VSR field members.
>
> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
> ---
> target/ppc/int_helper.c | 38 +++++++++++++-------------------------
> target/ppc/internal.h | 4 ++++
> 2 files changed, 17 insertions(+), 25 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> #if defined(HOST_WORDS_BIGENDIAN)
> +#define HI_IDX 0
> +#define LO_IDX 1
> #define VsrB(i) u8[i]
> #define VsrH(i) u16[i]
> #define VsrW(i) u32[i]
> #define VsrD(i) u64[i]
Since this is in internal.h, we can use it elsewhere than just helpers. E.g.
if you sort some patches earlier, you could use it in get_avr64 instead of ifdefs.
r~
prev parent reply other threads:[~2018-12-20 18:03 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-20 16:31 [Qemu-devel] [PATCH v3 0/9] target/ppc: prepare for conversion to TCG vector operations Mark Cave-Ayland
2018-12-20 16:31 ` [Qemu-devel] [PATCH v3 1/9] target/ppc: fix typo in SIMM5 extraction helper Mark Cave-Ayland
2018-12-20 17:40 ` Richard Henderson
2018-12-20 16:31 ` [Qemu-devel] [PATCH v3 2/9] target/ppc: switch EXTRACT_HELPER macros over to use sextract32/extract32 Mark Cave-Ayland
2018-12-20 17:40 ` Richard Henderson
2018-12-20 16:31 ` [Qemu-devel] [PATCH v3 3/9] target/ppc: introduce get_fpr() and set_fpr() helpers for FP register access Mark Cave-Ayland
2018-12-20 16:31 ` [Qemu-devel] [PATCH v3 4/9] target/ppc: introduce get_avr64() and set_avr64() helpers for VMX " Mark Cave-Ayland
2018-12-20 16:31 ` [Qemu-devel] [PATCH v3 5/9] target/ppc: introduce get_cpu_vsr{l, h}() and set_cpu_vsr{l, h}() helpers for VSR " Mark Cave-Ayland
2018-12-20 16:31 ` [Qemu-devel] [PATCH v3 6/9] target/ppc: switch FPR, VMX and VSX helpers to access data directly from cpu_env Mark Cave-Ayland
2018-12-20 16:31 ` [Qemu-devel] [PATCH v3 7/9] target/ppc: merge ppc_vsr_t and ppc_avr_t union types Mark Cave-Ayland
2018-12-20 16:31 ` [Qemu-devel] [PATCH v3 8/9] target/ppc: move FP and VMX registers into aligned vsr register array Mark Cave-Ayland
2018-12-20 17:57 ` Richard Henderson
2018-12-22 18:09 ` Mark Cave-Ayland
2018-12-23 2:50 ` Richard Henderson
2018-12-20 16:31 ` [Qemu-devel] [PATCH v3 9/9] target/ppc: replace AVR* macros with Vsr* macros Mark Cave-Ayland
2018-12-20 18:03 ` Richard Henderson [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=068c98c7-7279-46cf-771b-a6addf3f4145@linaro.org \
--to=richard.henderson@linaro.org \
--cc=david@gibson.dropbear.id.au \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@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).