Skip to content

Commit

Permalink
Add missing default case to pmp_config (chipsalliance#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
udinator authored May 29, 2020
1 parent aa69c4c commit bf180fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/riscv_pmp_cfg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,9 @@ class riscv_pmp_cfg extends uvm_object;
LOAD_ACCESS_FAULT: begin
instr.push_back($sformatf("29: ori x%0d, x%0d, 1", scratch_reg[3], scratch_reg[3]));
end
default: begin
`uvm_fatal(`gfn, "Invalid PMP fault type")
end
endcase
instr = {instr,
$sformatf("csrr x%0d, 0x%0x", scratch_reg[0], MSCRATCH),
Expand Down

0 comments on commit bf180fc

Please sign in to comment.