]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/hw/riscv/riscv_hart.h
Move QOM typedefs and add missing includes
[mirror_qemu.git] / include / hw / riscv / riscv_hart.h
index c75856fa7386f74b33aee23dd7914a603b3d823b..617b977214f1dded1119fb5e6f0e97a91d3028fc 100644 (file)
 
 #include "hw/sysbus.h"
 #include "target/riscv/cpu.h"
+#include "qom/object.h"
 
 #define TYPE_RISCV_HART_ARRAY "riscv.hart_array"
 
+typedef struct RISCVHartArrayState RISCVHartArrayState;
 #define RISCV_HART_ARRAY(obj) \
     OBJECT_CHECK(RISCVHartArrayState, (obj), TYPE_RISCV_HART_ARRAY)
 
-typedef struct RISCVHartArrayState {
+struct RISCVHartArrayState {
     /*< private >*/
     SysBusDevice parent_obj;
 
@@ -38,6 +40,6 @@ typedef struct RISCVHartArrayState {
     uint32_t hartid_base;
     char *cpu_type;
     RISCVCPU *harts;
-} RISCVHartArrayState;
+};
 
 #endif