selftests/powerpc: Add test to check if TM SPRs are corrupted
authorRashmica Gupta <rashmicy@gmail.com>
Wed, 23 Dec 2015 05:49:54 +0000 (16:49 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 11 May 2016 11:54:14 +0000 (21:54 +1000)
commit16aab321872400a4ce35b90ba40484fcb5d636ba
treef60936e624a55ec9249455a9bed9136f696f9c83
parentdbccb4940c9c9c8c93fcf733445e96dd2d6890d6
selftests/powerpc: Add test to check if TM SPRs are corrupted

Testing that the TM SPRs are behaving the way they should. Uses more
threads than cpus to see if the following register values persist with
context switching:
- the FS (failure summary) flag in TEXASR
- TFIAR and TFHAR

Signed-off-by: Rashmica Gupta <rashmicy@gmail.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-tmspr.c [new file with mode: 0644]