qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] target/riscv: Fix mstatus.MPP related support
@ 2023-04-07  1:47 Weiwei Li
  2023-04-07  1:47 ` [PATCH v3 1/3] target/riscv: Fix the mstatus.MPP value after executing MRET Weiwei Li
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Weiwei Li @ 2023-04-07  1:47 UTC (permalink / raw)
  To: qemu-riscv, qemu-devel
  Cc: palmer, alistair.francis, bin.meng, dbarboza, zhiwei_liu,
	wangjunqiang, lazyparser, Weiwei Li

This patchset tries to fix some problems in current implementation for mstatus.MPP

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

v3:
* add patch 2 to remove PRV_H, and use PRV_RESERVED instead in some cases
* improve legalize_mpp and assert error message in patch 3

v2:
* Modify commit message and add comment to specify MPP field becomes a WARL field since priv version 1.11 in patch 2
* rebase on riscv-to-apply.next

Weiwei Li (3):
  target/riscv: Fix the mstatus.MPP value after executing MRET
  target/riscv: Use PRV_RESERVED instead of PRV_H
  target/riscv: Legalize MPP value in write_mstatus

 target/riscv/cpu.h        |  2 +-
 target/riscv/cpu_bits.h   |  2 +-
 target/riscv/cpu_helper.c |  8 ++------
 target/riscv/csr.c        | 32 ++++++++++++++++++++++++++++++++
 target/riscv/gdbstub.c    |  2 +-
 target/riscv/op_helper.c  |  5 +++--
 6 files changed, 40 insertions(+), 11 deletions(-)

-- 
2.25.1



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

end of thread, other threads:[~2023-04-11  5:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-07  1:47 [PATCH v3 0/3] target/riscv: Fix mstatus.MPP related support Weiwei Li
2023-04-07  1:47 ` [PATCH v3 1/3] target/riscv: Fix the mstatus.MPP value after executing MRET Weiwei Li
2023-04-07  1:47 ` [PATCH v3 2/3] target/riscv: Use PRV_RESERVED instead of PRV_H Weiwei Li
2023-04-07 16:31   ` Richard Henderson
2023-04-11  1:49   ` Alistair Francis
2023-04-07  1:47 ` [PATCH v3 3/3] target/riscv: Legalize MPP value in write_mstatus Weiwei Li
2023-04-07 16:32   ` Richard Henderson
2023-04-11  1:50   ` Alistair Francis
2023-04-11  5:34 ` [PATCH v3 0/3] target/riscv: Fix mstatus.MPP related support 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).