diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-06-28 07:07:10 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-06-28 07:36:06 +0200 |
commit | 4303ed614d0d758d9e9bcdef8afee3274769d2fb (patch) | |
tree | b4652d7ce7635a1b7080fc57abd42c9d81f8f2e3 /src | |
parent | Merge pull request #10933 from merryhime/dunno (diff) | |
download | yuzu-4303ed614d0d758d9e9bcdef8afee3274769d2fb.tar yuzu-4303ed614d0d758d9e9bcdef8afee3274769d2fb.tar.gz yuzu-4303ed614d0d758d9e9bcdef8afee3274769d2fb.tar.bz2 yuzu-4303ed614d0d758d9e9bcdef8afee3274769d2fb.tar.lz yuzu-4303ed614d0d758d9e9bcdef8afee3274769d2fb.tar.xz yuzu-4303ed614d0d758d9e9bcdef8afee3274769d2fb.tar.zst yuzu-4303ed614d0d758d9e9bcdef8afee3274769d2fb.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/common/telemetry.cpp | 1 | ||||
-rw-r--r-- | src/common/x64/cpu_detect.cpp | 1 | ||||
-rw-r--r-- | src/common/x64/cpu_detect.h | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/common/telemetry.cpp b/src/common/telemetry.cpp index 91352912d..929ed67e4 100644 --- a/src/common/telemetry.cpp +++ b/src/common/telemetry.cpp @@ -93,6 +93,7 @@ void AppendCPUInfo(FieldCollection& fc) { add_field("CPU_Extension_x64_GFNI", caps.gfni); add_field("CPU_Extension_x64_INVARIANT_TSC", caps.invariant_tsc); add_field("CPU_Extension_x64_LZCNT", caps.lzcnt); + add_field("CPU_Extension_x64_MONITORX", caps.monitorx); add_field("CPU_Extension_x64_MOVBE", caps.movbe); add_field("CPU_Extension_x64_PCLMULQDQ", caps.pclmulqdq); add_field("CPU_Extension_x64_POPCNT", caps.popcnt); 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) { diff --git a/src/common/x64/cpu_detect.h b/src/common/x64/cpu_detect.h index 8253944d6..756459417 100644 --- a/src/common/x64/cpu_detect.h +++ b/src/common/x64/cpu_detect.h @@ -63,6 +63,7 @@ struct CPUCaps { bool gfni : 1; bool invariant_tsc : 1; bool lzcnt : 1; + bool monitorx : 1; bool movbe : 1; bool pclmulqdq : 1; bool popcnt : 1; |