Clean up remnants of the 'wfi_is_nop' thing that seemed like a good idea at the time
This commit is contained in:
parent
da4097ecd8
commit
099f0467fb
|
@ -118,7 +118,6 @@ module hazard3_csr #(
|
||||||
|
|
||||||
// Other CSR-specific signalling
|
// Other CSR-specific signalling
|
||||||
output wire trap_wfi,
|
output wire trap_wfi,
|
||||||
output wire wfi_is_nop,
|
|
||||||
input wire instr_ret
|
input wire instr_ret
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -229,9 +228,9 @@ end
|
||||||
|
|
||||||
// Trap all U-mode WFIs if timeout bit is set. Note that the debug spec
|
// Trap all U-mode WFIs if timeout bit is set. Note that the debug spec
|
||||||
// says "The `wfi` instruction acts as a `nop`" during program buffer
|
// says "The `wfi` instruction acts as a `nop`" during program buffer
|
||||||
// execution, and nops do not trap, so in debug mode we uncondi allow WFIs but we inhibit their sleep signal.
|
// execution, and nops do not trap, so in debug mode we allow WFIs but
|
||||||
|
// immediately wake them.
|
||||||
assign trap_wfi = mstatus_tw && !(debug_mode || m_mode);
|
assign trap_wfi = mstatus_tw && !(debug_mode || m_mode);
|
||||||
assign wfi_is_nop = debug_mode;
|
|
||||||
|
|
||||||
reg [XLEN-1:0] mscratch;
|
reg [XLEN-1:0] mscratch;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue