summaryrefslogtreecommitdiff
path: root/cheri/sail_latex/sailfnexecuteCFromPtr.tex
diff options
context:
space:
mode:
Diffstat (limited to 'cheri/sail_latex/sailfnexecuteCFromPtr.tex')
-rw-r--r--cheri/sail_latex/sailfnexecuteCFromPtr.tex22
1 files changed, 0 insertions, 22 deletions
diff --git a/cheri/sail_latex/sailfnexecuteCFromPtr.tex b/cheri/sail_latex/sailfnexecuteCFromPtr.tex
deleted file mode 100644
index eeb1fdc6..00000000
--- a/cheri/sail_latex/sailfnexecuteCFromPtr.tex
+++ /dev/null
@@ -1,22 +0,0 @@
-function clause #\hyperref[zexecute]{execute}# (#\hyperref[zCFromPtr]{CFromPtr}#(cd, cb, rt)) =
-{
- #\hyperref[zcheckCPtwousable]{checkCP2usable}#();
- cb_val = #\hyperref[zreadCapRegDDC]{readCapRegDDC}#(cb);
- rt_val = #\hyperref[zrGPR]{rGPR}#(rt);
- if (#\hyperref[zregisterzyinaccessible]{register\_inaccessible}#(cd)) then
- #\hyperref[zraisezyctwozyexception]{raise\_c2\_exception}#(CapEx_AccessSystemRegsViolation, cd)
- else if (#\hyperref[zregisterzyinaccessible]{register\_inaccessible}#(cb)) then
- #\hyperref[zraisezyctwozyexception]{raise\_c2\_exception}#(CapEx_AccessSystemRegsViolation, cb)
- else if (rt_val == 0x0000000000000000) then
- #\hyperref[zwriteCapReg]{writeCapReg}#(cd, null_cap)
- else if #\hyperref[znot]{not}# (cb_val.tag) then
- #\hyperref[zraisezyctwozyexception]{raise\_c2\_exception}#(CapEx_TagViolation, cb)
- else if (cb_val.sealed) then
- #\hyperref[zraisezyctwozyexception]{raise\_c2\_exception}#(CapEx_SealViolation, cb)
- else
- let (success, newCap) = #\hyperref[zsetCapOffset]{setCapOffset}#(cb_val, rt_val) in
- if (success) then
- #\hyperref[zwriteCapReg]{writeCapReg}#(cd, newCap)
- else
- #\hyperref[zwriteCapReg]{writeCapReg}#(cd, #\hyperref[zintzytozycap]{int\_to\_cap}#(#\hyperref[ztozybits]{to\_bits}#(64, #\hyperref[zgetCapBase]{getCapBase}#(cb_val)) + rt_val))
-}