aboutsummaryrefslogtreecommitdiff
path: root/target-sparc
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-02-24 17:15:27 +0100
committerAndreas Färber <afaerber@suse.de>2012-03-14 22:20:24 +0100
commitcb15982158d62ea017f1ad584370176b586e1873 (patch)
tree51f14428ec1f64598d63d3b4e02e9fad58c5022d /target-sparc
parent9b9a970a23625de4ae6b7461906a9a0d98d3ca95 (diff)
target-sparc: Typedef struct CPUSPARCState early
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>
Diffstat (limited to 'target-sparc')
-rw-r--r--target-sparc/cpu.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h
index 38a707466c..8098669704 100644
--- a/target-sparc/cpu.h
+++ b/target-sparc/cpu.h
@@ -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 */