From: Luke Kenneth Casson Leighton Date: Sat, 30 Sep 2023 13:30:02 +0000 (+0100) Subject: skip blank lines in pagereader.py pprint_ops() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=14100a347f33d570e0af37189942f4fc3bed08ab;p=openpower-isa.git skip blank lines in pagereader.py pprint_ops() --- 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()