summaryrefslogtreecommitdiff
path: root/rtl/core/control
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--rtl/core/control/exception.sv4
1 files changed, 2 insertions, 2 deletions
diff --git a/rtl/core/control/exception.sv b/rtl/core/control/exception.sv
index 76abc5c..02560a6 100644
--- a/rtl/core/control/exception.sv
+++ b/rtl/core/control/exception.sv
@@ -35,8 +35,8 @@ module core_control_exception
exception_mode <= 0;
exception_offset_pc <= 0;
end begin
- if(issue)
- pending_irq <= irq && !intmask.i;
+ if(next_cycle.issue)
+ pending_irq <= issue && irq && !intmask.i;
// A2.6.10 Exception priorities
if(mem_fault) begin