diff options
| author | 2016-10-10 16:01:55 +0000 | |
|---|---|---|
| committer | 2016-10-27 23:28:30 +0000 | |
| commit | ddd8709e14ba5f954ee4855d4bb55e4b31b0c3ec (patch) | |
| tree | 11cf55df2953cfdd297cf32b7d0c34268f08374f /src/common/x64/cpu_detect.cpp | |
| parent | common: some FreeBSD headers are incomplete to avoid namespace pollution (diff) | |
| download | yuzu-ddd8709e14ba5f954ee4855d4bb55e4b31b0c3ec.tar.gz yuzu-ddd8709e14ba5f954ee4855d4bb55e4b31b0c3ec.tar.xz yuzu-ddd8709e14ba5f954ee4855d4bb55e4b31b0c3ec.zip | |
common: use system CPUID routine on DragonFly as well
Diffstat (limited to 'src/common/x64/cpu_detect.cpp')
| -rw-r--r-- | src/common/x64/cpu_detect.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/x64/cpu_detect.cpp b/src/common/x64/cpu_detect.cpp index 4abbdb96a..370ae2c80 100644 --- a/src/common/x64/cpu_detect.cpp +++ b/src/common/x64/cpu_detect.cpp | |||
| @@ -12,7 +12,7 @@ namespace Common { | |||
| 12 | 12 | ||
| 13 | #ifndef _MSC_VER | 13 | #ifndef _MSC_VER |
| 14 | 14 | ||
| 15 | #ifdef __FreeBSD__ | 15 | #if defined(__DragonFly__) || defined(__FreeBSD__) |
| 16 | // clang-format off | 16 | // clang-format off |
| 17 | #include <sys/types.h> | 17 | #include <sys/types.h> |
| 18 | #include <machine/cpufunc.h> | 18 | #include <machine/cpufunc.h> |
| @@ -20,7 +20,7 @@ namespace Common { | |||
| 20 | #endif | 20 | #endif |
| 21 | 21 | ||
| 22 | static inline void __cpuidex(int info[4], int function_id, int subfunction_id) { | 22 | static inline void __cpuidex(int info[4], int function_id, int subfunction_id) { |
| 23 | #ifdef __FreeBSD__ | 23 | #if defined(__DragonFly__) || defined(__FreeBSD__) |
| 24 | // Despite the name, this is just do_cpuid() with ECX as second input. | 24 | // Despite the name, this is just do_cpuid() with ECX as second input. |
| 25 | cpuid_count((u_int)function_id, (u_int)subfunction_id, (u_int*)info); | 25 | cpuid_count((u_int)function_id, (u_int)subfunction_id, (u_int*)info); |
| 26 | #else | 26 | #else |