From c3e22a8bfdb6bf5ead8bd2188ad56a6ae2794c94 Mon Sep 17 00:00:00 2001 From: lkcl Date: Fri, 28 May 2021 16:18:37 +0100 Subject: [PATCH] --- openpower/sv/ldst.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openpower/sv/ldst.mdwn b/openpower/sv/ldst.mdwn index 49341eaa7..f46b0498e 100644 --- a/openpower/sv/ldst.mdwn +++ b/openpower/sv/ldst.mdwn @@ -57,7 +57,7 @@ with the pseudocode below, the immediate can be used to give unit stride or elem elif svctx.ldstmode == unitstride: # unit stride mode srcbase = ireg[RA] - offs = i * op_width + offs = immed + (i * op_width) elif RA.isvec: # quirky Vector indexed mode but with an immediate srcbase = ireg[RA+i] -- 2.30.2