aboutsummaryrefslogtreecommitdiff
path: root/riscv/plic.cc
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/plic.cc')
-rw-r--r--riscv/plic.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/plic.cc b/riscv/plic.cc
index 37a5f53..e2685a9 100644
--- a/riscv/plic.cc
+++ b/riscv/plic.cc
@@ -70,7 +70,7 @@
#define REG_SIZE 0x1000000
-plic_t::plic_t(simif_t* sim, uint32_t ndev)
+plic_t::plic_t(const simif_t* sim, uint32_t ndev)
: num_ids(ndev + 1), num_ids_word(((ndev + 1) + (32 - 1)) / 32),
max_prio((1UL << PLIC_PRIO_BITS) - 1), priority{}, level{}
{