diff --git a/qemu/include/hw/i386/pc.h b/qemu/include/hw/i386/pc.h index c149ed7a..c67571d6 100644 --- a/qemu/include/hw/i386/pc.h +++ b/qemu/include/hw/i386/pc.h @@ -1,6 +1,7 @@ #ifndef HW_PC_H #define HW_PC_H +#include "qemu/typedefs.h" #include "hw/boards.h" /** @@ -23,9 +24,6 @@ struct PCMachineClass { MachineClass parent_class; }; -typedef struct PCMachineState PCMachineState; -typedef struct PCMachineClass PCMachineClass; - #define TYPE_PC_MACHINE "generic-pc-machine" #define PC_MACHINE(uc, obj) \ OBJECT_CHECK(uc, PCMachineState, (obj), TYPE_PC_MACHINE) diff --git a/qemu/include/qemu/typedefs.h b/qemu/include/qemu/typedefs.h index d9759fc0..516a1ec5 100644 --- a/qemu/include/qemu/typedefs.h +++ b/qemu/include/qemu/typedefs.h @@ -50,6 +50,8 @@ typedef struct ISABus ISABus; typedef struct ISADevice ISADevice; typedef struct SMBusDevice SMBusDevice; typedef struct PCIHostState PCIHostState; +typedef struct PCMachineState PCMachineState; +typedef struct PCMachineClass PCMachineClass; typedef struct PCIExpressHost PCIExpressHost; typedef struct PCIBus PCIBus; typedef struct PCIDevice PCIDevice;