selftests/powerpc: Test TM and VMX register state
authorMichael Neuling <mikey@neuling.org>
Mon, 8 May 2017 07:16:27 +0000 (17:16 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 16 May 2017 03:03:05 +0000 (13:03 +1000)
commitcde97f8492ac4425c4d0647a308e15e78cb4c218
tree44851d0071a6ccda4870fd9c0a21719480187758
parentf48e91e87e67b56bef63393d1a02c6e22c1d7078
selftests/powerpc: Test TM and VMX register state

Test that the VMX checkpointed register state is maintained when a VMX
unavailable exception is taken during a transaction.

Thanks to Breno Leitao <brenohl@br.ibm.com> and
Gustavo Bueno Romero <gromero@br.ibm.com> for the original test this
is based heavily on.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Reviewed-by: Cyril Bur <cyrilbur@gmail.com>
[mpe: Add to .gitignore, always build it 64-bit to fix build errors]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/tm/.gitignore
tools/testing/selftests/powerpc/tm/Makefile
tools/testing/selftests/powerpc/tm/tm-vmx-unavail.c [new file with mode: 0644]