selftests/powerpc: Add more version checks to alignment_handler test
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 31 Jul 2018 12:08:42 +0000 (22:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 7 Aug 2018 14:32:28 +0000 (00:32 +1000)
commit8e4bdc699bf32c58bfff7b2bfac204a6bf5efb69
tree96d600c4f4061aeaaa3644f5ae0e1036ab65a1be
parentedba42cd14dbb0cc8b48cf786b006ac5da4cd9a7
selftests/powerpc: Add more version checks to alignment_handler test

The alignment_handler is documented to only work on Power8/Power9, but
we can make it run on older CPUs by guarding more of the tests with
feature checks.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
tools/testing/selftests/powerpc/alignment/alignment_handler.c