Skip to content

Commit

Permalink
Don't unnecessarily add CPU flags for macOS guests on intel hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
lj3954 committed May 21, 2024
1 parent e3701aa commit 6b9953d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qemu_args/guest_os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl GuestOS {
Self::KolibriOS | Self::ReactOS => "qemu32".to_string(),
Self::MacOS { release } => {
if vendor == "GenuineIntel" {
macos_cpu_flags("host")
default_cpu()
} else if release >= &MacOSRelease::Ventura {
macos_cpu_flags("Haswell-v2,vendor=GenuineIntel,+avx,+avx2,+sse,+sse2,+ssse3,+sse4.1,+sse4.2,+rdtscp")
} else if release >= &MacOSRelease::Catalina {
Expand Down

0 comments on commit 6b9953d

Please sign in to comment.