aboutsummaryrefslogtreecommitdiff
path: root/target/unicore32/cpu.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2019-03-22 15:32:23 -0700
committerRichard Henderson <richard.henderson@linaro.org>2019-06-10 07:03:34 -0700
commit4f7c64b3819d559417615ed2b1d028ebc1a49580 (patch)
tree73711ac46b7eea9b9fc5fea93c2ea43cb20f9bdf /target/unicore32/cpu.h
parenta40ec84ee2b02086e27fab78a152c20b09c723cf (diff)
downloadqemu-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/unicore32/cpu.h')
-rw-r--r--target/unicore32/cpu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/unicore32/cpu.h b/target/unicore32/cpu.h
index a4c4ea3..4856294 100644
--- a/target/unicore32/cpu.h
+++ b/target/unicore32/cpu.h
@@ -16,8 +16,6 @@
#include "cpu-qom.h"
#include "exec/cpu-defs.h"
-#define CPUArchState struct CPUUniCore32State
-
typedef struct CPUUniCore32State {
/* Regs for current mode. */
uint32_t regs[32];
@@ -153,6 +151,8 @@ static inline int cpu_mmu_index(CPUUniCore32State *env, bool ifetch)
return (env->uncached_asr & ASR_M) == ASR_MODE_USER ? 1 : 0;
}
+typedef CPUUniCore32State CPUArchState;
+
#include "exec/cpu-all.h"
#define UNICORE32_CPU_TYPE_SUFFIX "-" TYPE_UNICORE32_CPU