summaryrefslogtreecommitdiffstats
path: root/linux-user/i386/cpu_loop.c
diff options
context:
space:
mode:
authorRichard Henderson2019-03-23 02:08:48 +0100
committerRichard Henderson2019-06-10 16:03:42 +0200
commit6aa9e42f27331be34e06d4d66f92f2272868f96a (patch)
treee46abcf1621eddfb70d4f3825d4ae366e1147f67 /linux-user/i386/cpu_loop.c
parenttarget/hppa: Use env_cpu, env_archcpu (diff)
downloadqemu-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 'linux-user/i386/cpu_loop.c')
-rw-r--r--linux-user/i386/cpu_loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/i386/cpu_loop.c b/linux-user/i386/cpu_loop.c
index 51cfa006c9..71da24384f 100644
--- a/linux-user/i386/cpu_loop.c
+++ b/linux-user/i386/cpu_loop.c
@@ -82,7 +82,7 @@ static void set_idt(int n, unsigned int dpl)
void cpu_loop(CPUX86State *env)
{
- CPUState *cs = CPU(x86_env_get_cpu(env));
+ CPUState *cs = env_cpu(env);
int trapnr;
abi_ulong pc;
abi_ulong ret;