Skip to content

target/riscv: support Zfh, Zfhmin extension v0.1

[email protected] qemu-devel qemu-riscv 5 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. v6 Latest8 patches 1 replyApplied
  2. v58 patches 5 repliesSuperseded
  3. v48 patches 3 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v36 patches12 repliesSuperseded
v26 patches6 repliesSuperseded

Changes in v6 from the cover letter

* Rebase on riscv-to-apply.next.

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/8target/riscv: zfh: half-precision load and storetarget/riscv/cpu.h target/riscv/insn32.decode target/riscv/insn_trans/trans_rvzfh.c.inc +1 more+78 -00 replies
2/8target/riscv: zfh: half-precision computationaltarget/riscv/fpu_helper.c target/riscv/helper.h target/riscv/insn32.decode +2 more+255 -00 replies
3/8target/riscv: zfh: half-precision convert and movetarget/riscv/fpu_helper.c target/riscv/helper.h target/riscv/insn32.decode +2 more+396 -00 replies
4/8target/riscv: zfh: half-precision floating-point comparetarget/riscv/fpu_helper.c target/riscv/helper.h target/riscv/insn32.decode +1 more+64 -00 replies
5/8target/riscv: zfh: half-precision floating-point classifytarget/riscv/fpu_helper.c target/riscv/helper.h target/riscv/insn32.decode +1 more+20 -00 replies
6/8target/riscv: zfh: add Zfh cpu propertytarget/riscv/cpu.c+1 -00 replies
7/8target/riscv: zfh: implement zfhmin extensiontarget/riscv/cpu.h target/riscv/insn_trans/trans_rvzfh.c.inc target/riscv/translate.c+17 -80 replies
8/8target/riscv: zfh: add Zfhmin cpu propertytarget/riscv/cpu.c+1 -00 replies

Reviews trailers per patch

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

PatchRichard HendersonAlistair Francis
1/8R-b
2/8R-b R-b
3/8R-b A-b
4/8R-b R-b
5/8R-b R-b
6/8R-b
7/8R-b R-b
8/8R-b

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

Read the v6 thread

Cover letter [PATCH v6 0/8] target/riscv: support Zfh, Zfhmin extension v0.1

From: Frank Chang <[email protected]>

Zfh - Half width floating point
Zfhmin - Subset of half width floating point

Zfh, Zfhmin v0.1 is now in public review period and is required by RVV extension:
https://groups.google.com/a/groups.riscv.org/g/isa-dev/c/63gDCinXTwE/m/871Wm9XIBQAJ

Zfh, Zfhmin can be enabled with -cpu option: Zfh=true and Zfhmin=true respectively.

The port is available at:
https://github.com/sifive/qemu/tree/zfh-upstream-v6

Note: This patchset depends on another patchset listed in Based-on
section below so it is not able to be built unless the patchset is applied.

Changelog:

v6:
* Rebase on riscv-to-apply.next.

v5:
* Rebase on riscv-to-apply.next.

v4:
* Spilt Zfh, Zfhmin cpu properties related changes into individual patches.

v3:
* Use the renamed softfloat min/max APIs: *_minimum_number()

    and *_maximum_number().

* Pick softfloat min/max APIs based on CPU privilege spec version.
* Add braces for if statements in REQUIRE_ZFH() and REQUIRE_ZFH_OR_ZFHMIN().
* Rearrange the positions of Zfh and Zfhmin cpu properties.

v2:
* Use {get,dest}_gpr APIs.
* Add Zfhmin extension.

Based-on: <[email protected]>

Frank Chang (3):
target/riscv: zfh: add Zfh cpu property
target/riscv: zfh: implement zfhmin extension
target/riscv: zfh: add Zfhmin cpu property

Kito Cheng (5):
target/riscv: zfh: half-precision load and store target/riscv: zfh: half-precision computational target/riscv: zfh: half-precision convert and move target/riscv: zfh: half-precision floating-point compare target/riscv: zfh: half-precision floating-point classify

 target/riscv/cpu.c                        |   2 +
 target/riscv/cpu.h                        |   2 +
 target/riscv/fpu_helper.c                 | 180 ++++++++
 target/riscv/helper.h                     |  29 ++
 target/riscv/insn32.decode                |  38 ++
 target/riscv/insn_trans/trans_rvzfh.c.inc | 537 ++++++++++++++++++++++
 target/riscv/internals.h                  |  16 +
 target/riscv/translate.c                  |  20 +
 8 files changed, 824 insertions(+)
 create mode 100644 target/riscv/insn_trans/trans_rvzfh.c.inc

--
2.31.1