summaryrefslogtreecommitdiff
path: root/include/hw/i386
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2020-09-08 17:55:30 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2020-09-30 19:11:36 +0200
commitc8ed1cd7843c17a264dd578b3220c6398904858a (patch)
tree6f1fb0770cda0d2d66e47af603b9ca093832c171 /include/hw/i386
parentc834596f7916c3ec0719c1ab341186bae17ebba0 (diff)
downloadqemu-c8ed1cd7843c17a264dd578b3220c6398904858a.zip
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>
Diffstat (limited to 'include/hw/i386')
-rw-r--r--include/hw/i386/pc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
index c71b02cafd..8699029053 100644
--- a/include/hw/i386/pc.h
+++ b/include/hw/i386/pc.h
@@ -20,7 +20,7 @@
* @boot_cpus: number of present VCPUs
* @smp_dies: number of dies per one package
*/
-struct PCMachineState {
+typedef struct PCMachineState {
/*< private >*/
X86MachineState parent_obj;
@@ -50,7 +50,7 @@ struct PCMachineState {
/* ACPI Memory hotplug IO base address */
hwaddr memhp_io_base;
-};
+} PCMachineState;
#define PC_MACHINE_ACPI_DEVICE_PROP "acpi-device"
#define PC_MACHINE_MAX_RAM_BELOW_4G "max-ram-below-4g"