Make WFI instruction respect mie CSR setting
This commit is contained in:
parent
35a983275e
commit
2455a806af
@ -367,7 +367,7 @@ class CSRFile(implicit p: Parameters) extends CoreModule()(p)
|
|||||||
insn_call || insn_break
|
insn_call || insn_break
|
||||||
|
|
||||||
when (insn_wfi) { reg_wfi := true }
|
when (insn_wfi) { reg_wfi := true }
|
||||||
when (read_mip.orR) { reg_wfi := false }
|
when (pending_interrupts.orR) { reg_wfi := false }
|
||||||
|
|
||||||
val cause =
|
val cause =
|
||||||
Mux(!io.csr_xcpt, io.cause,
|
Mux(!io.csr_xcpt, io.cause,
|
||||||
|
Loading…
Reference in New Issue
Block a user