diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-06-29 10:01:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-29 10:01:26 -0400 |
| commit | fe61fc5f333f53476f787165ac0301fdfe786bd7 (patch) | |
| tree | 3ea86827d33b20a4083964feca7d7b532685efb9 /src/common/x64/cpu_detect.cpp | |
| parent | e82922f7235d33bde96e2494d418367cef7db865 (diff) | |
| parent | 037e683b94cfec4533118c9e05f98f6499dc973a (diff) | |
Merge pull request #10935 from Morph1984/mwaitx
x64: Make use of monitorx instructions for power efficient sleeps (AMD)
Diffstat (limited to 'src/common/x64/cpu_detect.cpp')
| -rw-r--r-- | src/common/x64/cpu_detect.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/x64/cpu_detect.cpp b/src/common/x64/cpu_detect.cpp index c998b1197e..780120a5b2 100644 --- a/src/common/x64/cpu_detect.cpp +++ b/src/common/x64/cpu_detect.cpp @@ -168,6 +168,7 @@ static CPUCaps Detect() { __cpuid(cpu_id, 0x80000001); caps.lzcnt = Common::Bit<5>(cpu_id[2]); caps.fma4 = Common::Bit<16>(cpu_id[2]); + caps.monitorx = Common::Bit<29>(cpu_id[2]); } if (max_ex_fn >= 0x80000007) { |
