summaryrefslogtreecommitdiffstats
path: root/target/tricore
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/tricore
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/tricore')
-rw-r--r--target/tricore/cpu.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/target/tricore/cpu.h b/target/tricore/cpu.h
index bccde45a07..5d3072f2db 100644
--- a/target/tricore/cpu.h
+++ b/target/tricore/cpu.h
@@ -25,10 +25,6 @@
#include "exec/cpu-defs.h"
#include "tricore-defs.h"
-#define CPUArchState struct CPUTriCoreState
-
-struct CPUTriCoreState;
-
struct tricore_boot_info;
typedef struct tricore_def_t tricore_def_t;
@@ -382,7 +378,7 @@ static inline int cpu_mmu_index(CPUTriCoreState *env, bool ifetch)
return 0;
}
-
+typedef CPUTriCoreState CPUArchState;
#include "exec/cpu-all.h"