VERY experimental Nintendo Switch 2 emulator
C++
Common: Move cpu_detect to x64 directory.
bunnei15e9a59ad0ca
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txtindex fe82f71e8a..53c9156062 100644--- a/src/common/CMakeLists.txt+++ b/src/common/CMakeLists.txt@@ -3,7 +3,6 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/scm_rev.cpp.in" "${CMAKE_CURRENT_SOUset(SRCSbreak_points.cpp- cpu_detect.cppemu_window.cppfile_util.cpphash.cpp@@ -31,7 +30,6 @@ set(HEADERScommon_funcs.hcommon_paths.hcommon_types.h- cpu_detect.hdebug_interface.hemu_window.hfile_util.h@@ -63,10 +61,12 @@ set(HEADERSif(ARCHITECTURE_X64)set(SRCS ${SRCS}x64/abi.cpp+ x64/cpu_detect.cppx64/emitter.cpp)set(HEADERS ${HEADERS}x64/abi.h+ x64/cpu_detect.hx64/emitter.h)endif()diff --git a/src/common/cpu_detect.cpp b/src/common/x64/cpu_detect.cppsimilarity index 99%rename from src/common/cpu_detect.cpprename to src/common/x64/cpu_detect.cppindex 1d612829e3..72c8297a30 100644--- a/src/common/cpu_detect.cpp+++ b/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 _WIN32diff --git a/src/common/cpu_detect.h b/src/common/x64/cpu_detect.hsimilarity index 100%rename from src/common/cpu_detect.hrename to src/common/x64/cpu_detect.hdiff --git a/src/common/x64/emitter.cpp b/src/common/x64/emitter.cppindex 4e1c43d6cf..5463841d74 100644--- a/src/common/x64/emitter.cpp+++ b/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"diff --git a/src/video_core/shader/shader_jit_x64.cpp b/src/video_core/shader/shader_jit_x64.cppindex 1e20a06a79..93e665d43c 100644--- a/src/video_core/shader/shader_jit_x64.cpp+++ b/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"