diff options
author | Dan Crowell <dcrowell@us.ibm.com> | 2016-09-23 19:54:50 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-09-28 16:31:58 -0400 |
commit | 8142496f0f8e82eb3e069ce645c92438fa99efe4 (patch) | |
tree | fdb46e9c4ec8fe530ddc7f23df934ac70db917df /src/include/arch/ppc.H | |
parent | 45d5477ac84685301735e5d920e0f5fb71e5b668 (diff) | |
download | talos-hostboot-8142496f0f8e82eb3e069ce645c92438fa99efe4.tar.gz talos-hostboot-8142496f0f8e82eb3e069ce645c92438fa99efe4.zip |
Log SBE Traces on error (simics only)
A quick change to add a new magic instruction that collects the
SBE traces any time we hit an error from the SBE. If multiple
errors occur they will all be appended to the same file.
Data will be saved to $sb/simics/sbetrace.hb.txt.
Change-Id: I27575c1565c0089e847e19c3e51cb2926833e387
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30206
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/arch/ppc.H')
-rw-r--r-- | src/include/arch/ppc.H | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/arch/ppc.H b/src/include/arch/ppc.H index 007f4f2b7..f945ef519 100644 --- a/src/include/arch/ppc.H +++ b/src/include/arch/ppc.H @@ -459,9 +459,16 @@ enum MAGIC_WAKE_FUSED_THREADS = 7017, // Wake up fused core threads MAGIC_BREAK_ON_ERROR = 7018, // Breakpoint in error cases if // env var HB_BREAK_ON_ERROR + MAGIC_GET_SBE_TRACES = 7019, // Collect SBE traces MAGIC_CONTINUOUS_TRACE = 7055, // extract mixed trace buffer }; +#define MAGIC_INST_GET_SBE_TRACES(_procnum,_rc) \ + asm volatile("mr 4, %0; mr 5, %1" :: \ + "r" (_procnum), "r" (_rc) : "4", "5"); \ + MAGIC_INSTRUCTION(MAGIC_GET_SBE_TRACES); \ + + #endif |