From c05eeefbb63cf7f9a466a7371bd44d3254806f03 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Sat, 31 Mar 2018 00:29:33 -0700 Subject: Delete dead code to support OSes prior to Windows 7 (#17367) --- src/vm/i386/cgencpu.h | 4 +-- src/vm/i386/cgenx86.cpp | 67 ------------------------------------------------- 2 files changed, 1 insertion(+), 70 deletions(-) (limited to 'src/vm/i386') diff --git a/src/vm/i386/cgencpu.h b/src/vm/i386/cgencpu.h index ffdfb82b14..f1bdd0f73f 100644 --- a/src/vm/i386/cgencpu.h +++ b/src/vm/i386/cgencpu.h @@ -44,8 +44,6 @@ EXTERN_C void STDCALL PInvokeStackImbalanceHelper(void); EXTERN_C void SinglecastDelegateInvokeStub(); #endif // FEATURE_STUBS_AS_IL -BOOL Runtime_Test_For_SSE2(); - #ifdef CROSSGEN_COMPILE #define GetEEFuncEntryPoint(pfn) 0x1001 #else @@ -61,7 +59,7 @@ BOOL Runtime_Test_For_SSE2(); // #define CPU_X86_STEPPING(cpuType) (((cpuType) & 0x000F) ) #define CPU_X86_USE_CMOV(cpuFeat) ((cpuFeat & 0x00008001) == 0x00008001) -#define CPU_X86_USE_SSE2(cpuFeat) (((cpuFeat & 0x04000000) == 0x04000000) && Runtime_Test_For_SSE2()) +#define CPU_X86_USE_SSE2(cpuFeat) ((cpuFeat & 0x04000000) == 0x04000000) // Values for CPU_X86_FAMILY(cpuType) #define CPU_X86_486 4 diff --git a/src/vm/i386/cgenx86.cpp b/src/vm/i386/cgenx86.cpp index 492cec4668..e222607a60 100644 --- a/src/vm/i386/cgenx86.cpp +++ b/src/vm/i386/cgenx86.cpp @@ -84,73 +84,6 @@ void ClearRegDisplayArgumentAndScratchRegisters(REGDISPLAY * pRD) #ifndef DACCESS_COMPILE -//============================================================================= -// Runtime test to see if the OS has enabled support for the SSE2 instructions -// -// -BOOL Runtime_Test_For_SSE2() -{ -#ifdef FEATURE_CORESYSTEM - return TRUE; -#else - - BOOL result = IsProcessorFeaturePresent(PF_XMMI64_INSTRUCTIONS_AVAILABLE); - - if (result == FALSE) - return FALSE; - - // ********************************************************************** - // *** *** - // *** IMPORTANT NOTE: *** - // *** *** - // *** All of these RunningOnXXX APIs return true when *** - // *** the OS that you are running on is that OS or later. *** - // *** For example RunningOnWin2003() will return true *** - // *** when you are running on Win2k3, Vista, Win7 or later. *** - // *** *** - // ********************************************************************** - - - // Windows 7 and later should alwys be using SSE2 instructions - // this is true for both for native and Wow64 - // - if (RunningOnWin7()) - return TRUE; - - if (RunningInWow64()) - { - // There is an issue with saving/restoring the SSE2 registers under wow64 - // So we figure out if we are running on an impacted OS and Service Pack level - // See DevDiv Bugs 89587 for the wow64 bug. - // - - _ASSERTE(ExOSInfoAvailable()); // This is always available on Vista and later - - // - // The issue is fixed in Windows Server 2008 or Vista/SP1 - // - // It is not fixed in Vista/RTM, so check for that case - // - if ((ExOSInfoRunningOnServer() == FALSE)) - { - OSVERSIONINFOEX osvi; - - ZeroMemory(&osvi, sizeof(OSVERSIONINFOEX)); - osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX); - osvi.wServicePackMajor = 0; - - DWORDLONG dwlConditionMask = 0; - VER_SET_CONDITION( dwlConditionMask, CLR_VER_SERVICEPACKMAJOR, VER_EQUAL); - - if (VerifyVersionInfo(&osvi, CLR_VER_SERVICEPACKMAJOR, dwlConditionMask)) - result = FALSE; - } - } - - return result; -#endif -} - //--------------------------------------------------------------- // Returns the type of CPU (the value of x of x86) // (Please note, that it returns 6 for P5-II) -- cgit v1.2.3