aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Zhao <jerryz123@berkeley.edu>2022-12-19 21:07:55 -0800
committerJerry Zhao <jerryz123@berkeley.edu>2022-12-20 14:53:58 -0800
commit10dedb311b620a17d6fe8518c06f8933ce114a32 (patch)
treea4bcead5c84f827f7107538d7a14ce3e4bcb4aa8
parent6c8fb97f44f32a1dfb91de1aff9ffc9228c3f01b (diff)
downloadriscv-isa-sim-10dedb311b620a17d6fe8518c06f8933ce114a32.zip
riscv-isa-sim-10dedb311b620a17d6fe8518c06f8933ce114a32.tar.gz
riscv-isa-sim-10dedb311b620a17d6fe8518c06f8933ce114a32.tar.bz2
Force slow-path when commit-logging is enabled
-rw-r--r--riscv/execute.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/execute.cc b/riscv/execute.cc
index 06bb0b9..e7345d5 100644
--- a/riscv/execute.cc
+++ b/riscv/execute.cc
@@ -207,7 +207,7 @@ static inline reg_t execute_insn(processor_t* p, reg_t pc, insn_fetch_t fetch)
bool processor_t::slow_path()
{
- return debug || state.single_step != state.STEP_NONE || state.debug_mode;
+ return debug || state.single_step != state.STEP_NONE || state.debug_mode || log_commits_enabled;
}
// fetch/decode/execute loop