qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 5/6] coldfire: use "struct M68kCPU" in header files


From: Paolo Bonzini
Subject: [Qemu-devel] [PATCH 5/6] coldfire: use "struct M68kCPU" in header files
Date: Tue, 15 Dec 2015 15:28:29 +0100

This removes a dependency on cpu.h.  Since all dependencies on cpu.h
come from mcf.h, using "struct M68kCPU" makes it easier to disentangle
qemu-common.h and cpu.h.

Signed-off-by: Paolo Bonzini <address@hidden>
---
 include/hw/m68k/mcf.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/hw/m68k/mcf.h b/include/hw/m68k/mcf.h
index fbc8dc2..1c7d2d6 100644
--- a/include/hw/m68k/mcf.h
+++ b/include/hw/m68k/mcf.h
@@ -3,6 +3,7 @@
 /* Motorola ColdFire device prototypes.  */
 
 struct MemoryRegion;
+struct M68kCPU;
 
 /* mcf_uart.c */
 uint64_t mcf_uart_read(void *opaque, hwaddr addr,
@@ -17,7 +18,7 @@ void mcf_uart_mm_init(struct MemoryRegion *sysmem,
 /* mcf_intc.c */
 qemu_irq *mcf_intc_init(struct MemoryRegion *sysmem,
                         hwaddr base,
-                        M68kCPU *cpu);
+                        struct M68kCPU *cpu);
 
 /* mcf_fec.c */
 void mcf_fec_init(struct MemoryRegion *sysmem, NICInfo *nd,
@@ -25,6 +26,6 @@ void mcf_fec_init(struct MemoryRegion *sysmem, NICInfo *nd,
 
 /* mcf5206.c */
 qemu_irq *mcf5206_init(struct MemoryRegion *sysmem,
-                       uint32_t base, M68kCPU *cpu);
+                       uint32_t base, struct M68kCPU *cpu);
 
 #endif
-- 
1.8.3.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]