aboutsummaryrefslogtreecommitdiff
path: root/target-microblaze
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-03-15 01:19:42 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2012-03-14 19:48:37 -0500
commitae7d54d489540b49b7c13a7df7ddc220588a2ced (patch)
tree72da2eda14ad7054624b3a85b225e3e7152d9952 /target-microblaze
parentaea6ff7fa07b046fb9f43d6262d6e34b77e8437e (diff)
downloadqemu-ae7d54d489540b49b7c13a7df7ddc220588a2ced.zip
qemu-ae7d54d489540b49b7c13a7df7ddc220588a2ced.tar.gz
qemu-ae7d54d489540b49b7c13a7df7ddc220588a2ced.tar.bz2
target-lm32/microblaze: Drop second CPU{LM32, MB}State typedef
Commit 9b9a970a23625de4ae6b7461906a9a0d98d3ca95 (target-lm32/microblaze: Typedef struct CPU{MB,LM32}State) introduced necessary typedefs for cpu_mmu_index() and mmu.h respectively. On some GCC versions this leads to "error: redefinition of typedef". Drop the original typedef to hopefully fix the build. Signed-off-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'target-microblaze')
-rw-r--r--target-microblaze/cpu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-microblaze/cpu.h b/target-microblaze/cpu.h
index 3b52421..33b23c2 100644
--- a/target-microblaze/cpu.h
+++ b/target-microblaze/cpu.h
@@ -230,7 +230,7 @@ typedef struct CPUMBState CPUMBState;
#define STREAM_CONTROL (1 << 3)
#define STREAM_NONBLOCK (1 << 4)
-typedef struct CPUMBState {
+struct CPUMBState {
uint32_t debug;
uint32_t btaken;
uint32_t btarget;
@@ -264,7 +264,7 @@ typedef struct CPUMBState {
#endif
CPU_COMMON
-} CPUMBState;
+};
CPUMBState *cpu_mb_init(const char *cpu_model);
int cpu_mb_exec(CPUMBState *s);