vbox的更動 45622 路徑 trunk/src/VBox/Main/xml
- 時間撮記:
- 2013-4-18 下午09:49:05 (12 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Main/xml/Settings.cpp
r45138 r45622 1734 1734 fSyntheticCpu(false), 1735 1735 fPAE(false), 1736 enmLongMode(HC_ARCH_BITS == 64 ? Hardware::LongMode_Enabled : Hardware::LongMode_Disabled), 1736 1737 cCPUs(1), 1737 1738 fCpuHotPlug(false), … … 1800 1801 && (fSyntheticCpu == h.fSyntheticCpu) 1801 1802 && (fPAE == h.fPAE) 1803 && (enmLongMode == h.enmLongMode) 1802 1804 && (cCPUs == h.cCPUs) 1803 1805 && (fCpuHotPlug == h.fCpuHotPlug) … … 2537 2539 pelmCPUChild->getAttributeValue("enabled", hw.fPAE); 2538 2540 2541 bool fLongMode; 2542 if ( (pelmCPUChild = pelmHwChild->findChildElement("LongMode")) 2543 && pelmCPUChild->getAttributeValue("enabled", fLongMode) ) 2544 hw.enmLongMode = fLongMode ? Hardware::LongMode_Enabled : Hardware::LongMode_Disabled; 2545 else 2546 hw.enmLongMode = Hardware::LongMode_Legacy; 2547 2539 2548 if ((pelmCPUChild = pelmHwChild->findChildElement("SyntheticCpu"))) 2540 2549 pelmCPUChild->getAttributeValue("enabled", hw.fSyntheticCpu); … … 3701 3710 pelmCPU->createChild("HardwareVirtExVPID")->setAttribute("enabled", hw.fVPID); 3702 3711 pelmCPU->createChild("PAE")->setAttribute("enabled", hw.fPAE); 3712 if (m->sv >= SettingsVersion_v1_14 && hw.enmLongMode != Hardware::LongMode_Legacy) 3713 pelmCPU->createChild("LongMode")->setAttribute("enabled", hw.enmLongMode == Hardware::LongMode_Enabled); 3703 3714 3704 3715 if (hw.fSyntheticCpu) … … 4990 5001 { 4991 5002 // VirtualBox 4.3 adds default frontend setting. 4992 if (!hardwareMachine.strDefaultFrontend.isEmpty()) 5003 if ( !hardwareMachine.strDefaultFrontend.isEmpty() 5004 || hardwareMachine.enmLongMode != Hardware::LongMode_Legacy) 4993 5005 m->sv = SettingsVersion_v1_14; 4994 5006 }
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器