projects
/
riscv-isa-sim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d016e2
)
Fix commit log for serializing instructions
author
Andrew Waterman
<andrew@sifive.com>
Tue, 1 May 2018 03:20:43 +0000
(20:20 -0700)
committer
Andrew Waterman
<andrew@sifive.com>
Tue, 1 May 2018 03:21:01 +0000
(20:21 -0700)
Resolves #199
riscv/execute.cc
patch
|
blob
|
history
diff --git
a/riscv/execute.cc
b/riscv/execute.cc
index d7e586dcc33a42e664a9eed195995154057ccd5c..b110d093d51a8950b376d37e137b3e9c4c48dfff 100644
(file)
--- 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);
}