Re: [3/8] selftests/powerpc: Test FPU and VMX regs in signal ucontext
flat view
From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2015-11-19 11:36:46
On Wed, 2015-18-11 at 03:26:50 UTC, Cyril Bur wrote:
Load up the non volatile FPU and VMX regs and ensure that they are the expected value in a signal handler
This is giving me:
$ /usr/bin/powerpc-linux-gnu-gcc -Wall -O2 -flto -Wall -Werror -DGIT_VERSION='"v4.0-rc1-55000-g906d582"' -I/home/buildbot/buildbot/slave/selftests-ppc64-gcc-ubuntu-be/build/tools/testing/selftests/powerpc -O2 -g -pthread fpu_signal.c ../harness.c fpu_asm.S -o fpu_signal
fpu_signal.c: In function ���signal_fpu_sig���:
fpu_signal.c:33:19: error: initialization from incompatible pointer type [-Werror]
mcontext_t *mc = &uc->uc_mcontext;
^
fpu_signal.c:37:9: error: ���mcontext_t��� has no member named ���fp_regs���
if (mc->fp_regs[i] != darray[i - 14]) {
^
As well as:
$ /usr/bin/powerpc-linux-gnu-gcc -Wall -O2 -flto -Wall -Werror -DGIT_VERSION='"v4.0-rc1-55000-g906d582"' -I/home/buildbot/buildbot/slave/selftests-ppc64-gcc-ubuntu-be/build/tools/testing/selftests/powerpc -O2 -g -pthread vmx_syscall.c ../harness.c vmx_asm.S -o vmx_syscall
vmx_asm.S: Assembler messages:
vmx_asm.S:61: Error: unsupported relocation against v20
vmx_asm.S:63: Error: unsupported relocation against v21
Times infinity.
And same for vmx_preempt.
And:
$ /usr/bin/powerpc-linux-gnu-gcc -Wall -O2 -flto -Wall -Werror -DGIT_VERSION='"v4.0-rc1-55000-g906d582"' -I/home/buildbot/buildbot/slave/selftests-ppc64-gcc-ubuntu-be/build/tools/testing/selftests/powerpc -O2 -g -pthread vmx_signal.c ../harness.c vmx_asm.S -o vmx_signal
make[1]: *** [vmx_preempt] Error 1
vmx_signal.c: In function ���signal_vmx_sig���:
vmx_signal.c:37:19: error: initialization from incompatible pointer type [-Werror]
mcontext_t *mc = &uc->uc_mcontext;
^
vmx_signal.c:41:16: error: ���mcontext_t��� has no member named ���v_regs���
if (memcmp(mc->v_regs->vrregs[i], &varray[i - 20], 16)) {
^
cheers