From: Luke Kenneth Casson Leighton Date: Tue, 5 Jul 2022 17:21:55 +0000 (+0100) Subject: add "*%" and "*" vector-numbering convention X-Git-Tag: sv_maxu_works-initial~298 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7bcec293f2761bed16e9f1fddf4469c7398cb32b;p=openpower-isa.git add "*%" and "*" vector-numbering convention https://bugs.libre-soc.org/show_bug.cgi?id=884#c0 --- 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: