Skip to content

Add RISC-V RVV Zve32f and Zve64f extensions

[email protected] qemu-devel qemu-riscv 2 versions – Applied

Status from this message: Applied to riscv-to-apply.next

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest17 patches 2 repliesApplied
  2. v117 patches 19 repliesSuperseded

Changes in v2 from the cover letter

* Replace hardcoded TARGET_RISCV32 macro with get_xl().

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/17target/riscv: rvv-1.0: Add Zve64f extension into RISC-Vtarget/riscv/cpu.c target/riscv/cpu.h target/riscv/cpu_helper.c +2 more+16 -20 replies
2/17target/riscv: rvv-1.0: Add Zve64f support for configuration insnstarget/riscv/insn_trans/trans_rvv.c.inc+4 -20 replies
3/17target/riscv: rvv-1.0: Add Zve64f support for load and store insnstarget/riscv/insn_trans/trans_rvv.c.inc+15 -41 reply
4/17target/riscv: rvv-1.0: Add Zve64f support for vmulh variant insnstarget/riscv/insn_trans/trans_rvv.c.inc+33 -60 replies
5/17target/riscv: rvv-1.0: Add Zve64f support for vsmul.vv and vsmul.vx insnstarget/riscv/insn_trans/trans_rvv.c.inc+25 -20 replies
6/17target/riscv: rvv-1.0: Add Zve64f support for scalar fp insnstarget/riscv/insn_trans/trans_rvv.c.inc+31 -100 replies
7/17target/riscv: rvv-1.0: Add Zve64f support for single-width fp reduction insnstarget/riscv/insn_trans/trans_rvv.c.inc+2 -10 replies
8/17target/riscv: rvv-1.0: Add Zve64f support for widening type-convert insnstarget/riscv/insn_trans/trans_rvv.c.inc+25 -70 replies
9/17target/riscv: rvv-1.0: Add Zve64f support for narrowing type-convert insnstarget/riscv/insn_trans/trans_rvv.c.inc+6 -30 replies
10/17target/riscv: rvv-1.0: Allow Zve64f extension to be turned ontarget/riscv/cpu.c+1 -00 replies
11/17target/riscv: rvv-1.0: Add Zve32f extension into RISC-Vtarget/riscv/cpu.c target/riscv/cpu.h target/riscv/cpu_helper.c +2 more+7 -40 replies
12/17target/riscv: rvv-1.0: Add Zve32f support for configuration insnstarget/riscv/insn_trans/trans_rvv.c.inc+2 -20 replies
13/17target/riscv: rvv-1.0: Add Zve32f support for scalar fp insnstarget/riscv/insn_trans/trans_rvv.c.inc+21 -00 replies
14/17target/riscv: rvv-1.0: Add Zve32f support for single-width fp reduction insnstarget/riscv/insn_trans/trans_rvv.c.inc+1 -00 replies
15/17target/riscv: rvv-1.0: Add Zve32f support for widening type-convert insnstarget/riscv/insn_trans/trans_rvv.c.inc+18 -00 replies
16/17target/riscv: rvv-1.0: Add Zve32f support for narrowing type-convert insnstarget/riscv/insn_trans/trans_rvv.c.inc+3 -00 replies
17/17target/riscv: rvv-1.0: Allow Zve32f extension to be turned ontarget/riscv/cpu.c+1 -00 replies

Reviews trailers per patch

All 17 patches have a Reviewed-by or Acked-by.

PatchAlistair Francis
1/17R-b
2/17R-b
3/17R-b
4/17R-b
5/17R-b
6/17R-b
7/17R-b
8/17R-b
9/17R-b
10/17R-b
11/17R-b
12/17R-b
13/17R-b
14/17R-b
15/17R-b
16/17R-b
17/17R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/17] Add RISC-V RVV Zve32f and Zve64f extensions

From: Frank Chang <[email protected]>

In RVV v1.0 spec, several Zve* vector extensions for embedded processors are defined in Chapter 18.2:
https://github.com/riscv/riscv-v-spec/blob/v1.0/v-spec.adoc#zve-vector-extensions-for-embedded-processors

This patchset implements Zve32f and Zve64f extensions.

The port is available at:
https://github.com/sifive/qemu/tree/rvv-zve32f-zve64f-upstream-v2

Zve32f can be enabled with -cpu option: Zve32f=true and Zve64f can be enabled with -cpu option: Zve64f=true. V is not required to be enabled explicitly.

Here's the inclusion diagram for the six standard vector extensions quoted from Nick Knight <[email protected]>:

      V
      |
    Zve64d
      |
    Zve64f
   /      \
Zve64x   Zve32f
   \      /
    Zve32x

Changelog:

v2:
* Replace hardcoded TARGET_RISCV32 macro with get_xl().

Frank Chang (17):
target/riscv: rvv-1.0: Add Zve64f extension into RISC-V target/riscv: rvv-1.0: Add Zve64f support for configuration insns target/riscv: rvv-1.0: Add Zve64f support for load and store insns target/riscv: rvv-1.0: Add Zve64f support for vmulh variant insns target/riscv: rvv-1.0: Add Zve64f support for vsmul.vv and vsmul.vx
insns
target/riscv: rvv-1.0: Add Zve64f support for scalar fp insns target/riscv: rvv-1.0: Add Zve64f support for single-width fp
reduction insns
target/riscv: rvv-1.0: Add Zve64f support for widening type-convert
insns
target/riscv: rvv-1.0: Add Zve64f support for narrowing type-convert
insns
target/riscv: rvv-1.0: Allow Zve64f extension to be turned on target/riscv: rvv-1.0: Add Zve32f extension into RISC-V target/riscv: rvv-1.0: Add Zve32f support for configuration insns target/riscv: rvv-1.0: Add Zve32f support for scalar fp insns target/riscv: rvv-1.0: Add Zve32f support for single-width fp
reduction insns
target/riscv: rvv-1.0: Add Zve32f support for widening type-convert
insns
target/riscv: rvv-1.0: Add Zve32f support for narrowing type-convert
insns
target/riscv: rvv-1.0: Allow Zve32f extension to be turned on

 target/riscv/cpu.c                      |   6 +
 target/riscv/cpu.h                      |   2 +
 target/riscv/cpu_helper.c               |   5 +-
 target/riscv/csr.c                      |   6 +-
 target/riscv/insn_trans/trans_rvv.c.inc | 219 ++++++++++++++++++++----
 target/riscv/translate.c                |   4 +
 6 files changed, 205 insertions(+), 37 deletions(-)

--
2.31.1