From 756c934b112b87908326b4e48dfc353e201f600e Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sun, 14 May 2023 20:25:34 +0000 Subject: [PATCH] power_insn: filter out empty pcode lines --- src/openpower/decoder/power_insn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2