aboutsummaryrefslogtreecommitdiff
path: root/riscv/plic.cc
diff options
context:
space:
mode:
authorScott Johnson <scott.johnson@arilinc.com>2023-03-03 05:02:02 -0800
committerScott Johnson <scott.johnson@arilinc.com>2023-03-09 14:07:04 -0800
commit1d721b7940295727827f4921cc46ec00a283feca (patch)
treee6245b82ef90611ad010ce564d397d124e5712df /riscv/plic.cc
parent747c1a529ed824aa12b5d1fa2e6911794eb632d8 (diff)
downloadriscv-isa-sim-1d721b7940295727827f4921cc46ec00a283feca.zip
riscv-isa-sim-1d721b7940295727827f4921cc46ec00a283feca.tar.gz
riscv-isa-sim-1d721b7940295727827f4921cc46ec00a283feca.tar.bz2
Use simif_t instead of sim_t for clint/plic
In keeping with the spirit of simif_t.
Diffstat (limited to 'riscv/plic.cc')
-rw-r--r--riscv/plic.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/plic.cc b/riscv/plic.cc
index 515451a..aeec229 100644
--- a/riscv/plic.cc
+++ b/riscv/plic.cc
@@ -1,7 +1,7 @@
#include <sys/time.h>
#include "devices.h"
#include "processor.h"
-#include "sim.h"
+#include "simif.h"
#define PLIC_MAX_CONTEXTS 15872
@@ -67,7 +67,7 @@
#define REG_SIZE 0x1000000
-plic_t::plic_t(sim_t* sim, uint32_t ndev)
+plic_t::plic_t(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{}
{