From 1c6606be251d382543ac58d1eefd53cbdafbb5b7 Mon Sep 17 00:00:00 2001 From: Hyungju Lee Date: Wed, 14 Jun 2023 13:52:40 +0900 Subject: [PATCH] [Tizen] built-in symbol check for __cpuid and __cpuidex --- src/coreclr/vm/i386/cgenx86.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/coreclr/vm/i386/cgenx86.cpp b/src/coreclr/vm/i386/cgenx86.cpp index 12b0731..d30b368 100644 --- a/src/coreclr/vm/i386/cgenx86.cpp +++ b/src/coreclr/vm/i386/cgenx86.cpp @@ -1163,6 +1163,7 @@ extern "C" DWORD xmmYmmStateSupport() #else // !TARGET_UNIX +#if !__has_builtin(__cpuid) void __cpuid(int cpuInfo[4], int function_id) { // Based on the Clang implementation provided in cpuid.h: @@ -1173,7 +1174,8 @@ void __cpuid(int cpuInfo[4], int function_id) : "0"(function_id) ); } - +#endif +#if !__has_builtin(__cpuidex) void __cpuidex(int cpuInfo[4], int function_id, int subFunction_id) { // Based on the Clang implementation provided in cpuid.h: @@ -1184,6 +1186,7 @@ void __cpuidex(int cpuInfo[4], int function_id, int subFunction_id) : "0"(function_id), "2"(subFunction_id) ); } +#endif extern "C" DWORD xmmYmmStateSupport() { -- 2.7.4