qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/6] Improve the U/S/H extension related check
@ 2022-07-12  6:32 Weiwei Li
  2022-07-12  6:32 ` [PATCH v2 1/6] target/riscv: add check for supported privilege modes conbinations Weiwei Li
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Weiwei Li @ 2022-07-12  6:32 UTC (permalink / raw)
  To: palmer, alistair.francis, bin.meng, qemu-riscv, qemu-devel
  Cc: wangjunqiang, lazyparser, Weiwei Li

This patchset tries to improve the U/S/H related check:
* add check for the supported privilege modes conbinations: only supporting M,
S mode is not a suggested combination
* add check for "H extension depends on I extension"
* add check for "H extension implicitly requires S mode"
* add check for csrs only existed when U mode is supported
* fix and simplify the checks in hmode/hmode32

Any suggestions are welcome.

v2:
* update patch 3 to make the newlines start at the same position as above line
* update patch 5 to add check for "H extension implicitly requires S mode"

Weiwei Li (6):
  target/riscv: add check for supported privilege modes conbinations
  target/riscv: H extension depends on I extension
  target/riscv: fix checkpatch warning may triggered in csr_ops table
  target/riscv: add check for csrs existed with U extension
  target/riscv: fix checks in hmode/hmode32
  target/riscv: simplify the check in hmode to resue the check in
    riscv_csrrw_check

 target/riscv/cpu.c |  17 ++
 target/riscv/csr.c | 491 ++++++++++++++++++++++++---------------------
 2 files changed, 279 insertions(+), 229 deletions(-)

-- 
2.17.1



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

end of thread, other threads:[~2022-07-18 13:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-12  6:32 [PATCH v2 0/6] Improve the U/S/H extension related check Weiwei Li
2022-07-12  6:32 ` [PATCH v2 1/6] target/riscv: add check for supported privilege modes conbinations Weiwei Li
     [not found]   ` <20220718090221.aqeiudcugpdqaef6@kamzik>
2022-07-18 11:36     ` Weiwei Li
2022-07-12  6:32 ` [PATCH v2 2/6] target/riscv: H extension depends on I extension Weiwei Li
2022-07-18  9:05   ` Andrew Jones
2022-07-12  6:32 ` [PATCH v2 3/6] target/riscv: fix checkpatch warning may triggered in csr_ops table Weiwei Li
2022-07-18  1:47   ` Alistair Francis
2022-07-18  9:11   ` Andrew Jones
2022-07-12  6:32 ` [PATCH v2 4/6] target/riscv: add check for csrs existed with U extension Weiwei Li
2022-07-18  9:49   ` Andrew Jones
2022-07-12  6:32 ` [PATCH v2 5/6] target/riscv: fix checks in hmode/hmode32 Weiwei Li
2022-07-18  9:26   ` Andrew Jones
2022-07-12  6:32 ` [PATCH v2 6/6] target/riscv: simplify the check in hmode to resue the check in riscv_csrrw_check Weiwei Li

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