Skip to content

Commit 081ebea

Browse files
authored
Add AArch64 recompiler backend (#1556)
1 parent d13dab0 commit 081ebea

File tree

9 files changed

+1766
-7
lines changed

9 files changed

+1766
-7
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@
1818
path = dependencies/imgui
1919
url = https://github.com/ocornut/imgui
2020
shallow = true
21+
[submodule "dependencies/xbyak_aarch64"]
22+
path = dependencies/xbyak_aarch64
23+
url = https://github.com/fujitsu/xbyak_aarch64

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,10 @@ endif()
222222

223223
add_subdirectory("dependencies/ih264d" EXCLUDE_FROM_ALL)
224224

225+
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(aarch64)|(AARCH64)")
226+
add_subdirectory("dependencies/xbyak_aarch64" EXCLUDE_FROM_ALL)
227+
endif()
228+
225229
find_package(ZArchive)
226230
if (NOT ZArchive_FOUND)
227231
add_subdirectory("dependencies/ZArchive" EXCLUDE_FROM_ALL)

dependencies/xbyak_aarch64

Submodule xbyak_aarch64 added at 904b892

src/Cafe/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,14 @@ if(APPLE)
537537
target_sources(CemuCafe PRIVATE "HW/Latte/Renderer/Vulkan/CocoaSurface.mm")
538538
endif()
539539

540+
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(aarch64)|(AARCH64)")
541+
target_sources(CemuCafe PRIVATE
542+
HW/Espresso/Recompiler/BackendAArch64/BackendAArch64.cpp
543+
HW/Espresso/Recompiler/BackendAArch64/BackendAArch64.h
544+
)
545+
target_link_libraries(CemuCafe PRIVATE xbyak_aarch64)
546+
endif()
547+
540548
set_property(TARGET CemuCafe PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
541549

542550
target_include_directories(CemuCafe PUBLIC "../")

0 commit comments

Comments
 (0)