Conversation
0b4fb79 to
1c413fe
Compare
591d6bf to
9161754
Compare
2ff081d to
5d2bbbb
Compare
[DO NOT MERGE]
Until the 'Ssqosid' extension is frozen/ratified and the final version
number is determined, this patch should not be merged upstream. This
commit uses version 0.1 as the placeholder, not version 0.0.0 in the latest
PDF documentation (since 0.0 is invalid).
This commit adds QoS registration interface for S-mode ('Ssqosid' extension)
support based on the specification:
<riscv-non-isa/riscv-cbqri@3e06bc5>
***Draft Note***
Because CSR addresse is not fixed yet, this commit uses tentative
addresse (a part of custom CSR space).
bfd/ChangeLog:
* elfxx-riscv.c (riscv_implicit_subsets): Add implications to
'Zicsr'. (riscv_supported_std_s_ext): Add 'Ssqosid' extension to
valid 'S' extension list.
gas/ChangeLog:
* config/tc-riscv.c (enum riscv_csr_class): Add CSR class for
the 'Ssqosid' extension. (riscv_csr_address): Add handling for
new CSR class.
* testsuite/gas/riscv/csr-dw-regnums.d: Add new CSR.
* testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
* testsuite/gas/riscv/csr.s: Add new CSR.
* testsuite/gas/riscv/csr-version-1p9p1.d: Likewise.
* testsuite/gas/riscv/csr-version-1p9p1.l: Likewise.
* testsuite/gas/riscv/csr-version-1p10.d: Likewise.
* testsuite/gas/riscv/csr-version-1p10.l: Likewise.
* testsuite/gas/riscv/csr-version-1p11.d: Likewise.
* testsuite/gas/riscv/csr-version-1p11.l: Likewise.
* testsuite/gas/riscv/csr-version-1p12.d: Likewise.
* testsuite/gas/riscv/csr-version-1p12.l: Likewise.
include/ChangeLog:
* opcode/riscv-opc.h (CSR_SQOSCFG): New.
**DEVELOPMENT ENVIRONMENT ONLY**
The attached script can be used to replace related source files when
the CSR addresse of "sqoscfg" (now tentative) is determined.
Usage (when "sqoscfg" is allocated to 0x5ad):
./instantiate-ssqosid.sh 0x5ad
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Wiki Page (details): https://github.com/a4lg/binutils-gdb/wiki/riscv_ssqosid