From d0f0f3631545e5c5362a2087f83605e084de0572 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Thu, 28 Jul 2022 01:57:27 -0700 Subject: [PATCH] fix line number tracking --- src/openpower/decoder/pseudo/functionreader.py | 11 ++++++++++- src/openpower/decoder/pseudo/lexer.py | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) 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('