[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Using new TCG Vector infrastructure in PowerPC
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] Using new TCG Vector infrastructure in PowerPC |
Date: |
Fri, 16 Mar 2018 15:01:45 +0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 03/16/2018 12:08 PM, Nikunj A Dadhania wrote:
> @@ -1078,8 +1079,8 @@ struct CPUPPCState {
> /* Altivec registers */
> ppc_avr_t avr[32];
> uint32_t vscr;
> - /* VSX registers */
> - uint64_t vsr[32];
> + /* 32 (128bit)- VSX registers */
> + ppc_avr_t vsr[32];
Another thing that needs to happen is to make ppc_avr_t to be 16-byte aligned
(this is documented in tcg-gvec-op.h, I believe).
This is easily accomplished by adding QEMU_ALIGNED(16) to the first union
member. And then you'd like to put vsr adjacent to avr so that you're not
adding another alignment hole.
r~