hw/i386/pc: Include missing 'cpu.h' header

Both pc_piix.c and pc_q35.c files use CPU_VERSION_LEGACY
which is defined in "target/i386/cpu.h".

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20230904124325.79040-3-philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Philippe Mathieu-Daudé 2023-09-04 14:43:13 +02:00 committed by Paolo Bonzini
parent e44d989aae
commit d1aa2f5094
2 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,7 @@
#include "hw/mem/nvdimm.h" #include "hw/mem/nvdimm.h"
#include "hw/i386/acpi-build.h" #include "hw/i386/acpi-build.h"
#include "kvm/kvm-cpu.h" #include "kvm/kvm-cpu.h"
#include "target/i386/cpu.h"
#define MAX_IDE_BUS 2 #define MAX_IDE_BUS 2
#define XEN_IOAPIC_NUM_PIRQS 128ULL #define XEN_IOAPIC_NUM_PIRQS 128ULL

View File

@ -58,6 +58,7 @@
#include "hw/hyperv/vmbus-bridge.h" #include "hw/hyperv/vmbus-bridge.h"
#include "hw/mem/nvdimm.h" #include "hw/mem/nvdimm.h"
#include "hw/i386/acpi-build.h" #include "hw/i386/acpi-build.h"
#include "target/i386/cpu.h"
/* ICH9 AHCI has 6 ports */ /* ICH9 AHCI has 6 ports */
#define MAX_SATA_PORTS 6 #define MAX_SATA_PORTS 6