Skip to content

Commit

Permalink
Use correct format string for $value$plusargs
Browse files Browse the repository at this point in the history
Not doing so causes VCS to spit out a warning message. The intention
seems to be that the initial call to $value$plusargs will evaluate to
true and will put the value that was assigned into the
disable_pmp_exception_handler variable, which then gets checked.
  • Loading branch information
rswarbrick committed May 26, 2023
1 parent b94ed28 commit 97df7a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class ibex_asm_program_gen extends riscv_asm_program_gen;

riscv_csr_instr::create_csr_filter(cfg);

if ($value$plusargs("disable_pmp_exception_handler", disable_pmp_exception_handler) &&
if ($value$plusargs("disable_pmp_exception_handler=%d", disable_pmp_exception_handler) &&
disable_pmp_exception_handler) begin
cfg.pmp_cfg.enable_pmp_exception_handler = 0;
end
Expand Down

0 comments on commit 97df7a5

Please sign in to comment.