Skip to content

riscv: RVA22 profiles support

Daniel Henrique Barboza qemu-devel qemu-riscv 15 versions – Applied

Status from this message: Applied to riscv-to-apply.next

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v13 Latest26 patches 21 repliesApplied
  2. v1218 patches 0 repliesSuperseded
  3. v1118 patches 4 repliesSuperseded
Earlier versions · 12
VersionPostedPatchesRepliesStatus
v1018 patches3 repliesSuperseded
v919 patches7 repliesSuperseded
v819 patches11 repliesSuperseded
v716 patches8 repliesSuperseded
v612 patches14 repliesSuperseded
v510 patches4 repliesSuperseded
v49 patches11 repliesSuperseded
v3 posting 2/24 patches4 repliesApplied
v3 posting 1/26 patches16 repliesSuperseded
v2 posting 2/26 patches5 repliesSuperseded
v2 posting 1/210 patches13 repliesSuperseded
v16 patches9 repliesSuperseded

Patches in v13 Applied

#Subject and filesSizeRepliesApplied
1/26target/riscv: create TYPE_RISCV_VENDOR_CPUtarget/riscv/cpu-qom.h target/riscv/cpu.c+22 -90 replies
2/26target/riscv/tcg: do not use "!generic" CPU checkstarget/riscv/tcg/tcg-cpu.c+9 -40 replies
3/26target/riscv/tcg: update priv_ver on user_set extensionstarget/riscv/tcg/tcg-cpu.c+32 -01 reply
4/26target/riscv: add rv64i CPUtarget/riscv/cpu-qom.h target/riscv/cpu.c+48 -01 reply
5/26target/riscv: add zicbop extension flaghw/riscv/virt.c target/riscv/cpu.c target/riscv/cpu_cfg.h+10 -01 reply
6/26target/riscv/tcg: add 'zic64b' supporttarget/riscv/cpu.c target/riscv/cpu.h target/riscv/cpu_cfg.h +1 more+34 -01 reply
7/26riscv-qmp-cmds.c: expose named features in cpu_model_expansiontarget/riscv/riscv-qmp-cmds.c+25 -51 reply
8/26target/riscv: add rva22u64 profile definitiontarget/riscv/cpu.c target/riscv/cpu.h+44 -00 replies
9/26target/riscv/kvm: add 'rva22u64' flag as unavailabletarget/riscv/kvm/kvm-cpu.c+6 -10 replies
10/26target/riscv/tcg: add user flag for profile supporttarget/riscv/tcg/tcg-cpu.c+80 -01 reply
11/26target/riscv/tcg: add MISA user options hashtarget/riscv/tcg/tcg-cpu.c+14 -10 replies
12/26target/riscv/tcg: add riscv_cpu_write_misa_bit()target/riscv/tcg/tcg-cpu.c+18 -140 replies
13/26target/riscv/tcg: handle profile MISA bitstarget/riscv/tcg/tcg-cpu.c+21 -00 replies
14/26target/riscv/tcg: add hash table insert helperstarget/riscv/tcg/tcg-cpu.c+16 -121 reply
15/26target/riscv/tcg: honor user choice for G MISA bitstarget/riscv/tcg/tcg-cpu.c+48 -250 replies
16/26target/riscv/tcg: validate profiles during finalizetarget/riscv/tcg/tcg-cpu.c+69 -01 reply
17/26riscv-qmp-cmds.c: add profile flags in cpu-model-expansiontarget/riscv/riscv-qmp-cmds.c+14 -01 reply
18/26target/riscv: add 'rva22u64' CPUtarget/riscv/cpu-qom.h target/riscv/cpu.c target/riscv/tcg/tcg-cpu.c+27 -01 reply
19/26target/riscv: implement svadetarget/riscv/cpu.c target/riscv/cpu_cfg.h target/riscv/tcg/tcg-cpu.c+7 -01 reply
20/26target/riscv: add priv ver restriction to profilestarget/riscv/cpu.c target/riscv/cpu.h target/riscv/tcg/tcg-cpu.c+34 -01 reply
21/26target/riscv/cpu.c: finalize satp_mode earliertarget/riscv/cpu.c+8 -81 reply
22/26target/riscv/cpu.c: add riscv_cpu_is_32bit()target/riscv/cpu.c target/riscv/cpu.h+7 -11 reply
23/26target/riscv: add satp_mode profile supporttarget/riscv/cpu.c target/riscv/cpu.h target/riscv/tcg/tcg-cpu.c+42 -01 reply
24/26target/riscv: add 'parent' in profile descriptiontarget/riscv/cpu.c target/riscv/cpu.h target/riscv/tcg/tcg-cpu.c+15 -11 reply
25/26target/riscv: add RVA22S64 profiletarget/riscv/cpu.c+32 -01 reply
26/26target/riscv: add rva22s64 cputarget/riscv/cpu-qom.h target/riscv/cpu.c+9 -01 reply

