VMManager: MacOS CPU count detection
Description of Changes
Add CPU count detection for macOS Fixes #8585
Rationale behind Changes
So M1 users don't keep coming to us with performance issues because they have MTVU off
Note: cpuinfo prefers relying on cpuid over sysctl, which makes it misdetect M1s in Rosetta as 8 symmetric cores, so we're skipping cpuinfo on macOS.
Suggested Testing Steps
Reset to default settings and see if MTVU is enabled
LGTM, tested M1, and intels with 2c/4t and 6c/12t
Wondering if this would be better placed in the Darwin directory in common.
Wondering if this would be better placed in the Darwin directory in common.
Like just put the macOS specific code there, or add a cpu detection header and move all the cpu detection (+ affinity setting?) there?
Was just thinking abstract the routine to get the big/small core count (i.e. the sysctl stuff).
@DigitalMajestic Could you test again and make sure it still works?
LGTM