diff options
-rw-r--r-- | riscv/debug_module.cc | 4 | ||||
-rw-r--r-- | riscv/debug_module.h | 2 | ||||
-rw-r--r-- | riscv/sim.cc | 2 |
3 files changed, 1 insertions, 7 deletions
diff --git a/riscv/debug_module.cc b/riscv/debug_module.cc index 27dbe66..0f75c5e 100644 --- a/riscv/debug_module.cc +++ b/riscv/debug_module.cc @@ -118,10 +118,6 @@ void debug_module_t::reset() challenge = random(); } -void debug_module_t::add_device(bus_t *bus) { - bus->add_device(DEBUG_START, this); -} - bool debug_module_t::load(reg_t addr, size_t len, uint8_t* bytes) { addr = DEBUG_START + addr; diff --git a/riscv/debug_module.h b/riscv/debug_module.h index 0a62d77..518f119 100644 --- a/riscv/debug_module.h +++ b/riscv/debug_module.h @@ -113,8 +113,6 @@ class debug_module_t : public abstract_device_t debug_module_t(simif_t *sim, const debug_module_config_t &config); ~debug_module_t(); - void add_device(bus_t *bus); - bool load(reg_t addr, size_t len, uint8_t* bytes); bool store(reg_t addr, size_t len, const uint8_t* bytes); diff --git a/riscv/sim.cc b/riscv/sim.cc index 0c5a7fb..0779b95 100644 --- a/riscv/sim.cc +++ b/riscv/sim.cc @@ -69,7 +69,7 @@ sim_t::sim_t(const cfg_t *cfg, bool halted, for (auto& x : mems) bus.add_device(x.first, x.second); - debug_module.add_device(&bus); + bus.add_device(DEBUG_START, &debug_module); socketif = NULL; #ifdef HAVE_BOOST_ASIO |