diff options
Diffstat (limited to 'cheri/sail_latex/sailfnexecuteCIncOffset.tex')
| -rw-r--r-- | cheri/sail_latex/sailfnexecuteCIncOffset.tex | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/cheri/sail_latex/sailfnexecuteCIncOffset.tex b/cheri/sail_latex/sailfnexecuteCIncOffset.tex deleted file mode 100644 index 4b4b1888..00000000 --- a/cheri/sail_latex/sailfnexecuteCIncOffset.tex +++ /dev/null @@ -1,18 +0,0 @@ -function clause #\hyperref[zexecute]{execute}# (#\hyperref[zCIncOffset]{CIncOffset}#(cd, cb, rt)) = -{ - #\hyperref[zcheckCPtwousable]{checkCP2usable}#(); - cb_val = #\hyperref[zreadCapReg]{readCapReg}#(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 ((cb_val.tag) & (cb_val.sealed) & (rt_val != 0x0000000000000000)) then - #\hyperref[zraisezyctwozyexception]{raise\_c2\_exception}#(CapEx_SealViolation, cb) - else - let (success, newCap) = #\hyperref[zincCapOffset]{incCapOffset}#(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)) -} |
