-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Corresponds to commit 77e647e6319d142e0bf101f908b4ba0b954fada9 in sail-cheri-riscv.
- Loading branch information
Showing
196 changed files
with
698 additions
and
197 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
sail_latex_riscv/fclLoadCapDDCzexecute33a689e3a631b9b905b85461d3814943.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
let ddc_val = DDC; | ||
let vaddr = ddc_val.address + #\hyperref[sailRISCVzX]{X}#(rs1); | ||
let (ddc_val, vaddr) = #\hyperref[sailRISCVzddczyandzyresultingzyaddr]{ddc\_and\_resulting\_addr}#(#\hyperref[sailRISCVzX]{X}#(rs1)); | ||
#\hyperref[sailRISCVzhandlezyloadzycapzyviazycap]{handle\_load\_cap\_via\_cap}#(cd, DDC_IDX, ddc_val, vaddr) |
3 changes: 1 addition & 2 deletions
3
sail_latex_riscv/fclLoadDataDDCzexecute33a689e3a631b9b905b85461d3814943.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
let ddc_val = DDC; | ||
let vaddr = ddc_val.address + #\hyperref[sailRISCVzX]{X}#(rs1); | ||
let (ddc_val, vaddr) = #\hyperref[sailRISCVzddczyandzyresultingzyaddr]{ddc\_and\_resulting\_addr}#(#\hyperref[sailRISCVzX]{X}#(rs1)); | ||
#\hyperref[sailRISCVzhandlezyloadzydatazyviazycap]{handle\_load\_data\_via\_cap}#(rd, DDC_IDX, ddc_val, vaddr, is_unsigned, width) |
3 changes: 1 addition & 2 deletions
3
sail_latex_riscv/fclLoadResCapDDCzexecute33a689e3a631b9b905b85461d3814943.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
sail_latex_riscv/fclLoadResDataDDCzexecute33a689e3a631b9b905b85461d3814943.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
sail_latex_riscv/fclStoreCapDDCzexecute33a689e3a631b9b905b85461d3814943.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
let ddc_val = DDC; | ||
let vaddr = ddc_val.address + #\hyperref[sailRISCVzX]{X}#(rs1); | ||
let (ddc_val, vaddr) = #\hyperref[sailRISCVzddczyandzyresultingzyaddr]{ddc\_and\_resulting\_addr}#(#\hyperref[sailRISCVzX]{X}#(rs1)); | ||
#\hyperref[sailRISCVzhandlezystorezycapzyviazycap]{handle\_store\_cap\_via\_cap}#(cs2, DDC_IDX, ddc_val, vaddr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
sail_latex_riscv/fclStoreDataDDCzexecute33a689e3a631b9b905b85461d3814943.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
let ddc_val = DDC; | ||
let vaddr = ddc_val.address + #\hyperref[sailRISCVzX]{X}#(rs1); | ||
let (ddc_val, vaddr) = #\hyperref[sailRISCVzddczyandzyresultingzyaddr]{ddc\_and\_resulting\_addr}#(#\hyperref[sailRISCVzX]{X}#(rs1)); | ||
#\hyperref[sailRISCVzhandlezystorezydatazyviazycap]{handle\_store\_data\_via\_cap}#(rs2, DDC_IDX, ddc_val, vaddr, width) |
3 changes: 3 additions & 0 deletions
3
sail_latex_riscv/fnzcap_to_integer_pcfb8f9e29d6bb00469db30a7b19649da3.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
function #\hyperref[sailRISCVzcapzytozyintegerzypc]{cap\_to\_integer\_pc}# (cap: Capability) -> xlenbits = { | ||
if (#\hyperref[sailRISCVzhavezypcczyrelocation]{have\_pcc\_relocation}#()) then #\hyperref[sailRISCVzgetCapOffsetBits]{getCapOffsetBits}#(cap) else cap.address | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
sail_latex_riscv/fnzddc_and_resulting_addr0f0e2d5c6123a71667b35ed17c44868e.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
function #\hyperref[sailRISCVzddczyandzyresultingzyaddr]{ddc\_and\_resulting\_addr}# (addr) = { | ||
let ddc_val = DDC in | ||
(ddc_val, if (#\hyperref[sailRISCVzhavezyddczyrelocation]{have\_ddc\_relocation}#()) then ddc_val.address + addr else addr) | ||
} |
4 changes: 2 additions & 2 deletions
4
sail_latex_riscv/fnzext_control_check_addr2d404fc3390578d569e3f547f0d18fce.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
sail_latex_riscv/fnzext_fail_xret_priva071b88d32f48ad8e720a4cae916da8b.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
function #\hyperref[sailRISCVzextzyfailzyxretzypriv]{ext\_fail\_xret\_priv}# () : unit -> unit = | ||
function #\hyperref[sailRISCVzextzyfailzyxretzypriv]{ext\_fail\_xret\_priv}# () : unit -> unit = | ||
#\hyperref[sailRISCVzhandlezycherizypcczyexception]{handle\_cheri\_pcc\_exception}#(CapEx_AccessSystemRegsViolation) |
10 changes: 5 additions & 5 deletions
10
sail_latex_riscv/fnzext_fetch_check_pc2e82f09c4f4da5465b70e5f9e6f48b77.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 3 additions & 6 deletions
9
sail_latex_riscv/fnzext_initaf8e3807fa5c1bbef01331f40e0f99a4.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
function #\hyperref[sailRISCVzextzyinit]{ext\_init}# () = { | ||
misa->#\hyperref[sailRISCVzX]{X}#() = 0b1; | ||
mccsr->#\hyperref[sailRISCVzd]{d}#() = 0b1; | ||
mccsr->#\hyperref[sailRISCVze]{e}#() = 0b1; | ||
sccsr->#\hyperref[sailRISCVzd]{d}#() = 0b1; | ||
sccsr->#\hyperref[sailRISCVze]{e}#() = 0b1; | ||
uccsr->#\hyperref[sailRISCVzd]{d}#() = 0b1; | ||
uccsr->#\hyperref[sailRISCVze]{e}#() = 0b1; | ||
mccsr = #\hyperref[sailRISCVzlegalizzezyccsr]{legalize\_ccsr}#(mccsr, #\hyperref[sailRISCVzzzeros]{zeros}#()); | ||
sccsr = #\hyperref[sailRISCVzlegalizzezyccsr]{legalize\_ccsr}#(sccsr, #\hyperref[sailRISCVzzzeros]{zeros}#()); | ||
uccsr = #\hyperref[sailRISCVzlegalizzezyccsr]{legalize\_ccsr}#(uccsr, #\hyperref[sailRISCVzzzeros]{zeros}#()); | ||
} |
6 changes: 5 additions & 1 deletion
6
sail_latex_riscv/fnzext_veto_disable_cd10c2d1c5077060fa007c1628d7aaa8c.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
function #\hyperref[sailRISCVzextzyvetozydisablezyC]{ext\_veto\_disable\_C}# () = #\hyperref[sailRISCVzgetCapBaseBits]{getCapBaseBits}#(PCC)[1] == bitone | ||
function #\hyperref[sailRISCVzextzyvetozydisablezyC]{ext\_veto\_disable\_C}# () = { | ||
if #\hyperref[sailRISCVzhavezypcczyrelocation]{have\_pcc\_relocation}#() | ||
then #\hyperref[sailRISCVzgetCapBaseBits]{getCapBaseBits}#(PCC)[1] == bitone | ||
else false | ||
} |
2 changes: 1 addition & 1 deletion
2
sail_latex_riscv/fnzget_arch_pc874e1e50a5765cd3e317d37fa710a52d.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
function #\hyperref[sailRISCVzgetzyarchzypc]{get\_arch\_pc}# () = | ||
PC - #\hyperref[sailRISCVzgetCapBaseBits]{getCapBaseBits}#(PCC) | ||
if #\hyperref[sailRISCVzhavezypcczyrelocation]{have\_pcc\_relocation}#() then PC - #\hyperref[sailRISCVzgetCapBaseBits]{getCapBaseBits}#(PCC) else PC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
sail_latex_riscv/fnzget_mtvec134cdc828faab7bf9f19733fba43da2f.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
function #\hyperref[sailRISCVzgetzymtvec]{get\_mtvec}#() -> xlenbits = | ||
#\hyperref[sailRISCVzgetCapOffsetBits]{getCapOffsetBits}#(MTCC) | ||
#\hyperref[sailRISCVzcapzytozyintegerzypc]{cap\_to\_integer\_pc}#(MTCC) |
2 changes: 1 addition & 1 deletion
2
sail_latex_riscv/fnzget_next_pc52098782da35f914abcd4b708363813b.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
function #\hyperref[sailRISCVzgetzynextzypc]{get\_next\_pc}#() = | ||
nextPC - #\hyperref[sailRISCVzgetCapBaseBits]{getCapBaseBits}#(PCC) | ||
if #\hyperref[sailRISCVzhavezypcczyrelocation]{have\_pcc\_relocation}#() then nextPC - #\hyperref[sailRISCVzgetCapBaseBits]{getCapBaseBits}#(PCC) else nextPC |
2 changes: 1 addition & 1 deletion
2
sail_latex_riscv/fnzget_stvec8e871a236060976d6c548af2b67478db.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
function #\hyperref[sailRISCVzgetzystvec]{get\_stvec}#() -> xlenbits = | ||
#\hyperref[sailRISCVzgetCapOffsetBits]{getCapOffsetBits}#(STCC) | ||
#\hyperref[sailRISCVzcapzytozyintegerzypc]{cap\_to\_integer\_pc}#(STCC) |
2 changes: 1 addition & 1 deletion
2
sail_latex_riscv/fnzget_utvec375b7b6fc923ff7174c10f9b93b1b2cf.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
function #\hyperref[sailRISCVzgetzyutvec]{get\_utvec}#() -> xlenbits = | ||
#\hyperref[sailRISCVzgetCapOffsetBits]{getCapOffsetBits}#(UTCC) | ||
#\hyperref[sailRISCVzcapzytozyintegerzypc]{cap\_to\_integer\_pc}#(UTCC) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
sail_latex_riscv/fnzhandle_cheri_cap_exceptionc1ff083ca6d0a739fb48243e22ff4898.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
sail_latex_riscv/fnzhave_cheri_relocationbbe9a9f5c01227424d0cc8330de5d0b3.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
function #\hyperref[sailRISCVzhavezycherizyrelocation]{have\_cheri\_relocation}#() = false |
1 change: 1 addition & 0 deletions
1
sail_latex_riscv/fnzhave_ddc_relocationcdaa2a12594a6d0db423bcedfc636210.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
function #\hyperref[sailRISCVzhavezyddczyrelocation]{have\_ddc\_relocation}#() = #\hyperref[sailRISCVzhavezycherizyrelocation]{have\_cheri\_relocation}#() |
1 change: 1 addition & 0 deletions
1
sail_latex_riscv/fnzhave_pcc_relocation8ef276f0f56e5c3343729212dcd97cb5.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
function #\hyperref[sailRISCVzhavezypcczyrelocation]{have\_pcc\_relocation}#() = #\hyperref[sailRISCVzhavezycherizyrelocation]{have\_cheri\_relocation}#() |
1 change: 1 addition & 0 deletions
1
sail_latex_riscv/fnzhavezfa170943288777f725fbf88904d27d506e.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
function #\hyperref[sailRISCVzhaveZfa]{haveZfa}#() -> bool = true |
2 changes: 1 addition & 1 deletion
2
sail_latex_riscv/fnzhavezfhe5dbd348c0b6c69910aec2c1edb56adf.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
function #\hyperref[sailRISCVzhaveZfh]{haveZfh}#() -> bool = true | ||
function #\hyperref[sailRISCVzhaveZfh]{haveZfh}#() -> bool = (misa.#\hyperref[sailRISCVzF]{F}#() == 0b1) & (mstatus.#\hyperref[sailRISCVzFS]{FS}#() != 0b00) |
1 change: 1 addition & 0 deletions
1
sail_latex_riscv/fnzhavezicond942507aaca8f56a8d3fc5cd08536c028.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
function #\hyperref[sailRISCVzhaveZicond]{haveZicond}#() -> bool = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.