On 07/03/2017 09:34 AM, Paolo Bonzini wrote:
@@ -1302,10 +1332,12 @@ 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);
+    } else {
+        abort();
      }
  }
  #endif /* !CONFIG_USER_ONLY */

This hunk belongs in another patch.


r~

Reply via email to