aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Johnson <scott.johnson@arilinc.com>2023-01-26 10:06:27 -0800
committerScott Johnson <scott.johnson@arilinc.com>2023-03-09 14:07:03 -0800
commitd7632c8d7f5166ab4bd6d6975a836958b26eee64 (patch)
tree9579db02e520aa0ad39cc7f3bac41e65ed416101
parent1ffef82ac10188e45ec0cdc1e7b286b1bf40185a (diff)
downloadspike-d7632c8d7f5166ab4bd6d6975a836958b26eee64.zip
spike-d7632c8d7f5166ab4bd6d6975a836958b26eee64.tar.gz
spike-d7632c8d7f5166ab4bd6d6975a836958b26eee64.tar.bz2
Move debug_mmu used by debug_module up to simif_t
-rw-r--r--riscv/sim.h2
-rw-r--r--riscv/simif.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/riscv/sim.h b/riscv/sim.h
index 33995d3..3109173 100644
--- a/riscv/sim.h
+++ b/riscv/sim.h
@@ -64,7 +64,6 @@ private:
const cfg_t * const cfg;
std::vector<std::pair<reg_t, mem_t*>> mems;
std::vector<std::pair<reg_t, abstract_device_t*>> plugin_devices;
- mmu_t* debug_mmu; // debug port into main memory
std::vector<processor_t*> procs;
std::map<size_t, processor_t*> harts;
std::pair<reg_t, reg_t> initrd_range;
@@ -137,7 +136,6 @@ private:
friend class processor_t;
friend class mmu_t;
- friend class debug_module_t;
// htif
virtual void reset() override;
diff --git a/riscv/simif.h b/riscv/simif.h
index 74ddcdf..aeab5db 100644
--- a/riscv/simif.h
+++ b/riscv/simif.h
@@ -8,6 +8,7 @@
#include "cfg.h"
class processor_t;
+class mmu_t;
// this is the interface to the simulator used by the processors and memory
class simif_t
@@ -32,6 +33,7 @@ public:
unsigned nprocs() const { return get_cfg().nprocs(); }
+ mmu_t* debug_mmu; // debug port into main memory, for use by debug_module
};
#endif