(no commit message)
authorlkcl <lkcl@web>
Sun, 21 Aug 2022 14:29:58 +0000 (15:29 +0100)
committerIkiWiki <ikiwiki.info>
Sun, 21 Aug 2022 14:29:58 +0000 (15:29 +0100)
openpower/sv/ldst.mdwn

index b799bddc9689942d639c45f4d389a99228864973..d4baf3e0b07b76a8f4b3283fd15aa3230994ea22 100644 (file)
@@ -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)