mirror of
https://github.com/utmapp/UTM
synced 2024-11-13 22:37:07 +00:00
config(qemu): support TSO on macOS 15
This commit is contained in:
parent
aa4f259d64
commit
164e3126d2
2 changed files with 5 additions and 3 deletions
|
@ -452,7 +452,11 @@ extension QEMUArchitecture {
|
|||
#if os(iOS) || os(visionOS)
|
||||
return hasHypervisorSupport
|
||||
#else
|
||||
return false
|
||||
if #available(macOS 15, *) {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -73,13 +73,11 @@ struct VMConfigQEMUView: View {
|
|||
Toggle("Use Hypervisor", isOn: $config.hasHypervisor)
|
||||
.help("Only available if host architecture matches the target. Otherwise, TCG emulation is used.")
|
||||
.disabled(!system.architecture.hasHypervisorSupport)
|
||||
#if os(iOS) || os(visionOS)
|
||||
if config.hasHypervisor {
|
||||
Toggle("Use TSO", isOn: $config.hasTSO)
|
||||
.help("Only available when Hypervisor is used on supported hardware. TSO speeds up Intel emulation in the guest at the cost of decreased performance in general.")
|
||||
.disabled(!system.architecture.hasTSOSupport)
|
||||
}
|
||||
#endif
|
||||
Toggle("Use local time for base clock", isOn: $config.hasRTCLocalTime)
|
||||
.help("If checked, use local time for RTC which is required for Windows. Otherwise, use UTC clock.")
|
||||
Toggle("Force PS/2 controller", isOn: $config.hasPS2Controller)
|
||||
|
|
Loading…
Reference in a new issue