aboutsummaryrefslogtreecommitdiff
path: root/riscv
diff options
context:
space:
mode:
Diffstat (limited to 'riscv')
-rw-r--r--riscv/execute.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/riscv/execute.cc b/riscv/execute.cc
index 7cb16dd..cc0d4c3 100644
--- a/riscv/execute.cc
+++ b/riscv/execute.cc
@@ -172,8 +172,10 @@ inline void processor_t::update_histogram(reg_t pc)
// function calls.
static inline reg_t execute_insn(processor_t* p, reg_t pc, insn_fetch_t fetch)
{
+#ifdef RISCV_ENABLE_COMMITLOG
commit_log_reset(p);
commit_log_stash_privilege(p);
+#endif
reg_t npc;
try {