diff options
author | Prashanth Mundkur <prashanth.mundkur@gmail.com> | 2020-10-15 21:42:53 -0700 |
---|---|---|
committer | Prashanth Mundkur <prashanth.mundkur@gmail.com> | 2020-10-15 21:44:09 -0700 |
commit | ae6cb1de092e9ea727e2318d76e9b88999bbee59 (patch) | |
tree | bdad0c388f94e42e3737c36da1fd00e54c9bd349 /model | |
parent | 848312ce7c59fa08c304cab4b4e8060c67d5dfc9 (diff) | |
download | sail-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.sail | 2 |
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 } |