[PATCH] power: Fix VSCR position on ucontext
Rogerio Alves
rcardoso@linux.ibm.com
Fri Dec 7 18:28:00 GMT 2018
Hi everyone,
Here is patch v3 with the suggestions given. Sorry for take me that long
to reply. Thanks for the review
Regards
Em 16-11-2018 11:18, Gabriel F. T. Gomes escreveu:
> On Wed, 14 Nov 2018, Florian Weimer wrote:
>
>> * Rogerio Alves:
>>
>>> +#ifdef _ARCH_PWR8
>>
>> Is it possible to perform run-time detection instead?
Now I am using auxval to get if the arch is supported for the test
>
> That's a fair point. Even though we have bots that test powerpc64
> (big-endian) builds configured with `--with-cpu=power8', that's not the
> default. Runtime detection could make this test work on default builds
> (provided they are run on a POWER8 machine).
>
>> + /* Set SAT bit in VSCR register. */
>> + asm volatile ("vspltisb %0,0\n"
>> + "vspltisb %1,-1\n"
>> + "vpkudus %0,%0,%1\n"
>
> Also, if you replace `vpkudus' (only available since Power ISA 2.07) with
> `vpkuwus' (available since PowerISA 2.03) the test remains valid and it
> could be tested on older machines.
>
Done
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-powerpc-Fix-VSCR-position-in-ucontext.patch
Type: text/x-patch
Size: 5270 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20181207/d36504fc/attachment.bin>
More information about the Libc-alpha
mailing list