RISC-V ISA extensions
Schema identifier ($id): "http://devicetree.org/schemas/riscv/extensions.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Paul Walmsley <paul.walmsley@sifive.com>", "Palmer Dabbelt <palmer@sifive.com>", "Conor Dooley <conor@kernel.org>"
RISC-V has a large number of extensions, some of which are "standard" extensions, meaning they are ratified by RISC-V International, and others are "vendor" extensions. This document defines properties that indicate whether a hart supports a given extension.
Once a standard extension has been ratified, no changes in behaviour can be made without the creation of a new extension. The properties for standard extensions therefore map to their originally ratified states, with the exception of the I, Zicntr & Zihpm extensions. See the "i" property for more information.
Properties and child nodes (properties) #
riscv,isa — not listed as required here #
Identifies the specific RISC-V instruction set architecture supported by the hart. These are documented in the RISC-V User-Level ISA document, available from https://riscv.org/specifications/ Due to revisions of the ISA specification, some deviations have arisen over time. Notably, riscv,isa was defined prior to the creation of the Zicntr, Zicsr, Zifencei and Zihpm extensions and thus "i" implies "zicntr_zicsr_zifencei_zihpm". While the isa strings in ISA specification are case insensitive, letters in the riscv,isa string must be all lowercase.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
String pattern (pattern): "^rv(?:64|32)imaf?d?q?c?b?k?j?p?v?h?(?:[hsxz](?:[0-9a-z])+)?(?:_[hsxz](?:[0-9a-z])+)*$"
Deprecated (deprecated): true
riscv,isa-base — not listed as required here #
The base ISA implemented by this hart, as described by the 20191213 version of the unprivileged ISA specification.
Allowed values (enum): "rv32i", "rv64i"
riscv,isa-extensions — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array
Minimum number of items (minItems): 1
Extensions supported by the hart.
Array item rules (items) #
At least one of these rules must match (
anyOf)Rule 1
Exact value (
const):"i"The base integer instruction set, as ratified in the 20191213 version of the unprivileged ISA specification.
This does not include Chapter 10, "Counters", which was moved into the Zicntr and Zihpm extensions after the ratification of the 20191213 version of the unprivileged specification.
Rule 2
Exact value (
const):"m"The standard M extension for integer multiplication and division, as ratified in the 20191213 version of the unprivileged ISA specification.
Rule 3
Exact value (
const):"a"The standard A extension for atomic instructions, as ratified in the 20191213 version of the unprivileged ISA specification.
Rule 4
Exact value (
const):"f"The standard F extension for single-precision floating point, as ratified in the 20191213 version of the unprivileged ISA specification.
Rule 5
Exact value (
const):"d"The standard D extension for double-precision floating-point, as ratified in the 20191213 version of the unprivileged ISA specification.
Rule 6
Exact value (
const):"q"The standard Q extension for quad-precision floating-point, as ratified in the 20191213 version of the unprivileged ISA specification.
Rule 7
Exact value (
const):"c"The standard C extension for compressed instructions, as ratified in the 20191213 version of the unprivileged ISA specification.
Rule 8
Exact value (
const):"b"The standard B extension for bit manipulation instructions, as ratified in the 20240411 version of the unprivileged ISA specification. The B standard extension comprises instructions provided by the Zba, Zbb, and Zbs extensions.
Rule 9
Exact value (
const):"v"The standard V extension for vector operations, as ratified in-and-around commit 7a6c8ae ("Fix text that describes vfmv.v.f encoding") of the riscv-v-spec.
Rule 10
Exact value (
const):"h"The standard H extension for hypervisors as ratified in the RISC-V Instruction Set Manual, Volume II Privileged Architecture, Document Version 20211203.
Rule 11
Exact value (
const):"sha"The standard Sha extension for augmented hypervisor extension as ratified in RVA23 Profiles Version 1.0, with commit 0273f3c921b6 ("rva23/rvb23 ratified").
Sha captures the full set of features that are mandated to be supported along with the H extension. Sha comprises the following extensions: H, Shcounterenw, Shgatpa, Shtvala, Shvsatpa, Shvstvala, Shvstvecd, and Ssstateen.
Rule 12
Exact value (
const):"shcounterenw"The standard Shcounterenw extension for support writable enables in hcounteren for any supported counter, as ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87 ("Updated to ratified state.")
Rule 13
Exact value (
const):"shgatpa"The standard Shgatpa extension indicates that for each supported virtual memory scheme SvNN supported in satp, the corresponding hgatp SvNNx4 mode must be supported. The hgatp mode Bare must also be supported. It is ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87 ("Updated to ratified state.")
Rule 14
Exact value (
const):"shtvala"The standard Shtvala extension for htval be written with the faulting guest physical address in all circumstances permitted by the ISA. It is ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87 ("Updated to ratified state.")
Rule 15
Exact value (
const):"shvsatpa"The standard Shvsatpa extension for vsatp supporting all translation modes supported in satp, as ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87 ("Updated to ratified state.")
Rule 16
Exact value (
const):"shvstvala"The standard Shvstvala extension for vstval provides all needed values as ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87 ("Updated to ratified state.")
Rule 17
Exact value (
const):"shvstvecd"The standard Shvstvecd extension for vstvec supporting Direct mode, as ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87 ("Updated to ratified state.")
Rule 18
Exact value (
const):"smaia"The standard Smaia supervisor-level extension for the advanced interrupt architecture for machine-mode-visible csr and behavioural changes to interrupts as frozen at commit ccbddab ("Merge pull request #42 from riscv/jhauser-2023-RC4") of riscv-aia.
Rule 19
Exact value (
const):"smmpm"The standard Smmpm extension for M-mode pointer masking as ratified at commit d70011dde6c2 ("Update to ratified state") of riscv-j-extension.
Rule 20
Exact value (
const):"smnpm"The standard Smnpm extension for next-mode pointer masking as ratified at commit d70011dde6c2 ("Update to ratified state") of riscv-j-extension.
Rule 21
Exact value (
const):"smstateen"The standard Smstateen extension for controlling access to CSRs added by other RISC-V extensions in H/S/VS/U/VU modes and as ratified at commit a28bfae (Ratified (#7)) of riscv-state-enable.
Rule 22
Exact value (
const):"ssaia"The standard Ssaia supervisor-level extension for the advanced interrupt architecture for supervisor-mode-visible csr and behavioural changes to interrupts as frozen at commit ccbddab ("Merge pull request #42 from riscv/jhauser-2023-RC4") of riscv-aia.
Rule 23
Exact value (
const):"ssccptr"The standard Ssccptr extension for main memory (cacheability and coherence) hardware page-table reads, as ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87 ("Updated to ratified state.")
Rule 24
Exact value (
const):"sscofpmf"The standard Sscofpmf supervisor-level extension for count overflow and mode-based filtering as ratified at commit 01d1df0 ("Add ability to manually trigger workflow. (#2)") of riscv-count-overflow.
Rule 25
Exact value (
const):"sscounterenw"The standard Sscounterenw extension for support writable enables in scounteren for any supported counter, as ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87 ("Updated to ratified state.")
Rule 26
Exact value (
const):"ssnpm"The standard Ssnpm extension for next-mode pointer masking as ratified at commit d70011dde6c2 ("Update to ratified state") of riscv-j-extension.
Rule 27
Exact value (
const):"ssstateen"The standard Ssstateen extension for supervisor-mode view of the state-enable extension, as ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87 ("Updated to ratified state.")
Rule 28
Exact value (
const):"sstc"The standard Sstc supervisor-level extension for time compare as ratified at commit 3f9ed34 ("Add ability to manually trigger workflow. (#2)") of riscv-time-compare.
Rule 29
Exact value (
const):"sstvala"The standard Sstvala extension for stval provides all needed values as ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87 ("Updated to ratified state.")
Rule 30
Exact value (
const):"sstvecd"The standard Sstvecd extension for stvec supports Direct mode as ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87 ("Updated to ratified state.")
Rule 31
Exact value (
const):"ssu64xl"The standard Ssu64xl extension for UXLEN=64 must be supported, as ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87 ("Updated to ratified state.")
Rule 32
Exact value (
const):"svade"The standard Svade supervisor-level extension for SW-managed PTE A/D bit updates as ratified in the 20240213 version of the privileged ISA specification.
Both Svade and Svadu extensions control the hardware behavior when the PTE A/D bits need to be set. The default behavior for the four possible combinations of these extensions in the device tree are: 1) Neither Svade nor Svadu present in DT => It is technically unknown whether the platform uses Svade or Svadu. Supervisor software should be prepared to handle either hardware updating of the PTE A/D bits or page faults when they need updated. 2) Only Svade present in DT => Supervisor must assume Svade to be always enabled. 3) Only Svadu present in DT => Supervisor must assume Svadu to be always enabled. 4) Both Svade and Svadu present in DT => Supervisor must assume Svadu turned-off at boot time. To use Svadu, supervisor must explicitly enable it using the SBI FWFT extension.Rule 33
Exact value (
const):"svadu"The standard Svadu supervisor-level extension for hardware updating of PTE A/D bits as ratified in the 20240528 version of the privileged ISA specification. Please refer to Svade dt-binding description for more details.
Rule 34
Exact value (
const):"svinval"The standard Svinval supervisor-level extension for fine-grained address-translation cache invalidation as ratified in the RISC-V Instruction Set Manual, Volume II Privileged Architecture, Document Version 20211203.
Rule 35
Exact value (
const):"svnapot"The standard Svnapot supervisor-level extensions for napot translation contiguity as ratified in the RISC-V Instruction Set Manual, Volume II Privileged Architecture, Document Version 20211203.
Rule 36
Exact value (
const):"svpbmt"The standard Svpbmt supervisor-level extensions for page-based memory types as ratified in the RISC-V Instruction Set Manual, Volume II Privileged Architecture, Document Version 20211203.
Rule 37
Exact value (
const):"svrsw60t59b"The Svrsw60t59b extension for providing two more bits[60:59] to PTE/PMD entry as ratified at commit 28bde925e7a7 ("PTE Reserved for SW bits 60:59") of riscv-non-isa/riscv-iommu.
Rule 38
Exact value (
const):"svvptc"The standard Svvptc supervisor-level extension for address-translation cache behaviour with respect to invalid entries as ratified at commit 4a69197e5617 ("Update to ratified state") of riscv-svvptc.
Rule 39
Exact value (
const):"za64rs"The standard Za64rs extension for reservation set size of at most 64 bytes, as ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87 ("Updated to ratified state.")
Rule 40
Exact value (
const):"zaamo"The standard Zaamo extension for atomic memory operations as ratified at commit e87412e621f1 ("integrate Zaamo and Zalrsc text (#1304)") of the unprivileged ISA specification.
Rule 41
Exact value (
const):"zabha"The Zabha extension for Byte and Halfword Atomic Memory Operations as ratified at commit 49f49c842ff9 ("Update to Rafified state") of riscv-zabha.
Rule 42
Exact value (
const):"zacas"The Zacas extension for Atomic Compare-and-Swap (CAS) instructions is supported as ratified at commit 5059e0ca641c ("update to ratified") of the riscv-zacas.
Rule 43
Exact value (
const):"zalasr"The standard Zalasr extension for load-acquire/store-release as frozen at commit 194f0094 ("Version 0.9 for freeze") of riscv-zalasr.
Rule 44
Exact value (
const):"zalrsc"The standard Zalrsc extension for load-reserved/store-conditional as ratified at commit e87412e621f1 ("integrate Zaamo and Zalrsc text (#1304)") of the unprivileged ISA specification.
Rule 45
Exact value (
const):"zawrs"The Zawrs extension for entering a low-power state or for trapping to a hypervisor while waiting on a store to a memory location, as ratified in commit 98918c844281 ("Merge pull request #1217 from riscv/zawrs") of riscv-isa-manual.
Rule 46
Exact value (
const):"zba"The standard Zba bit-manipulation extension for address generation acceleration instructions as ratified at commit 6d33919 ("Merge pull request #158 from hirooih/clmul-fix-loop-end-condition") of riscv-bitmanip.
Rule 47
Exact value (
const):"zbb"The standard Zbb bit-manipulation extension for basic bit-manipulation as ratified at commit 6d33919 ("Merge pull request #158 from hirooih/clmul-fix-loop-end-condition") of riscv-bitmanip.
Rule 48
Exact value (
const):"zbc"The standard Zbc bit-manipulation extension for carry-less multiplication as ratified at commit 6d33919 ("Merge pull request #158 from hirooih/clmul-fix-loop-end-condition") of riscv-bitmanip.
Rule 49
Exact value (
const):"zbkb"The standard Zbkb bitmanip instructions for cryptography as ratified in version 1.0 of RISC-V Cryptography Extensions Volume I specification.
Rule 50
Exact value (
const):"zbkc"The standard Zbkc carry-less multiply instructions as ratified in version 1.0 of RISC-V Cryptography Extensions Volume I specification.
Rule 51
Exact value (
const):"zbkx"The standard Zbkx crossbar permutation instructions as ratified in version 1.0 of RISC-V Cryptography Extensions Volume I specification.
Rule 52
Exact value (
const):"zbs"The standard Zbs bit-manipulation extension for single-bit instructions as ratified at commit 6d33919 ("Merge pull request #158 from hirooih/clmul-fix-loop-end-condition") of riscv-bitmanip.
Rule 53
Exact value (
const):"zca"The Zca extension part of Zc* standard extensions for code size reduction, as ratified in commit 8be3419c1c0 ("Zcf doesn't exist on RV64 as it contains no instructions") of riscv-code-size-reduction, merged in the riscv-isa-manual by commit dbc79cf28a2 ("Initial seed of zc.adoc to src tree.").
Rule 54
Exact value (
const):"zcb"The Zcb extension part of Zc* standard extensions for code size reduction, as ratified in commit 8be3419c1c0 ("Zcf doesn't exist on RV64 as it contains no instructions") of riscv-code-size-reduction, merged in the riscv-isa-manual by commit dbc79cf28a2 ("Initial seed of zc.adoc to src tree.").
Rule 55
Exact value (
const):"zcd"The Zcd extension part of Zc* standard extensions for code size reduction, as ratified in commit 8be3419c1c0 ("Zcf doesn't exist on RV64 as it contains no instructions") of riscv-code-size-reduction, merged in the riscv-isa-manual by commit dbc79cf28a2 ("Initial seed of zc.adoc to src tree.").
Rule 56
Exact value (
const):"zcf"The Zcf extension part of Zc* standard extensions for code size reduction, as ratified in commit 8be3419c1c0 ("Zcf doesn't exist on RV64 as it contains no instructions") of riscv-code-size-reduction, merged in the riscv-isa-manual by commit dbc79cf28a2 ("Initial seed of zc.adoc to src tree.").
Rule 57
Exact value (
const):"zcmop"The standard Zcmop extension version 1.0, as ratified in commit c732a4f39a4 ("Zcmop is ratified/1.0") of the riscv-isa-manual.
Rule 58
Exact value (
const):"zfa"The standard Zfa extension for additional floating point instructions, as ratified in commit 056b6ff ("Zfa is ratified") of riscv-isa-manual.
Rule 59
Exact value (
const):"zfbfmin"The standard Zfbfmin extension which provides minimal support for 16-bit half-precision brain floating-point instructions, as ratified in commit 4dc23d62 ("Added Chapter title to BF16") of riscv-isa-manual.
Rule 60
Exact value (
const):"zfh"The standard Zfh extension for 16-bit half-precision binary floating-point instructions, as ratified in commit 64074bc ("Update version numbers for Zfh/Zfinx") of riscv-isa-manual.
Rule 61
Exact value (
const):"zfhmin"The standard Zfhmin extension which provides minimal support for 16-bit half-precision binary floating-point instructions, as ratified in commit 64074bc ("Update version numbers for Zfh/Zfinx") of riscv-isa-manual.
Rule 62
Exact value (
const):"ziccamoa"The standard Ziccamoa extension for main memory (cacheability and coherence) must support all atomics in A, as ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87 ("Updated to ratified state.")
Rule 63
Exact value (
const):"ziccif"The standard Ziccif extension for main memory (cacheability and coherence) instruction fetch atomicity, as ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87 ("Updated to ratified state.")
Rule 64
Exact value (
const):"zicclsm"The standard Zicclsm extension for main memory (cacheability and coherence) must support misaligned loads and stores, as ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87 ("Updated to ratified state.")
Rule 65
Exact value (
const):"ziccrse"The standard Ziccrse extension which provides forward progress guarantee on LR/SC sequences, as ratified in commit b1d806605f87 ("Updated to ratified state.") of the riscv profiles specification.
Rule 66
Exact value (
const):"zilsd"The standard Zilsd extension which provides support for aligned register-pair load and store operations in 32-bit instruction encodings, as ratified in commit f88abf1 ("Integrating load/store pair for RV32 with the main manual") of riscv-isa-manual.
Rule 67
Exact value (
const):"zclsd"The Zclsd extension implements the compressed (16-bit) version of the Load/Store Pair for RV32. As with Zilsd, this extension was ratified in commit f88abf1 ("Integrating load/store pair for RV32 with the main manual") of riscv-isa-manual.
Rule 68
Exact value (
const):"zk"The standard Zk Standard Scalar cryptography extension as ratified in version 1.0 of RISC-V Cryptography Extensions Volume I specification.
Rule 69
Exact value (
const):"zkn"The standard Zkn NIST algorithm suite extensions as ratified in version 1.0 of RISC-V Cryptography Extensions Volume I specification.
Rule 70
Exact value (
const):"zknd"The standard Zknd for NIST suite: AES decryption instructions as ratified in version 1.0 of RISC-V Cryptography Extensions Volume I specification.
Rule 71
Exact value (
const):"zkne"The standard Zkne for NIST suite: AES encryption instructions as ratified in version 1.0 of RISC-V Cryptography Extensions Volume I specification.
Rule 72
Exact value (
const):"zknh"The standard Zknh for NIST suite: hash function instructions as ratified in version 1.0 of RISC-V Cryptography Extensions Volume I specification.
Rule 73
Exact value (
const):"zkr"The standard Zkr entropy source extension as ratified in version 1.0 of RISC-V Cryptography Extensions Volume I specification. This string being present means that the CSR associated to this extension is accessible at the privilege level to which that device-tree has been provided.
Rule 74
Exact value (
const):"zks"The standard Zks ShangMi algorithm suite extensions as ratified in version 1.0 of RISC-V Cryptography Extensions Volume I specification.
Rule 75
Exact value (
const):"zksed"The standard Zksed for ShangMi suite: SM4 block cipher instructions as ratified in version 1.0 of RISC-V Cryptography Extensions Volume I specification.
Rule 76
Exact value (
const):"zksh"The standard Zksh for ShangMi suite: SM3 hash function instructions as ratified in version 1.0 of RISC-V Cryptography Extensions Volume I specification.
Rule 77
Exact value (
const):"zkt"The standard Zkt for data independent execution latency as ratified in version 1.0 of RISC-V Cryptography Extensions Volume I specification.
Rule 78
Exact value (
const):"zicbom"The standard Zicbom extension for base cache management operations as ratified in commit 3dd606f ("Create cmobase-v1.0.pdf") of riscv-CMOs.
Rule 79
Exact value (
const):"zicbop"The standard Zicbop extension for cache-block prefetch instructions as ratified in commit 3dd606f ("Create cmobase-v1.0.pdf") of riscv-CMOs.
Rule 80
Exact value (
const):"zicboz"The standard Zicboz extension for cache-block zeroing as ratified in commit 3dd606f ("Create cmobase-v1.0.pdf") of riscv-CMOs.
Rule 81
Exact value (
const):"zicfilp"The standard Zicfilp extension for enforcing forward edge control-flow integrity as ratified in commit 3f8e450 ("merge pull request #227 from ved-rivos/0709") of riscv-cfi github repo.
Rule 82
Exact value (
const):"zicfiss"The standard Zicfiss extension for enforcing backward edge control-flow integrity as ratified in commit 3f8e450 ("merge pull request #227 from ved-rivos/0709") of riscv-cfi github repo.
Rule 83
Exact value (
const):"zicntr"The standard Zicntr extension for base counters and timers, as ratified in the 20191213 version of the unprivileged ISA specification.
Rule 84
Exact value (
const):"zicond"The standard Zicond extension for conditional arithmetic and conditional-select/move operations as ratified in commit 95cf1f9 ("Add changes requested by Ved during signoff") of riscv-zicond.
Rule 85
Exact value (
const):"zicsr"The standard Zicsr extension for control and status register instructions, as ratified in the 20191213 version of the unprivileged ISA specification.
This does not include Chapter 10, "Counters", which documents special case read-only CSRs, that were moved into the Zicntr and Zihpm extensions after the ratification of the 20191213 version of the unprivileged specification.
Rule 86
Exact value (
const):"zifencei"The standard Zifencei extension for instruction-fetch fence, as ratified in the 20191213 version of the unprivileged ISA specification.
Rule 87
Exact value (
const):"zihintpause"The standard Zihintpause extension for pause hints, as ratified in commit d8ab5c7 ("Zihintpause is ratified") of the riscv-isa-manual.
Rule 88
Exact value (
const):"zihintntl"The standard Zihintntl extension for non-temporal locality hints, as ratified in commit 0dc91f5 ("Zihintntl is ratified") of the riscv-isa-manual.
Rule 89
Exact value (
const):"zihpm"The standard Zihpm extension for hardware performance counters, as ratified in the 20191213 version of the unprivileged ISA specification.
Rule 90
Exact value (
const):"zimop"The standard Zimop extension version 1.0, as ratified in commit 58220614a5f ("Zimop is ratified/1.0") of the riscv-isa-manual.
Rule 91
Exact value (
const):"ztso"The standard Ztso extension for total store ordering, as ratified in commit 2e5236 ("Ztso is now ratified.") of the riscv-isa-manual.
Rule 92
Exact value (
const):"zvbb"The standard Zvbb extension for vectored basic bit-manipulation instructions, as ratified in commit 56ed795 ("Update riscv-crypto-spec-vector.adoc") of riscv-crypto.
Rule 93
Exact value (
const):"zvbc"The standard Zvbc extension for vectored carryless multiplication instructions, as ratified in commit 56ed795 ("Update riscv-crypto-spec-vector.adoc") of riscv-crypto.
Rule 94
Exact value (
const):"zve32f"The standard Zve32f extension for embedded processors, as ratified in commit 6f702a2 ("Vector extensions are now ratified") of riscv-v-spec.
Rule 95
Exact value (
const):"zve32x"The standard Zve32x extension for embedded processors, as ratified in commit 6f702a2 ("Vector extensions are now ratified") of riscv-v-spec.
Rule 96
Exact value (
const):"zve64d"The standard Zve64d extension for embedded processors, as ratified in commit 6f702a2 ("Vector extensions are now ratified") of riscv-v-spec.
Rule 97
Exact value (
const):"zve64f"The standard Zve64f extension for embedded processors, as ratified in commit 6f702a2 ("Vector extensions are now ratified") of riscv-v-spec.
Rule 98
Exact value (
const):"zve64x"The standard Zve64x extension for embedded processors, as ratified in commit 6f702a2 ("Vector extensions are now ratified") of riscv-v-spec.
Rule 99
Exact value (
const):"zvfbfmin"The standard Zvfbfmin extension for minimal support for vectored 16-bit half-precision brain floating-point instructions, as ratified in commit 4dc23d62 ("Added Chapter title to BF16") of riscv-isa-manual.
Rule 100
Exact value (
const):"zvfbfwma"The standard Zvfbfwma extension for vectored half-precision brain floating-point widening multiply-accumulate instructions, as ratified in commit 4dc23d62 ("Added Chapter title to BF16") of riscv-isa-manual.
Rule 101
Exact value (
const):"zvfh"The standard Zvfh extension for vectored half-precision floating-point instructions, as ratified in commit e2ccd05 ("Remove draft warnings from Zvfh[min]") of riscv-v-spec.
Rule 102
Exact value (
const):"zvfhmin"The standard Zvfhmin extension for vectored minimal half-precision floating-point instructions, as ratified in commit e2ccd05 ("Remove draft warnings from Zvfh[min]") of riscv-v-spec.
Rule 103
Exact value (
const):"zvkb"The standard Zvkb extension for vector cryptography bit-manipulation instructions, as ratified in commit 56ed795 ("Update riscv-crypto-spec-vector.adoc") of riscv-crypto.
Rule 104
Exact value (
const):"zvkg"The standard Zvkg extension for vector GCM/GMAC instructions, as ratified in commit 56ed795 ("Update riscv-crypto-spec-vector.adoc") of riscv-crypto.
Rule 105
Exact value (
const):"zvkn"The standard Zvkn extension for NIST algorithm suite instructions, as ratified in commit 56ed795 ("Update riscv-crypto-spec-vector.adoc") of riscv-crypto.
Rule 106
Exact value (
const):"zvknc"The standard Zvknc extension for NIST algorithm suite with carryless multiply instructions, as ratified in commit 56ed795 ("Update riscv-crypto-spec-vector.adoc") of riscv-crypto.
Rule 107
Exact value (
const):"zvkned"The standard Zvkned extension for Vector AES block cipher instructions, as ratified in commit 56ed795 ("Update riscv-crypto-spec-vector.adoc") of riscv-crypto.
Rule 108
Exact value (
const):"zvkng"The standard Zvkng extension for NIST algorithm suite with GCM instructions, as ratified in commit 56ed795 ("Update riscv-crypto-spec-vector.adoc") of riscv-crypto.
Rule 109
Exact value (
const):"zvknha"The standard Zvknha extension for NIST suite: vector SHA-2 secure, hash (SHA-256 only) instructions, as ratified in commit 56ed795 ("Update riscv-crypto-spec-vector.adoc") of riscv-crypto.
Rule 110
Exact value (
const):"zvknhb"The standard Zvknhb extension for NIST suite: vector SHA-2 secure, hash (SHA-256 and SHA-512) instructions, as ratified in commit 56ed795 ("Update riscv-crypto-spec-vector.adoc") of riscv-crypto.
Rule 111
Exact value (
const):"zvks"The standard Zvks extension for ShangMi algorithm suite instructions, as ratified in commit 56ed795 ("Update riscv-crypto-spec-vector.adoc") of riscv-crypto.
Rule 112
Exact value (
const):"zvksc"The standard Zvksc extension for ShangMi algorithm suite with carryless multiplication instructions, as ratified in commit 56ed795 ("Update riscv-crypto-spec-vector.adoc") of riscv-crypto.
Rule 113
Exact value (
const):"zvksed"The standard Zvksed extension for ShangMi suite: SM4 block cipher instructions, as ratified in commit 56ed795 ("Update riscv-crypto-spec-vector.adoc") of riscv-crypto.
Rule 114
Exact value (
const):"zvksh"The standard Zvksh extension for ShangMi suite: SM3 secure hash instructions, as ratified in commit 56ed795 ("Update riscv-crypto-spec-vector.adoc") of riscv-crypto.
Rule 115
Exact value (
const):"zvksg"The standard Zvksg extension for ShangMi algorithm suite with GCM instructions, as ratified in commit 56ed795 ("Update riscv-crypto-spec-vector.adoc") of riscv-crypto.
Rule 116
Exact value (
const):"zvkt"The standard Zvkt extension for vector data-independent execution latency, as ratified in commit 56ed795 ("Update riscv-crypto-spec-vector.adoc") of riscv-crypto.
Rule 117
Exact value (
const):"xandespmu"The Andes Technology performance monitor extension for counter overflow and privilege mode filtering. For more details, see Counter Related Registers in the AX45MP datasheet. https://www.andestech.com/wp-content/uploads/AX45MP-1C-Rev.-5.0.0-Datasheet.pdf
Rule 118
Exact value (
const):"xmipsexectl"The MIPS extension for execution control as documented in https://mips.com/wp-content/uploads/2025/06/P8700_Programmers_Reference_Manual_Rev1.84_5-31-2025.pdf
Rule 119
Exact value (
const):"xsfcease"SiFive CEASE Instruction Extensions Specification. See more details in https://www.sifive.com/document-file/freedom-u740-c000-manual
Rule 120
Exact value (
const):"xsfcflushdlone"SiFive L1D Cache Flush Instruction Extensions Specification. See more details in https://www.sifive.com/document-file/freedom-u740-c000-manual
Rule 121
Exact value (
const):"xsfpgflushdlone"SiFive PGFLUSH Instruction Extensions for the power management. The CPU will flush the L1D and enter the cease state after executing the instruction.
Rule 122
Exact value (
const):"xsfvqmaccdod"SiFive Int8 Matrix Multiplication Extensions Specification. See more details in https://www.sifive.com/document-file/sifive-int8-matrix-multiplication-extensions-specification
Rule 123
Exact value (
const):"xsfvqmaccqoq"SiFive Int8 Matrix Multiplication Extensions Specification. See more details in https://www.sifive.com/document-file/sifive-int8-matrix-multiplication-extensions-specification
Rule 124
Exact value (
const):"xsfvfnrclipxfqf"SiFive FP32-to-int8 Ranged Clip Instructions Extensions Specification. See more details in https://www.sifive.com/document-file/fp32-to-int8-ranged-clip-instructions
Rule 125
Exact value (
const):"xsfvfwmaccqqq"SiFive Matrix Multiply Accumulate Instruction Extensions Specification. See more details in https://www.sifive.com/document-file/matrix-multiply-accumulate-instruction
Rule 126
Exact value (
const):"xtheadvector"The T-HEAD specific 0.7.1 vector implementation as written in https://github.com/T-head-Semi/thead-extension-spec/blob/95358cb2cca9489361c61d335e03d3134b14133f/xtheadvector.adoc.
All of these rules must match (allOf) #
Rule 1
Condition (
if)Rule for matching array elements (
contains)Exact value (
const):"d"When the condition matches (
then)Rule for matching array elements (
contains)Exact value (
const):"f"
Rule 2
Condition (
if)Rule for matching array elements (
contains)Exact value (
const):"b"When the condition matches (
then)All of these rules must match (
allOf)Rule 1
Rule for matching array elements (
contains)Exact value (
const):"zba"Rule 2
Rule for matching array elements (
contains)Exact value (
const):"zbb"Rule 3
Rule for matching array elements (
contains)Exact value (
const):"zbs"
Rule 3
Condition (
if)All of these rules must match (
allOf)Rule 1
Rule for matching array elements (
contains)Exact value (
const):"zba"Rule 2
Rule for matching array elements (
contains)Exact value (
const):"zbb"Rule 3
Rule for matching array elements (
contains)Exact value (
const):"zbs"When the condition matches (
then)Rule for matching array elements (
contains)Exact value (
const):"b"
Rule 4
Condition (
if)Rule for matching array elements (
contains)At least one of these rules must match (
anyOf)Rule 1
Exact value (
const):"za64rs"Rule 2
Exact value (
const):"ziccrse"When the condition matches (
then)Exactly one of these rules must match (
oneOf)Rule 1
Rule for matching array elements (
contains)Exact value (
const):"zalrsc"Rule 2
Rule for matching array elements (
contains)Exact value (
const):"a"
Rule 5
Condition (
if)Rule for matching array elements (
contains)Exact value (
const):"zcb"When the condition matches (
then)Rule for matching array elements (
contains)Exact value (
const):"zca"
Rule 6
Condition (
if)Rule for matching array elements (
contains)Exact value (
const):"zcd"When the condition matches (
then)All of these rules must match (
allOf)Rule 1
Rule for matching array elements (
contains)Exact value (
const):"zca"Rule 2
Rule for matching array elements (
contains)Exact value (
const):"d"
Rule 7
Condition (
if)Rule for matching array elements (
contains)Exact value (
const):"zcf"When the condition matches (
then)All of these rules must match (
allOf)Rule 1
Rule for matching array elements (
contains)Exact value (
const):"zca"Rule 2
Rule for matching array elements (
contains)Exact value (
const):"f"
Rule 8
Condition (
if)Rule for matching array elements (
contains)Exact value (
const):"zcmop"When the condition matches (
then)Rule for matching array elements (
contains)Exact value (
const):"zca"
Rule 9
Condition (
if)Rule for matching array elements (
contains)Exact value (
const):"zfbfmin"When the condition matches (
then)Rule for matching array elements (
contains)Exact value (
const):"f"
Rule 10
Condition (
if)Rule for matching array elements (
contains)Exact value (
const):"ziccamoa"When the condition matches (
then)Exactly one of these rules must match (
oneOf)Rule 1
Rule for matching array elements (
contains)Exact value (
const):"zaamo"Rule 2
Rule for matching array elements (
contains)Exact value (
const):"a"
Rule 11
Condition (
if)Rule for matching array elements (
contains)Exact value (
const):"zvfbfmin"When the condition matches (
then)Exactly one of these rules must match (
oneOf)Rule 1
Rule for matching array elements (
contains)Exact value (
const):"v"Rule 2
Rule for matching array elements (
contains)Exact value (
const):"zve32f"
Rule 12
Condition (
if)Rule for matching array elements (
contains)Exact value (
const):"zvfbfwma"When the condition matches (
then)All of these rules must match (
allOf)Rule 1
Rule for matching array elements (
contains)Exact value (
const):"zfbfmin"Rule 2
Rule for matching array elements (
contains)Exact value (
const):"zvfbfmin"
Rule 13
Condition (
if)Rule for matching array elements (
contains)Exact value (
const):"zacas"When the condition matches (
then)Rule for matching array elements (
contains)Exact value (
const):"zaamo"
Rule 14
Condition (
if)Rule for matching array elements (
contains)Exact value (
const):"zve32x"When the condition matches (
then)Rule for matching array elements (
contains)Exact value (
const):"zicsr"
Rule 15
Condition (
if)Rule for matching array elements (
contains)Exact value (
const):"zve32f"When the condition matches (
then)All of these rules must match (
allOf)Rule 1
Rule for matching array elements (
contains)Exact value (
const):"f"Rule 2
Rule for matching array elements (
contains)Exact value (
const):"zve32x"
Rule 16
Condition (
if)Rule for matching array elements (
contains)Exact value (
const):"zve64x"When the condition matches (
then)Rule for matching array elements (
contains)Exact value (
const):"zve32x"
Rule 17
Condition (
if)Rule for matching array elements (
contains)Exact value (
const):"zve64f"When the condition matches (
then)All of these rules must match (
allOf)Rule 1
Rule for matching array elements (
contains)Exact value (
const):"f"Rule 2
Rule for matching array elements (
contains)Exact value (
const):"zve32f"Rule 3
Rule for matching array elements (
contains)Exact value (
const):"zve64x"
Rule 18
Condition (
if)Rule for matching array elements (
contains)Exact value (
const):"zve64d"When the condition matches (
then)All of these rules must match (
allOf)Rule 1
Rule for matching array elements (
contains)Exact value (
const):"d"Rule 2
Rule for matching array elements (
contains)Exact value (
const):"zve64f"
Rule 19
Condition (
if)Rule for matching array elements (
contains)At least one of these rules must match (
anyOf)Rule 1
Exact value (
const):"zvbc"Rule 2
Exact value (
const):"zvkn"Rule 3
Exact value (
const):"zvknc"Rule 4
Exact value (
const):"zvkng"Rule 5
Exact value (
const):"zvknhb"Rule 6
Exact value (
const):"zvksc"When the condition matches (
then)Rule for matching array elements (
contains)At least one of these rules must match (
anyOf)Rule 1
Exact value (
const):"v"Rule 2
Exact value (
const):"zve64x"
Rule 20
Condition (
if)Rule for matching array elements (
contains)At least one of these rules must match (
anyOf)Rule 1
Exact value (
const):"zvbb"Rule 2
Exact value (
const):"zvkb"Rule 3
Exact value (
const):"zvkg"Rule 4
Exact value (
const):"zvkned"Rule 5
Exact value (
const):"zvknha"Rule 6
Exact value (
const):"zvksed"Rule 7
Exact value (
const):"zvksh"Rule 8
Exact value (
const):"zvks"Rule 9
Exact value (
const):"zvkt"When the condition matches (
then)Rule for matching array elements (
contains)At least one of these rules must match (
anyOf)Rule 1
Exact value (
const):"v"Rule 2
Exact value (
const):"zve32x"
Rule 21
Condition (
if)Rule for matching array elements (
contains)At least one of these rules must match (
anyOf)Rule 1
Exact value (
const):"zclsd"When the condition matches (
then)Rule for matching array elements (
contains)All of these rules must match (
allOf)Rule 1
Exact value (
const):"zilsd"Rule 2
Exact value (
const):"zca"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
riscv,isa-extensions— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"zcf"
riscv,isa-base— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"rv64i"When the condition matches (
then) #Properties and child nodes (
properties)
riscv,isa-extensions— not listed as required hereThis rule must not match (
not)Rule for matching array elements (
contains)Exact value (
const):"zcf"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
riscv,isa-base— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"rv64i"When the condition matches (
then) #Properties and child nodes (
properties)
riscv,isa-extensions— not listed as required hereThis rule must not match (
not)Rule for matching array elements (
contains)Exact value (
const):"zilsd"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR MIT)
Line 62: single letter extensions, in canonical order
Line 125: multi-letter extensions, sorted alphanumerically
Line 813: vendor extensions, each extension sorted alphanumerically under the
Line 814: vendor they belong to. Vendors are sorted alphanumerically as well.
Line 816: Andes
Line 824: MIPS
Line 830: SiFive
Line 873: T-HEAD
Line 886: B comprises Zba, Zbb, and Zbs
Line 898: Zba, Zbb, Zbs together require B
Line 910: Za64rs and Ziccrse depend on Zalrsc or A
Line 922: Zcb depends on Zca
Line 929: Zcd depends on Zca and D
Line 939: Zcf depends on Zca and F
Line 949: Zcmop depends on Zca
Line 956: Zfbfmin depends on F
Line 963: Ziccamoa depends on Zaamo or A
Line 973: Zvfbfmin depends on V or Zve32f
Line 983: Zvfbfwma depends on Zfbfmin and Zvfbfmin
Line 993: Zacas depends on Zaamo
Line 1079: Zclsd depends on Zilsd and Zca
Line 1091: Zcf extension does not exist on rv64
Line 1106: Zilsd extension does not exist on rv64