From b5e37eb64dfb218aadcff7c8ed3a86d11164b0f0 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 1 Oct 2023 10:40:43 +0100 Subject: [PATCH] Revert "add support for pseudocode being a [[!inline]] directive" This reverts commit 43152e91f4530ddaef5cef2614b41e022c57fced. --- src/openpower/decoder/pseudo/pagereader.py | 43 ++-------------------- src/openpower/decoder/pseudo/pywriter.py | 3 +- 2 files changed, 5 insertions(+), 41 deletions(-) diff --git a/src/openpower/decoder/pseudo/pagereader.py b/src/openpower/decoder/pseudo/pagereader.py index 5cab669c..9bb234de 100644 --- a/src/openpower/decoder/pseudo/pagereader.py +++ b/src/openpower/decoder/pseudo/pagereader.py @@ -52,7 +52,7 @@ import os import re opfields = ("desc", "form", "opcode", "regs", "pcode", "sregs", "page", - "extra_uninit_regs", "pcode_fname") + "extra_uninit_regs") Ops = namedtuple("Ops", opfields) @@ -223,7 +223,6 @@ class ISA: l = lines.pop(0).rstrip() # get first line prefix_lines = 0 while lines: - pcode_fname = fname if self.verbose: print(l) # look for HTML comment, if starting, skip line. @@ -312,7 +311,8 @@ class ISA: # fix parser line numbers by prepending the right number of # blank lines to the parser input - li = [""] * (prefix_lines + 1) + li = [""] * prefix_lines + li += [l[4:]] # first line detected with 4-space while True: l = lines.pop(0).rstrip() prefix_lines += 1 @@ -326,50 +326,13 @@ class ISA: extra_uninit_regs.add(i) li.append("") continue - if l.startswith("[[!inline "): - li.append(l) - continue if l.strip().startswith('