Skip to content

riscv: add extension properties for all cpus

Daniel Henrique Barboza qemu-devel qemu-riscv 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2target/riscv: add riscv_cpu_get_name()target/riscv/cpu.c target/riscv/cpu.h target/riscv/tcg/tcg-cpu.c+15 -11 reply
2/2target/riscv/tcg-cpu.c: add extension properties for all cpustarget/riscv/tcg/tcg-cpu.c+50 -143 replies

Reviews trailers per patch

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

PatchAlistair Francis
1/2R-b
2/2R-b

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

Read the v1 thread

Cover letter [PATCH 0/2] riscv: add extension properties for all cpus

Hi,

At this moment we do not expose extension properties for vendor CPUs because that would allow users to enable extensions in them. But that comes at a cost: if we were to add an API that shows all CPU properties, e.g. qmp-query-cpu-model-expansion, we won't be able to show the extension state of vendor CPUs.

We're in a good spot to revisit this decision. We have the required abstractions in place to be able to expose user properties for vendor CPUs and, at the same time, forbid users to enable extensions for those CPUs. As a bonus, we'll allow users to be able to disable extensions for vendor CPUs, which can be useful for testing/debugging.

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

Daniel Henrique Barboza (2):
target/riscv: add riscv_cpu_get_name() target/riscv/tcg-cpu.c: add extension properties for all cpus

 target/riscv/cpu.c         | 11 ++++++
 target/riscv/cpu.h         |  1 +
 target/riscv/tcg/tcg-cpu.c | 68 +++++++++++++++++++++++++++++---------
 3 files changed, 65 insertions(+), 15 deletions(-)
Signature · 1 line
2.41.0