From 0e4f3ea29e4bcaab9db52b4dbe0cf74d146ca9db Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 12 Jan 2024 16:54:16 +0000 Subject: [PATCH] enforce scalar offset in ISACaller when is_vec is false --- src/openpower/decoder/isa/caller.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/openpower/decoder/isa/caller.py b/src/openpower/decoder/isa/caller.py index 8816cbd5..05410975 100644 --- a/src/openpower/decoder/isa/caller.py +++ b/src/openpower/decoder/isa/caller.py @@ -171,6 +171,9 @@ class GPR(dict): def __call__(self, ridx, is_vec=False, offs=0, elwidth=64): if isinstance(ridx, SelectableInt): ridx = ridx.value + # scalar is enforced here + if not is_vec: + offs = 0 if elwidth == 64: return self[ridx+offs] # rrrright. start by breaking down into row/col, based on elwidth -- 2.30.2