From 1a0fc4bd5d544dc6809979ab4829daefc321d2e2 Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Mon, 10 Oct 2022 08:59:27 +0200 Subject: [PATCH] fixes wrong mcounteren in M-mode only priv wrapper --- src/iss/arch/riscv_hart_m_p.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/iss/arch/riscv_hart_m_p.h b/src/iss/arch/riscv_hart_m_p.h index a729115..46078a1 100644 --- a/src/iss/arch/riscv_hart_m_p.h +++ b/src/iss/arch/riscv_hart_m_p.h @@ -408,8 +408,6 @@ riscv_hart_m_p::riscv_hart_m_p(feature_config cfg) csr_rd_cb[mie] = &this_class::read_ie; csr_wr_cb[mie] = &this_class::write_ie; csr_rd_cb[mhartid] = &this_class::read_hartid; - csr_rd_cb[mcounteren] = &this_class::read_null; - csr_wr_cb[mcounteren] = &this_class::write_null; csr_wr_cb[misa] = &this_class::write_null; csr_wr_cb[mvendorid] = &this_class::write_null; csr_wr_cb[marchid] = &this_class::write_null;