Skip to content

Commit

Permalink
Replace some bits(12)s with csreg
Browse files Browse the repository at this point in the history
Very minor. Uses an existing type alias.
  • Loading branch information
Timmmm committed May 14, 2024
1 parent e1242d8 commit 52841d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion model/riscv_ext_regs.sail
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function ext_rvfi_init () = {
THIS(csrno, priv, isWrite) allows an extension to block access to csrno,
at Privilege level priv. It should return true if the access is allowed.
*/
val ext_check_CSR : (bits(12), Privilege, bool) -> bool
val ext_check_CSR : (csreg, Privilege, bool) -> bool
function ext_check_CSR (csrno, p, isWrite) = true

/*!
Expand Down
2 changes: 1 addition & 1 deletion model/riscv_insts_zicsr.sail
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/* This file specifies the instructions in the 'Zicsr' extension. */

/* ****************************************************************** */
union clause ast = CSR : (bits(12), regidx, regidx, bool, csrop)
union clause ast = CSR : (csreg, regidx, regidx, bool, csrop)

mapping encdec_csrop : csrop <-> bits(2) = {
CSRRW <-> 0b01,
Expand Down

0 comments on commit 52841d8

Please sign in to comment.