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/i386 | |
parent | a40ec84ee2b02086e27fab78a152c20b09c723cf (diff) | |
download | 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/i386')
-rw-r--r-- | target/i386/cpu.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/target/i386/cpu.h b/target/i386/cpu.h index 36f5095768..81931fc510 100644 --- a/target/i386/cpu.h +++ b/target/i386/cpu.h @@ -1,4 +1,3 @@ - /* * i386 virtual CPU header * @@ -44,8 +43,6 @@ #define ELF_MACHINE_UNAME "i686" #endif -#define CPUArchState struct CPUX86State - enum { R_EAX = 0, R_ECX = 1, @@ -1755,6 +1752,8 @@ static inline target_long lshift(target_long x, int n) /* translate.c */ void tcg_x86_init(void); +typedef CPUX86State CPUArchState; + #include "exec/cpu-all.h" #include "svm.h" |