All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/6] support subsets of Float-Point in Integer Registers extensions
@ 2022-01-07 11:27 ` Weiwei Li
  0 siblings, 0 replies; 18+ messages in thread
From: Weiwei Li @ 2022-01-07 11:27 UTC (permalink / raw)
  To: richard.henderson, palmer, alistair.francis, bin.meng,
	qemu-riscv, qemu-devel
  Cc: wangjunqiang, Weiwei Li, lazyparser, ardxwe

This patchset implements RISC-V Float-Point in Integer Registers extensions(Version 1.0.0-rc), which includes Zfinx, Zdinx, Zhinx and Zhinxmin extension. 

Specification:
https://github.com/riscv/riscv-zfinx/blob/main/zfinx-1.0.0-rc.pdf

The port is available here:
https://github.com/plctlab/plct-qemu/tree/plct-zfinx-upstream-v3

To test this implementation, specify cpu argument with 'Zfinx =true,Zdinx=true,Zhinx=true,Zhinxmin=true' with 'g=false,f=false,d=false,Zfh=false,Zfhmin=false'
This implementation can pass gcc tests, ci result can be found in https://ci.rvperf.org/job/plct-qemu-zfinx-upstream/.

v3:
* delete unused reset for mstatus.FS
* use positive test for RVF instead of negative test for ZFINX
* replace get_ol with get_xl
* use tcg_gen_concat_tl_i64 to unify tcg_gen_concat_i32_i64 and tcg_gen_deposit_i64

v2:
* hardwire mstatus.FS to zero when enable zfinx
* do register-pair check at the begin of translation
* optimize partial implemention as suggested

Weiwei Li (6):
  target/riscv: add cfg properties for zfinx, zdinx and zhinx{min}
  target/riscv: hardwire mstatus.FS to zero when enable zfinx
  target/riscv: add support for zfinx
  target/riscv: add support for zdinx
  target/riscv: add support for zhinx/zhinxmin
  target/riscv: expose zfinx, zdinx, zhinx{min} properties

 target/riscv/cpu.c                        |  16 ++
 target/riscv/cpu.h                        |   4 +
 target/riscv/cpu_helper.c                 |   6 +-
 target/riscv/csr.c                        |  21 +-
 target/riscv/fpu_helper.c                 | 178 ++++++------
 target/riscv/helper.h                     |   4 +-
 target/riscv/insn_trans/trans_rvd.c.inc   | 319 ++++++++++++++++-----
 target/riscv/insn_trans/trans_rvf.c.inc   | 314 +++++++++++++-------
 target/riscv/insn_trans/trans_rvzfh.c.inc | 332 +++++++++++++++-------
 target/riscv/internals.h                  |  32 ++-
 target/riscv/translate.c                  | 155 ++++++++++
 11 files changed, 1010 insertions(+), 371 deletions(-)

-- 
2.17.1



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

end of thread, other threads:[~2022-01-08  2:13 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-07 11:27 [PATCH v3 0/6] support subsets of Float-Point in Integer Registers extensions Weiwei Li
2022-01-07 11:27 ` Weiwei Li
2022-01-07 11:27 ` [PATCH v3 1/6] target/riscv: add cfg properties for zfinx, zdinx and zhinx{min} Weiwei Li
2022-01-07 11:27   ` Weiwei Li
2022-01-07 11:27 ` [PATCH v3 2/6] target/riscv: hardwire mstatus.FS to zero when enable zfinx Weiwei Li
2022-01-07 11:27   ` Weiwei Li
2022-01-07 20:48   ` Richard Henderson
2022-01-08  1:17     ` Weiwei Li
2022-01-07 11:27 ` [PATCH v3 3/6] target/riscv: add support for zfinx Weiwei Li
2022-01-07 11:27   ` Weiwei Li
2022-01-07 11:27 ` [PATCH v3 4/6] target/riscv: add support for zdinx Weiwei Li
2022-01-07 11:27   ` Weiwei Li
2022-01-07 20:54   ` Richard Henderson
2022-01-08  1:14     ` Weiwei Li
2022-01-07 11:27 ` [PATCH v3 5/6] target/riscv: add support for zhinx/zhinxmin Weiwei Li
2022-01-07 11:27   ` Weiwei Li
2022-01-07 11:27 ` [PATCH v3 6/6] target/riscv: expose zfinx, zdinx, zhinx{min} properties Weiwei Li
2022-01-07 11:27   ` Weiwei Li

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.