generated from riscv/docs-spec-template
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Removed that prefetch instructions can throw exceptions #7
Merged
+33
−9
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
a30fb6d
Removed exceptions for prefetch instructions
francislaus 9196c10
Added explanation for prefetching instructions
francislaus 74839bb
Added conditions under which prefetch instructions evaluate to NOPs
francislaus fb87c51
Slight change in phrasing; it must not issue the prefetch; all prefet…
francislaus ce10ddd
typo fix
francislaus 60ebaab
changed wording
francislaus 5699b91
added cross references for permissions
francislaus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,14 @@ effective address is the sum of the base address specified in `cs1` and the | |
sign-extended offset encoded in imm[11:0], where imm[4:0] equals 0b00000, is | ||
likely to be accessed by a data read (i.e. load) in the near future. The | ||
encoding is only valid if imm[4:0]=0. The authorising capability for this | ||
operation is `cs1`. | ||
operation is `cs1`. This instruction does not throw any exceptions. However, | ||
in following <<CHERI_SPEC>>, this instruction does not perform a prefetch | ||
if it is not authorized by `cs1`. This instruction does not perform a memory | ||
access if one or more of the following conditions of `cs1` are met: | ||
* The tag is not set | ||
* The sealed bit is set | ||
* No bytes of the cache line requested is in bounds | ||
* The R permission is not set | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be <<r_perm>> to get the cross reference |
||
|
||
Legacy Mode Description:: | ||
A PREFETCH.R instruction indicates to hardware that the cache block whose | ||
|
@@ -46,8 +53,6 @@ likely to be accessed by a data read (i.e. load) in the near future. The | |
encoding is only valid if imm[4:0]=0. The authorising capability for this | ||
operation is <<ddc>>. | ||
|
||
:prefetch_r: | ||
include::cbo_exceptions.adoc[] | ||
|
||
Prerequisites for PREFETCH.R.CAP:: | ||
Zicbop, {cheri_base_ext_name} | ||
|
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 |
---|---|---|
|
@@ -36,7 +36,14 @@ effective address is the sum of the base address specified in `cs1` and the | |
sign-extended offset encoded in imm[11:0], where imm[4:0] equals 0b00000, is | ||
likely to be accessed by a data write (i.e. store) in the near future. The | ||
encoding is only valid if imm[4:0]=0. The authorising capability for this | ||
operation is `cs1`. | ||
operation is `cs1`. This instruction does not throw any exceptions. However, | ||
following <<CHERI_SPEC>>, this instruction does not perform a prefetch if it | ||
is not authorized by `cs1`. This instruction does not perform a memory access | ||
if one or more of the following conditions of `cs1` are met: | ||
* The tag is not set | ||
* The sealed bit is set | ||
* No bytes of the cache line requested is in bounds | ||
* The W permission is not set | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be <<w_perm>> to get the cross reference |
||
|
||
Legacy Mode Description:: | ||
A PREFETCH.W instruction indicates to hardware that the cache block whose | ||
|
@@ -47,10 +54,10 @@ encoding is only valid if imm[4:0]=0. The authorising capability for this | |
operation is <<ddc>>. | ||
|
||
Prerequisites for PREFETCH.W.CAP:: | ||
{cheri_base_ext_name} | ||
Zicbop, {cheri_base_ext_name} | ||
|
||
Prerequisites for PREFETCH.W:: | ||
{cheri_legacy_ext_name} | ||
Zicbop, {cheri_legacy_ext_name} | ||
|
||
Operation:: | ||
[source,sail] | ||
|
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be <<x_perm>> to get the cross reference