From: Luke Kenneth Casson Leighton Date: Sun, 1 Oct 2023 09:40:43 +0000 (+0100) Subject: Revert "add support for pseudocode being a [[!inline]] directive" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f396bbab8b526936675a9b698d3426b1abf95e4;p=openpower-isa.git Revert "add support for pseudocode being a [[!inline]] directive" This reverts commit 43152e91f4530ddaef5cef2614b41e022c57fced. --- 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('