Clean up remnants of the 'wfi_is_nop' thing that seemed like a good idea at the time

This commit is contained in:
Luke Wren 2022-08-29 15:56:57 +01:00
parent da4097ecd8
commit 099f0467fb
1 changed files with 2 additions and 3 deletions

View File

@ -118,7 +118,6 @@ module hazard3_csr #(
// Other CSR-specific signalling
output wire trap_wfi,
output wire wfi_is_nop,
input wire instr_ret
);
@ -229,9 +228,9 @@ end
// 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
// 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 wfi_is_nop = debug_mode;
reg [XLEN-1:0] mscratch;