qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 00/13] Support UXL field in mstatus
@ 2021-08-05  2:52 LIU Zhiwei
  2021-08-05  2:53 ` [RFC PATCH 01/13] target/riscv: Add UXL to tb flags LIU Zhiwei
                   ` (13 more replies)
  0 siblings, 14 replies; 41+ messages in thread
From: LIU Zhiwei @ 2021-08-05  2:52 UTC (permalink / raw)
  To: qemu-devel, qemu-riscv
  Cc: palmer, richard.henderson, bin.meng, Alistair.Francis, LIU Zhiwei

This patch set implements UXL field in mstatus register. Programmer can change
UXLEN by writting to this field. So that you can run a 32 bit program
on a 64 bit CPU.

This patch set depends on one patch set by Richard Henderson
https://lists.gnu.org/archive/html/qemu-riscv/2021-07/msg00059.html.

LIU Zhiwei (13):
  target/riscv: Add UXL to tb flags
  target/riscv: Support UXL32 for branch instructions
  target/riscv: Support UXL32 on 64-bit cpu for load/store
  target/riscv: Support UXL32 for slit/sltiu
  target/riscv: Support UXL32 for shift instruction
  target/riscv: Fix div instructions
  target/riscv: Support UXL32 for RVM
  target/riscv: Support UXL32 for vector instructions
  target/riscv: Support UXL32 for atomic instructions
  target/riscv: Support UXL32 for float instructions
  target/riscv: Fix srow
  target/riscv: Support UXL32 for RVB
  target/riscv: Changing the width of U-mode CSR

 target/riscv/cpu.h                      |  18 +++
 target/riscv/csr.c                      |  42 +++++-
 target/riscv/insn_trans/trans_rva.c.inc |  36 ++++-
 target/riscv/insn_trans/trans_rvb.c.inc |  51 +++++--
 target/riscv/insn_trans/trans_rvd.c.inc |   4 +-
 target/riscv/insn_trans/trans_rvf.c.inc |   4 +-
 target/riscv/insn_trans/trans_rvi.c.inc |  62 ++++++--
 target/riscv/insn_trans/trans_rvm.c.inc |  24 ++-
 target/riscv/insn_trans/trans_rvv.c.inc |  44 +++---
 target/riscv/translate.c                | 186 ++++++++++++++++++++----
 target/riscv/vector_helper.c            |  54 +++++--
 11 files changed, 414 insertions(+), 111 deletions(-)

-- 
2.17.1



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

end of thread, other threads:[~2021-08-12  7:21 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-05  2:52 [RFC PATCH 00/13] Support UXL field in mstatus LIU Zhiwei
2021-08-05  2:53 ` [RFC PATCH 01/13] target/riscv: Add UXL to tb flags LIU Zhiwei
2021-08-05  6:00   ` Alistair Francis
2021-08-05 19:01   ` Richard Henderson
2021-08-06  2:49     ` LIU Zhiwei
2021-08-05  2:53 ` [RFC PATCH 02/13] target/riscv: Support UXL32 for branch instructions LIU Zhiwei
2021-08-05 19:06   ` Richard Henderson
2021-08-09  1:45     ` LIU Zhiwei
2021-08-09 19:34       ` Richard Henderson
2021-08-11 14:57         ` LIU Zhiwei
2021-08-11 17:56           ` Richard Henderson
2021-08-11 22:40             ` LIU Zhiwei
2021-08-12  4:42               ` Richard Henderson
2021-08-12  5:03                 ` LIU Zhiwei
2021-08-12  6:12                   ` Richard Henderson
2021-08-12  7:20                     ` LIU Zhiwei
2021-08-05  2:53 ` [RFC PATCH 03/13] target/riscv: Support UXL32 on 64-bit cpu for load/store LIU Zhiwei
2021-08-05 19:08   ` Richard Henderson
2021-08-09  1:50     ` LIU Zhiwei
2021-08-05  2:53 ` [RFC PATCH 04/13] target/riscv: Support UXL32 for slit/sltiu LIU Zhiwei
2021-08-05 19:09   ` Richard Henderson
2021-08-09  7:28     ` LIU Zhiwei
2021-08-05  2:53 ` [RFC PATCH 05/13] target/riscv: Support UXL32 for shift instruction LIU Zhiwei
2021-08-05 22:17   ` Richard Henderson
2021-08-09  7:51     ` LIU Zhiwei
2021-08-05  2:53 ` [RFC PATCH 06/13] target/riscv: Fix div instructions LIU Zhiwei
2021-08-05 22:18   ` Richard Henderson
2021-08-09  7:53     ` LIU Zhiwei
2021-08-05  2:53 ` [RFC PATCH 07/13] target/riscv: Support UXL32 for RVM LIU Zhiwei
2021-08-05  2:53 ` [RFC PATCH 08/13] target/riscv: Support UXL32 for vector instructions LIU Zhiwei
2021-08-05  2:53 ` [RFC PATCH 09/13] target/riscv: Support UXL32 for atomic instructions LIU Zhiwei
2021-08-05  2:53 ` [RFC PATCH 10/13] target/riscv: Support UXL32 for float instructions LIU Zhiwei
2021-08-05  2:53 ` [RFC PATCH 11/13] target/riscv: Fix srow LIU Zhiwei
2021-08-05  2:53 ` [RFC PATCH 12/13] target/riscv: Support UXL32 for RVB LIU Zhiwei
2021-08-05  2:53 ` [RFC PATCH 13/13] target/riscv: Changing the width of U-mode CSR LIU Zhiwei
2021-08-05  6:01 ` [RFC PATCH 00/13] Support UXL field in mstatus Alistair Francis
2021-08-05  7:14   ` LIU Zhiwei
2021-08-05  7:20     ` Bin Meng
2021-08-05  8:10       ` LIU Zhiwei
2021-08-06 10:05     ` Alistair Francis
2021-08-09  1:25       ` LIU Zhiwei

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).