qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] target/arm/arch_dump: Add SVE notes


From: Richard Henderson
Subject: Re: [PATCH v2] target/arm/arch_dump: Add SVE notes
Date: Thu, 10 Oct 2019 13:33:02 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

On 10/10/19 2:16 AM, Andrew Jones wrote:
>> It might be best to avoid the ifdef altogether:
>>
>>     for (i = 0; i < 32; ++i) {
>>         uint64_t *d = (uint64_t *)&buf[sve_zreg_offset(vq, i)];
>>         for (j = 0; j < vq * 2; ++j) {
>>             d[j] = cpu_to_le64(env->vfp.zregs[i].d[j]);
>>         }
>>     }
>>
>> The compiler may well transform the inner loop to memcpy for little-endian
>> host, but even if it doesn't core dumping is hardly performance sensitive.
> 
> True. I even had something like the above at first, but then
> overcomplicated it with the #ifdef-ing.

Ah, I wonder if you changed things around with the ifdefs due to the pregs.
There's no trivial solution for those.  It'd be nice to share the bswapping
subroutine that you add in the SVE KVM patch set, and size the temporary array
using ARM_MAX_VQ.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]