4.1. RVA23 Profiles
The RVA23 profiles are intended to align implementations of RISC-V 64-bit application processors to allow binary software ecosystems to rely on a large set of guaranteed extensions and a small number of discoverable coarse-grain options. It is explicitly a non-goal of RVA23 to allow more hardware implementation flexibility by supporting only a minimal set of features and a large number of fine-grain extensions.
Only user-mode (RVA23U64) and supervisor-mode (RVA23S64) profiles are specified in this family.
4.1.1. RVA23U64 Profile
The RVA23U64 profile specifies the ISA features available to user-mode execution environments in 64-bit applications processors. This is the most important profile within the application processor family in terms of the amount of software that targets this profile.
4.1.1.1. RVA23U64 Mandatory Base
RV64I is the mandatory base ISA for RVA23U64 and is little-endian. As
per the unprivileged architecture specification, the ECALL
instruction causes a requested trap to the execution environment.
4.1.1.2. RVA23U64 Mandatory Extensions
The following mandatory extensions were present in RVA22U64.
-
M Integer multiplication and division.
-
A Atomic instructions.
-
F Single-precision floating-point instructions.
-
D Double-precision floating-point instructions.
-
C Compressed instructions.
-
B Bit-manipulation instructions.
-
Zicsr CSR instructions. These are implied by presence of F.
-
Zicntr Base counters and timers.
-
Zihpm Hardware performance counters.
-
Ziccif Main memory regions with both the cacheability and coherence PMAs must support instruction fetch, and any instruction fetches of naturally aligned power-of-2 sizes up to min(ILEN,XLEN) (i.e., 32 bits for RVA23) are atomic.
-
Ziccrse Main memory regions with both the cacheability and coherence PMAs must support RsrvEventual.
-
Ziccamoa Main memory regions with both the cacheability and coherence PMAs must support all atomics in A.
-
Zicclsm Misaligned loads and stores to main memory regions with both the cacheability and coherence PMAs must be supported.
-
Za64rs Reservation sets are contiguous, naturally aligned, and a maximum of 64 bytes.
-
Zihintpause Pause hint.
-
Zic64b Cache blocks must be 64 bytes in size, naturally aligned in the address space.
-
Zicbom Cache-block management instructions.
-
Zicbop Cache-block prefetch instructions.
-
Zicboz Cache-Block Zero Instructions.
-
Zfhmin Half-precision floating-point.
-
Zkt Data-independent execution latency.
The following mandatory extensions are new in RVA23U64:
-
V Vector extension.
| V was optional in RVA22U64. |
-
Zvfhmin Vector minimal half-precision floating-point.
-
Zvbb Vector basic bit-manipulation instructions.
-
Zvkt Vector data-independent execution latency.
-
Zihintntl Non-temporal locality hints.
-
Zicond Integer conditional operations.
-
Zimop may-be-operations.
-
Zcmop Compressed may-be-operations.
-
Zcb Additional compressed instructions.
-
Zfa Additional floating-Point instructions.
-
Zawrs Wait-on-reservation-set instructions.
-
Supm Pointer masking, with the execution environment providing a means to select PMLEN=0 and PMLEN=7 at minimum.
4.1.1.3. RVA23U64 Optional Extensions
4.1.1.3.1. Localized Options
The following localized options are new in RVA23U64:
-
Zvkng Vector crypto NIST algorithms with GCM.
-
Zvksg Vector crypto ShangMi algorithms with GCM.
| The scalar crypto extensions Zkn and Zks that were options in RVA22 are not options in RVA23. The goal is for both hardware and software vendors to move to use vector crypto, as vectors are now mandatory and vector crypto is substantially faster than scalar crypto. |
| We have included only the Zvkng/Zvksg options with GCM to standardize on a higher performance crypto alternative. Zvbc is listed as a development option for use in other algorithms, and will become mandatory. Scalar Zbc is now listed as an expansion option, i.e., it will probably not become mandatory. |
4.1.1.3.2. Development Options
The following are new development options intended to become mandatory in a future RVA profile.
-
Zabha Byte and halfword atomic memory operations.
-
Zacas Compare-and-Swap instructions.
-
Ziccamoc Main memory regions with both the cacheability and coherence PMAs must provide
AMOCASQlevel PMA support.
| Ziccamoc is a new profile-defined extension that ensures Compare and Swap instructions are properly supported in main memory regions. The extension will be added to the PMA section of the privileged architecture manual. |
-
Zvbc Vector carryless multiplication.
-
Zama16b Misaligned loads, stores, and AMOs to main memory regions that do not cross a naturally aligned 16-byte boundary are atomic.
| Zama16b is a new profile-defined extension that represents the presence of the new Misaligned Atomicity Granule feature added in Sm1p13. The extension will be added to the PMA section of the privileged architecture manual. |
4.1.1.3.3. Expansion Options
The following expansion options were also present in RVA22U64:
-
Zfh Scalar half-precision floating-point.
The following are new expansion options in RVA23U64:
-
Zbc Scalar carryless multiply.
-
Zicfilp Landing Pads.
-
Zicfiss Shadow Stack.
-
Zvfh Vector half-precision floating-point.
-
Zfbfmin Scalar BF16 converts.
-
Zvfbfmin Vector BF16 converts.
-
Zvfbfwma Vector BF16 widening mul-add.
4.1.2. RVA23S64 Profile
The RVA23S64 profile specifies the ISA features available to a supervisor-mode execution environment in 64-bit applications processors. RVA23S64 is based on privileged architecture version 1.13.
4.1.2.1. RVA23S64 Mandatory Base
RV64I is the mandatory base ISA for RVA23S64 and is little-endian.
The ECALL instruction operates as per the unprivileged architecture
specification. An ECALL in user mode causes a contained trap to
supervisor mode. An ECALL in supervisor mode causes a requested
trap to the execution environment.
4.1.2.2. RVA23S64 Mandatory Extensions
The following unprivileged extensions are mandatory:
-
The RVA23S64 mandatory unprivileged extensions include all the mandatory unprivileged extensions in RVA23U64.
-
Zifencei Instruction-Fetch Fence.
| Zifencei is mandated as it is the only standard way to support instruction-cache coherence in RVA23 application processors. A new instruction-cache coherence mechanism is under development (tentatively named Zjid) which might be added as an option in the future. |
The following privileged extensions are mandatory:
-
Ss1p13 Supervisor architecture version 1.13.
| Ss1p13 supersedes Ss1p12. |
The following privileged extensions were also mandatory in RVA22S64:
-
Svbare The
satpmode Bare must be supported. -
Sv39 Page-based 39-bit virtual-Memory system.
-
Svade Page-fault exceptions are raised when a page is accessed when A bit is clear, or written when D bit is clear.
-
Ssccptr Main memory regions with both the cacheability and coherence PMAs must support hardware page-table reads.
-
Sstvecd
stvec.MODEmust be capable of holding the value 0 (Direct). Whenstvec.MODE=Direct,stvec.BASEmust be capable of holding any valid four-byte-aligned address. -
Sstvala
stvalmust be written with the faulting virtual address for load, store, and instruction page-fault, access-fault, and misaligned exceptions, and for breakpoint exceptions other than those caused by execution of theEBREAKorC.EBREAKinstructions. For virtual-instruction and illegal-instruction exceptions,stvalmust be written with the faulting instruction. -
Sscounterenw For any
hpmcounterthat is not read-only zero, the corresponding bit inscounterenmust be writable. -
Svpbmt Page-based memory types
-
Svinval Fine-grained address-translation cache invalidation.
The following are new mandatory extensions:
-
Svnapot NAPOT translation contiguity.
| Svnapot was optional in RVA22. |
-
Sstc supervisor-mode timer interrupts.
| Sstc was optional in RVA22. |
-
Sscofpmf count overflow and mode-based filtering.
-
Ssnpm Pointer masking, with
senvcfg.PMEandhenvcfg.PMEsupporting, at minimum, settings PMLEN=0 and PMLEN=7. -
Ssu64xl
sstatus.UXLmust be capable of holding the value 2 (i.e., UXLEN=64 must be supported).
| Ssu64xl was optional in RVA22. |
-
Sha The augmented hypervisor extension.
| Sha is a new profile-defined extension that captures the full set of features that are mandated to be supported along with the H extension. There is no change to the features added by including the hypervisor extension in a profile—the new name is solely to simplify the text of the profiles. The definition has been added to the RVA22 profile text, where the hypervisor extension was first added, but will be added to the hypervisor section of the combined ISA manual. |
Sha comprises the following extensions:
-
H The hypervisor extension.
-
Ssstateen Supervisor-mode view of the state-enable extension. The supervisor-mode (
sstateen0-3) and hypervisor-mode (hstateen0-3) state-enable registers must be provided. -
Shcounterenw For any
hpmcounterthat is not read-only zero, the corresponding bit inhcounterenmust be writable. -
Shvstvala
vstvalmust be written in all cases described above forstval. -
Shtvala
htvalmust be written with the faulting guest physical address in all circumstances permitted by the ISA. -
Shvstvecd
vstvec.MODEmust be capable of holding the value 0 (Direct). Whenvstvec.MODE=Direct,vstvec.BASEmust be capable of holding any valid four-byte-aligned address. -
Shvsatpa All translation modes supported in
satpmust be supported invsatp. -
Shgatpa For each supported virtual memory scheme SvNN supported in
satp, the corresponding hgatp SvNNx4 mode must be supported. Thehgatpmode Bare must also be supported.
| The augmented hypervisor extension (exactly equivalet to Sha) was optional in RVA22. |
4.1.2.3. RVA23S64 Optional Extensions
4.1.2.3.3. Expansion Options
The following privileged expansion options were present in RVA22S64:
-
Sv48 Page-based 48-bit virtual-memory system.
-
Sv57 Page-based 57-bit virtual-memory system.
-
Zkr Entropy CSR.
The following are new privileged expansion options in RVA23S64
-
Svadu Hardware A/D bit updates.
-
Sdtrig Debug triggers.
-
Ssstrict No non-conforming extensions are present. Attempts to execute unimplemented opcodes or access unimplemented CSRs in the standard or reserved encoding spaces raises an illegal instruction exception that results in a contained trap to the supervisor-mode trap handler.
| Ssstrict is a new profile-defined extension that restricts the behavior of reserved encoding spaces. The extension will be added to the supervisor chapter of the privileged architecture. |
| Ssstrict does not prescribe behavior for the custom encoding spaces or CSRs. |
| Ssstrict definition applies to the execution environment claiming to be RVA23-compatible, which must have the hypervisor extension. That execution environment will take a contained trap to supervisor-mode (however that trap is implemented, including, but not limited to, emulation/delegation in the outer execution environment). Ssstrict (and all the other RVA23 mandates and options) do not apply to any guest VMs run by a hypervisor. An RVA23 hypervisor can provide guest VMs that are also RVA23-compatible but with an expanded set of emulated standard instructions. An RVA23 hypervisor can also choose to implement guest VMs that are not RVA23 compatible (e.g., lacking H, or only RVA20). |
-
Svvptc Transitions from invalid to valid PTEs will be visible in bounded time without an explicit memory-management fence.
-
Sspm Supervisor-mode pointer masking, with the supervisor execution environment providing a means to select PMLEN=0 and PMLEN=7 at minimum.