Skip to content

target/riscv: implement query-cpu-definitions

Daniel Henrique Barboza qemu-devel qemu-riscv 3 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. v3 Latest3 patches 7 repliesApplied
  2. v24 patches 4 repliesSuperseded
  3. v14 patches 1 replySuperseded

Changes in v3 from the cover letter

- old patches 3 and 4: removed
- patch 3:
- add TYPE_RISCV_DYNAMIC_CPU
- use this type to set 'q_static' in riscv_cpu_add_definition()
- v2 link: https://lists.gnu.org/archive/html/qemu-devel/2023-04/msg01310.html

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3target/riscv: add CPU QOM headertarget/riscv/cpu-qom.h target/riscv/cpu.h+71 -451 reply
2/3target/riscv: add query-cpy-definitions supportqapi/machine-target.json target/riscv/meson.build target/riscv/riscv-qmp-cmds.c+59 -31 reply
3/3target/riscv: add TYPE_RISCV_DYNAMIC_CPUtarget/riscv/cpu-qom.h target/riscv/cpu.c target/riscv/riscv-qmp-cmds.c+21 -52 replies

Reviews trailers per patch

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

PatchRichard HendersonAlistair Francis
1/3R-b R-b
2/3R-b R-b
3/3R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/3] target/riscv: implement query-cpu-definitions

Hi,

In this v3 I removed patches 3 and 4 of v2.

Patch 3 now implements a new type that the generic CPUs (any, rv32, rv64, x-rv128) were converted to. This type will be used by query-cpu-definitions to determine if a given cpu is static or not based on its type. This approach was suggested by Richard Henderson in the v2 review.

Patches are based on top of Alistair's riscv-to-apply.next.

Changes from v2:
- old patches 3 and 4: removed
- patch 3:
- add TYPE_RISCV_DYNAMIC_CPU
- use this type to set 'q_static' in riscv_cpu_add_definition()
- v2 link: https://lists.gnu.org/archive/html/qemu-devel/2023-04/msg01310.html

Daniel Henrique Barboza (3):
target/riscv: add CPU QOM header
target/riscv: add query-cpy-definitions support
target/riscv: add TYPE_RISCV_DYNAMIC_CPU

 qapi/machine-target.json      |  6 ++-
 target/riscv/cpu-qom.h        | 70 +++++++++++++++++++++++++++++++++++
 target/riscv/cpu.c            | 20 ++++++++--
 target/riscv/cpu.h            | 46 +----------------------
 target/riscv/meson.build      |  3 +-
 target/riscv/riscv-qmp-cmds.c | 57 ++++++++++++++++++++++++++++
 6 files changed, 150 insertions(+), 52 deletions(-)
 create mode 100644 target/riscv/cpu-qom.h
 create mode 100644 target/riscv/riscv-qmp-cmds.c
Signature · 1 line
2.39.2