Skip to content

Commit

Permalink
[snitch] Ignore wfi instruction if the instruction is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelRiedel committed Jun 24, 2021
1 parent b2cc0b3 commit 5ffc85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hardware/deps/snitch/src/snitch.sv
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ module snitch #(
write_rd = 1'b0;
end
riscv_instr::WFI: begin
wfi_d = 1'b1;
if (valid_instr) wfi_d = 1'b1;
end
// Atomics
riscv_instr::AMOADD_W: begin
Expand Down

0 comments on commit 5ffc85a

Please sign in to comment.