qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] target/riscv: Remove redundant insn length check for zama16b
@ 2024-08-02  3:16 LIU Zhiwei
  2024-08-02  3:16 ` [PATCH v2 1/3] " LIU Zhiwei
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: LIU Zhiwei @ 2024-08-02  3:16 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-riscv, palmer, alistair.francis, dbarboza, liwei1518,
	bmeng.cn, zhiwei_liu

In this patch set, we remove the redundant insn length check for zama16b as the
specification clarified that zama16b applies to compressed encodings[1].

Richard points out we should obey the MXLEN requirement for F/D/Q loads or stores,
so we add this constraint for trans_fld/fsd.

I notice that we have a too strict aligment implementation for fld/fsd when xlen < 64.
It will hide some problems. So relex it from MO_ATOM_IFALIGN to MO_ATOM_NONE.

[1]: https://github.com/riscv/riscv-isa-manual/pull/1557

v2<-v1:
  1. Add mxlen check for fld when applies zama16b.
  2. Relax fld/fsd alignment for MO_ATOM_IFALIGN to MO_ATOM_NONE.

LIU Zhiwei (3):
  target/riscv: Remove redundant insn length check for zama16b
  target/riscv: Add MXLEN check for F/D/Q applies to zama16b
  target/riscv: Relax fld alignment requirement

 target/riscv/insn_trans/trans_rvd.c.inc | 25 +++++++++++++++++++++----
 target/riscv/insn_trans/trans_rvf.c.inc |  4 ++--
 target/riscv/insn_trans/trans_rvi.c.inc |  4 ++--
 3 files changed, 25 insertions(+), 8 deletions(-)

-- 
2.25.1



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

end of thread, other threads:[~2024-08-02  6:53 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-02  3:16 [PATCH v2 0/3] target/riscv: Remove redundant insn length check for zama16b LIU Zhiwei
2024-08-02  3:16 ` [PATCH v2 1/3] " LIU Zhiwei
2024-08-02  5:38   ` Richard Henderson
2024-08-02  6:31     ` LIU Zhiwei
2024-08-02  3:16 ` [PATCH v2 2/3] target/riscv: Add MXLEN check for F/D/Q applies to zama16b LIU Zhiwei
2024-08-02  5:47   ` Richard Henderson
2024-08-02  6:21     ` LIU Zhiwei
2024-08-02  6:45       ` Richard Henderson
2024-08-02  6:53         ` LIU Zhiwei
2024-08-02  6:42     ` LIU Zhiwei
2024-08-02  6:46       ` Richard Henderson
2024-08-02  3:16 ` [PATCH v2 3/3] target/riscv: Relax fld alignment requirement LIU Zhiwei
2024-08-02  5:52   ` Richard Henderson
2024-08-02  6:27     ` LIU Zhiwei
2024-08-02  6:49       ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).