Skip to content

Commit

Permalink
Add Zabha extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ved-rivos committed Jun 13, 2024
1 parent 8055769 commit a3b855b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions model/riscv_insts_aext.sail
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function lrsc_width_valid(size : word_width) -> bool = {
_ => false
}
}

function amo_width_valid(size : word_width) -> bool = {
match(size) {
BYTE => haveZabha(),
Expand Down
3 changes: 3 additions & 0 deletions model/riscv_sys_regs.sail
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ function haveZmmul() -> bool = true
/* Zicond extension support */
function haveZicond() -> bool = true

/* Zabha extension support */
function haveZabha() -> bool = true

bitfield Mstatush : bits(32) = {
MBE : 5,
SBE : 4
Expand Down

0 comments on commit a3b855b

Please sign in to comment.