From bdcedc8eb2459218ef5f0447d5b1021faff7e1fe Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 10 Jan 2024 16:27:35 +0000 Subject: [PATCH] add heading option to GPR dump --- src/openpower/decoder/isa/caller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openpower/decoder/isa/caller.py b/src/openpower/decoder/isa/caller.py index 8fcd567d..35376505 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 -- 2.30.2