Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added exceptions to compressed jump instructions #26

Merged
merged 2 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/insns/cj_j_16bit.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ Set the next PC following the standard `jal` definition.
*There is no difference in Capability Mode or Legacy Mode execution for this instruction.*

Exceptions::
CHERI Length Violation
See <<CJAL>>, <<JAL>>

include::pcrel_debug_warning.adoc[]

Prerequisites for C.CJ::
{c_cheri_base_ext_names}
Expand Down
5 changes: 5 additions & 0 deletions src/insns/cjal_jal_16bit.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ include::wavedrom/c-cjal-format-ls.adoc[]

include::cjal_jal_common.adoc[]

Exceptions::
See <<CJAL>>, <<JAL>>

include::pcrel_debug_warning.adoc[]

Prerequisites for C.CJAL::
{c_cheri_base_ext_names}

Expand Down
5 changes: 5 additions & 0 deletions src/insns/cjalr_jalr_16bit.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ include::wavedrom/c-cjalr-format-ls.adoc[]

include::cjalr_jalr_common.adoc[]

Exceptions::
See <<CJALR>>, <<JALR>>

include::pcrel_debug_warning.adoc[]

Prerequisites C.CJALR::
{c_cheri_base_ext_names}

Expand Down
11 changes: 6 additions & 5 deletions src/insns/cjr_jr_16bit.adoc
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<<<
//[#insns-cjr_jr-16bit,reftext="Conditional branches (C.CJR, C.JR), 16-bit encodings"]

[#C_JR,reftext="C.JR"]
==== C.JR

See <<C.CJR>>.

[#C_CJR,reftext="C.CJR"]
==== C.CJR

See <<C.JR>>.

[#C_JR,reftext="C.JR"]
==== C.JR

Synopsis::
Register based jumps without link, 16-bit encodings
Expand Down Expand Up @@ -35,7 +36,7 @@ Set the next PC according to the standard `jalr` definition.
Check a minimum length instruction is in <<pcc>> bounds at the target PC, take a CHERI Length Violation exception on error.

Exceptions::
See <<CJALR>>, <<JALR>>
See <<CJALR>>, <<JALR>>

include::pcrel_debug_warning.adoc[]

Expand Down
4 changes: 2 additions & 2 deletions src/insns/wavedrom/c-cjalr-format-ls.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
....
{reg: [
{bits: 2, name: 'op', type: 8, attr: ['2','C2=10']},
{bits: 5, name: 'rs2', type: 4, attr: ['5','0']},
{bits: 5, name: 'rs1', type: 4, attr: ['5','src!=0']},
{bits: 5, name: 'cs2/rs2', type: 4, attr: ['5','0']},
{bits: 5, name: 'cs1/rs1', type: 4, attr: ['5','src!=0']},
{bits: 4, name: 'funct4', type: 8, attr: ['4', 'cap: C.CJALR=1001', 'leg: C.JALR=1001']},
], config: {bits: 16}}
....
Expand Down
4 changes: 2 additions & 2 deletions src/insns/wavedrom/c-cr-format-ls.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
....
{reg: [
{bits: 2, name: 'op', type: 8, attr: ['2','C2=10']},
{bits: 5, name: 'rs2', type: 4, attr: ['5','0']},
{bits: 5, name: 'rs1', type: 4, attr: ['5','src!=0']},
{bits: 5, name: 'cs2/rs2', type: 4, attr: ['5','0']},
{bits: 5, name: 'cs1/rs1', type: 4, attr: ['5','src!=0']},
{bits: 4, name: 'funct4', type: 8, attr: ['4','cap: C.CJR=1000', 'leg: C.JR=1000']},
], config: {bits: 16}}
....
Expand Down
Loading