diff options
author | Gleb Natapov <gleb@redhat.com> | 2009-06-15 16:23:15 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-06-15 16:50:17 +0300 |
commit | c66f89719c6fa9741505bfd199e3d0a2e9577e21 (patch) | |
tree | ea03d3f4cafc2d5bc36d076fddba97c24267ee08 | |
parent | Retrieve mp state info in cpu_synchronize_state() (diff) | |
download | qemu-kvm-c66f89719c6fa9741505bfd199e3d0a2e9577e21.tar.gz qemu-kvm-c66f89719c6fa9741505bfd199e3d0a2e9577e21.tar.bz2 qemu-kvm-c66f89719c6fa9741505bfd199e3d0a2e9577e21.zip |
Drop unncessary setting of env->exception_index
env->exception_index is not used by kvm code.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r-- | qemu-kvm-ia64.c | 2 | ||||
-rw-r--r-- | qemu-kvm-x86.c | 2 | ||||
-rw-r--r-- | qemu-kvm.c | 1 |
3 files changed, 0 insertions, 5 deletions
diff --git a/qemu-kvm-ia64.c b/qemu-kvm-ia64.c index 234602c11..477d24cb4 100644 --- a/qemu-kvm-ia64.c +++ b/qemu-kvm-ia64.c @@ -35,7 +35,6 @@ int kvm_arch_halt(void *opaque, kvm_vcpu_context_t vcpu) { CPUState *env = cpu_single_env; env->hflags |= HF_HALTED_MASK; - env->exception_index = EXCP_HLT; return 1; } @@ -135,7 +134,6 @@ void kvm_arch_cpu_reset(CPUState *env) } else { env->interrupt_request &= ~CPU_INTERRUPT_HARD; env->halted = 1; - env->exception_index = EXCP_HLT; } } diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c index 8e6fb75bd..686538589 100644 --- a/qemu-kvm-x86.c +++ b/qemu-kvm-x86.c @@ -611,7 +611,6 @@ int kvm_arch_halt(void *opaque, kvm_vcpu_context_t vcpu) (env->eflags & IF_MASK)) && !(env->interrupt_request & CPU_INTERRUPT_NMI)) { env->halted = 1; - env->exception_index = EXCP_HLT; } return 1; } @@ -707,7 +706,6 @@ void kvm_arch_cpu_reset(CPUState *env) } else { env->interrupt_request &= ~CPU_INTERRUPT_HARD; env->halted = 1; - env->exception_index = EXCP_HLT; } } } diff --git a/qemu-kvm.c b/qemu-kvm.c index 10d44a6f5..d3eba1a54 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -1950,7 +1950,6 @@ static int kvm_main_loop_cpu(CPUState *env) if (!env->halted || kvm_irqchip_in_kernel(kvm_context)) kvm_cpu_exec(env); env->exit_request = 0; - env->exception_index = EXCP_INTERRUPT; kvm_main_loop_wait(env, 0); } pthread_mutex_unlock(&qemu_mutex); |