Reviews trailers per patch

All 26 patches have a Reviewed-by or Acked-by.

PatchAndrew JonesAlistair FrancisLIU ZhiweiPhilippe Mathieu-Daudé
1/26R-b R-b
2/26R-b R-b
3/26R-b R-b
4/26R-b R-b
5/26R-b R-b
6/26R-b R-b
7/26R-b R-b
8/26R-b A-b
9/26R-b R-b R-b
10/26R-b R-b
11/26R-b R-b R-b
12/26R-b R-b R-b
13/26R-b R-b R-b
14/26R-b R-b
15/26R-b R-b
16/26R-b R-b
17/26R-b R-b
18/26R-b R-b
19/26R-b R-b
20/26R-b R-b
21/26R-b R-b
22/26R-b R-b R-b
23/26R-b A-b
24/26R-b R-b
25/26R-b R-b
26/26R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v13 thread

Cover letter [PATCH v13 00/26] riscv: RVA22 profiles support

Hi,

This is a merge of the two profile series:

"[PATCH for-9.0 v12 00/18] riscv: rv64i/rva22u64 CPUs, RVA22U64 profile support" "[PATCH for-9.0 v2 0/8] target/riscv: implement RVA22S64 profile"

I'm sending them together since the second series is dependent on the first.

Quick summary of the major features added:

- A new rv64i CPU type. This is a CPU that has only RVI enabled;

- 'rva22u64' and 'rva22s64' profile flags. They were designed to be used with the 'rv64i' CPU but can be used with other generic CPUs like rv64;

- Two new profile CPUs: 'rva22u64' and 'rva22s64'. A profile CPU is an alias of '-cpu rv64,profile=on' and it's the most convenient way of using profiles. E.g to launch an rva22s64 'virt' machine:

./qemu-system-riscv64 -M virt -cpu rva22s64 (...)

To test an application with an rva22u64 profile with linux-user mode:

./qemu-riscv64 -cpu rva22u64 (...)

The series can also be fetch via:

https://gitlab.com/danielhb/qemu/-/tree/rva22_v13

Patches rebased on top of Alistair riscv-to-apply.next.

All patches acked.

Daniel Henrique Barboza (26):
target/riscv: create TYPE_RISCV_VENDOR_CPU target/riscv/tcg: do not use "!generic" CPU checks target/riscv/tcg: update priv_ver on user_set extensions target/riscv: add rv64i CPU
target/riscv: add zicbop extension flag target/riscv/tcg: add 'zic64b' support riscv-qmp-cmds.c: expose named features in cpu_model_expansion target/riscv: add rva22u64 profile definition target/riscv/kvm: add 'rva22u64' flag as unavailable target/riscv/tcg: add user flag for profile support target/riscv/tcg: add MISA user options hash target/riscv/tcg: add riscv_cpu_write_misa_bit() target/riscv/tcg: handle profile MISA bits target/riscv/tcg: add hash table insert helpers target/riscv/tcg: honor user choice for G MISA bits target/riscv/tcg: validate profiles during finalize riscv-qmp-cmds.c: add profile flags in cpu-model-expansion target/riscv: add 'rva22u64' CPU
target/riscv: implement svade
target/riscv: add priv ver restriction to profiles target/riscv/cpu.c: finalize satp_mode earlier target/riscv/cpu.c: add riscv_cpu_is_32bit() target/riscv: add satp_mode profile support target/riscv: add 'parent' in profile description target/riscv: add RVA22S64 profile
target/riscv: add rva22s64 cpu

 hw/riscv/virt.c               |   5 +
 target/riscv/cpu-qom.h        |   5 +
 target/riscv/cpu.c            | 201 +++++++++++++--
 target/riscv/cpu.h            |  18 ++
 target/riscv/cpu_cfg.h        |   4 +
 target/riscv/kvm/kvm-cpu.c    |   7 +-
 target/riscv/riscv-qmp-cmds.c |  44 +++-
 target/riscv/tcg/tcg-cpu.c    | 450 +++++++++++++++++++++++++++++++---
 8 files changed, 672 insertions(+), 62 deletions(-)
Signature · 1 line
2.43.0