From: Luke Kenneth Casson Leighton Date: Tue, 30 Aug 2022 13:20:08 +0000 (+0100) Subject: Revert "remove fuck-up by programmerjake not reading the specification for svstep" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6140b25e7c7746a654d7d75750e67692196a7258;p=openpower-isa.git Revert "remove fuck-up by programmerjake not reading the specification for svstep" This reverts commit 1a06aea1fe266a75af713ac9815306696a1ffa4e. --- 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))