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/sparc | |
parent | a40ec84ee2b02086e27fab78a152c20b09c723cf (diff) | |
download | qemu-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/sparc')
-rw-r--r-- | target/sparc/cpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/sparc/cpu.h b/target/sparc/cpu.h index bcfdf51..fc392c6 100644 --- a/target/sparc/cpu.h +++ b/target/sparc/cpu.h @@ -14,8 +14,6 @@ #define TARGET_DPREGS 32 #endif -#define CPUArchState struct CPUSPARCState - /*#define EXCP_INTERRUPT 0x100*/ /* trap definitions */ @@ -731,6 +729,8 @@ static inline int cpu_pil_allowed(CPUSPARCState *env1, int pil) #endif } +typedef CPUSPARCState CPUArchState; + #include "exec/cpu-all.h" #ifdef TARGET_SPARC64 |