From: lkcl Date: Sun, 21 Aug 2022 14:29:58 +0000 (+0100) Subject: (no commit message) X-Git-Tag: opf_rfc_ls005_v1~808 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1677d0790a76de868d5a2c7d6154b02154dd0e78;p=libreriscv.git --- diff --git a/openpower/sv/ldst.mdwn b/openpower/sv/ldst.mdwn index b799bddc9..d4baf3e0b 100644 --- a/openpower/sv/ldst.mdwn +++ b/openpower/sv/ldst.mdwn @@ -327,7 +327,10 @@ where `indexed_remap` may be found in [[sv/remap]]: # sv.ld *RT,RA,*RB with Index REMAP applied to RB for i in 0..VL-1: - rb_idx = indexed_remap(i) # normally rb_idx = i + if remap.indexed: + rb_idx = indexed_remap(i) # remap + else: + rb_idx = i # use the index as-is EA = GPR(RA) + GPR(RB+rb_idx) GPR(RT+i) = MEM(EA, 8)