mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-02 13:31:07 +00:00
pc: Move PCMachineClass, PCMachineState to qemu/typedefs.h
They will be used inside hw/xen/xen.h, which doesn't include hw/i386/pc.h. Backports commit 8170dfa077761ed979b45f608cf706253a764f0d from qemu
This commit is contained in:
parent
952d0f522f
commit
d5c7362e03
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue