diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2019-03-22 18:08:48 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2019-06-10 07:03:42 -0700 |
commit | 6aa9e42f27331be34e06d4d66f92f2272868f96a (patch) | |
tree | e46abcf1621eddfb70d4f3825d4ae366e1147f67 /target/i386/smm_helper.c | |
parent | 25f327081b4f63290cce0607512e4627cbfd408e (diff) | |
download | qemu-6aa9e42f27331be34e06d4d66f92f2272868f96a.zip qemu-6aa9e42f27331be34e06d4d66f92f2272868f96a.tar.gz qemu-6aa9e42f27331be34e06d4d66f92f2272868f96a.tar.bz2 |
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/smm_helper.c')
-rw-r--r-- | target/i386/smm_helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/i386/smm_helper.c b/target/i386/smm_helper.c index c1c34a7..eb5aa6e 100644 --- a/target/i386/smm_helper.c +++ b/target/i386/smm_helper.c @@ -204,8 +204,8 @@ void do_smm_enter(X86CPU *cpu) void helper_rsm(CPUX86State *env) { - X86CPU *cpu = x86_env_get_cpu(env); - CPUState *cs = CPU(cpu); + X86CPU *cpu = env_archcpu(env); + CPUState *cs = env_cpu(env); target_ulong sm_state; int i, offset; uint32_t val; |