diff options
author | Andreas Färber <afaerber@suse.de> | 2012-03-15 01:19:42 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-03-14 19:48:37 -0500 |
commit | ae7d54d489540b49b7c13a7df7ddc220588a2ced (patch) | |
tree | 72da2eda14ad7054624b3a85b225e3e7152d9952 /target-lm32/cpu.h | |
parent | aea6ff7fa07b046fb9f43d6262d6e34b77e8437e (diff) | |
download | qemu-ae7d54d489540b49b7c13a7df7ddc220588a2ced.tar.gz qemu-ae7d54d489540b49b7c13a7df7ddc220588a2ced.tar.bz2 qemu-ae7d54d489540b49b7c13a7df7ddc220588a2ced.zip |
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-lm32/cpu.h')
-rw-r--r-- | target-lm32/cpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-lm32/cpu.h b/target-lm32/cpu.h index 0902a2468d..a7d95464b8 100644 --- a/target-lm32/cpu.h +++ b/target-lm32/cpu.h @@ -149,7 +149,7 @@ enum { LM32_FLAG_IGNORE_MSB = 1, }; -typedef struct CPULM32State { +struct CPULM32State { /* general registers */ uint32_t regs[32]; @@ -182,7 +182,7 @@ typedef struct CPULM32State { uint8_t num_bps; uint8_t num_wps; -} CPULM32State; +}; CPULM32State *cpu_lm32_init(const char *cpu_model); |