Skip to content

Commit

Permalink
candperm: brown paper bag fix for #83
Browse files Browse the repository at this point in the history
Sigh, sorry.  This was originally "~(mask | perm_global) == zeros()" and
had one too many inversions applied.
  • Loading branch information
nwf authored and rmn30 committed Dec 2, 2024
1 parent 45454e2 commit 2015e1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cheri_insts.sail
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ function clause execute(CAndPerm(cd, cs1, rs2)) = {
*/
let perm_global = getCapPerms({ null_cap with global = true });
let inCap = clearTagIf(cs1_val,
isCapSealed(cs1_val) & ((mask | perm_global) == ones()));
isCapSealed(cs1_val) & ((mask | perm_global) != ones()));

let newCap = setCapPerms(inCap, newperms);

Expand Down

0 comments on commit 2015e1c

Please sign in to comment.