Просмотр исходного кода

Common: Move cpu_detect to x64 directory.

bunnei 11 лет назад
Родитель
Сommit
a1942238f5

+ 2 - 2
src/common/CMakeLists.txt

@@ -3,7 +3,6 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/scm_rev.cpp.in" "${CMAKE_CURRENT_SOU
 
 set(SRCS
             break_points.cpp
-            cpu_detect.cpp
             emu_window.cpp
             file_util.cpp
             hash.cpp
@@ -31,7 +30,6 @@ set(HEADERS
             common_funcs.h
             common_paths.h
             common_types.h
-            cpu_detect.h
             debug_interface.h
             emu_window.h
             file_util.h
@@ -63,10 +61,12 @@ set(HEADERS
 if(ARCHITECTURE_X64)
     set(SRCS ${SRCS}
             x64/abi.cpp
+            x64/cpu_detect.cpp
             x64/emitter.cpp)
 
     set(HEADERS ${HEADERS}
             x64/abi.h
+            x64/cpu_detect.h
             x64/emitter.h)
 endif()
 

+ 2 - 2
src/common/cpu_detect.cpp → src/common/x64/cpu_detect.cpp

@@ -5,9 +5,9 @@
 #include <cstring>
 #include <string>
 
-#include "common_types.h"
+#include "common/common_types.h"
+
 #include "cpu_detect.h"
-#include "hash.h"
 
 #ifndef _WIN32
 

+ 0 - 0
src/common/cpu_detect.h → src/common/x64/cpu_detect.h


+ 1 - 1
src/common/x64/emitter.cpp

@@ -18,11 +18,11 @@
 #include <cstring>
 
 #include "common/assert.h"
-#include "common/cpu_detect.h"
 #include "common/logging/log.h"
 #include "common/memory_util.h"
 
 #include "abi.h"
+#include "cpu_detect.h"
 #include "emitter.h"
 
 #define PRIx64 "llx"

+ 1 - 2
src/video_core/shader/shader_jit_x64.cpp

@@ -4,9 +4,8 @@
 
 #include <smmintrin.h>
 
-#include "common/cpu_detect.h"
-
 #include "common/x64/abi.h"
+#include "common/x64/cpu_detect.h"
 #include "common/x64/emitter.h"
 
 #include "shader.h"