Skip to content

Commit

Permalink
Merge pull request #188 from riscv/b-ext
Browse files Browse the repository at this point in the history
Use B extension in profiles, rather than Zba_Zbb_Zbs.
  • Loading branch information
kasanovic authored Oct 7, 2024
2 parents b0eced2 + a6d7ffd commit 6aecbe4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
11 changes: 7 additions & 4 deletions src/profiles.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,13 @@ instructions in the mandatory A extension.

The following mandatory extensions are new for RVA22U64.

- *B* Bit-manipulation instructions.

NOTE: The B extension comprises the Zba, Zbb, and Zbs extensions.
At the time of RVA22U64's ratification, the B extension had not yet been
defined, and so RVA22U64 explicitly mandated Zba, Zbb, and Zbs instead.
Mandating B is equivalent.

- *Zihpm* Hardware performance counters.

NOTE: Zihpm was optional in RVA20U64.
Expand All @@ -736,10 +743,6 @@ should use the instruction whenever it would make sense and that
implementors are expected to exploit this information to optimize
hardware execution.

- *Zba* Address computation.
- *Zbb* Basic bit manipulation.
- *Zbs* Single-bit instructions.

- *Zic64b* Cache blocks must be 64 bytes in size, naturally aligned in the
address space.

Expand Down
5 changes: 2 additions & 3 deletions src/rva23-profile.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ The following mandatory extensions were present in RVA22U64.
- *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.
Expand All @@ -115,9 +116,6 @@ The following mandatory extensions were present in RVA22U64.
- *Za64rs* Reservation sets are contiguous, naturally aligned, and a
maximum of 64 bytes.
- *Zihintpause* Pause hint.
- *Zba* Address generation.
- *Zbb* Basic bit-manipulation.
- *Zbs* Single-bit instructions.
- *Zic64b* Cache blocks must be 64 bytes in size, naturally aligned in the
address space.
- *Zicbom* Cache-block management instructions.
Expand Down Expand Up @@ -394,6 +392,7 @@ of the https://github.com/riscv/riscv-isa-manual[RISC-V Instruction Set Manual].
- H Hypervisor Extension
- Q Extension for Quad-Precision Floating-Point
- C Extension for Compressed Instructions
- B Extension for Bit Manipulation
- V Extension for Vector Computation
- Zifencei Instruction-Fetch Fence Extension
- Zicsr Extension for Control and Status Register Access
Expand Down
5 changes: 2 additions & 3 deletions src/rvb23-profile.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ RVA22U64.
- *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.
Expand All @@ -108,9 +109,6 @@ RVA22U64.
- *Za64rs* Reservation sets are contiguous, naturally aligned, and a
maximum of 64 bytes.
- *Zihintpause* Pause hint.
- *Zba* Address generation.
- *Zbb* Basic bit-manipulation.
- *Zbs* Single-bit instructions.
- *Zic64b* Cache blocks must be 64 bytes in size, naturally aligned in the
address space.
- *Zicbom* Cache-block management instructions.
Expand Down Expand Up @@ -380,6 +378,7 @@ of the https://github.com/riscv/riscv-isa-manual[RISC-V Instruction Set Manual].
- H Hypervisor Extension
- Q Extension for Quad-Precision Floating-Point
- C Extension for Compressed Instructions
- B Extension for Bit Manipulation
- V Extension for Vector Computation
- Zifencei Instruction-Fetch Fence Extension
- Zicsr Extension for Control and Status Register Access
Expand Down

0 comments on commit 6aecbe4

Please sign in to comment.