mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-15 06:01:58 -06:00
typedefs: Restrict PCMachineState to 'hw/i386/pc.h'
The PCMachineState type is only used under hw/i386/. We don't need to forward-declare it for all architectures, restrict it to the X86 one. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20200908155530.249806-7-philmd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
c834596f79
commit
c8ed1cd784
2 changed files with 2 additions and 3 deletions
|
@ -20,7 +20,7 @@
|
||||||
* @boot_cpus: number of present VCPUs
|
* @boot_cpus: number of present VCPUs
|
||||||
* @smp_dies: number of dies per one package
|
* @smp_dies: number of dies per one package
|
||||||
*/
|
*/
|
||||||
struct PCMachineState {
|
typedef struct PCMachineState {
|
||||||
/*< private >*/
|
/*< private >*/
|
||||||
X86MachineState parent_obj;
|
X86MachineState parent_obj;
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ struct PCMachineState {
|
||||||
|
|
||||||
/* ACPI Memory hotplug IO base address */
|
/* ACPI Memory hotplug IO base address */
|
||||||
hwaddr memhp_io_base;
|
hwaddr memhp_io_base;
|
||||||
};
|
} PCMachineState;
|
||||||
|
|
||||||
#define PC_MACHINE_ACPI_DEVICE_PROP "acpi-device"
|
#define PC_MACHINE_ACPI_DEVICE_PROP "acpi-device"
|
||||||
#define PC_MACHINE_MAX_RAM_BELOW_4G "max-ram-below-4g"
|
#define PC_MACHINE_MAX_RAM_BELOW_4G "max-ram-below-4g"
|
||||||
|
|
|
@ -90,7 +90,6 @@ typedef struct PCIExpressDevice PCIExpressDevice;
|
||||||
typedef struct PCIExpressHost PCIExpressHost;
|
typedef struct PCIExpressHost PCIExpressHost;
|
||||||
typedef struct PCIHostDeviceAddress PCIHostDeviceAddress;
|
typedef struct PCIHostDeviceAddress PCIHostDeviceAddress;
|
||||||
typedef struct PCIHostState PCIHostState;
|
typedef struct PCIHostState PCIHostState;
|
||||||
typedef struct PCMachineState PCMachineState;
|
|
||||||
typedef struct PostcopyDiscardState PostcopyDiscardState;
|
typedef struct PostcopyDiscardState PostcopyDiscardState;
|
||||||
typedef struct Property Property;
|
typedef struct Property Property;
|
||||||
typedef struct PropertyInfo PropertyInfo;
|
typedef struct PropertyInfo PropertyInfo;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue