File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
substratevm/src/com.oracle.svm.native.libchelper/src Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 4242#ifndef _WIN64
4343#include <cpuid.h>
4444
45+ #if defined(_MSC_VER ) && !defined(__clang__ )
46+ #define NO_INLINE __declspec(noinline)
47+ #else
48+ #define NO_INLINE __attribute__((noinline))
49+ #endif
50+
4551static void read_xem_xcr0 (uint32_t * eax , uint32_t * edx ) {
4652 __asm__ __volatile__("xgetbv" : "=a" (* eax ), "=d" (* edx ) : "c" (0 ));
4753}
@@ -381,8 +387,8 @@ static void initialize_cpuinfo(CpuidInfo *_cpuid_info)
381387 }
382388}
383389
384- // ported from from vm_version_x86.hpp ::feature_flags
385- static void set_cpufeatures (CPUFeatures * features , CpuidInfo * _cpuid_info )
390+ // ported from from vm_version_x86.cpp ::feature_flags
391+ static void NO_INLINE set_cpufeatures (CPUFeatures * features , CpuidInfo * _cpuid_info )
386392{
387393 if (_cpuid_info -> std_cpuid1_edx .bits .cmpxchg8 != 0 )
388394 features -> fCX8 = 1 ;
You can’t perform that action at this time.
0 commit comments