From 1ee0540f8294f3381b02ce5c113ec0c0149cf124 Mon Sep 17 00:00:00 2001
From: Liam <byteslice@airmail.cc>
Date: Thu, 5 Jan 2023 18:06:06 -0500
Subject: [PATCH] externals: update dynarmic, xbyak

---
 externals/dynarmic                        | 2 +-
 externals/xbyak                           | 2 +-
 src/core/arm/dynarmic/arm_dynarmic_32.cpp | 4 ++++
 src/core/arm/dynarmic/arm_dynarmic_64.cpp | 4 ++++
 4 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/externals/dynarmic b/externals/dynarmic
index bd570e093c..a1cbea7948 160000
--- a/externals/dynarmic
+++ b/externals/dynarmic
@@ -1 +1 @@
-Subproject commit bd570e093ca1d1206961296b90df65cda7de8e87
+Subproject commit a1cbea7948372989218a4e6159a95998d65876a2
diff --git a/externals/xbyak b/externals/xbyak
index 348e3e548e..a1ac3750f9 160000
--- a/externals/xbyak
+++ b/externals/xbyak
@@ -1 +1 @@
-Subproject commit 348e3e548ebac06d243e5881caec8440e249f65f
+Subproject commit a1ac3750f9a639b5a6c6d6c7da4259b8d6790989
diff --git a/src/core/arm/dynarmic/arm_dynarmic_32.cpp b/src/core/arm/dynarmic/arm_dynarmic_32.cpp
index 947747d361..2a75700734 100644
--- a/src/core/arm/dynarmic/arm_dynarmic_32.cpp
+++ b/src/core/arm/dynarmic/arm_dynarmic_32.cpp
@@ -229,7 +229,11 @@ std::shared_ptr<Dynarmic::A32::Jit> ARM_Dynarmic_32::MakeJit(Common::PageTable*
     config.enable_cycle_counting = true;
 
     // Code cache size
+#ifdef ARCHITECTURE_arm64
+    config.code_cache_size = 128_MiB;
+#else
     config.code_cache_size = 512_MiB;
+#endif
 
     // Allow memory fault handling to work
     if (system.DebuggerEnabled()) {
diff --git a/src/core/arm/dynarmic/arm_dynarmic_64.cpp b/src/core/arm/dynarmic/arm_dynarmic_64.cpp
index 3df943df7b..7229fdc2a9 100644
--- a/src/core/arm/dynarmic/arm_dynarmic_64.cpp
+++ b/src/core/arm/dynarmic/arm_dynarmic_64.cpp
@@ -288,7 +288,11 @@ std::shared_ptr<Dynarmic::A64::Jit> ARM_Dynarmic_64::MakeJit(Common::PageTable*
     config.enable_cycle_counting = true;
 
     // Code cache size
+#ifdef ARCHITECTURE_arm64
+    config.code_cache_size = 128_MiB;
+#else
     config.code_cache_size = 512_MiB;
+#endif
 
     // Allow memory fault handling to work
     if (system.DebuggerEnabled()) {