summaryrefslogtreecommitdiff
path: root/cheri
diff options
context:
space:
mode:
Diffstat (limited to 'cheri')
-rw-r--r--cheri/cheri_insts.sail4
1 files changed, 2 insertions, 2 deletions
diff --git a/cheri/cheri_insts.sail b/cheri/cheri_insts.sail
index 2885aea6..06a27dcb 100644
--- a/cheri/cheri_insts.sail
+++ b/cheri/cheri_insts.sail
@@ -766,7 +766,7 @@ function clause execute (CSC(cs, cb, rt, rd, offset, conditional)) =
raise_c2_exception(CapEx_LengthViolation, cb)
else if (vAddr < ((nat) (cb_val.base))) then
raise_c2_exception(CapEx_LengthViolation, cb)
- else if (vAddr64[4..0] != 0b00000) then
+ else if ((vAddr mod cap_size) != 0) then
SignalExceptionBadAddr(AdES, vAddr64)
else
{
@@ -815,7 +815,7 @@ function clause execute (CLC(cd, cb, rt, offset, linked)) =
raise_c2_exception(CapEx_LengthViolation, cb)
else if (vAddr < ((nat) (cb_val.base))) then
raise_c2_exception(CapEx_LengthViolation, cb)
- else if (vAddr64[4..0] != 0b00000) then
+ else if ((vAddr mod cap_size) != 0) then
SignalExceptionBadAddr(AdEL, vAddr64)
else
{