mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-25 17:52:54 +00:00
common: use system CPUID routine on DragonFly as well
This commit is contained in:
parent
3d801be97d
commit
ddd8709e14
|
@ -12,7 +12,7 @@ namespace Common {
|
||||||
|
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
|
|
||||||
#ifdef __FreeBSD__
|
#if defined(__DragonFly__) || defined(__FreeBSD__)
|
||||||
// clang-format off
|
// clang-format off
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <machine/cpufunc.h>
|
#include <machine/cpufunc.h>
|
||||||
|
@ -20,7 +20,7 @@ namespace Common {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static inline void __cpuidex(int info[4], int function_id, int subfunction_id) {
|
static 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.
|
// 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);
|
cpuid_count((u_int)function_id, (u_int)subfunction_id, (u_int*)info);
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue