-
Notifications
You must be signed in to change notification settings - Fork 79
fix(inst): make fence.tso a separate inst, fix fence bug #460
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
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
c03ad49
Make fence.tso a separate inst, fix fence bug
50f6974
Fix bug
a29b25e
Update fence.tso
4e02e59
Remove fm from fence
4d48223
Merge branch 'main' into fence
dhower-qc 91fbbe7
Merge branch 'main' into fence
dhower-qc e5bbc3b
Merge branch 'main' into fence
dhower-qc 8253cb3
fix(data): fence fm field no longer exists
dhower-qc cee1ab0
Merge branch 'main' into fence
dhower-qc 51ab676
Update fence.tso.yaml
dhower-qc 0ddeb8c
Update fence.yaml
dhower-qc 56863c8
Merge branch 'main' into fence
dhower-qc b1b0574
Merge branch 'main' into fence
dhower-qc 2832836
Merge branch 'main' into fence
dhower-qc 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 hidden or 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,42 @@ | ||
| # yaml-language-server: $schema=../../../schemas/inst_schema.json | ||
|
|
||
| $schema: "inst_schema.json#" | ||
| kind: instruction | ||
| name: fence | ||
| long_name: Memory ordering fence | ||
dhower-qc marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| description: | | ||
dhower-qc marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Orders memory operations. | ||
|
|
||
| `fence.tso` orders all load operations | ||
| in its predecessor set before all memory operations in its successor set, and all store operations | ||
| in its predecessor set before all store operations in its successor set. This leaves non-AMO store | ||
| operations in the 'fence.tso's predecessor set unordered with non-AMO loads in its successor set. | ||
|
|
||
| The `rs1` and `rd` fields are unused and ignored. | ||
|
|
||
| In modes other than M-mode, `fence.tso` is further affected by `menvcfg.FIOM`, | ||
| `senvcfg.FIOM`<% if ext?(:H) %>, and/or `henvcfg.FIOM`<% end %>. | ||
|
|
||
| definedBy: I | ||
| assembly: "TODO" | ||
dhower-qc marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| encoding: | ||
| match: 1000-------------000-----0001111 | ||
| variables: | ||
| - name: pred | ||
| location: 27-24 | ||
| - name: succ | ||
| location: 23-20 | ||
| - name: rs1 | ||
| location: 19-15 | ||
| - name: rd | ||
| location: 11-7 | ||
| access: | ||
| s: always | ||
| u: always | ||
| vs: always | ||
| vu: always | ||
| operation(): | | ||
|
|
||
| fence_tso(); | ||
|
|
||
| sail(): "" | ||
dhower-qc marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
This file contains hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.