From 255a11c5c9962588aa0e173055fb4f0fec816bd6 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Sat, 4 Feb 2023 17:47:47 -0800 Subject: Remove unused plic_t::procs field --- riscv/devices.h | 1 - riscv/plic.cc | 2 +- 2 files changed, 1 insertion(+), 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& procs; std::vector 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& 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; -- cgit v1.1