qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 1/4] target/riscv: add CPU QOM header


From: Richard Henderson
Subject: Re: [PATCH v2 1/4] target/riscv: add CPU QOM header
Date: Mon, 10 Apr 2023 18:56:02 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0

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<dbarboza@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.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]