aboutsummaryrefslogtreecommitdiff
path: root/riscv/execute.cc
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2018-02-22 15:19:26 -0800
committerAndrew Waterman <aswaterman@gmail.com>2018-03-03 13:47:54 -0600
commit4299874ad4b07ef457776513a64e5b2397a6a75e (patch)
tree66e952f79375892d256a0f9c0d985f2f109da496 /riscv/execute.cc
parente91d3a441e9391054eecd371922649b7f540cc52 (diff)
downloadspike-4299874ad4b07ef457776513a64e5b2397a6a75e.zip
spike-4299874ad4b07ef457776513a64e5b2397a6a75e.tar.gz
spike-4299874ad4b07ef457776513a64e5b2397a6a75e.tar.bz2
Implement clearing-misa.C-while-PC-is-misaligned proposal
See https://github.com/riscv/riscv-isa-manual/pull/139 Not adopted yet, but I'm putting the implementation here for reference.
Diffstat (limited to 'riscv/execute.cc')
-rw-r--r--riscv/execute.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/riscv/execute.cc b/riscv/execute.cc
index e60ffd1..c5cafc2 100644
--- a/riscv/execute.cc
+++ b/riscv/execute.cc
@@ -114,6 +114,7 @@ void processor_t::step(size_t n)
default: abort(); \
} \
pc = state.pc; \
+ check_pc_alignment(pc); \
break; \
} else { \
state.pc = pc; \