Skip to content

Commit

Permalink
Zcb requires Zca
Browse files Browse the repository at this point in the history
Per section 29.8 of the Unprivileged ISA manual, extension Zcb requires Zca. This updates the extensionEnabled clause to capture this requirement.
  • Loading branch information
jordancarlin authored Oct 28, 2024
1 parent 1b2d498 commit 1559013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/riscv_insts_zcb.sail
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/*=======================================================================================*/

enum clause extension = Ext_Zcb
function clause extensionEnabled(Ext_Zcb) = sys_enable_zcb()
function clause extensionEnabled(Ext_Zcb) = sys_enable_zcb() & extensionEnabled(Ext_Zca)

union clause ast = C_LBU : (bits(2), cregidx, cregidx)

Expand Down

0 comments on commit 1559013

Please sign in to comment.