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
_______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev