summaryrefslogtreecommitdiffstats
path: root/src/include/usr/dump/dumpif.H
diff options
context:
space:
mode:
authorDean Sanner <dsanner@us.ibm.com>2019-12-17 15:02:15 -0600
committerDaniel M Crowell <dcrowell@us.ibm.com>2020-01-20 10:25:43 -0600
commit334617066926a331f8e6790d481c711d434f8684 (patch)
tree313d8063ccd86ac7b24ffba5a0c70e1af4d682ce /src/include/usr/dump/dumpif.H
parent829e56fb1456d699806f8e69ebddf7835c1ae633 (diff)
downloadtalos-hostboot-334617066926a331f8e6790d481c711d434f8684.tar.gz
talos-hostboot-334617066926a331f8e6790d481c711d434f8684.zip
Replace spr/gpr numbers with names for arch dump
The SBE currently returns the SPR/GPR type/number. This commit has hostboot replace that with the SPR/GPR name when copying the data into HDAT for easier parsing. Change-Id: I2aa26c418882f92d800fd86994935062936f1a84 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/88808 Tested-by: Jenkins Server <pfd-jenkins+hostboot@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: MURULIDHAR NATARAJU <murulidhar@in.ibm.com> Reviewed-by: Christian R Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/dump/dumpif.H')
-rw-r--r--src/include/usr/dump/dumpif.H15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/include/usr/dump/dumpif.H b/src/include/usr/dump/dumpif.H
index ea48a71fd..0b616be74 100644
--- a/src/include/usr/dump/dumpif.H
+++ b/src/include/usr/dump/dumpif.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2012,2019 */
+/* Contributors Listed Below - COPYRIGHT 2012,2020 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -146,10 +146,19 @@ namespace DUMP
#define DUMP_ARCH_REG_TYPE_SPR 0x02
// Architected register data content entries
+ union reg_t
+ {
+ char name[sizeof(uint32_t)*2];
+ struct
+ {
+ uint32_t type;
+ uint32_t num;
+ }PACKED;
+ }PACKED;
+
struct hostArchRegDataEntry
{
- uint32_t regType;
- uint32_t regNum;
+ reg_t reg;
uint64_t regVal;
} PACKED;
OpenPOWER on IntegriCloud