]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/selftests: Check endianness on trap in TM
authorGustavo Romero <gromero@linux.vnet.ibm.com>
Sun, 31 Dec 2017 23:20:46 +0000 (18:20 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 21 Jan 2018 18:48:37 +0000 (05:48 +1100)
commitb8821b990315f93c75ea7408dc283450cbaf1ffc
tree78e3001d940ce055f67fa379f9bac9f05a212e86
parent91f73f14dcd91e0922a8c10caaad1712ab17c4a9
powerpc/selftests: Check endianness on trap in TM

Add a selftest to check if endianness is flipped inadvertently to BE
(MSR.LE set to zero) on BE and LE machines when a trap is caught in
transactional mode and load_fp and load_vec are zero, i.e. when MSR.FP
and MSR.VEC are zeroed (disabled).

Signed-off-by: Gustavo Romero <gromero@linux.vnet.ibm.com>
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-trap.c [new file with mode: 0644]