diff --git a/CMakeLists.txt b/CMakeLists.txt index 0da6405ed..e3e04556e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -194,8 +194,8 @@ elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86" OR ${CMAKE_SYSTEM_PROCESSOR} STR set(CPU_ARCH "x86") elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64") set(CPU_ARCH "aarch64") -elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7-a") - set(CPU_ARCH "arm") +elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7-a" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7l") + set(CPU_ARCH "aarch32") else() message(FATAL_ERROR "Unknown system processor: " ${CMAKE_SYSTEM_PROCESSOR}) endif() diff --git a/dep/CMakeLists.txt b/dep/CMakeLists.txt index 068ac3185..4f1b1be53 100644 --- a/dep/CMakeLists.txt +++ b/dep/CMakeLists.txt @@ -31,7 +31,7 @@ if(BUILD_LIBRETRO_CORE) add_subdirectory(libretro-common) endif() -if(${CPU_ARCH} STREQUAL "aarch64") +if(${CPU_ARCH} STREQUAL "aarch32" OR ${CPU_ARCH} STREQUAL "aarch64") add_subdirectory(vixl) endif() diff --git a/dep/vixl/CMakeLists.txt b/dep/vixl/CMakeLists.txt index ffc4d3757..88aa65e9f 100644 --- a/dep/vixl/CMakeLists.txt +++ b/dep/vixl/CMakeLists.txt @@ -27,7 +27,7 @@ target_compile_definitions(vixl PUBLIC VIXL_CODE_BUFFER_MALLOC ) -if(${CPU_ARCH} STREQUAL "arm") +if(${CPU_ARCH} STREQUAL "aarch32") target_sources(vixl PRIVATE include/vixl/aarch32/assembler-aarch32.h include/vixl/aarch32/constants-aarch32.h @@ -48,7 +48,7 @@ if(${CPU_ARCH} STREQUAL "arm") ${CMAKE_CURRENT_SOURCE_DIR}/include/vixl/aarch32 ) target_compile_definitions(vixl PUBLIC - VIXL_INCLUDE_TARGET_AARCH32 + VIXL_INCLUDE_TARGET_A32 ) endif() @@ -84,7 +84,7 @@ if(${CPU_ARCH} STREQUAL "aarch64") ${CMAKE_CURRENT_SOURCE_DIR}/include/vixl/aarch64 ) target_compile_definitions(vixl PUBLIC - VIXL_INCLUDE_TARGET_AARCH64 + VIXL_INCLUDE_TARGET_A64 ) endif() diff --git a/dep/vixl/include/vixl/aarch32/assembler-aarch32.h b/dep/vixl/include/vixl/aarch32/assembler-aarch32.h index bb7df8404..9c6b6e12b 100644 --- a/dep/vixl/include/vixl/aarch32/assembler-aarch32.h +++ b/dep/vixl/include/vixl/aarch32/assembler-aarch32.h @@ -27,10 +27,10 @@ #ifndef VIXL_AARCH32_ASSEMBLER_AARCH32_H_ #define VIXL_AARCH32_ASSEMBLER_AARCH32_H_ -#include "assembler-base-vixl.h" +#include "../assembler-base-vixl.h" -#include "aarch32/instructions-aarch32.h" -#include "aarch32/location-aarch32.h" +#include "instructions-aarch32.h" +#include "location-aarch32.h" namespace vixl { namespace aarch32 { diff --git a/dep/vixl/include/vixl/aarch32/constants-aarch32.h b/dep/vixl/include/vixl/aarch32/constants-aarch32.h index 6d79834d9..ea7244e21 100644 --- a/dep/vixl/include/vixl/aarch32/constants-aarch32.h +++ b/dep/vixl/include/vixl/aarch32/constants-aarch32.h @@ -32,7 +32,7 @@ extern "C" { #include } -#include "globals-vixl.h" +#include "../globals-vixl.h" namespace vixl { diff --git a/dep/vixl/include/vixl/aarch32/disasm-aarch32.h b/dep/vixl/include/vixl/aarch32/disasm-aarch32.h index 679f47ba6..81520f22b 100644 --- a/dep/vixl/include/vixl/aarch32/disasm-aarch32.h +++ b/dep/vixl/include/vixl/aarch32/disasm-aarch32.h @@ -33,8 +33,8 @@ extern "C" { #include -#include "aarch32/constants-aarch32.h" -#include "aarch32/operands-aarch32.h" +#include "constants-aarch32.h" +#include "operands-aarch32.h" namespace vixl { namespace aarch32 { diff --git a/dep/vixl/include/vixl/aarch32/instructions-aarch32.h b/dep/vixl/include/vixl/aarch32/instructions-aarch32.h index f11f2b02b..b235917e9 100644 --- a/dep/vixl/include/vixl/aarch32/instructions-aarch32.h +++ b/dep/vixl/include/vixl/aarch32/instructions-aarch32.h @@ -34,9 +34,10 @@ extern "C" { #include #include -#include "code-buffer-vixl.h" -#include "utils-vixl.h" -#include "aarch32/constants-aarch32.h" +#include "../code-buffer-vixl.h" +#include "../utils-vixl.h" + +#include "constants-aarch32.h" #ifdef __arm__ #define HARDFLOAT __attribute__((noinline, pcs("aapcs-vfp"))) diff --git a/dep/vixl/include/vixl/aarch32/location-aarch32.h b/dep/vixl/include/vixl/aarch32/location-aarch32.h index 0f29a6c66..637d11922 100644 --- a/dep/vixl/include/vixl/aarch32/location-aarch32.h +++ b/dep/vixl/include/vixl/aarch32/location-aarch32.h @@ -36,9 +36,9 @@ extern "C" { #include #include -#include "invalset-vixl.h" -#include "pool-manager.h" -#include "utils-vixl.h" +#include "../invalset-vixl.h" +#include "../pool-manager.h" +#include "../utils-vixl.h" #include "constants-aarch32.h" #include "instructions-aarch32.h" diff --git a/dep/vixl/include/vixl/aarch32/macro-assembler-aarch32.h b/dep/vixl/include/vixl/aarch32/macro-assembler-aarch32.h index 115d4d843..8286a999e 100644 --- a/dep/vixl/include/vixl/aarch32/macro-assembler-aarch32.h +++ b/dep/vixl/include/vixl/aarch32/macro-assembler-aarch32.h @@ -28,15 +28,15 @@ #ifndef VIXL_AARCH32_MACRO_ASSEMBLER_AARCH32_H_ #define VIXL_AARCH32_MACRO_ASSEMBLER_AARCH32_H_ -#include "code-generation-scopes-vixl.h" -#include "macro-assembler-interface.h" -#include "pool-manager-impl.h" -#include "pool-manager.h" -#include "utils-vixl.h" +#include "../code-generation-scopes-vixl.h" +#include "../macro-assembler-interface.h" +#include "../pool-manager-impl.h" +#include "../pool-manager.h" +#include "../utils-vixl.h" -#include "aarch32/assembler-aarch32.h" -#include "aarch32/instructions-aarch32.h" -#include "aarch32/operands-aarch32.h" +#include "assembler-aarch32.h" +#include "instructions-aarch32.h" +#include "operands-aarch32.h" namespace vixl { diff --git a/dep/vixl/include/vixl/aarch32/operands-aarch32.h b/dep/vixl/include/vixl/aarch32/operands-aarch32.h index 1d18bfd31..0eebef583 100644 --- a/dep/vixl/include/vixl/aarch32/operands-aarch32.h +++ b/dep/vixl/include/vixl/aarch32/operands-aarch32.h @@ -28,7 +28,7 @@ #ifndef VIXL_AARCH32_OPERANDS_AARCH32_H_ #define VIXL_AARCH32_OPERANDS_AARCH32_H_ -#include "aarch32/instructions-aarch32.h" +#include "instructions-aarch32.h" namespace vixl { namespace aarch32 {