aboutsummaryrefslogtreecommitdiff
path: root/riscv/debug_module.cc
diff options
context:
space:
mode:
authorScott Johnson <scott.johnson@arilinc.com>2023-01-26 10:09:58 -0800
committerScott Johnson <scott.johnson@arilinc.com>2023-03-09 14:07:04 -0800
commit747c1a529ed824aa12b5d1fa2e6911794eb632d8 (patch)
treee85c7122501e5934cef2bae11652aaf845adf7ff /riscv/debug_module.cc
parentd7632c8d7f5166ab4bd6d6975a836958b26eee64 (diff)
downloadriscv-isa-sim-747c1a529ed824aa12b5d1fa2e6911794eb632d8.zip
riscv-isa-sim-747c1a529ed824aa12b5d1fa2e6911794eb632d8.tar.gz
riscv-isa-sim-747c1a529ed824aa12b5d1fa2e6911794eb632d8.tar.bz2
Switch debug_module to use simif_t instead of sim_t
In keeping with the spirit of simif_t.
Diffstat (limited to 'riscv/debug_module.cc')
-rw-r--r--riscv/debug_module.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/riscv/debug_module.cc b/riscv/debug_module.cc
index bdb3605..27dbe66 100644
--- a/riscv/debug_module.cc
+++ b/riscv/debug_module.cc
@@ -1,6 +1,7 @@
#include <cassert>
-#include "sim.h"
+#include "simif.h"
+#include "devices.h"
#include "debug_module.h"
#include "debug_defines.h"
#include "opcodes.h"
@@ -31,7 +32,7 @@ static unsigned field_width(unsigned n)
///////////////////////// debug_module_t
-debug_module_t::debug_module_t(sim_t *sim, const debug_module_config_t &config) :
+debug_module_t::debug_module_t(simif_t *sim, const debug_module_config_t &config) :
config(config),
program_buffer_bytes((config.support_impebreak ? 4 : 0) + 4*config.progbufsize),
debug_progbuf_start(debug_data_start - program_buffer_bytes),