From 437af45e6ca02368c1a656361ff51eaf7373c316 Mon Sep 17 00:00:00 2001 From: Piotr Wegrzyn Date: Sun, 10 Nov 2024 12:58:05 +0100 Subject: [PATCH] Remove width check --- coreblocks/priv/csr/csr_instances.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/coreblocks/priv/csr/csr_instances.py b/coreblocks/priv/csr/csr_instances.py index a28b4a5fb..adc598b33 100644 --- a/coreblocks/priv/csr/csr_instances.py +++ b/coreblocks/priv/csr/csr_instances.py @@ -208,8 +208,7 @@ def _misa_value(self, gen_params): # 7 - Hypervisor, 18 - Supervisor, 23 - Custom Extensions xml_field_mapping = {32: XlenEncoding.W32, 64: XlenEncoding.W64, 128: XlenEncoding.W128} - if gen_params.isa.xlen in xml_field_mapping: - misa_value |= xml_field_mapping[gen_params.isa.xlen] << (gen_params.isa.xlen - 2) + misa_value |= xml_field_mapping[gen_params.isa.xlen] << (gen_params.isa.xlen - 2) return misa_value