VERY experimental Nintendo Switch 2 emulator
C++
common: use system CPUID routine on DragonFly as well
Jan Beich6ddc8b49fff9
diff --git a/src/common/x64/cpu_detect.cpp b/src/common/x64/cpu_detect.cppindex 4abbdb96a9..370ae2c805 100644--- a/src/common/x64/cpu_detect.cpp+++ b/src/common/x64/cpu_detect.cpp@@ -12,7 +12,7 @@ namespace Common {#ifndef _MSC_VER-#ifdef __FreeBSD__+#if defined(__DragonFly__) || defined(__FreeBSD__)// clang-format off#include <sys/types.h>#include <machine/cpufunc.h>@@ -20,7 +20,7 @@ namespace Common {#endifstatic inline void __cpuidex(int info[4], int function_id, int subfunction_id) {-#ifdef __FreeBSD__+#if defined(__DragonFly__) || defined(__FreeBSD__)// Despite the name, this is just do_cpuid() with ECX as second input.cpuid_count((u_int)function_id, (u_int)subfunction_id, (u_int*)info);#else