diff options
| author | Prashanth Mundkur | 2018-06-25 12:39:42 -0700 |
|---|---|---|
| committer | Prashanth Mundkur | 2018-06-25 15:36:08 -0700 |
| commit | c091410169c5ead5c39fa72d80fb52e22cd0d3dd (patch) | |
| tree | ad688aa4b21d9912352ca565f7c5eb7868450906 /riscv/riscv_step.sail | |
| parent | 71637ed07d4df310b6e9a10419d2ce0375d1de30 (diff) | |
Fix riscv interrupt pending check to handle implicit enabling at lower privileges.
Also fix timer threshold comparison to be <= instead of <.
Diffstat (limited to 'riscv/riscv_step.sail')
| -rw-r--r-- | riscv/riscv_step.sail | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/riscv_step.sail b/riscv/riscv_step.sail index fe9d7e84..49f8e51c 100644 --- a/riscv/riscv_step.sail +++ b/riscv/riscv_step.sail @@ -44,7 +44,7 @@ function fetch() -> FetchResult = { /* returns whether an instruction was retired */ val step : int -> bool effect {barr, eamem, escape, exmem, rmem, rreg, wmv, wreg} function step(step_no) = { - match curInterrupt(mip, mie, mideleg) { + match curInterrupt(cur_privilege, mip, mie, mideleg) { Some(intr, priv) => { print_bits("Handling interrupt: ", intr); handle_interrupt(intr, priv); |
