[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [PATCH 7/9] target/arm: Expand vector registers for SVE
From: |
Richard Henderson |
Subject: |
Re: [Qemu-arm] [PATCH 7/9] target/arm: Expand vector registers for SVE |
Date: |
Fri, 12 Jan 2018 10:50:26 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 |
On 01/12/2018 10:38 AM, Peter Maydell wrote:
>> - long ofs = offsetof(CPUARMState, vfp.regs[reg >> 1]);
>> + long r = offsetof(CPUARMState, vfp.zregs[reg >> 2].d[(reg >> 1) &
>> 1]);
>> if (reg & 1) {
>> - ofs += offsetof(CPU_DoubleU, l.upper);
>> + return r + offsetof(CPU_DoubleU, l.upper);
>> } else {
>> - ofs += offsetof(CPU_DoubleU, l.lower);
>> + return r + offsetof(CPU_DoubleU, l.lower);
>> }
>> - return ofs;
> ...I see we're tweaking the logic on this code again. I was
> expecting that the changes in the previous patch would have turned
> out to be in support of just having to do a one-line change in this
> one, but apparently not ?
>
I don't know why I changed my mind about where the return would go. It should
have just been the one line change...
r~