From 79841478f9a503e3b567caf1d0958891e094fa6e Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Fri, 12 Mar 2021 14:52:16 -0800 Subject: [PATCH] add setvl to decoder --- src/soc/decoder/power_decoder.py | 2 ++ src/soc/decoder/power_enums.py | 1 + 2 files changed, 3 insertions(+) diff --git a/src/soc/decoder/power_decoder.py b/src/soc/decoder/power_decoder.py index 268a1ef1..23954142 100644 --- a/src/soc/decoder/power_decoder.py +++ b/src/soc/decoder/power_decoder.py @@ -557,6 +557,8 @@ def create_pdecode(name=None, col_subset=None, row_subset=None): opint=True, bitsel=(0, 2), suffix=None, subdecoders=[]), Subdecoder(pattern=62, opcodes=get_csv("minor_62.csv"), opint=True, bitsel=(0, 2), suffix=None, subdecoders=[]), + Subdecoder(pattern=22, opcodes=get_csv("minor_22.csv"), + opint=True, bitsel=(1, 5), suffix=None, subdecoders=[]), ] # top level: extra merged with major diff --git a/src/soc/decoder/power_enums.py b/src/soc/decoder/power_enums.py index b8c7fe46..faa8cfc1 100644 --- a/src/soc/decoder/power_enums.py +++ b/src/soc/decoder/power_enums.py @@ -81,6 +81,7 @@ class Function(Enum): SPR = 1 << 10 MMU = 1 << 11 SV = 1 << 12 # Simple-V https://libre-soc.org/openpower/sv + VL = 1 << 13 # setvl @unique -- 2.30.2