From 1e5f14da445d569eb214c4d4194dfb0a8bcaf171 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 30 Sep 2023 14:30:02 +0100 Subject: [PATCH] skip blank lines in pagereader.py pprint_ops() --- src/openpower/decoder/pseudo/pagereader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openpower/decoder/pseudo/pagereader.py b/src/openpower/decoder/pseudo/pagereader.py index 5f30b954..e6875769 100644 --- a/src/openpower/decoder/pseudo/pagereader.py +++ b/src/openpower/decoder/pseudo/pagereader.py @@ -426,7 +426,8 @@ class ISA: for k, v in self.instr.items(): print("# %s %s" % (v.opcode, v.desc)) print("Form: %s Regs: %s" % (v.form, v.regs)) - print('\n'.join(map(lambda x: " %s" % x, v.pcode))) + pcode = filter(lambda x : len(x.strip()), v.pcode) # skip blank + print('\n'.join(map(lambda x: " %s" % x, pcode))) print("Specials") print('\n'.join(map(lambda x: " %s" % x, v.sregs))) print() -- 2.30.2