aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2023-02-04 17:48:50 -0800
committerAndrew Waterman <andrew@sifive.com>2023-02-04 17:48:50 -0800
commit655788426bbe23cf0c6112c0365422fa709f8270 (patch)
tree69168e6d90629c057970c1876ab4d9fb3628543d
parent255a11c5c9962588aa0e173055fb4f0fec816bd6 (diff)
downloadspike-655788426bbe23cf0c6112c0365422fa709f8270.zip
spike-655788426bbe23cf0c6112c0365422fa709f8270.tar.gz
spike-655788426bbe23cf0c6112c0365422fa709f8270.tar.bz2
Remove unused plic_context_t::num field
-rw-r--r--riscv/devices.h1
-rw-r--r--riscv/plic.cc1
2 files changed, 0 insertions, 2 deletions
diff --git a/riscv/devices.h b/riscv/devices.h
index 31d0e84..53db96a 100644
--- a/riscv/devices.h
+++ b/riscv/devices.h
@@ -79,7 +79,6 @@ class clint_t : public abstract_device_t {
#define PLIC_MAX_DEVICES 1024
struct plic_context_t {
- uint32_t num;
processor_t *proc;
bool mmode;
diff --git a/riscv/plic.cc b/riscv/plic.cc
index 1dd8a72..4d22ebc 100644
--- a/riscv/plic.cc
+++ b/riscv/plic.cc
@@ -81,7 +81,6 @@ plic_t::plic_t(std::vector<processor_t*>& procs, bool smode, uint32_t ndev)
for (size_t i = 0; i < contexts.size(); i++) {
plic_context_t* c = &contexts[i];
- c->num = i;
c->proc = procs[i / contexts_per_hart];
if (smode) {
c->mmode = (i % contexts_per_hart == 0);