summaryrefslogtreecommitdiffstats
path: root/src/include/arch
diff options
context:
space:
mode:
authorMatt Derksen <mderkse1@us.ibm.com>2017-10-03 11:02:13 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-10-19 22:17:55 -0400
commitad1909dedffab93922fe80f06bf89d5b76d9e9a0 (patch)
treea244fa143b4463dc2f51b742d606a64cefd1548a /src/include/arch
parent20250c0b1f6de53b2bfddd1c714fb8c97e655ce2 (diff)
downloadtalos-hostboot-ad1909dedffab93922fe80f06bf89d5b76d9e9a0.tar.gz
talos-hostboot-ad1909dedffab93922fe80f06bf89d5b76d9e9a0.zip
Log traces to error logs in HBRT
This enables buffer tracing at hostboot runtime. Will add these traces to runtime errors for better debug Change-Id: I795bb7deafdd02adea4588ebf8dfb11cbce116a0 RTC:172770 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48084 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: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/arch')
-rw-r--r--src/include/arch/ppc.H10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/arch/ppc.H b/src/include/arch/ppc.H
index e9e6b6051..2e338ce36 100644
--- a/src/include/arch/ppc.H
+++ b/src/include/arch/ppc.H
@@ -461,6 +461,7 @@ enum
// env var HB_BREAK_ON_ERROR
MAGIC_GET_SBE_TRACES = 7019, // Collect SBE traces
MAGIC_PRINT_ISTEP = 7020, // Print istep to simics console
+ MAGIC_PRINT_TWO_REGS = 7021, // Print 2 numbers passed in
MAGIC_CONTINUOUS_TRACE = 7055, // extract mixed trace buffer
};
@@ -485,5 +486,14 @@ enum
"r" (_major), "r" (_minor) : "4", "5"); \
MAGIC_INSTRUCTION(MAGIC_PRINT_ISTEP); \
+/**
+ * @brief Display 2 numbers on the simics console
+ * @param[in] First number (uint64_t)
+ * @param[in] Second number (uint64_t)
+ */
+#define MAGIC_INST_PRINT_2_REGS(_first, _second) \
+ asm volatile("mr 4, %0; mr 5, %1" :: \
+ "r" (_first), "r" (_second) : "4", "5"); \
+ MAGIC_INSTRUCTION(MAGIC_PRINT_TWO_REGS); \
#endif
OpenPOWER on IntegriCloud