diff options
author | Richard Henderson | 2019-03-22 23:32:23 +0100 |
---|---|---|
committer | Richard Henderson | 2019-06-10 16:03:34 +0200 |
commit | 4f7c64b3819d559417615ed2b1d028ebc1a49580 (patch) | |
tree | 73711ac46b7eea9b9fc5fea93c2ea43cb20f9bdf /target/xtensa | |
parent | tcg: Create struct CPUTLB (diff) | |
download | qemu-4f7c64b3819d559417615ed2b1d028ebc1a49580.tar.gz qemu-4f7c64b3819d559417615ed2b1d028ebc1a49580.tar.xz 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/xtensa')
-rw-r--r-- | target/xtensa/cpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/xtensa/cpu.h b/target/xtensa/cpu.h index 0c6afd43a4..e164e18f18 100644 --- a/target/xtensa/cpu.h +++ b/target/xtensa/cpu.h @@ -38,8 +38,6 @@ /* Xtensa processors have a weak memory model */ #define TCG_GUEST_DEFAULT_MO (0) -#define CPUArchState struct CPUXtensaState - enum { /* Additional instructions */ XTENSA_OPTION_CODE_DENSITY, @@ -801,6 +799,8 @@ static inline void cpu_get_tb_cpu_state(CPUXtensaState *env, target_ulong *pc, } } +typedef CPUXtensaState CPUArchState; + #include "exec/cpu-all.h" #endif |