From: Luke Kenneth Casson Leighton Date: Fri, 12 Jan 2024 16:54:16 +0000 (+0000) Subject: enforce scalar offset in ISACaller when is_vec is false X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0e4f3ea29e4bcaab9db52b4dbe0cf74d146ca9db;p=openpower-isa.git enforce scalar offset in ISACaller when is_vec is false --- 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