aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc
diff options
context:
space:
mode:
authorBreno Leitao <leitao@debian.org>2018-11-26 18:11:59 -0200
committerMichael Ellerman <mpe@ellerman.id.au>2018-12-21 14:46:50 +1100
commit11be39584a2e283d2b2bc45f3202519aef703b7c (patch)
treef8549b6ea1ece418b3083693cee46cfd73ced759 /tools/testing/selftests/powerpc
parentpowerpc/tm: Save MSR to PACA before RFID (diff)
downloadlinux-dev-11be39584a2e283d2b2bc45f3202519aef703b7c.tar.xz
linux-dev-11be39584a2e283d2b2bc45f3202519aef703b7c.zip
powerpc/tm: Print scratch value
Usually a TM Bad Thing exception is raised due to three different problems. a) touching SPRs in an active transaction; b) using TM instruction with the facility disabled and c) setting a wrong MSR/SRR1 at RFID. The two initial cases are easy to identify by looking at the instructions. The latter case is harder, because the MSR is masked after RFID, so, it is very useful to look at the previous MSR (SRR1) before RFID as also the current and masked MSR. Since MSR is saved at paca just before RFID, this patch prints it if a TM Bad thing happen, helping to understand what is the invalid TM transition that is causing the exception. Signed-off-by: Breno Leitao <leitao@debian.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/testing/selftests/powerpc')
0 files changed, 0 insertions, 0 deletions