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=015118f52d4a43fe927b26ac3ca66542cb8d5ad8;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 589ad634..8e828d07 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