-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#3544 RV64: Add support for XTheadCmo and XTheadSync extensions (#6477)
Some of these instructions are suddenly used in newer OS release of my SBC LicheePi 4A, so added them to make it happy. Issue: #3544
- Loading branch information
Showing
6 changed files
with
79 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# XTheadCmo (Cache Management Operations) | ||
# Version 1.0 | ||
# https://github.com/T-head-Semi/thead-extension-spec | ||
|
||
# TODO i#3544: Only list instructions that are valid in usermode for now, but we | ||
# would like to cover privileged instructions as well for something like standalone | ||
# drdecode library to work for arbitrary bits. | ||
|
||
# Clean and invalidate D-cache at virtual address | ||
th.dcache.civa | i | rs1 | 000000100111.....000000000001011 | ||
|
||
# Clean L1 D-cache at virtual address | ||
th.dcache.cval1 | i | rs1 | 000000100100.....000000000001011 | ||
|
||
# Invalidate I-cache at virtual address | ||
th.icache.iva | i | rs1 | 000000110000.....000000000001011 |
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,18 @@ | ||
# XTheadSync (Multi-core synchronization instructions) | ||
# Version 1.0 | ||
# https://github.com/T-head-Semi/thead-extension-spec | ||
|
||
# TODO i#3544: Only list instructions that are valid in usermode for now, but we | ||
# would like to cover privileged instructions as well for something like standalone | ||
# drdecode library to work for arbitrary bits. | ||
|
||
# Ensures that all preceding instructions retire earlier than this instruction | ||
# and all subsequent instructions retire later than this instruction. | ||
th.sync | i | | 00000001100000000000000000001011 | ||
th.sync.s | i | | 00000001100100000000000000001011 | ||
|
||
# Ensures that all preceding instructions retire earlier than this instruction | ||
# and all subsequent instructions retire later than this instruction and clears | ||
# the pipeline when this instruction retires. | ||
th.sync.i | i | | 00000001101000000000000000001011 | ||
th.sync.is | i | | 00000001101100000000000000001011 |
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