]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target-sparc: Typedef struct CPUSPARCState early
authorAndreas Färber <afaerber@suse.de>
Fri, 24 Feb 2012 16:15:27 +0000 (17:15 +0100)
committerAndreas Färber <afaerber@suse.de>
Wed, 14 Mar 2012 21:20:24 +0000 (22:20 +0100)
Will be needed for qemu_irq_ack callback.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
target-sparc/cpu.h

index 38a707466ccc74e3bacad6ed82c7393ea9bf372f..8098669704c56d392efa15c2813042485d8d0382 100644 (file)
@@ -378,7 +378,9 @@ struct QEMUFile;
 void cpu_put_timer(struct QEMUFile *f, CPUTimer *s);
 void cpu_get_timer(struct QEMUFile *f, CPUTimer *s);
 
-typedef struct CPUSPARCState {
+typedef struct CPUSPARCState CPUSPARCState;
+
+struct CPUSPARCState {
     target_ulong gregs[8]; /* general registers */
     target_ulong *regwptr; /* pointer to current register window */
     target_ulong pc;       /* program counter */
@@ -503,7 +505,7 @@ typedef struct CPUSPARCState {
 
     /* Leon3 cache control */
     uint32_t cache_control;
-} CPUSPARCState;
+};
 
 #ifndef NO_CPU_IO_DEFS
 /* cpu_init.c */