diff options
author | Andrew Waterman <andrew@sifive.com> | 2023-02-04 17:47:47 -0800 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2023-02-04 17:48:01 -0800 |
commit | 255a11c5c9962588aa0e173055fb4f0fec816bd6 (patch) | |
tree | 944015732159a3a7ae5537ec1b603d99c225ace5 | |
parent | 63ae2f5b15c90d9080ec0d3ea8e87cac426265a5 (diff) | |
download | spike-255a11c5c9962588aa0e173055fb4f0fec816bd6.zip spike-255a11c5c9962588aa0e173055fb4f0fec816bd6.tar.gz spike-255a11c5c9962588aa0e173055fb4f0fec816bd6.tar.bz2 |
Remove unused plic_t::procs field
-rw-r--r-- | riscv/devices.h | 1 | ||||
-rw-r--r-- | riscv/plic.cc | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/riscv/devices.h b/riscv/devices.h index 040fe3e..31d0e84 100644 --- a/riscv/devices.h +++ b/riscv/devices.h @@ -98,7 +98,6 @@ class plic_t : public abstract_device_t, public abstract_interrupt_controller_t void set_interrupt_level(uint32_t id, int lvl); size_t size() { return PLIC_SIZE; } private: - std::vector<processor_t*>& procs; std::vector<plic_context_t> contexts; uint32_t num_ids; uint32_t num_ids_word; diff --git a/riscv/plic.cc b/riscv/plic.cc index 9f19bef..1dd8a72 100644 --- a/riscv/plic.cc +++ b/riscv/plic.cc @@ -67,7 +67,7 @@ #define REG_SIZE 0x1000000 plic_t::plic_t(std::vector<processor_t*>& procs, bool smode, uint32_t ndev) - : procs(procs), contexts(procs.size() * (smode ? 2 : 1)) + : contexts(procs.size() * (smode ? 2 : 1)) { size_t contexts_per_hart = smode ? 2 : 1; |