mcst-linux-kernel/patches-2024.06.26/RBDOOM-3-BFG-1.4.0/0004-enable_SIMD_on_e2k.patch

29 lines
602 B
Diff

diff --git a/neo/sys/posix/platform_linux.cpp b/neo/sys/posix/platform_linux.cpp
index 9b08c43..c9abe85 100644
--- a/neo/sys/posix/platform_linux.cpp
+++ b/neo/sys/posix/platform_linux.cpp
@@ -85,7 +85,11 @@ Sys_GetProcessorId
*/
cpuid_t Sys_GetProcessorId()
{
+#ifdef __e2k__
+ return (cpuid_t)(CPUID_MMX | CPUID_SSE | CPUID_FTZ | CPUID_SSE2 | CPUID_SSE3 | CPUID_CMOV | CPUID_DAZ);
+#else
return CPUID_GENERIC;
+#endif
}
/*
@@ -95,7 +99,11 @@ Sys_GetProcessorString
*/
const char* Sys_GetProcessorString()
{
+#ifdef __e2k__
+ return "MCST E2K";
+#else
return "generic";
+#endif
}
/*