diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2019-03-22 15:32:23 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2019-06-10 07:03:34 -0700 |
commit | 4f7c64b3819d559417615ed2b1d028ebc1a49580 (patch) | |
tree | 73711ac46b7eea9b9fc5fea93c2ea43cb20f9bdf /target/mips | |
parent | a40ec84ee2b02086e27fab78a152c20b09c723cf (diff) | |
download | qemu-4f7c64b3819d559417615ed2b1d028ebc1a49580.zip |
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/mips')
-rw-r--r-- | target/mips/cpu.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/target/mips/cpu.h b/target/mips/cpu.h index 34e7aec4d0..6f65822bb1 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -3,8 +3,6 @@ #define ALIGNED_ONLY -#define CPUArchState struct CPUMIPSState - #include "qemu-common.h" #include "cpu-qom.h" #include "exec/cpu-defs.h" @@ -13,8 +11,6 @@ #define TCG_GUEST_DEFAULT_MO (0) -struct CPUMIPSState; - typedef struct CPUMIPSTLBContext CPUMIPSTLBContext; /* MSA Context */ @@ -1116,6 +1112,8 @@ static inline int cpu_mmu_index(CPUMIPSState *env, bool ifetch) return hflags_mmu_index(env->hflags); } +typedef CPUMIPSState CPUArchState; + #include "exec/cpu-all.h" /* |