]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target/i386/helper.c
target/i386: add the tcg_enabled() in target/i386/
[mirror_qemu.git] / target / i386 / helper.c
index bcf9b22fd8d48fe73a32f77222f91f0e66cf57fc..f63eb3d3f4fb499b2a69b1f7485b00e573b8bd70 100644 (file)
@@ -990,7 +990,7 @@ void cpu_report_tpr_access(CPUX86State *env, TPRAccess access)
         env->tpr_access_type = access;
 
         cpu_interrupt(cs, CPU_INTERRUPT_TPR);
-    } else {
+    } else if (tcg_enabled()) {
         cpu_restore_state(cs, cs->mem_io_pc);
 
         apic_handle_tpr_access_report(cpu->apic_state, env->eip, access);