From d2e9a109e8f7b851fd153b469cc42a8519d85679 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Mon, 30 Apr 2018 20:20:43 -0700 Subject: [PATCH] Fix commit log for serializing instructions Resolves #199 --- riscv/execute.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv/execute.cc b/riscv/execute.cc index d7e586d..b110d09 100644 --- a/riscv/execute.cc +++ b/riscv/execute.cc @@ -76,7 +76,7 @@ static reg_t execute_insn(processor_t* p, reg_t pc, insn_fetch_t fetch) { commit_log_stash_privilege(p); reg_t npc = fetch.func(p, fetch.insn, pc); - if (!invalid_pc(npc)) { + if (npc != PC_SERIALIZE_BEFORE) { commit_log_print_insn(p->get_state(), pc, fetch.insn); p->update_histogram(pc); } -- 2.30.2