diff options
author | Andreas Färber <afaerber@suse.de> | 2013-08-27 17:52:12 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2014-03-13 19:20:47 +0100 |
commit | 5638d180d6c469fc4c56127a3c717e8b9f27d925 (patch) | |
tree | 7c8e9eb4f24752077c951c543ff776ee191e81fc /target-i386/misc_helper.c | |
parent | d5a11fefef1eeed86a8f06021067ba9990729a5a (diff) | |
download | qemu-5638d180d6c469fc4c56127a3c717e8b9f27d925.zip qemu-5638d180d6c469fc4c56127a3c717e8b9f27d925.tar.gz qemu-5638d180d6c469fc4c56127a3c717e8b9f27d925.tar.bz2 |
cpu-exec: Change cpu_loop_exit() argument to CPUState
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-i386/misc_helper.c')
-rw-r--r-- | target-i386/misc_helper.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/target-i386/misc_helper.c b/target-i386/misc_helper.c index 582ad34..8c6b9bf 100644 --- a/target-i386/misc_helper.c +++ b/target-i386/misc_helper.c @@ -569,11 +569,10 @@ void helper_rdmsr(CPUX86State *env) static void do_pause(X86CPU *cpu) { CPUState *cs = CPU(cpu); - CPUX86State *env = &cpu->env; /* Just let another CPU run. */ cs->exception_index = EXCP_INTERRUPT; - cpu_loop_exit(env); + cpu_loop_exit(cs); } static void do_hlt(X86CPU *cpu) @@ -584,7 +583,7 @@ static void do_hlt(X86CPU *cpu) env->hflags &= ~HF_INHIBIT_IRQ_MASK; /* needed if sti is just before */ cs->halted = 1; cs->exception_index = EXCP_HLT; - cpu_loop_exit(env); + cpu_loop_exit(cs); } void helper_hlt(CPUX86State *env, int next_eip_addend) @@ -642,5 +641,5 @@ void helper_debug(CPUX86State *env) CPUState *cs = CPU(x86_env_get_cpu(env)); cs->exception_index = EXCP_DEBUG; - cpu_loop_exit(env); + cpu_loop_exit(cs); } |