From 7bcec293f2761bed16e9f1fddf4469c7398cb32b Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 5 Jul 2022 18:21:55 +0100 Subject: [PATCH] add "*%" and "*" vector-numbering convention https://bugs.libre-soc.org/show_bug.cgi?id=884#c0 --- src/openpower/sv/trans/svp64.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/openpower/sv/trans/svp64.py b/src/openpower/sv/trans/svp64.py index 9efcf1c9..7a53ea05 100644 --- a/src/openpower/sv/trans/svp64.py +++ b/src/openpower/sv/trans/svp64.py @@ -470,6 +470,11 @@ def decode_reg(field): # decode the field number. "5.v" or "3.s" or "9" # and now also "*0", and "*%0". note: *NOT* to add "*%rNNN" etc. # https://bugs.libre-soc.org/show_bug.cgi?id=884#c0 + if field.startswith("*%"): + return "vector", int(field[2:]) # actual register number + if field.startswith("*"): + return "vector", int(field[1:]) # actual register number + # try old convention (to be retired) field = field.split(".") regmode = 'scalar' # default if len(field) == 2: -- 2.30.2