From ae7d54d489540b49b7c13a7df7ddc220588a2ced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Thu, 15 Mar 2012 01:19:42 +0100 Subject: target-lm32/microblaze: Drop second CPU{LM32, MB}State typedef MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Anthony Liguori --- target-lm32/cpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target-lm32/cpu.h') 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); -- cgit v1.2.3