From 6140b25e7c7746a654d7d75750e67692196a7258 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 30 Aug 2022 14:20:08 +0100 Subject: [PATCH] Revert "remove fuck-up by programmerjake not reading the specification for svstep" This reverts commit 1a06aea1fe266a75af713ac9815306696a1ffa4e. --- src/openpower/sv/trans/svp64.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/openpower/sv/trans/svp64.py b/src/openpower/sv/trans/svp64.py index b55e0654..0c3e3f87 100644 --- a/src/openpower/sv/trans/svp64.py +++ b/src/openpower/sv/trans/svp64.py @@ -1295,6 +1295,12 @@ class SVP64Asm: if not v30b_op.endswith('.'): v30b_op_rc += rc + # svstep is weird + # FIXME(lkcl): should sv.svstep be like svstep? + if v30b_op_rc in ("svstep", "svstep."): + # compensate for `SVi -= 1` in svstep() + v30b_newfields[1] = str(int(v30b_newfields[1]) + 1) + custom_insn_hook = CUSTOM_INSNS.get(v30b_op_rc) if custom_insn_hook is not None: fields = tuple(map(to_number, v30b_newfields)) -- 2.30.2