aboutsummaryrefslogtreecommitdiff
path: root/target/microblaze
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2019-03-22 15:32:23 -0700
committerRichard Henderson <richard.henderson@linaro.org>2019-06-10 07:03:34 -0700
commit4f7c64b3819d559417615ed2b1d028ebc1a49580 (patch)
tree73711ac46b7eea9b9fc5fea93c2ea43cb20f9bdf /target/microblaze
parenta40ec84ee2b02086e27fab78a152c20b09c723cf (diff)
downloadqemu-4f7c64b3819d559417615ed2b1d028ebc1a49580.zip
qemu-4f7c64b3819d559417615ed2b1d028ebc1a49580.tar.gz
qemu-4f7c64b3819d559417615ed2b1d028ebc1a49580.tar.bz2
cpu: Define CPUArchState with typedef
For all targets, do this just before including exec/cpu-all.h. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Acked-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/microblaze')
-rw-r--r--target/microblaze/cpu.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/target/microblaze/cpu.h b/target/microblaze/cpu.h
index b8db8ca..6170fd4 100644
--- a/target/microblaze/cpu.h
+++ b/target/microblaze/cpu.h
@@ -25,9 +25,6 @@
#include "exec/cpu-defs.h"
#include "fpu/softfloat-types.h"
-#define CPUArchState struct CPUMBState
-
-struct CPUMBState;
typedef struct CPUMBState CPUMBState;
#if !defined(CONFIG_USER_ONLY)
#include "mmu.h"
@@ -368,6 +365,8 @@ bool mb_cpu_tlb_fill(CPUState *cs, vaddr address, int size,
MMUAccessType access_type, int mmu_idx,
bool probe, uintptr_t retaddr);
+typedef CPUMBState CPUArchState;
+
#include "exec/cpu-all.h"
static inline void cpu_get_tb_cpu_state(CPUMBState *env, target_ulong *pc,