From 1677d0790a76de868d5a2c7d6154b02154dd0e78 Mon Sep 17 00:00:00 2001 From: lkcl Date: Sun, 21 Aug 2022 15:29:58 +0100 Subject: [PATCH] --- openpower/sv/ldst.mdwn | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.30.2