@@ -1,14 +1,12 @@
#ifndef HW_MIPS_CPUDEVS_H
#define HW_MIPS_CPUDEVS_H
-#include "target/mips/cpu-qom.h"
-
/* Definitions for MIPS CPU internal devices. */
/* mips_int.c */
-void cpu_mips_irq_init_cpu(MIPSCPU *cpu);
+void cpu_mips_irq_init_cpu(ArchCPU *cpu);
/* mips_timer.c */
-void cpu_mips_clock_init(MIPSCPU *cpu);
+void cpu_mips_clock_init(ArchCPU *cpu);
#endif
@@ -29,8 +29,6 @@
#define TYPE_MIPS_CPU "mips-cpu"
#endif
-typedef struct ArchCPU MIPSCPU;
-
OBJECT_DECLARE_TYPE(ArchCPU, MIPSCPUClass,
MIPS_CPU)
@@ -1171,7 +1171,7 @@ typedef struct CPUArchState {
*
* A MIPS CPU.
*/
-struct ArchCPU {
+typedef struct ArchCPU {
/*< private >*/
CPUState parent_obj;
/*< public >*/
@@ -1187,7 +1187,7 @@ struct ArchCPU {
* pipeline clock of the processor, not the issue width of the processor.
*/
unsigned cp0_count_rate;
-};
+} MIPSCPU;
void mips_cpu_list(void);
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> --- include/hw/mips/cpudevs.h | 6 ++---- target/mips/cpu-qom.h | 2 -- target/mips/cpu.h | 4 ++-- 3 files changed, 4 insertions(+), 8 deletions(-)