diff options
author | Richard Henderson | 2019-03-23 02:08:48 +0100 |
---|---|---|
committer | Richard Henderson | 2019-06-10 16:03:42 +0200 |
commit | 6aa9e42f27331be34e06d4d66f92f2272868f96a (patch) | |
tree | e46abcf1621eddfb70d4f3825d4ae366e1147f67 /target/i386/excp_helper.c | |
parent | target/hppa: Use env_cpu, env_archcpu (diff) | |
download | qemu-6aa9e42f27331be34e06d4d66f92f2272868f96a.tar.gz qemu-6aa9e42f27331be34e06d4d66f92f2272868f96a.tar.xz qemu-6aa9e42f27331be34e06d4d66f92f2272868f96a.zip |
target/i386: Use env_cpu, env_archcpu
Cleanup in the boilerplate that each target must define.
Replace x86_env_get_cpu with env_archcpu. The combination
CPU(x86_env_get_cpu) should have used ENV_GET_CPU to begin;
use env_cpu now.
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/i386/excp_helper.c')
-rw-r--r-- | target/i386/excp_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/i386/excp_helper.c b/target/i386/excp_helper.c index fa1ead6404..a9bca7c28b 100644 --- a/target/i386/excp_helper.c +++ b/target/i386/excp_helper.c @@ -90,7 +90,7 @@ static void QEMU_NORETURN raise_interrupt2(CPUX86State *env, int intno, int next_eip_addend, uintptr_t retaddr) { - CPUState *cs = CPU(x86_env_get_cpu(env)); + CPUState *cs = env_cpu(env); if (!is_int) { cpu_svm_check_intercept_param(env, SVM_EXIT_EXCP_BASE + intno, |