From 14bf7e4df1b211a62a29c5b9479429b51dcef8b7 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Mon, 27 Sep 2021 19:16:22 +0000 Subject: [PATCH] decoder/power_pseudo: pass helper argument --- src/openpower/decoder/power_pseudo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/openpower/decoder/power_pseudo.py b/src/openpower/decoder/power_pseudo.py index a18d6a5f..05d5938a 100644 --- a/src/openpower/decoder/power_pseudo.py +++ b/src/openpower/decoder/power_pseudo.py @@ -258,19 +258,19 @@ def get_reg_hex(reg): return hex(reg.value) -def convert_to_pure_python(pcode): +def convert_to_pure_python(pcode, helper=False): - gsc = GardenSnakeCompiler(form=None, incl_carry=False) + gsc = GardenSnakeCompiler(form=None, incl_carry=False, helper=helper) tree = gsc.compile(pcode, mode="exec", filename="string") tree = ast.fix_missing_locations(tree) return astor.to_source(tree) -def convert_to_python(pcode, form, incl_carry): +def convert_to_python(pcode, form, incl_carry, helper=False): print("form", form) - gsc = GardenSnakeCompiler(form=form, incl_carry=incl_carry) + gsc = GardenSnakeCompiler(form=form, incl_carry=incl_carry, helper=helper) tree = gsc.compile(pcode, mode="exec", filename="string") tree = ast.fix_missing_locations(tree) -- 2.30.2