Index: /trunk/src/VBox/VMM/VMMR3/APIC.cpp
===================================================================
--- /trunk/src/VBox/VMM/VMMR3/APIC.cpp	(revision 60399)
+++ /trunk/src/VBox/VMM/VMMR3/APIC.cpp	(revision 60400)
@@ -375,27 +375,4 @@
 
 /**
- * Sets the xAPIC enabled bit in the APIC base MSR.
- *
- * @param   pVCpu           The cross context virtual CPU structure.
- * @param   fEnabled        Whether to enable or disable the APIC.
- *
- * @remarks Warning!!! This does -not- touch the x2APIC enable bit and could
- *          thus lead to invalid states if used incorrectly!
- */
-static void apicR3SetEnabled(PVMCPU pVCpu, bool fEnabled)
-{
-    VMCPU_ASSERT_EMT_OR_NOT_RUNNING(pVCpu);
-    PAPICCPU pApicCpu = VMCPU_TO_APICCPU(pVCpu);
-    if (!fEnabled)
-    {
-        pApicCpu->uApicBaseMsr &= ~MSR_APICBASE_XAPIC_ENABLE_BIT;
-        Assert(!(pApicCpu->uApicBaseMsr & MSR_APICBASE_XAPIC_ENABLE_BIT));
-    }
-    else
-        pApicCpu->uApicBaseMsr |= MSR_APICBASE_XAPIC_ENABLE_BIT;
-}
-
-
-/**
  * Initializes per-VCPU APIC to the state following a power-up or hardware
  * reset.
@@ -986,5 +963,5 @@
     PAPICDEV pApicDev = PDMINS_2_DATA(pDevIns, PAPICDEV);
 
-    LogFlow(("APIC: apicR3Relocate: pDevIns=%p offDelta=%RGp\n", pDevIns, offDelta));
+    LogFlow(("APIC: apicR3Relocate: pDevIns=%p offDelta=%RGi\n", pDevIns, offDelta));
 
     pApicDev->pDevInsRC   = PDMDEVINS_2_RCPTR(pDevIns);
