"target/mips/cpu.h" is indirectly pulled in via the "system/kvm.h"
header, which next commit will remove. Explicitly include the "cpu.h"
header, otherwise we'd get:
hw/mips/mips_int.c:29:5: error: use of undeclared identifier 'MIPSCPU'
29 | MIPSCPU *cpu = opaque;
| ^
hw/mips/mips_int.c:30:5: error: use of undeclared identifier 'CPUMIPSState'
30 | CPUMIPSState *env = &cpu->env;
| ^
hw/mips/loongson3_virt.c:156:39: error: unknown type name 'MIPSCPU'
156 | static uint64_t get_cpu_freq_hz(const MIPSCPU *cpu)
| ^
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <
20260511135312.38705-4-philmd@linaro.org>
#include "system/runstate.h"
#include "system/system.h"
#include "qemu/error-report.h"
+#include "target/mips/cpu.h"
#define PM_CNTL_MODE 0x10
#include "hw/core/irq.h"
#include "system/kvm.h"
#include "kvm_mips.h"
+#include "target/mips/cpu.h"
static void cpu_mips_irq_request(void *opaque, int irq, int level)
{