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 | 5e70db0d433054e18ab7432cafd2a87d68573642 (patch) | |
tree | 3ea86827d33b20a4083964feca7d7b532685efb9 /src/common/x64/cpu_detect.cpp | |
parent | 4c705db73edfa3c7210eb5821b3f4e5324d642d1 (diff) | |
parent | 295fc7d0f8f0b6158307c5c9b11a60516f9eb221 (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 c998b1197..780120a5b 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) { |