All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/9] Add Zvfbfa extension support
@ 2026-01-08 13:26 Max Chou
  2026-01-08 13:26 ` [PATCH v2 1/9] target/riscv: Add cfg properities for Zvfbfa extensions Max Chou
                   ` (8 more replies)
  0 siblings, 9 replies; 15+ messages in thread
From: Max Chou @ 2026-01-08 13:26 UTC (permalink / raw)
  To: qemu-devel, qemu-riscv
  Cc: Palmer Dabbelt, Alistair Francis, Weiwei Li,
	Daniel Henrique Barboza, Liu Zhiwei, Max Chou

This patch series adds support for the RISC-V Zvfbfa extension, which
provides additional BF16 vector compute support.

The isa spec of Zvfbfa extension is not ratified yet, so this patch series
is based on the latest draft of the spec (v0.1) and make the Zvfbfa extension
as an experimental extension.

The Zvfbfa extension adds a 1-bit field, altfmt, to the vtype CSR in
bit position 8.
The Zvfbfa extension requires the Zve32f and Zfbfmin extensions.

Specification:
  https://github.com/aswaterman/riscv-misc/blob/main/isa/zvfbfa.adoc

Changes from v1:
  - Removed RFC designation from the series
  - Updated commit message for patch 3 (VTYPE CSR field - altfmt) to
    clearly explain:
    * VEDIV field removal (bits 8-9) since EDIV extension is not
      planned to be part of the base V extension
    * ALTFMT field addition at bit 8
    * RESERVED field change from bit 10 to bit 9
  - Added new patch 4: Introduce reset_ill_vtype helper function to
    consolidate illegal vtype CSR reset logic

v1: <20250915084037.1816893-1-max.chou@sifive.com>

Max Chou (9):
  target/riscv: Add cfg properities for Zvfbfa extensions
  target/riscv: Add the Zvfbfa extension implied rule
  target/riscv: rvv: Add new VTYPE CSR field - altfmt
  target/riscv: rvv: Introduce reset_ill_vtype to reset illegal vtype
    CSR
  target/riscv: Use the tb->cs_bqse as the extend tb flags.
  target/riscv: Introduce altfmt into DisasContext
  target/riscv: Introduce BF16 canonical NaN for Zvfbfa extension
  target/riscv: rvv: Support Zvfbfa vector bf16 operations
  target/riscv: Expose Zvfbfa extension as an experimental cpu property

 include/exec/translation-block.h           |    1 +
 target/riscv/cpu.c                         |   15 +-
 target/riscv/cpu.h                         |    7 +-
 target/riscv/cpu_cfg_fields.h.inc          |    1 +
 target/riscv/helper.h                      |   60 ++
 target/riscv/insn_trans/trans_rvbf16.c.inc |    2 +-
 target/riscv/insn_trans/trans_rvv.c.inc    | 1002 ++++++++++++--------
 target/riscv/internals.h                   |    1 +
 target/riscv/tcg/tcg-cpu.c                 |   15 +-
 target/riscv/translate.c                   |   11 +
 target/riscv/vector_helper.c               |  379 +++++++-
 11 files changed, 1087 insertions(+), 407 deletions(-)

-- 
2.43.7



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2026-01-16  2:00 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-08 13:26 [PATCH v2 0/9] Add Zvfbfa extension support Max Chou
2026-01-08 13:26 ` [PATCH v2 1/9] target/riscv: Add cfg properities for Zvfbfa extensions Max Chou
2026-01-08 13:26 ` [PATCH v2 2/9] target/riscv: Add the Zvfbfa extension implied rule Max Chou
2026-01-08 13:26 ` [PATCH v2 3/9] target/riscv: rvv: Add new VTYPE CSR field - altfmt Max Chou
2026-01-08 13:26 ` [PATCH v2 4/9] target/riscv: rvv: Introduce reset_ill_vtype to reset illegal vtype CSR Max Chou
2026-01-12 18:27   ` Daniel Henrique Barboza
2026-01-08 13:26 ` [PATCH v2 5/9] target/riscv: Use the tb->cs_bqse as the extend tb flags Max Chou
2026-01-12 18:28   ` Daniel Henrique Barboza
2026-01-16  1:59     ` Max Chou
2026-01-08 13:26 ` [PATCH v2 6/9] target/riscv: Introduce altfmt into DisasContext Max Chou
2026-01-12 18:29   ` Daniel Henrique Barboza
2026-01-08 13:26 ` [PATCH v2 7/9] target/riscv: Introduce BF16 canonical NaN for Zvfbfa extension Max Chou
2026-01-08 13:26 ` [PATCH v2 8/9] target/riscv: rvv: Support Zvfbfa vector bf16 operations Max Chou
2026-01-08 13:26 ` [PATCH v2 9/9] target/riscv: Expose Zvfbfa extension as an experimental cpu property Max Chou
2026-01-12 18:30   ` Daniel Henrique Barboza

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.