aboutsummaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
authorPrashanth Mundkur <prashanth.mundkur@gmail.com>2020-10-15 21:42:53 -0700
committerPrashanth Mundkur <prashanth.mundkur@gmail.com>2020-10-15 21:44:09 -0700
commitae6cb1de092e9ea727e2318d76e9b88999bbee59 (patch)
treebdad0c388f94e42e3737c36da1fd00e54c9bd349 /model
parent848312ce7c59fa08c304cab4b4e8060c67d5dfc9 (diff)
downloadsail-riscv-ae6cb1de092e9ea727e2318d76e9b88999bbee59.zip
sail-riscv-ae6cb1de092e9ea727e2318d76e9b88999bbee59.tar.gz
sail-riscv-ae6cb1de092e9ea727e2318d76e9b88999bbee59.tar.bz2
Store PC in mtval on EBREAK to match a spec update.
Fixes #70.
Diffstat (limited to 'model')
-rw-r--r--model/riscv_insts_base.sail2
1 files changed, 1 insertions, 1 deletions
diff --git a/model/riscv_insts_base.sail b/model/riscv_insts_base.sail
index 8f64830..e2ad961 100644
--- a/model/riscv_insts_base.sail
+++ b/model/riscv_insts_base.sail
@@ -755,7 +755,7 @@ mapping clause encdec = EBREAK()
<-> 0b000000000001 @ 0b00000 @ 0b000 @ 0b00000 @ 0b1110011
function clause execute EBREAK() = {
- handle_exception(E_Breakpoint());
+ handle_mem_exception(PC, E_Breakpoint());
RETIRE_FAIL
}