From: Luke Kenneth Casson Leighton Date: Wed, 10 Jan 2024 16:27:35 +0000 (+0000) Subject: add heading option to GPR dump X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4402c4fed9df1b4efe1798350e6c96217842510;p=openpower-isa.git add heading option to GPR dump --- diff --git a/src/openpower/decoder/isa/caller.py b/src/openpower/decoder/isa/caller.py index d4be4671..57c8fea3 100644 --- a/src/openpower/decoder/isa/caller.py +++ b/src/openpower/decoder/isa/caller.py @@ -248,7 +248,7 @@ class GPR(dict): log("GPR getitem", attr, rnum) return self.regfile[rnum] - def dump(self, printout=True): + def dump(self, printout=True, heading="log"): res = [] for i in range(len(self)): res.append(self[i].value) @@ -258,7 +258,7 @@ class GPR(dict): for j in range(8): s.append("%08x" % res[i+j]) s = ' '.join(s) - log("reg", "%2d" % i, s, kind=LogType.InstrInOuts) + log(heading, "%2d" % i, s, kind=LogType.InstrInOuts) return res