mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-22 05:07:21 -04:00
Mask non-enabled interrupts in WFI control (#765)
This commit is contained in:
parent
e7dd85d4f9
commit
725a662384
1 changed files with 2 additions and 2 deletions
|
@ -966,9 +966,9 @@ module csr_regfile import ariane_pkg::*; #(
|
|||
always_comb begin : wfi_ctrl
|
||||
// wait for interrupt register
|
||||
wfi_d = wfi_q;
|
||||
// if there is any interrupt pending un-stall the core
|
||||
// if there is any (enabled) interrupt pending un-stall the core
|
||||
// also un-stall if we want to enter debug mode
|
||||
if (|mip_q || debug_req_i || irq_i[1]) begin
|
||||
if (|(mip_q & mie_q) || debug_req_i || irq_i[1]) begin
|
||||
wfi_d = 1'b0;
|
||||
// or alternatively if there is no exception pending and we are not in debug mode wait here
|
||||
// for the interrupt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue