aboutsummaryrefslogtreecommitdiff
path: root/riscv/sim.cc
diff options
context:
space:
mode:
authorJerry Zhao <jerryz123@berkeley.edu>2022-12-12 23:37:04 -0800
committerGitHub <noreply@github.com>2022-12-12 23:37:04 -0800
commit02d4a3f80307d8f7ecb3f34e17c4d926400f95b7 (patch)
treeedad2b434afda5d08cf75e5b75bcb941d1d7c1e6 /riscv/sim.cc
parente5f6307033dae041b825ddcd6190f6cbb4641ae5 (diff)
downloadspike-02d4a3f80307d8f7ecb3f34e17c4d926400f95b7.zip
spike-02d4a3f80307d8f7ecb3f34e17c4d926400f95b7.tar.gz
spike-02d4a3f80307d8f7ecb3f34e17c4d926400f95b7.tar.bz2
Make the processor_t interface independent of configure'd variables (#1174)
* Make the interface to processor_t static * Move no-commitlog-enabled warning to processor_t This is in case future user calls processor_t->enable_log_commits() without going through sim_t.
Diffstat (limited to 'riscv/sim.cc')
-rw-r--r--riscv/sim.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/riscv/sim.cc b/riscv/sim.cc
index ffb20e4..bb1d76b 100644
--- a/riscv/sim.cc
+++ b/riscv/sim.cc
@@ -282,17 +282,9 @@ void sim_t::configure_log(bool enable_log, bool enable_commitlog)
if (!enable_commitlog)
return;
-#ifndef RISCV_ENABLE_COMMITLOG
- fputs("Commit logging support has not been properly enabled; "
- "please re-build the riscv-isa-sim project using "
- "\"configure --enable-commitlog\".\n",
- stderr);
- abort();
-#else
for (processor_t *proc : procs) {
proc->enable_log_commits();
}
-#endif
}
void sim_t::set_procs_debug(bool value)