From f19c7ba72776bf5674edff15e367f62f930c458a Mon Sep 17 00:00:00 2001 From: KM198912 Date: Tue, 22 Mar 2022 09:06:36 +0100 Subject: [PATCH] Add whpx acceleration qemu flag (requires only hyper-v) also update year in installer --- Setup/ReadMe.txt | 2 +- source/Cosmos.Debug.Hosts/Qemu.cs | 9 +++++++++ .../BuildSystem/Rules/CosmosPropertyPage.xaml | 10 ++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/Setup/ReadMe.txt b/Setup/ReadMe.txt index e236e627cc..4505e80aa5 100644 --- a/Setup/ReadMe.txt +++ b/Setup/ReadMe.txt @@ -1 +1 @@ -Copyright © 2007-2019, The Cosmos Project +Copyright © 2007-2022, The Cosmos Project diff --git a/source/Cosmos.Debug.Hosts/Qemu.cs b/source/Cosmos.Debug.Hosts/Qemu.cs index bc16cf9c66..46edf28c49 100755 --- a/source/Cosmos.Debug.Hosts/Qemu.cs +++ b/source/Cosmos.Debug.Hosts/Qemu.cs @@ -193,6 +193,15 @@ public Qemu(Dictionary aParams, bool aUseGDB, string aHarddisk = _debugACPIEnable = String.Empty; } } + if(aParams.ContainsKey("QemuHWAccelWHPX")) + { + bool WHPX; + Boolean.TryParse(aParams["QemuHWAccelWHPX"],out WHPX); + if(WHPX) + { + _hardwareAccel = "-accel whpx"; + } + } if (aParams.ContainsKey("QemuLocationParameters")) { bool UseCustomExe; diff --git a/source/Cosmos.VS.ProjectSystem/BuildSystem/Rules/CosmosPropertyPage.xaml b/source/Cosmos.VS.ProjectSystem/BuildSystem/Rules/CosmosPropertyPage.xaml index b248539615..83eb639289 100644 --- a/source/Cosmos.VS.ProjectSystem/BuildSystem/Rules/CosmosPropertyPage.xaml +++ b/source/Cosmos.VS.ProjectSystem/BuildSystem/Rules/CosmosPropertyPage.xaml @@ -353,6 +353,16 @@ + + + + (has-evaluated-value "CosmosPropertyPage" "Launch" "Qemu") + + +