diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-04-12 11:03:40 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-07-04 16:01:16 +0200 |
commit | 24d90a3cfdd30f1f6eb38363aed6c9c084f147ed (patch) | |
tree | d0398ac58365cfa4d3637a07f1a4368dd7194703 /hw/i386/kvmvapic.c | |
parent | f0d14a95a5833885e0940bb650e15d8e959d0d45 (diff) | |
download | qemu-24d90a3cfdd30f1f6eb38363aed6c9c084f147ed.zip qemu-24d90a3cfdd30f1f6eb38363aed6c9c084f147ed.tar.gz qemu-24d90a3cfdd30f1f6eb38363aed6c9c084f147ed.tar.bz2 |
vapic: use tcg_enabled
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/i386/kvmvapic.c')
-rw-r--r-- | hw/i386/kvmvapic.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/i386/kvmvapic.c b/hw/i386/kvmvapic.c index 82a4955..0d9ef77 100644 --- a/hw/i386/kvmvapic.c +++ b/hw/i386/kvmvapic.c @@ -410,7 +410,8 @@ static void patch_instruction(VAPICROMState *s, X86CPU *cpu, target_ulong ip) handlers = &s->rom_state.mp; } - if (!kvm_enabled()) { + if (tcg_enabled()) { + cpu_restore_state(cs, cs->mem_io_pc); cpu_get_tb_cpu_state(env, ¤t_pc, ¤t_cs_base, ¤t_flags); /* Account this instruction, because we will exit the tb. @@ -456,7 +457,7 @@ static void patch_instruction(VAPICROMState *s, X86CPU *cpu, target_ulong ip) resume_all_vcpus(); - if (!kvm_enabled()) { + if (tcg_enabled()) { /* Both tb_lock and iothread_mutex will be reset when * longjmps back into the cpu_exec loop. */ tb_lock(); |