summaryrefslogtreecommitdiff
path: root/scripts/gen-s-parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gen-s-parser.py')
-rwxr-xr-xscripts/gen-s-parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gen-s-parser.py b/scripts/gen-s-parser.py
index 6ccf81606..2e3c0a8f1 100755
--- a/scripts/gen-s-parser.py
+++ b/scripts/gen-s-parser.py
@@ -739,8 +739,8 @@ def instruction_parser(new_parser=False):
def print_leaf(expr, inst):
if new_parser:
- expr = expr.replace("()", "(ctx, pos)")
- expr = expr.replace("(s", "(ctx, pos")
+ expr = expr.replace("()", "(ctx, pos, annotations)")
+ expr = expr.replace("(s", "(ctx, pos, annotations")
printer.print_line("if (op == \"{inst}\"sv) {{".format(inst=inst))
with printer.indent():
printer.print_line("CHECK_ERR({expr});".format(expr=expr))