On 4/10/23 09:52, Daniel Henrique Barboza wrote:
QMP CPU commands are usually implemented by a separated file,
<arch>-qmp-cmds.c, to allow them to be build only for softmmu targets.
This file uses a CPU QOM header with basic QOM declarations for the
arch.

We'll introduce query-cpu-definitions for RISC-V CPUs in the next patch,
but first we need a cpu-qom.h header with the definitions of
TYPE_RISCV_CPU and RISCVCPUClass declarations. These were moved from
cpu.h to the new file, and cpu.h now includes "cpu-qom.h".

Signed-off-by: Daniel Henrique Barboza<dbarb...@ventanamicro.com>
---
  target/riscv/cpu-qom.h | 70 ++++++++++++++++++++++++++++++++++++++++++
  target/riscv/cpu.h     | 46 +--------------------------
  2 files changed, 71 insertions(+), 45 deletions(-)
  create mode 100644 target/riscv/cpu-qom.h

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to