qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] target/riscv: Fix the xlen for data address when MPRV=1
@ 2023-06-14  3:25 Weiwei Li
  2023-06-14  3:25 ` [PATCH 1/2] target/riscv: Add additional xlen for " Weiwei Li
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Weiwei Li @ 2023-06-14  3:25 UTC (permalink / raw)
  To: qemu-riscv, qemu-devel
  Cc: palmer, alistair.francis, bin.meng, dbarboza, zhiwei_liu,
	wangjunqiang, lazyparser, Weiwei Li

Currently, we use the current env->xl as the xlen for address. However, the xlen for data address should be changed to the xlen related to MPP when MPRV=1.

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

Weiwei Li (2):
  target/riscv: Add additional xlen for address when MPRV=1
  target/riscv: update cur_pmbase/pmmask based on mode affected by MPRV

 target/riscv/cpu.h        | 49 +++++++++++++++++++++++++++++++++------
 target/riscv/cpu_helper.c |  8 +++++--
 target/riscv/csr.c        | 27 +++++++++++++++------
 target/riscv/translate.c  | 13 ++++++++++-
 4 files changed, 80 insertions(+), 17 deletions(-)

-- 
2.25.1



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

end of thread, other threads:[~2023-06-23  2:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-14  3:25 [PATCH 0/2] target/riscv: Fix the xlen for data address when MPRV=1 Weiwei Li
2023-06-14  3:25 ` [PATCH 1/2] target/riscv: Add additional xlen for " Weiwei Li
2023-06-14  9:18   ` Daniel Henrique Barboza
2023-06-14  3:25 ` [PATCH 2/2] target/riscv: update cur_pmbase/pmmask based on mode affected by MPRV Weiwei Li
2023-06-14  9:18   ` Daniel Henrique Barboza
2023-06-23  2:22 ` [PATCH 0/2] target/riscv: Fix the xlen for data address when MPRV=1 Alistair Francis

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