diff options
| author | Prashanth Mundkur | 2018-02-01 04:57:52 -0800 |
|---|---|---|
| committer | Prashanth Mundkur | 2018-02-01 10:07:37 -0800 |
| commit | c815ede7a5a311f85b05b9b597fd23765c7b0156 (patch) | |
| tree | 780f71ed8be7aa8b56c84be54f25891d21fe9bcb /riscv/main.sail | |
| parent | a2d505a0e7e01efbfd24cacc6ea0f74918ba31f8 (diff) | |
badaddr is a misleading name, since it could contain what the PC points to for illegal-instruction exceptions. changed to excinfo.
Diffstat (limited to 'riscv/main.sail')
| -rw-r--r-- | riscv/main.sail | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/main.sail b/riscv/main.sail index ce749d94..4209b7d1 100644 --- a/riscv/main.sail +++ b/riscv/main.sail @@ -21,7 +21,7 @@ function fetch_and_execute () = if (misa.C() == 0b0 & (instr_sz == 2)) then { let t : sync_exception = struct { trap = Illegal_Instr, - badaddr = Some (EXTZ(instr)) } in + excinfo = Some (EXTZ(instr)) } in nextPC = handle_exception_ctl(cur_privilege, CTL_TRAP(t), PC) } else { nextPC = PC + instr_sz; |
