From 015118f52d4a43fe927b26ac3ca66542cb8d5ad8 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 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 -- 2.30.2