From: Jacob Lifshay Date: Thu, 28 Jul 2022 08:57:27 +0000 (-0700) Subject: fix line number tracking X-Git-Tag: sv_maxu_works-initial~206 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d0f0f3631545e5c5362a2087f83605e084de0572;p=openpower-isa.git fix line number tracking --- diff --git a/src/openpower/decoder/pseudo/functionreader.py b/src/openpower/decoder/pseudo/functionreader.py index c393e168..b87cf53e 100644 --- a/src/openpower/decoder/pseudo/functionreader.py +++ b/src/openpower/decoder/pseudo/functionreader.py @@ -46,6 +46,7 @@ class ISAFunctions: # all sections are mandatory so no need for a full LALR parser. l = lines.pop(0).rstrip() # get first line + prefix_lines = 0 while lines: print(l) # look for HTML comment, if starting, skip line. @@ -56,11 +57,13 @@ class ISAFunctions: if l.startswith('