[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/13] hw/i386/pc: Include missing 'cpu.h' header
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 02/13] hw/i386/pc: Include missing 'cpu.h' header |
Date: |
Mon, 4 Sep 2023 14:43:13 +0200 |
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>
---
hw/i386/pc_piix.c | 1 +
hw/i386/pc_q35.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
index ce1ac95274..f0df12f6fa 100644
--- a/hw/i386/pc_piix.c
+++ b/hw/i386/pc_piix.c
@@ -69,6 +69,7 @@
#include "hw/mem/nvdimm.h"
#include "hw/i386/acpi-build.h"
#include "kvm/kvm-cpu.h"
+#include "target/i386/cpu.h"
#define MAX_IDE_BUS 2
#define XEN_IOAPIC_NUM_PIRQS 128ULL
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
index 43413dd1ac..8ecc78c822 100644
--- a/hw/i386/pc_q35.c
+++ b/hw/i386/pc_q35.c
@@ -58,6 +58,7 @@
#include "hw/hyperv/vmbus-bridge.h"
#include "hw/mem/nvdimm.h"
#include "hw/i386/acpi-build.h"
+#include "target/i386/cpu.h"
/* ICH9 AHCI has 6 ports */
#define MAX_SATA_PORTS 6
--
2.41.0
- [PATCH 00/13] target/i386: Cleanups around KVM declarations, Philippe Mathieu-Daudé, 2023/09/04
- [PATCH 01/13] hw/i386/pc: Include missing 'sysemu/tcg.h' header, Philippe Mathieu-Daudé, 2023/09/04
- [PATCH 02/13] hw/i386/pc: Include missing 'cpu.h' header,
Philippe Mathieu-Daudé <=
- [PATCH 03/13] hw/i386/fw_cfg: Include missing 'cpu.h' header, Philippe Mathieu-Daudé, 2023/09/04
- [PATCH 04/13] target/i386/helper: Restrict KVM declarations to system emulation, Philippe Mathieu-Daudé, 2023/09/04
- [PATCH 05/13] target/i386/cpu-sysemu: Inline kvm_apic_in_kernel(), Philippe Mathieu-Daudé, 2023/09/04
- [PATCH 06/13] target/i386: Remove unused KVM stubs, Philippe Mathieu-Daudé, 2023/09/04
- [PATCH 07/13] target/i386: Allow elision of kvm_enable_x2apic(), Philippe Mathieu-Daudé, 2023/09/04