Skip to content

Commit dc18c38

Browse files
committed
Added Vector CSRs into allow-list
1 parent 41734ad commit dc18c38

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/cheri_addr_checks.sail

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,13 @@ function ext_check_CSR (csrno : bits(12), p : Privilege, isWrite : bool) -> bool
236236
0xC80 => not(isWrite), // cycleh
237237
0xC81 => not(isWrite), // timeh
238238
0xC82 => not(isWrite), // instreth
239+
0x008 => haveVExt(), // vstart
240+
0x009 => haveVExt(), // vxsat
241+
0x00A => haveVExt(), // vxrm
242+
0x00F => haveVExt(), // vcsr
243+
0xC20 => haveVExt() & not(isWrite), // vl
244+
0xC21 => haveVExt() & not(isWrite), // vtype
245+
0xC22 => haveVExt() & not(isWrite), // vlenb
239246
_ => false
240247
} else {
241248
true

0 commit comments

Comments
 (0)