]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
move cpuid_flags.h header to common
authorKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Thu, 8 Oct 2020 17:48:20 +0000 (20:48 +0300)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Thu, 8 Oct 2020 17:49:33 +0000 (20:49 +0300)
CMakeLists.txt
src/hs.cpp
src/util/arch/common/cpuid_flags.h [moved from src/util/arch/x86/cpuid_flags.h with 95% similarity]
src/util/target_info.cpp

index f4d1cc9ff479bb9b12adf4f70de6bba631f5de8f..c1db4dfa94dad18729187ec5ec8a222e3de8ee3b 100644 (file)
@@ -569,7 +569,7 @@ set (hs_exec_common_SRCS
     src/alloc.c
     src/scratch.c
     src/util/arch/x86/cpuid_flags.c
-    src/util/arch/x86/cpuid_flags.h
+    src/util/arch/common/cpuid_flags.h
     src/util/multibit.c
     )
 
index a0cb9bb3e9d08d9f4c7b018e3954642c8d564af4..7898cf4675fe25d937eba70863b8ed14e278a1c9 100644 (file)
 #include "parser/prefilter.h"
 #include "parser/unsupported.h"
 #include "util/compile_error.h"
+#include "util/arch/common/cpuid_flags.h"
 #if defined(ARCH_X86_64)
-#include "util/arch/x86/cpuid_flags.h"
 #include "util/arch/x86/cpuid_inline.h"
+#elif defined(ARCH_ARM32) || defined(ARCH_AARCH64)
 #endif
 #include "util/depth.h"
 #include "util/popcount.h"
similarity index 95%
rename from src/util/arch/x86/cpuid_flags.h
rename to src/util/arch/common/cpuid_flags.h
index 527c6d52f39301eade94ab1ad14479cc83e11d6b..68e427dd28be5329a98a2d28d44b425b97f0150d 100644 (file)
@@ -31,7 +31,7 @@
 
 #include "ue2common.h"
 
-#if !defined(_WIN32) && !defined(CPUID_H_)
+#if (defined(ARCH_IA32) || defined(ARCH_X86_64)) && !defined(_WIN32) && !defined(CPUID_H_)
 #include <cpuid.h>
  /* system header doesn't have a header guard */
 #define CPUID_H_
index 6eab701dea9a8b8a1993910cc0355fb9eae602a4..5253755bda7f92e149598cb580ec1d928d99df5e 100644 (file)
@@ -29,8 +29,9 @@
 
 #include "hs_compile.h" // for various hs_platform_info flags
 #include "target_info.h"
-#if defined(ARCH_X86_64)
-#include "util/arch/x86/cpuid_flags.h"
+#include "util/arch/common/cpuid_flags.h"
+#if defined(ARCH_IA32) || defined(ARCH_X86_64)
+#elif defined(ARCH_ARM32) || defined(ARCH_AARCH64)
 #endif
 
 namespace ue2 {