From eb3cdd7a3ef76c0975ca9a958131b9776702c44e Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 17 Jun 2022 13:54:52 +0100 Subject: [PATCH] add KAIVB SPR 850 https://bugs.libre-soc.org/show_bug.cgi?id=859 --- openpower/isatables/sprs.csv | 1 + src/openpower/decoder/power_enums.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/openpower/isatables/sprs.csv b/openpower/isatables/sprs.csv index 5007ed65..cc50b6e2 100644 --- a/openpower/isatables/sprs.csv +++ b/openpower/isatables/sprs.csv @@ -119,6 +119,7 @@ Idx,SPR,priv_mtspr,priv_mfspr,len 816,ASDR,hypv,hypv,64 823,PSSCR,yes,yes,64 848,IC,hypv,yes,64 +850,KAIVB,no,no,64 849,VTB,hypv,yes,64 855,PSSCR_hypv,hypv,hypv,64 896,PPR,no,no,64 diff --git a/src/openpower/decoder/power_enums.py b/src/openpower/decoder/power_enums.py index e7c83002..d5a97ccc 100644 --- a/src/openpower/decoder/power_enums.py +++ b/src/openpower/decoder/power_enums.py @@ -556,6 +556,7 @@ class CROutSel(Enum): # SPRs - Special-Purpose Registers. See V3.0B Figure 18 p971 and # http://libre-riscv.org/openpower/isatables/sprs.csv # http://bugs.libre-riscv.org/show_bug.cgi?id=261 +# http://bugs.libre-riscv.org/show_bug.cgi?id=859 - KAIVB def get_spr_enum(full_file): """get_spr_enum - creates an Enum of SPRs, dynamically @@ -565,7 +566,7 @@ def get_spr_enum(full_file): short_list = {'PIDR', 'DAR', 'PRTBL', 'DSISR', 'SVSRR0', 'SVSTATE', 'SVSTATE0', 'SVSTATE1', 'SVSTATE2', 'SVSTATE3', 'SPRG0_priv', 'SPRG1_priv', 'SPRG2_priv', 'SPRG3_priv', - 'SPRG0', 'SPRG1', 'SPRG2', 'SPRG3', + 'SPRG0', 'SPRG1', 'SPRG2', 'SPRG3', 'KAIVB', # hmmm should not be including these, they are FAST regs 'CTR', 'LR', 'TAR', 'SRR0', 'SRR1', 'XER', 'DEC', 'TB', 'TBU', 'HSRR0', 'HSRR1', 'HSPRG0', 'HSPRG1', -- 2.30.2