From: Dmitry Selyutin Date: Sun, 14 May 2023 20:25:34 +0000 (+0000) Subject: power_insn: filter out empty pcode lines X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=756c934b112b87908326b4e48dfc353e201f600e;p=openpower-isa.git power_insn: filter out empty pcode lines --- diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index 7d779ca8..f7e3229b 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -3480,7 +3480,7 @@ class MarkdownDatabase: (dynamic, *static) = desc.regs operands.extend(dynamic) operands.extend(static) - pcode = PCode(iterable=desc.pcode) + pcode = PCode(iterable=filter(str.strip, desc.pcode)) operands = Operands(insn=name, operands=operands) db[name] = MarkdownRecord(pcode=pcode, operands=operands)