Skip to content

Commit 9a43d79

Browse files
committed
Add support for sentries
1 parent f51d31e commit 9a43d79

File tree

4 files changed

+111
-66
lines changed

4 files changed

+111
-66
lines changed

libs/cheri-cap-lib

src_Core/CPU/CPU_Globals.bsv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ instance PCC#(PCC_T);
239239
function Bool checkPreValid (PCC_T pcc);
240240
//TODO alignment checks?
241241
return isValidCap(tpl_1(pcc))
242-
&& !isSealed(tpl_1(pcc))
242+
&& getKind(tpl_1(pcc)) == UNSEALED
243243
&& getHardPerms(tpl_1(pcc)).permitExecute
244244
&& isInBounds(tpl_1(pcc), False);
245245
endfunction
@@ -249,7 +249,7 @@ instance PCC#(PCC_T);
249249
CapPipe ac = almightyCap;
250250
if (!isValidCap(tpl_1(pcc)))
251251
toRet = Valid(exc_code_CHERI_Tag);
252-
else if (isSealed(tpl_1(pcc)))
252+
else if (getKind(tpl_1(pcc)) != UNSEALED)
253253
toRet = Valid(exc_code_CHERI_Seal);
254254
else if (!getHardPerms(tpl_1(pcc)).permitExecute)
255255
toRet = Valid(exc_code_CHERI_XPerm);

0 commit comments

Comments
 (0)