diff options
| author | gingerBill <bill@gingerbill.org> | 2021-11-05 12:44:08 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-11-05 12:44:08 +0000 |
| commit | 1a75a714036014b9a7fe1eb05618f2eca2ef02c3 (patch) | |
| tree | 94c6403599688c7a6cc0f444aa3a88d5de620ecb /src/bug_report.cpp | |
| parent | 439fc86740a3a170b1ea5d2ce4816dcba03b21ad (diff) | |
| parent | cee9561259bf014ffc84a45c85282c639197e619 (diff) | |
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'src/bug_report.cpp')
| -rw-r--r-- | src/bug_report.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/bug_report.cpp b/src/bug_report.cpp index 5249cc3a4..27e7fcf9a 100644 --- a/src/bug_report.cpp +++ b/src/bug_report.cpp @@ -146,10 +146,17 @@ void report_windows_product_type(DWORD ProductType) { #endif
void odin_cpuid(int leaf, int result[]) {
- #if defined(GB_COMPILER_MSVC)
- __cpuid(result, leaf);
- #else
- __get_cpuid(leaf, (unsigned int*)&result[0], (unsigned int*)&result[1], (unsigned int*)&result[2], (unsigned int*)&result[3]);
+ #if defined(GB_CPU_ARM)
+ return;
+
+ #elif defined(GB_CPU_X86)
+
+ #if defined(GB_COMPILER_MSVC)
+ __cpuid(result, leaf);
+ #else
+ __get_cpuid(leaf, (unsigned int*)&result[0], (unsigned int*)&result[1], (unsigned int*)&result[2], (unsigned int*)&result[3]);
+ #endif
+
#endif
}
|