summaryrefslogtreecommitdiffstats
path: root/src/include/arch
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2017-04-14 15:00:23 -0500
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2017-04-17 09:19:12 -0400
commitd76f1bc4576fbe04a51c5ba45f52b01e0cea6006 (patch)
tree1759c20743664802b4acc056884bd6f16553da29 /src/include/arch
parent6677ffcbda04c73a7d3ed1e651e3394c8218e503 (diff)
downloadtalos-hostboot-d76f1bc4576fbe04a51c5ba45f52b01e0cea6006.tar.gz
talos-hostboot-d76f1bc4576fbe04a51c5ba45f52b01e0cea6006.zip
More istep debug output
Write current istep out to mbox scratch reg 5 Print istep out to simics console Change-Id: I14d8a9afba12b627a0b1880e0818b5b16f317d7c RTC: 171748 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39292 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Dean Sanner <dsanner@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/include/arch')
-rw-r--r--src/include/arch/ppc.H17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/include/arch/ppc.H b/src/include/arch/ppc.H
index f945ef519..e9e6b6051 100644
--- a/src/include/arch/ppc.H
+++ b/src/include/arch/ppc.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2011,2016 */
+/* Contributors Listed Below - COPYRIGHT 2011,2017 */
/* [+] Google Inc. */
/* [+] International Business Machines Corp. */
/* */
@@ -460,15 +460,30 @@ enum
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_PRINT_ISTEP = 7020, // Print istep to simics console
MAGIC_CONTINUOUS_TRACE = 7055, // extract mixed trace buffer
};
+/**
+ * @brief Collect SBE traces via external debug commands
+ * @param[in] Processor number
+ * @param[in] SBE Return Code
+ */
#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); \
+/**
+ * @brief Display istep numbers on the simics console
+ * @param[in] Major istep number
+ * @param[in] Minor istep number
+ */
+#define MAGIC_INST_PRINT_ISTEP(_major,_minor) \
+ asm volatile("mr 4, %0; mr 5, %1" :: \
+ "r" (_major), "r" (_minor) : "4", "5"); \
+ MAGIC_INSTRUCTION(MAGIC_PRINT_ISTEP); \
#endif
OpenPOWER on IntegriCloud