Skip to content

Commit

Permalink
Utilize extension() instead of haveZkr()
Browse files Browse the repository at this point in the history
  • Loading branch information
jriyyya committed Apr 14, 2024
1 parent 70a5f34 commit 35020f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/riscv_sys_control.sail
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function is_CSR_defined (csr : csreg, p : Privilege) -> bool =
0xC82 => extension("U") & (sizeof(xlen) == 32), // instreth

/* user mode: Zkr */
0x015 => haveZkr(),
0x015 => extension("Zkr"),

/* check extensions */
_ => ext_is_CSR_defined(csr, p)
Expand Down

0 comments on commit 35020f7

Please sign in to comment.