summaryrefslogtreecommitdiffstats
path: root/target/sparc
diff options
context:
space:
mode:
authorRichard Henderson2019-03-22 23:32:23 +0100
committerRichard Henderson2019-06-10 16:03:34 +0200
commit4f7c64b3819d559417615ed2b1d028ebc1a49580 (patch)
tree73711ac46b7eea9b9fc5fea93c2ea43cb20f9bdf /target/sparc
parenttcg: Create struct CPUTLB (diff)
downloadqemu-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/sparc')
-rw-r--r--target/sparc/cpu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/sparc/cpu.h b/target/sparc/cpu.h
index bcfdf513cf..fc392c6e87 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