target/riscv: add CPU QOM header
commit85840bd2e032bc412c0cf58c2fb08c1b1f114309
authorDaniel Henrique Barboza <dbarboza@ventanamicro.com>
Tue, 11 Apr 2023 18:35:09 +0000 (11 15:35 -0300)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 5 May 2023 00:49:50 +0000 (5 10:49 +1000)
tree969f7fc84e77446c881aaa44aaf0e4a009fa8fbf
parent2e6dba15cd8d3901df6f2e5ebe4db84349100f63
target/riscv: add CPU QOM header

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 <dbarboza@ventanamicro.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20230411183511.189632-2-dbarboza@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu-qom.h [new file with mode: 0644]
target/riscv/cpu.h