Skip to content

Manic EMU is an all-in-one retro game emulator for iOS. It packs powerful features while keeping a clean, sleek UI and delivering buttery-smooth gameplay.

Swift

Integrated Azahar as a project. Azahar and Citra have completed iOS 26 JIT adaptation. Citra has added fast-forward and AirPlay features.

Daiuno3b10527cdcad
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 00000000..4f6f6235
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "Cores/Azahar"]
+ path = Cores/Azahar
+ url = https://github.com/Daiuno/azahar.git
diff --git a/Cores/Azahar b/Cores/Azahar
new file mode 160000
index 00000000..9e6ae5a3
--- /dev/null
+++ b/Cores/Azahar
@@ -0,0 +1 @@
+Subproject commit 9e6ae5a3fc4b87510e3fe7986b55d51942b0edf2
diff --git a/Cores/Citra/Core/include/common/settings.h b/Cores/Citra/Core/include/common/settings.h
index e1293b31..900ca223 100644
--- a/Cores/Citra/Core/include/common/settings.h
+++ b/Cores/Citra/Core/include/common/settings.h
@@ -477,6 +477,7 @@ struct Values {
Setting<bool> use_shader_jit{true, "use_shader_jit"};
SwitchableSetting<u32, true> resolution_factor{1, 0, 10, "resolution_factor"};
SwitchableSetting<u16, true> frame_limit{100, 0, 1000, "frame_limit"};
+ bool frame_skip{false};
SwitchableSetting<TextureFilter> texture_filter{TextureFilter::None, "texture_filter"};
SwitchableSetting<TextureSampling> texture_sampling{TextureSampling::GameControlled,
"texture_sampling"};
diff --git a/Cores/Citra/Core/video_core/renderer_vulkan/renderer_vulkan.cpp b/Cores/Citra/Core/video_core/renderer_vulkan/renderer_vulkan.cpp
index cf06e665..a9162f13 100644
--- a/Cores/Citra/Core/video_core/renderer_vulkan/renderer_vulkan.cpp
+++ b/Cores/Citra/Core/video_core/renderer_vulkan/renderer_vulkan.cpp
@@ -832,21 +832,25 @@ void RendererVulkan::DrawScreens(Frame* frame, const Layout::FramebufferLayout&
}
void RendererVulkan::SwapBuffers() {
- const Layout::FramebufferLayout& layout = render_window.GetFramebufferLayout();
- PrepareRendertarget();
- RenderScreenshot();
- RenderToWindow(main_window, layout, false);
+ const bool skip_frame = Settings::values.frame_skip &&
+ (current_frame % 2 != 0);
+ if (!skip_frame) {
+ const Layout::FramebufferLayout& layout = render_window.GetFramebufferLayout();
+ PrepareRendertarget();
+ RenderScreenshot();
+ RenderToWindow(main_window, layout, false);
#ifndef ANDROID
- if (Settings::values.layout_option.GetValue() == Settings::LayoutOption::SeparateWindows) {
- ASSERT(secondary_window);
- const auto& secondary_layout = secondary_window->GetFramebufferLayout();
- if (!second_window) {
- second_window = std::make_unique<PresentWindow>(*secondary_window, instance, scheduler);
+ if (Settings::values.layout_option.GetValue() == Settings::LayoutOption::SeparateWindows) {
+ ASSERT(secondary_window);
+ const auto& secondary_layout = secondary_window->GetFramebufferLayout();
+ if (!second_window) {
+ second_window = std::make_unique<PresentWindow>(*secondary_window, instance, scheduler);
+ }
+ RenderToWindow(*second_window, secondary_layout, false);
+ secondary_window->PollEvents();
}
- RenderToWindow(*second_window, secondary_layout, false);
- secondary_window->PollEvents();
- }
#endif
+ }
rasterizer.TickFrame();
EndFrame();
}
diff --git a/Cores/Citra/Core/video_core/shader/shader_jit_a64_compiler.cpp b/Cores/Citra/Core/video_core/shader/shader_jit_a64_compiler.cpp
index 4a66ac85..6dc1b468 100644
--- a/Cores/Citra/Core/video_core/shader/shader_jit_a64_compiler.cpp
+++ b/Cores/Citra/Core/video_core/shader/shader_jit_a64_compiler.cpp
@@ -974,7 +974,7 @@ void JitShader::Compile(const std::array<u32, MAX_PROGRAM_CODE_LENGTH>* program_
LOG_DEBUG(HW_GPU, "Compiled shader size={}", code_size);
}
-JitShader::JitShader() : CodeBlock(MAX_SHADER_SIZE), CodeGenerator(CodeBlock::ptr()) {
+JitShader::JitShader() : CodeBlock(MAX_SHADER_SIZE), CodeGenerator(CodeBlock::wptr(), CodeBlock::ptr()) {
unprotect();
CompilePrelude();
}
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/Info.plist b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/Info.plist
index 7ff770ff..f51fcf9a 100644
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/Info.plist
+++ b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/Info.plist
@@ -4,58 +4,6 @@
<dict>
<key>AvailableLibraries</key>
<array>
- <dict>
- <key>BinaryPath</key>
- <string>libdynarmic.a</string>
- <key>HeadersPath</key>
- <string>Headers</string>
- <key>LibraryIdentifier</key>
- <string>tvos-arm64</string>
- <key>LibraryPath</key>
- <string>libdynarmic.a</string>
- <key>SupportedArchitectures</key>
- <array>
- <string>arm64</string>
- </array>
- <key>SupportedPlatform</key>
- <string>tvos</string>
- </dict>
- <dict>
- <key>BinaryPath</key>
- <string>libdynarmic.a</string>
- <key>HeadersPath</key>
- <string>Headers</string>
- <key>LibraryIdentifier</key>
- <string>tvos-arm64-simulator</string>
- <key>LibraryPath</key>
- <string>libdynarmic.a</string>
- <key>SupportedArchitectures</key>
- <array>
- <string>arm64</string>
- </array>
- <key>SupportedPlatform</key>
- <string>tvos</string>
- <key>SupportedPlatformVariant</key>
- <string>simulator</string>
- </dict>
- <dict>
- <key>BinaryPath</key>
- <string>libdynarmic.a</string>
- <key>HeadersPath</key>
- <string>Headers</string>
- <key>LibraryIdentifier</key>
- <string>ios-arm64-simulator</string>
- <key>LibraryPath</key>
- <string>libdynarmic.a</string>
- <key>SupportedArchitectures</key>
- <array>
- <string>arm64</string>
- </array>
- <key>SupportedPlatform</key>
- <string>ios</string>
- <key>SupportedPlatformVariant</key>
- <string>simulator</string>
- </dict>
<dict>
<key>BinaryPath</key>
<string>libdynarmic.a</string>
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/a32_address_space.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/a32_address_space.h
deleted file mode 100644
index 3b9e9fb2..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/a32_address_space.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include "dynarmic/backend/arm64/address_space.h"
-#include "dynarmic/backend/block_range_information.h"
-#include "dynarmic/interface/A32/config.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct EmittedBlockInfo;
-
-class A32AddressSpace final : public AddressSpace {
-public:
- explicit A32AddressSpace(const A32::UserConfig& conf);
-
- IR::Block GenerateIR(IR::LocationDescriptor) const override;
-
- void InvalidateCacheRanges(const boost::icl::interval_set<u32>& ranges);
-
-protected:
- friend class A32Core;
-
- void EmitPrelude();
- EmitConfig GetEmitConfig() override;
- void RegisterNewBasicBlock(const IR::Block& block, const EmittedBlockInfo& block_info) override;
-
- const A32::UserConfig conf;
- BlockRangeInformation<u32> block_ranges;
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/a32_core.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/a32_core.h
deleted file mode 100644
index 86f6f284..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/a32_core.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include "dynarmic/backend/arm64/a32_address_space.h"
-#include "dynarmic/backend/arm64/a32_jitstate.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-class A32Core final {
-public:
- explicit A32Core(const A32::UserConfig&) {}
-
- HaltReason Run(A32AddressSpace& process, A32JitState& thread_ctx, volatile u32* halt_reason) {
- const auto location_descriptor = thread_ctx.GetLocationDescriptor();
- const auto entry_point = process.GetOrEmit(location_descriptor);
- return process.prelude_info.run_code(entry_point, &thread_ctx, halt_reason);
- }
-
- HaltReason Step(A32AddressSpace& process, A32JitState& thread_ctx, volatile u32* halt_reason) {
- const auto location_descriptor = A32::LocationDescriptor{thread_ctx.GetLocationDescriptor()}.SetSingleStepping(true);
- const auto entry_point = process.GetOrEmit(location_descriptor);
- return process.prelude_info.step_code(entry_point, &thread_ctx, halt_reason);
- }
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/a32_jitstate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/a32_jitstate.h
deleted file mode 100644
index 978bf84a..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/a32_jitstate.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2021 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/A32/a32_location_descriptor.h"
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct A32JitState {
- u32 cpsr_nzcv = 0;
- u32 cpsr_q = 0;
- u32 cpsr_jaifm = 0;
- u32 cpsr_ge = 0;
-
- u32 fpsr = 0;
- u32 fpsr_nzcv = 0;
-
- std::array<u32, 16> regs{};
-
- u32 upper_location_descriptor;
-
- alignas(16) std::array<u32, 64> ext_regs{};
-
- u32 exclusive_state = 0;
-
- u32 Cpsr() const;
- void SetCpsr(u32 cpsr);
-
- u32 Fpscr() const;
- void SetFpscr(u32 fpscr);
-
- IR::LocationDescriptor GetLocationDescriptor() const {
- return IR::LocationDescriptor{regs[15] | (static_cast<u64>(upper_location_descriptor) << 32)};
- }
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/a64_address_space.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/a64_address_space.h
deleted file mode 100644
index 86eae4dd..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/a64_address_space.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include "dynarmic/backend/arm64/address_space.h"
-#include "dynarmic/backend/block_range_information.h"
-#include "dynarmic/interface/A64/config.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct EmittedBlockInfo;
-
-class A64AddressSpace final : public AddressSpace {
-public:
- explicit A64AddressSpace(const A64::UserConfig& conf);
-
- IR::Block GenerateIR(IR::LocationDescriptor) const override;
-
- void InvalidateCacheRanges(const boost::icl::interval_set<u64>& ranges);
-
-protected:
- friend class A64Core;
-
- void EmitPrelude();
- EmitConfig GetEmitConfig() override;
- void RegisterNewBasicBlock(const IR::Block& block, const EmittedBlockInfo& block_info) override;
-
- const A64::UserConfig conf;
- BlockRangeInformation<u64> block_ranges;
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/a64_core.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/a64_core.h
deleted file mode 100644
index 24fbb66b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/a64_core.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include "dynarmic/backend/arm64/a64_address_space.h"
-#include "dynarmic/backend/arm64/a64_jitstate.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-class A64Core final {
-public:
- explicit A64Core(const A64::UserConfig&) {}
-
- HaltReason Run(A64AddressSpace& process, A64JitState& thread_ctx, volatile u32* halt_reason) {
- const auto location_descriptor = thread_ctx.GetLocationDescriptor();
- const auto entry_point = process.GetOrEmit(location_descriptor);
- return process.prelude_info.run_code(entry_point, &thread_ctx, halt_reason);
- }
-
- HaltReason Step(A64AddressSpace& process, A64JitState& thread_ctx, volatile u32* halt_reason) {
- const auto location_descriptor = A64::LocationDescriptor{thread_ctx.GetLocationDescriptor()}.SetSingleStepping(true);
- const auto entry_point = process.GetOrEmit(location_descriptor);
- return process.prelude_info.step_code(entry_point, &thread_ctx, halt_reason);
- }
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/a64_jitstate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/a64_jitstate.h
deleted file mode 100644
index 215e6987..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/a64_jitstate.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/A64/a64_location_descriptor.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct A64JitState {
- std::array<u64, 31> reg{};
- u64 sp = 0;
- u64 pc = 0;
-
- u32 cpsr_nzcv = 0;
-
- alignas(16) std::array<u64, 64> vec{};
-
- u32 exclusive_state = 0;
-
- u32 fpsr = 0;
- u32 fpcr = 0;
-
- IR::LocationDescriptor GetLocationDescriptor() const {
- const u64 fpcr_u64 = static_cast<u64>(fpcr & A64::LocationDescriptor::fpcr_mask) << A64::LocationDescriptor::fpcr_shift;
- const u64 pc_u64 = pc & A64::LocationDescriptor::pc_mask;
- return IR::LocationDescriptor{pc_u64 | fpcr_u64};
- }
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/abi.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/abi.h
deleted file mode 100644
index 609b06cd..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/abi.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <initializer_list>
-#include <stdexcept>
-#include <type_traits>
-
-#include <mcl/mp/metavalue/lift_value.hpp>
-#include <mcl/stdint.hpp>
-#include <oaknut/oaknut.hpp>
-
-#include "dynarmic/common/always_false.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-constexpr oaknut::XReg Xstate{28};
-constexpr oaknut::XReg Xhalt{27};
-constexpr oaknut::XReg Xticks{26};
-constexpr oaknut::XReg Xfastmem{25};
-constexpr oaknut::XReg Xpagetable{24};
-
-constexpr oaknut::XReg Xscratch0{16}, Xscratch1{17}, Xscratch2{30};
-constexpr oaknut::WReg Wscratch0{16}, Wscratch1{17}, Wscratch2{30};
-
-template<size_t bitsize>
-constexpr auto Rscratch0() {
- if constexpr (bitsize == 32) {
- return Wscratch0;
- } else if constexpr (bitsize == 64) {
- return Xscratch0;
- } else {
- static_assert(Common::always_false_v<mcl::mp::lift_value<bitsize>>);
- }
-}
-
-template<size_t bitsize>
-constexpr auto Rscratch1() {
- if constexpr (bitsize == 32) {
- return Wscratch1;
- } else if constexpr (bitsize == 64) {
- return Xscratch1;
- } else {
- static_assert(Common::always_false_v<mcl::mp::lift_value<bitsize>>);
- }
-}
-
-constexpr std::initializer_list<int> GPR_ORDER{19, 20, 21, 22, 23, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7, 8};
-constexpr std::initializer_list<int> FPR_ORDER{8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31};
-
-using RegisterList = u64;
-
-constexpr RegisterList ToRegList(oaknut::Reg reg) {
- if (reg.is_vector()) {
- return RegisterList{1} << (reg.index() + 32);
- }
-
- if (reg.index() == 31) {
- throw std::out_of_range("ZR not allowed in reg list");
- }
-
- if (reg.index() == -1) {
- return RegisterList{1} << 31;
- }
-
- return RegisterList{1} << reg.index();
-}
-
-constexpr RegisterList ABI_CALLEE_SAVE = 0x0000ff00'7ff80000;
-constexpr RegisterList ABI_CALLER_SAVE = 0xffffffff'4000ffff;
-
-void ABI_PushRegisters(oaknut::CodeGenerator& code, RegisterList rl, size_t stack_space);
-void ABI_PopRegisters(oaknut::CodeGenerator& code, RegisterList rl, size_t stack_space);
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/address_space.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/address_space.h
deleted file mode 100644
index a5fe7513..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/address_space.h
+++ /dev/null
@@ -1,136 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <map>
-#include <optional>
-
-#include <mcl/stdint.hpp>
-#include <oaknut/code_block.hpp>
-#include <oaknut/oaknut.hpp>
-#include <tsl/robin_map.h>
-#include <tsl/robin_set.h>
-
-#include "dynarmic/backend/arm64/emit_arm64.h"
-#include "dynarmic/backend/arm64/fastmem.h"
-#include "dynarmic/interface/halt_reason.h"
-#include "dynarmic/ir/basic_block.h"
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-class AddressSpace {
-public:
- explicit AddressSpace(size_t code_cache_size);
- virtual ~AddressSpace();
-
- virtual IR::Block GenerateIR(IR::LocationDescriptor) const = 0;
-
- CodePtr Get(IR::LocationDescriptor descriptor);
-
- // Returns "most likely" LocationDescriptor assocated with the emitted code at that location
- std::optional<IR::LocationDescriptor> ReverseGetLocation(CodePtr host_pc);
-
- // Returns "most likely" entry_point associated with the emitted code at that location
- CodePtr ReverseGetEntryPoint(CodePtr host_pc);
-
- CodePtr GetOrEmit(IR::LocationDescriptor descriptor);
-
- void InvalidateBasicBlocks(const tsl::robin_set<IR::LocationDescriptor>& descriptors);
-
- void ClearCache();
-
-protected:
- virtual EmitConfig GetEmitConfig() = 0;
- virtual void RegisterNewBasicBlock(const IR::Block& block, const EmittedBlockInfo& block_info) = 0;
-
- void ProtectCodeMemory() {
-#if defined(DYNARMIC_ENABLE_NO_EXECUTE_SUPPORT) || defined(__APPLE__) || defined(__OpenBSD__)
- mem.protect();
-#endif
- }
-
- void UnprotectCodeMemory() {
-#if defined(DYNARMIC_ENABLE_NO_EXECUTE_SUPPORT) || defined(__APPLE__) || defined(__OpenBSD__)
- mem.unprotect();
-#endif
- }
-
- size_t GetRemainingSize();
- EmittedBlockInfo Emit(IR::Block ir_block);
- void Link(EmittedBlockInfo& block);
- void LinkBlockLinks(const CodePtr entry_point, const CodePtr target_ptr, const std::vector<BlockRelocation>& block_relocations_list);
- void RelinkForDescriptor(IR::LocationDescriptor target_descriptor, CodePtr target_ptr);
-
- FakeCall FastmemCallback(u64 host_pc);
-
- const size_t code_cache_size;
- oaknut::CodeBlock mem;
- oaknut::CodeGenerator code;
-
- // A IR::LocationDescriptor will have one current CodePtr.
- // However, there can be multiple other CodePtrs which are older, previously invalidated blocks.
- tsl::robin_map<IR::LocationDescriptor, CodePtr> block_entries;
- std::map<CodePtr, IR::LocationDescriptor> reverse_block_entries;
- tsl::robin_map<CodePtr, EmittedBlockInfo> block_infos;
- tsl::robin_map<IR::LocationDescriptor, tsl::robin_set<CodePtr>> block_references;
-
- ExceptionHandler exception_handler;
- FastmemManager fastmem_manager;
-
- struct PreludeInfo {
- std::ptrdiff_t end_of_prelude;
-
- using RunCodeFuncType = HaltReason (*)(CodePtr entry_point, void* jit_state, volatile u32* halt_reason);
- RunCodeFuncType run_code;
- RunCodeFuncType step_code;
- void* return_to_dispatcher;
- void* return_from_run_code;
-
- void* read_memory_8;
- void* read_memory_16;
- void* read_memory_32;
- void* read_memory_64;
- void* read_memory_128;
- void* wrapped_read_memory_8;
- void* wrapped_read_memory_16;
- void* wrapped_read_memory_32;
- void* wrapped_read_memory_64;
- void* wrapped_read_memory_128;
- void* exclusive_read_memory_8;
- void* exclusive_read_memory_16;
- void* exclusive_read_memory_32;
- void* exclusive_read_memory_64;
- void* exclusive_read_memory_128;
- void* write_memory_8;
- void* write_memory_16;
- void* write_memory_32;
- void* write_memory_64;
- void* write_memory_128;
- void* wrapped_write_memory_8;
- void* wrapped_write_memory_16;
- void* wrapped_write_memory_32;
- void* wrapped_write_memory_64;
- void* wrapped_write_memory_128;
- void* exclusive_write_memory_8;
- void* exclusive_write_memory_16;
- void* exclusive_write_memory_32;
- void* exclusive_write_memory_64;
- void* exclusive_write_memory_128;
-
- void* call_svc;
- void* exception_raised;
- void* dc_raised;
- void* ic_raised;
- void* isb_raised;
-
- void* get_cntpct;
- void* add_ticks;
- void* get_ticks_remaining;
- } prelude_info;
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/devirtualize.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/devirtualize.h
deleted file mode 100644
index c433fd01..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/devirtualize.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/bit_cast.hpp>
-#include <mcl/stdint.hpp>
-#include <mcl/type_traits/function_info.hpp>
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct DevirtualizedCall {
- u64 fn_ptr;
- u64 this_ptr;
-};
-
-// https://rants.vastheman.com/2021/09/21/msvc/
-template<auto mfp>
-DevirtualizedCall DevirtualizeWindows(mcl::class_type<decltype(mfp)>* this_) {
- static_assert(sizeof(mfp) == 8);
- return DevirtualizedCall{mcl::bit_cast<u64>(mfp), reinterpret_cast<u64>(this_)};
-}
-
-// https://github.com/ARM-software/abi-aa/blob/main/cppabi64/cppabi64.rst#representation-of-pointer-to-member-function
-template<auto mfp>
-DevirtualizedCall DevirtualizeDefault(mcl::class_type<decltype(mfp)>* this_) {
- struct MemberFunctionPointer {
- // Address of non-virtual function or index into vtable.
- u64 ptr;
- // LSB is discriminator for if function is virtual. Other bits are this adjustment.
- u64 adj;
- } mfp_struct = mcl::bit_cast<MemberFunctionPointer>(mfp);
-
- static_assert(sizeof(MemberFunctionPointer) == 16);
- static_assert(sizeof(MemberFunctionPointer) == sizeof(mfp));
-
- u64 fn_ptr = mfp_struct.ptr;
- u64 this_ptr = mcl::bit_cast<u64>(this_) + (mfp_struct.adj >> 1);
- if (mfp_struct.adj & 1) {
- u64 vtable = mcl::bit_cast_pointee<u64>(this_ptr);
- fn_ptr = mcl::bit_cast_pointee<u64>(vtable + fn_ptr);
- }
- return DevirtualizedCall{fn_ptr, this_ptr};
-}
-
-template<auto mfp>
-DevirtualizedCall Devirtualize(mcl::class_type<decltype(mfp)>* this_) {
-#if defined(_WIN32) && defined(_MSC_VER)
- return DevirtualizeWindows<mfp>(this_);
-#else
- return DevirtualizeDefault<mfp>(this_);
-#endif
-}
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/emit_arm64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/emit_arm64.h
deleted file mode 100644
index 6ac62074..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/emit_arm64.h
+++ /dev/null
@@ -1,181 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <cstddef>
-#include <memory>
-#include <vector>
-
-#include <mcl/stdint.hpp>
-#include <tsl/robin_map.h>
-
-#include "dynarmic/backend/arm64/fastmem.h"
-#include "dynarmic/interface/A32/coprocessor.h"
-#include "dynarmic/interface/optimization_flags.h"
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace oaknut {
-struct CodeGenerator;
-struct Label;
-} // namespace oaknut
-
-namespace Dynarmic::FP {
-class FPCR;
-} // namespace Dynarmic::FP
-
-namespace Dynarmic::IR {
-class Block;
-class Inst;
-enum class Cond;
-enum class Opcode;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct EmitContext;
-
-using CodePtr = std::byte*;
-
-enum class LinkTarget {
- ReturnToDispatcher,
- ReturnFromRunCode,
- ReadMemory8,
- ReadMemory16,
- ReadMemory32,
- ReadMemory64,
- ReadMemory128,
- WrappedReadMemory8,
- WrappedReadMemory16,
- WrappedReadMemory32,
- WrappedReadMemory64,
- WrappedReadMemory128,
- ExclusiveReadMemory8,
- ExclusiveReadMemory16,
- ExclusiveReadMemory32,
- ExclusiveReadMemory64,
- ExclusiveReadMemory128,
- WriteMemory8,
- WriteMemory16,
- WriteMemory32,
- WriteMemory64,
- WriteMemory128,
- WrappedWriteMemory8,
- WrappedWriteMemory16,
- WrappedWriteMemory32,
- WrappedWriteMemory64,
- WrappedWriteMemory128,
- ExclusiveWriteMemory8,
- ExclusiveWriteMemory16,
- ExclusiveWriteMemory32,
- ExclusiveWriteMemory64,
- ExclusiveWriteMemory128,
- CallSVC,
- ExceptionRaised,
- InstructionSynchronizationBarrierRaised,
- InstructionCacheOperationRaised,
- DataCacheOperationRaised,
- GetCNTPCT,
- AddTicks,
- GetTicksRemaining,
-};
-
-struct Relocation {
- std::ptrdiff_t code_offset;
- LinkTarget target;
-};
-
-enum class BlockRelocationType {
- Branch,
- MoveToScratch1,
-};
-
-struct BlockRelocation {
- std::ptrdiff_t code_offset;
- BlockRelocationType type;
-};
-
-struct EmittedBlockInfo {
- CodePtr entry_point;
- size_t size;
- std::vector<Relocation> relocations;
- tsl::robin_map<IR::LocationDescriptor, std::vector<BlockRelocation>> block_relocations;
- tsl::robin_map<std::ptrdiff_t, FastmemPatchInfo> fastmem_patch_info;
-};
-
-struct EmitConfig {
- OptimizationFlag optimizations;
- bool HasOptimization(OptimizationFlag f) const { return (f & optimizations) != no_optimizations; }
-
- bool hook_isb;
-
- // System registers
- u64 cntfreq_el0;
- u32 ctr_el0;
- u32 dczid_el0;
- const u64* tpidrro_el0;
- u64* tpidr_el0;
-
- // Memory
- bool check_halt_on_memory_access;
-
- // Page table
- u64 page_table_pointer;
- size_t page_table_address_space_bits;
- int page_table_pointer_mask_bits;
- bool silently_mirror_page_table;
- bool absolute_offset_page_table;
- u8 detect_misaligned_access_via_page_table;
- bool only_detect_misalignment_via_page_table_on_page_boundary;
-
- // Fastmem
- u64 fastmem_pointer;
- bool recompile_on_fastmem_failure;
- size_t fastmem_address_space_bits;
- bool silently_mirror_fastmem;
-
- // Timing
- bool wall_clock_cntpct;
- bool enable_cycle_counting;
-
- // Endianness
- bool always_little_endian;
-
- // Frontend specific callbacks
- FP::FPCR (*descriptor_to_fpcr)(const IR::LocationDescriptor& descriptor);
- oaknut::Label (*emit_cond)(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Cond cond);
- void (*emit_condition_failed_terminal)(oaknut::CodeGenerator& code, EmitContext& ctx);
- void (*emit_terminal)(oaknut::CodeGenerator& code, EmitContext& ctx);
- void (*emit_check_memory_abort)(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst, oaknut::Label& end);
-
- // State offsets
- size_t state_nzcv_offset;
- size_t state_fpsr_offset;
- size_t state_exclusive_state_offset;
-
- // A32 specific
- std::array<std::shared_ptr<A32::Coprocessor>, 16> coprocessors{};
-
- // Debugging
- bool very_verbose_debugging_output;
-};
-
-EmittedBlockInfo EmitArm64(oaknut::CodeGenerator& code, IR::Block block, const EmitConfig& emit_conf, FastmemManager& fastmem_manager);
-
-template<IR::Opcode op>
-void EmitIR(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst);
-void EmitRelocation(oaknut::CodeGenerator& code, EmitContext& ctx, LinkTarget link_target);
-void EmitBlockLinkRelocation(oaknut::CodeGenerator& code, EmitContext& ctx, const IR::LocationDescriptor& descriptor, BlockRelocationType type);
-oaknut::Label EmitA32Cond(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Cond cond);
-oaknut::Label EmitA64Cond(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Cond cond);
-void EmitA32Terminal(oaknut::CodeGenerator& code, EmitContext& ctx);
-void EmitA64Terminal(oaknut::CodeGenerator& code, EmitContext& ctx);
-void EmitA32ConditionFailedTerminal(oaknut::CodeGenerator& code, EmitContext& ctx);
-void EmitA64ConditionFailedTerminal(oaknut::CodeGenerator& code, EmitContext& ctx);
-void EmitA32CheckMemoryAbort(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst, oaknut::Label& end);
-void EmitA64CheckMemoryAbort(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst, oaknut::Label& end);
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/emit_arm64_memory.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/emit_arm64_memory.h
deleted file mode 100644
index bfc6d71f..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/emit_arm64_memory.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#include <mcl/stdint.hpp>
-
-namespace oaknut {
-struct CodeGenerator;
-struct Label;
-} // namespace oaknut
-
-namespace Dynarmic::IR {
-enum class AccType;
-class Inst;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct EmitContext;
-enum class LinkTarget;
-
-template<size_t bitsize>
-void EmitReadMemory(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst);
-template<size_t bitsize>
-void EmitExclusiveReadMemory(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst);
-template<size_t bitsize>
-void EmitWriteMemory(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst);
-template<size_t bitsize>
-void EmitExclusiveWriteMemory(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst);
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/emit_context.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/emit_context.h
deleted file mode 100644
index 6bfc6f3c..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/emit_context.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <functional>
-#include <memory>
-#include <vector>
-
-#include <oaknut/oaknut.hpp>
-
-#include "dynarmic/backend/arm64/emit_arm64.h"
-#include "dynarmic/backend/arm64/reg_alloc.h"
-#include "dynarmic/common/fp/fpcr.h"
-#include "dynarmic/ir/basic_block.h"
-
-namespace Dynarmic::IR {
-class Block;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct EmitConfig;
-class FastmemManager;
-class FpsrManager;
-
-using SharedLabel = std::shared_ptr<oaknut::Label>;
-
-inline SharedLabel GenSharedLabel() {
- return std::make_shared<oaknut::Label>();
-}
-
-struct EmitContext {
- IR::Block& block;
- RegAlloc& reg_alloc;
- const EmitConfig& conf;
- EmittedBlockInfo& ebi;
- FpsrManager& fpsr;
- FastmemManager& fastmem;
-
- std::vector<std::function<void()>> deferred_emits;
-
- FP::FPCR FPCR(bool fpcr_controlled = true) const {
- const FP::FPCR fpcr = conf.descriptor_to_fpcr(block.Location());
- return fpcr_controlled ? fpcr : fpcr.ASIMDStandardValue();
- }
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/fastmem.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/fastmem.h
deleted file mode 100644
index 8ed686ae..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/fastmem.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstddef>
-#include <tuple>
-
-#include <mcl/hash/xmrx.hpp>
-#include <mcl/stdint.hpp>
-#include <tsl/robin_set.h>
-
-#include "dynarmic/backend/exception_handler.h"
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-using DoNotFastmemMarker = std::tuple<IR::LocationDescriptor, unsigned>;
-
-struct DoNotFastmemMarkerHash {
- size_t operator()(const DoNotFastmemMarker& value) const {
- return mcl::hash::xmrx(std::get<0>(value).Value() ^ static_cast<u64>(std::get<1>(value)));
- }
-};
-
-struct FastmemPatchInfo {
- DoNotFastmemMarker marker;
- FakeCall fc;
- bool recompile;
-};
-
-class FastmemManager {
-public:
- explicit FastmemManager(ExceptionHandler& eh)
- : exception_handler(eh) {}
-
- bool SupportsFastmem() const {
- return exception_handler.SupportsFastmem();
- }
-
- bool ShouldFastmem(DoNotFastmemMarker marker) const {
- return do_not_fastmem.count(marker) == 0;
- }
-
- void MarkDoNotFastmem(DoNotFastmemMarker marker) {
- do_not_fastmem.insert(marker);
- }
-
-private:
- ExceptionHandler& exception_handler;
- tsl::robin_set<DoNotFastmemMarker, DoNotFastmemMarkerHash> do_not_fastmem;
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/fpsr_manager.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/fpsr_manager.h
deleted file mode 100644
index e003522d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/fpsr_manager.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace oaknut {
-struct CodeGenerator;
-} // namespace oaknut
-
-namespace Dynarmic::Backend::Arm64 {
-
-class FpsrManager {
-public:
- explicit FpsrManager(oaknut::CodeGenerator& code, size_t state_fpsr_offset);
-
- void Spill();
- void Load();
- void Overwrite() { fpsr_loaded = false; }
-
-private:
- oaknut::CodeGenerator& code;
- size_t state_fpsr_offset;
- bool fpsr_loaded = false;
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/reg_alloc.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/reg_alloc.h
deleted file mode 100644
index 3a2d5388..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/reg_alloc.h
+++ /dev/null
@@ -1,376 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <optional>
-#include <random>
-#include <utility>
-#include <vector>
-
-#include <mcl/assert.hpp>
-#include <mcl/stdint.hpp>
-#include <mcl/type_traits/is_instance_of_template.hpp>
-#include <oaknut/oaknut.hpp>
-#include <tsl/robin_set.h>
-
-#include "dynarmic/backend/arm64/stack_layout.h"
-#include "dynarmic/ir/cond.h"
-#include "dynarmic/ir/microinstruction.h"
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-class FpsrManager;
-class RegAlloc;
-
-struct HostLoc final {
- enum class Kind {
- Gpr,
- Fpr,
- Flags,
- Spill,
- } kind;
- int index;
-};
-
-enum RWType {
- Void,
- Read,
- Write,
- ReadWrite,
-};
-
-struct Argument final {
-public:
- using copyable_reference = std::reference_wrapper<Argument>;
-
- IR::Type GetType() const;
- bool IsVoid() const { return GetType() == IR::Type::Void; }
- bool IsImmediate() const;
-
- bool GetImmediateU1() const;
- u8 GetImmediateU8() const;
- u16 GetImmediateU16() const;
- u32 GetImmediateU32() const;
- u64 GetImmediateU64() const;
- IR::Cond GetImmediateCond() const;
- IR::AccType GetImmediateAccType() const;
-
- // Only valid if not immediate
- HostLoc::Kind CurrentLocationKind() const;
- bool IsInGpr() const { return !IsImmediate() && CurrentLocationKind() == HostLoc::Kind::Gpr; }
- bool IsInFpr() const { return !IsImmediate() && CurrentLocationKind() == HostLoc::Kind::Fpr; }
-
-private:
- friend class RegAlloc;
- explicit Argument(RegAlloc& reg_alloc)
- : reg_alloc{reg_alloc} {}
-
- bool allocated = false;
- RegAlloc& reg_alloc;
- IR::Value value;
-};
-
-struct FlagsTag final {
-private:
- template<typename>
- friend struct RAReg;
-
- explicit FlagsTag(int) {}
- int index() const { return 0; }
-};
-
-template<typename T>
-struct RAReg final {
-public:
- static constexpr HostLoc::Kind kind = !std::is_same_v<FlagsTag, T>
- ? std::is_base_of_v<oaknut::VReg, T>
- ? HostLoc::Kind::Fpr
- : HostLoc::Kind::Gpr
- : HostLoc::Kind::Flags;
-
- operator T() const { return reg.value(); }
-
- operator oaknut::WRegWsp() const
- requires(std::is_same_v<T, oaknut::WReg>)
- {
- return reg.value();
- }
-
- operator oaknut::XRegSp() const
- requires(std::is_same_v<T, oaknut::XReg>)
- {
- return reg.value();
- }
-
- T operator*() const { return reg.value(); }
- const T* operator->() const { return &reg.value(); }
-
- ~RAReg();
- RAReg(RAReg&& other)
- : reg_alloc{other.reg_alloc}
- , rw{std::exchange(other.rw, RWType::Void)}
- , read_value{std::exchange(other.read_value, {})}
- , write_value{std::exchange(other.write_value, nullptr)}
- , reg{std::exchange(other.reg, std::nullopt)} {
- }
- RAReg& operator=(RAReg&&) = delete;
-
-private:
- friend class RegAlloc;
- explicit RAReg(RegAlloc& reg_alloc, RWType rw, const IR::Value& read_value, const IR::Inst* write_value);
-
- RAReg(const RAReg&) = delete;
- RAReg& operator=(const RAReg&) = delete;
-
- void Realize();
-
- RegAlloc& reg_alloc;
- RWType rw;
- IR::Value read_value;
- const IR::Inst* write_value;
- std::optional<T> reg;
-};
-
-struct HostLocInfo final {
- std::vector<const IR::Inst*> values;
- size_t locked = 0;
- bool realized = false;
- size_t uses_this_inst = 0;
- size_t accumulated_uses = 0;
- size_t expected_uses = 0;
-
- bool Contains(const IR::Inst*) const;
- void SetupScratchLocation();
- void SetupLocation(const IR::Inst*);
- bool IsCompletelyEmpty() const;
- bool MaybeAllocatable() const;
- bool IsOneRemainingUse() const;
- void UpdateUses();
-};
-
-class RegAlloc final {
-public:
- using ArgumentInfo = std::array<Argument, IR::max_arg_count>;
-
- explicit RegAlloc(oaknut::CodeGenerator& code, FpsrManager& fpsr_manager, std::vector<int> gpr_order, std::vector<int> fpr_order)
- : code{code}, fpsr_manager{fpsr_manager}, gpr_order{gpr_order}, fpr_order{fpr_order}, rand_gen{std::random_device{}()} {}
-
- ArgumentInfo GetArgumentInfo(IR::Inst* inst);
- bool WasValueDefined(IR::Inst* inst) const;
-
- auto ReadX(Argument& arg) { return RAReg<oaknut::XReg>{*this, RWType::Read, arg.value, nullptr}; }
- auto ReadW(Argument& arg) { return RAReg<oaknut::WReg>{*this, RWType::Read, arg.value, nullptr}; }
-
- auto ReadQ(Argument& arg) { return RAReg<oaknut::QReg>{*this, RWType::Read, arg.value, nullptr}; }
- auto ReadD(Argument& arg) { return RAReg<oaknut::DReg>{*this, RWType::Read, arg.value, nullptr}; }
- auto ReadS(Argument& arg) { return RAReg<oaknut::SReg>{*this, RWType::Read, arg.value, nullptr}; }
- auto ReadH(Argument& arg) { return RAReg<oaknut::HReg>{*this, RWType::Read, arg.value, nullptr}; }
- auto ReadB(Argument& arg) { return RAReg<oaknut::BReg>{*this, RWType::Read, arg.value, nullptr}; }
-
- template<size_t size>
- auto ReadReg(Argument& arg) {
- if constexpr (size == 64) {
- return ReadX(arg);
- } else if constexpr (size == 32) {
- return ReadW(arg);
- } else {
- ASSERT_FALSE("Invalid size to ReadReg {}", size);
- }
- }
-
- template<size_t size>
- auto ReadVec(Argument& arg) {
- if constexpr (size == 128) {
- return ReadQ(arg);
- } else if constexpr (size == 64) {
- return ReadD(arg);
- } else if constexpr (size == 32) {
- return ReadS(arg);
- } else if constexpr (size == 16) {
- return ReadH(arg);
- } else if constexpr (size == 8) {
- return ReadB(arg);
- } else {
- ASSERT_FALSE("Invalid size to ReadVec {}", size);
- }
- }
-
- auto WriteX(IR::Inst* inst) { return RAReg<oaknut::XReg>{*this, RWType::Write, {}, inst}; }
- auto WriteW(IR::Inst* inst) { return RAReg<oaknut::WReg>{*this, RWType::Write, {}, inst}; }
-
- auto WriteQ(IR::Inst* inst) { return RAReg<oaknut::QReg>{*this, RWType::Write, {}, inst}; }
- auto WriteD(IR::Inst* inst) { return RAReg<oaknut::DReg>{*this, RWType::Write, {}, inst}; }
- auto WriteS(IR::Inst* inst) { return RAReg<oaknut::SReg>{*this, RWType::Write, {}, inst}; }
- auto WriteH(IR::Inst* inst) { return RAReg<oaknut::HReg>{*this, RWType::Write, {}, inst}; }
- auto WriteB(IR::Inst* inst) { return RAReg<oaknut::BReg>{*this, RWType::Write, {}, inst}; }
-
- auto WriteFlags(IR::Inst* inst) { return RAReg<FlagsTag>{*this, RWType::Write, {}, inst}; }
-
- template<size_t size>
- auto WriteReg(IR::Inst* inst) {
- if constexpr (size == 64) {
- return WriteX(inst);
- } else if constexpr (size == 32) {
- return WriteW(inst);
- } else {
- ASSERT_FALSE("Invalid size to WriteReg {}", size);
- }
- }
-
- template<size_t size>
- auto WriteVec(IR::Inst* inst) {
- if constexpr (size == 128) {
- return WriteQ(inst);
- } else if constexpr (size == 64) {
- return WriteD(inst);
- } else if constexpr (size == 32) {
- return WriteS(inst);
- } else if constexpr (size == 16) {
- return WriteH(inst);
- } else if constexpr (size == 8) {
- return WriteB(inst);
- } else {
- ASSERT_FALSE("Invalid size to WriteVec {}", size);
- }
- }
-
- auto ReadWriteX(Argument& arg, const IR::Inst* inst) { return RAReg<oaknut::XReg>{*this, RWType::ReadWrite, arg.value, inst}; }
- auto ReadWriteW(Argument& arg, const IR::Inst* inst) { return RAReg<oaknut::WReg>{*this, RWType::ReadWrite, arg.value, inst}; }
-
- auto ReadWriteQ(Argument& arg, const IR::Inst* inst) { return RAReg<oaknut::QReg>{*this, RWType::ReadWrite, arg.value, inst}; }
- auto ReadWriteD(Argument& arg, const IR::Inst* inst) { return RAReg<oaknut::DReg>{*this, RWType::ReadWrite, arg.value, inst}; }
- auto ReadWriteS(Argument& arg, const IR::Inst* inst) { return RAReg<oaknut::SReg>{*this, RWType::ReadWrite, arg.value, inst}; }
- auto ReadWriteH(Argument& arg, const IR::Inst* inst) { return RAReg<oaknut::HReg>{*this, RWType::ReadWrite, arg.value, inst}; }
- auto ReadWriteB(Argument& arg, const IR::Inst* inst) { return RAReg<oaknut::BReg>{*this, RWType::ReadWrite, arg.value, inst}; }
-
- template<size_t size>
- auto ReadWriteReg(Argument& arg, const IR::Inst* inst) {
- if constexpr (size == 64) {
- return ReadWriteX(arg, inst);
- } else if constexpr (size == 32) {
- return ReadWriteW(arg, inst);
- } else {
- ASSERT_FALSE("Invalid size to ReadWriteReg {}", size);
- }
- }
-
- template<size_t size>
- auto ReadWriteVec(Argument& arg, const IR::Inst* inst) {
- if constexpr (size == 128) {
- return ReadWriteQ(arg, inst);
- } else if constexpr (size == 64) {
- return ReadWriteD(arg, inst);
- } else if constexpr (size == 32) {
- return ReadWriteS(arg, inst);
- } else if constexpr (size == 16) {
- return ReadWriteH(arg, inst);
- } else if constexpr (size == 8) {
- return ReadWriteB(arg, inst);
- } else {
- ASSERT_FALSE("Invalid size to ReadWriteVec {}", size);
- }
- }
-
- void PrepareForCall(std::optional<Argument::copyable_reference> arg0 = {}, std::optional<Argument::copyable_reference> arg1 = {}, std::optional<Argument::copyable_reference> arg2 = {}, std::optional<Argument::copyable_reference> arg3 = {});
-
- void DefineAsExisting(IR::Inst* inst, Argument& arg);
- void DefineAsRegister(IR::Inst* inst, oaknut::Reg reg);
-
- void ReadWriteFlags(Argument& read, IR::Inst* write);
- void SpillFlags();
- void SpillAll();
-
- template<typename... Ts>
- static void Realize(Ts&... rs) {
- static_assert((mcl::is_instance_of_template<RAReg, Ts>() && ...));
- (rs.Realize(), ...);
- }
-
- void UpdateAllUses();
- void AssertAllUnlocked() const;
- void AssertNoMoreUses() const;
-
- void EmitVerboseDebuggingOutput();
-
-private:
- friend struct Argument;
- template<typename>
- friend struct RAReg;
-
- template<HostLoc::Kind kind>
- int GenerateImmediate(const IR::Value& value);
- template<HostLoc::Kind kind>
- int RealizeReadImpl(const IR::Value& value);
- template<HostLoc::Kind kind>
- int RealizeWriteImpl(const IR::Inst* value);
- template<HostLoc::Kind kind>
- int RealizeReadWriteImpl(const IR::Value& read_value, const IR::Inst* write_value);
-
- int AllocateRegister(const std::array<HostLocInfo, 32>& regs, const std::vector<int>& order) const;
- void SpillGpr(int index);
- void SpillFpr(int index);
- int FindFreeSpill() const;
-
- void LoadCopyInto(const IR::Value& value, oaknut::XReg reg);
- void LoadCopyInto(const IR::Value& value, oaknut::QReg reg);
-
- std::optional<HostLoc> ValueLocation(const IR::Inst* value) const;
- HostLocInfo& ValueInfo(HostLoc host_loc);
- HostLocInfo& ValueInfo(const IR::Inst* value);
-
- oaknut::CodeGenerator& code;
- FpsrManager& fpsr_manager;
- std::vector<int> gpr_order;
- std::vector<int> fpr_order;
-
- std::array<HostLocInfo, 32> gprs;
- std::array<HostLocInfo, 32> fprs;
- HostLocInfo flags;
- std::array<HostLocInfo, SpillCount> spills;
-
- mutable std::mt19937 rand_gen;
-
- tsl::robin_set<const IR::Inst*> defined_insts;
-};
-
-template<typename T>
-RAReg<T>::RAReg(RegAlloc& reg_alloc, RWType rw, const IR::Value& read_value, const IR::Inst* write_value)
- : reg_alloc{reg_alloc}, rw{rw}, read_value{read_value}, write_value{write_value} {
- if (rw != RWType::Write && !read_value.IsImmediate()) {
- reg_alloc.ValueInfo(read_value.GetInst()).locked++;
- }
-}
-
-template<typename T>
-RAReg<T>::~RAReg() {
- if (rw != RWType::Write && !read_value.IsImmediate()) {
- reg_alloc.ValueInfo(read_value.GetInst()).locked--;
- }
- if (reg) {
- reg_alloc.ValueInfo(HostLoc{kind, reg->index()}).realized = false;
- }
-}
-
-template<typename T>
-void RAReg<T>::Realize() {
- switch (rw) {
- case RWType::Read:
- reg = T{reg_alloc.RealizeReadImpl<kind>(read_value)};
- break;
- case RWType::Write:
- reg = T{reg_alloc.RealizeWriteImpl<kind>(write_value)};
- break;
- case RWType::ReadWrite:
- reg = T{reg_alloc.RealizeReadWriteImpl<kind>(read_value, write_value)};
- break;
- default:
- ASSERT_FALSE("Invalid RWType");
- }
-}
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/stack_layout.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/stack_layout.h
deleted file mode 100644
index cf7f3259..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/stack_layout.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Backend::Arm64 {
-
-#ifdef _MSC_VER
-# pragma warning(push)
-# pragma warning(disable : 4324) // Structure was padded due to alignment specifier
-#endif
-
-constexpr size_t SpillCount = 64;
-
-struct alignas(16) RSBEntry {
- u64 target;
- u64 code_ptr;
-};
-
-constexpr size_t RSBCount = 8;
-constexpr u64 RSBIndexMask = (RSBCount - 1) * sizeof(RSBEntry);
-
-struct alignas(16) StackLayout {
- std::array<RSBEntry, RSBCount> rsb;
-
- std::array<std::array<u64, 2>, SpillCount> spill;
-
- u32 rsb_ptr;
-
- s64 cycles_to_run;
-
- u32 save_host_fpcr;
-
- bool check_bit;
-};
-
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-
-static_assert(sizeof(StackLayout) % 16 == 0);
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/verbose_debugging_output.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/verbose_debugging_output.h
deleted file mode 100644
index 73c66461..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/arm64/verbose_debugging_output.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2023 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/backend/arm64/stack_layout.h"
-
-namespace oaknut {
-struct CodeGenerator;
-struct Label;
-} // namespace oaknut
-
-namespace Dynarmic::IR {
-enum class Type;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct EmitContext;
-
-using Vector = std::array<u64, 2>;
-
-#ifdef _MSC_VER
-# pragma warning(push)
-# pragma warning(disable : 4324) // Structure was padded due to alignment specifier
-#endif
-
-enum class HostLocType {
- X,
- Q,
- Nzcv,
- Spill,
-};
-
-struct alignas(16) RegisterData {
- std::array<u64, 30> x;
- std::array<Vector, 32> q;
- u32 nzcv;
- decltype(StackLayout::spill)* spill;
- u32 fpsr;
-};
-
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-
-void EmitVerboseDebuggingOutput(oaknut::CodeGenerator& code, EmitContext& ctx);
-void PrintVerboseDebuggingOutputLine(RegisterData& reg_data, HostLocType reg_type, size_t reg_index, size_t inst_index, IR::Type inst_type);
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/block_range_information.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/block_range_information.h
deleted file mode 100644
index 3402b155..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/block_range_information.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <set>
-
-#include <boost/icl/interval_map.hpp>
-#include <boost/icl/interval_set.hpp>
-#include <tsl/robin_set.h>
-
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace Dynarmic::Backend {
-
-template<typename ProgramCounterType>
-class BlockRangeInformation {
-public:
- void AddRange(boost::icl::discrete_interval<ProgramCounterType> range, IR::LocationDescriptor location);
- void ClearCache();
- tsl::robin_set<IR::LocationDescriptor> InvalidateRanges(const boost::icl::interval_set<ProgramCounterType>& ranges);
-
-private:
- boost::icl::interval_map<ProgramCounterType, std::set<IR::LocationDescriptor>> block_ranges;
-};
-
-} // namespace Dynarmic::Backend
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/exception_handler.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/exception_handler.h
deleted file mode 100644
index 179433ba..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/exception_handler.h
+++ /dev/null
@@ -1,63 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2020 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <functional>
-#include <memory>
-#include <optional>
-
-#include <mcl/macro/architecture.hpp>
-#include <mcl/stdint.hpp>
-
-#if defined(MCL_ARCHITECTURE_X86_64)
-namespace Dynarmic::Backend::X64 {
-class BlockOfCode;
-} // namespace Dynarmic::Backend::X64
-#elif defined(MCL_ARCHITECTURE_ARM64)
-namespace oaknut {
-class CodeBlock;
-} // namespace oaknut
-#else
-# error "Invalid architecture"
-#endif
-
-namespace Dynarmic::Backend {
-
-#if defined(MCL_ARCHITECTURE_X86_64)
-struct FakeCall {
- u64 call_rip;
- u64 ret_rip;
-};
-#elif defined(MCL_ARCHITECTURE_ARM64)
-struct FakeCall {
- u64 call_pc;
-};
-#else
-# error "Invalid architecture"
-#endif
-
-class ExceptionHandler final {
-public:
- ExceptionHandler();
- ~ExceptionHandler();
-
-#if defined(MCL_ARCHITECTURE_X86_64)
- void Register(X64::BlockOfCode& code);
-#elif defined(MCL_ARCHITECTURE_ARM64)
- void Register(oaknut::CodeBlock& mem, std::size_t mem_size);
-#else
-# error "Invalid architecture"
-#endif
-
- bool SupportsFastmem() const noexcept;
- void SetFastmemCallback(std::function<FakeCall(u64)> cb);
-
-private:
- struct Impl;
- std::unique_ptr<Impl> impl;
-};
-
-} // namespace Dynarmic::Backend
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/a32_emit_x64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/a32_emit_x64.h
deleted file mode 100644
index 3706b30a..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/a32_emit_x64.h
+++ /dev/null
@@ -1,147 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <optional>
-#include <set>
-#include <tuple>
-
-#include <tsl/robin_map.h>
-
-#include "dynarmic/backend/block_range_information.h"
-#include "dynarmic/backend/x64/a32_jitstate.h"
-#include "dynarmic/backend/x64/emit_x64.h"
-#include "dynarmic/frontend/A32/a32_location_descriptor.h"
-#include "dynarmic/interface/A32/a32.h"
-#include "dynarmic/interface/A32/config.h"
-#include "dynarmic/ir/terminal.h"
-
-namespace Dynarmic::Backend::X64 {
-
-class RegAlloc;
-
-struct A32EmitContext final : public EmitContext {
- A32EmitContext(const A32::UserConfig& conf, RegAlloc& reg_alloc, IR::Block& block);
-
- A32::LocationDescriptor Location() const;
- A32::LocationDescriptor EndLocation() const;
- bool IsSingleStep() const;
- FP::FPCR FPCR(bool fpcr_controlled = true) const override;
-
- bool HasOptimization(OptimizationFlag flag) const override {
- return conf.HasOptimization(flag);
- }
-
- const A32::UserConfig& conf;
-};
-
-class A32EmitX64 final : public EmitX64 {
-public:
- A32EmitX64(BlockOfCode& code, A32::UserConfig conf, A32::Jit* jit_interface);
- ~A32EmitX64() override;
-
- /**
- * Emit host machine code for a basic block with intermediate representation `block`.
- * @note block is modified.
- */
- BlockDescriptor Emit(IR::Block& block);
-
- void ClearCache() override;
-
- void InvalidateCacheRanges(const boost::icl::interval_set<u32>& ranges);
-
-protected:
- const A32::UserConfig conf;
- A32::Jit* jit_interface;
- BlockRangeInformation<u32> block_ranges;
-
- void EmitCondPrelude(const A32EmitContext& ctx);
-
- struct FastDispatchEntry {
- u64 location_descriptor = 0xFFFF'FFFF'FFFF'FFFFull;
- const void* code_ptr = nullptr;
- };
- static_assert(sizeof(FastDispatchEntry) == 0x10);
- static constexpr u64 fast_dispatch_table_mask = 0xFFFF0;
- static constexpr size_t fast_dispatch_table_size = 0x10000;
- std::array<FastDispatchEntry, fast_dispatch_table_size> fast_dispatch_table;
- void ClearFastDispatchTable();
-
- void (*memory_read_128)() = nullptr; // Dummy
- void (*memory_write_128)() = nullptr; // Dummy
-
- std::map<std::tuple<bool, size_t, int, int>, void (*)()> read_fallbacks;
- std::map<std::tuple<bool, size_t, int, int>, void (*)()> write_fallbacks;
- std::map<std::tuple<bool, size_t, int, int>, void (*)()> exclusive_write_fallbacks;
- void GenFastmemFallbacks();
-
- const void* terminal_handler_pop_rsb_hint;
- const void* terminal_handler_fast_dispatch_hint = nullptr;
- FastDispatchEntry& (*fast_dispatch_table_lookup)(u64) = nullptr;
- void GenTerminalHandlers();
-
- // Microinstruction emitters
-#define OPCODE(...)
-#define A32OPC(name, type, ...) void EmitA32##name(A32EmitContext& ctx, IR::Inst* inst);
-#define A64OPC(...)
-#include "dynarmic/ir/opcodes.inc"
-#undef OPCODE
-#undef A32OPC
-#undef A64OPC
-
- // Helpers
- std::string LocationDescriptorToFriendlyName(const IR::LocationDescriptor&) const override;
-
- // Fastmem information
- using DoNotFastmemMarker = std::tuple<IR::LocationDescriptor, unsigned>;
- struct FastmemPatchInfo {
- u64 resume_rip;
- u64 callback;
- DoNotFastmemMarker marker;
- bool recompile;
- };
- tsl::robin_map<u64, FastmemPatchInfo> fastmem_patch_info;
- std::set<DoNotFastmemMarker> do_not_fastmem;
- std::optional<DoNotFastmemMarker> ShouldFastmem(A32EmitContext& ctx, IR::Inst* inst) const;
- FakeCall FastmemCallback(u64 rip);
-
- // Memory access helpers
- void EmitCheckMemoryAbort(A32EmitContext& ctx, IR::Inst* inst, Xbyak::Label* end = nullptr);
- template<std::size_t bitsize, auto callback>
- void EmitMemoryRead(A32EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitMemoryWrite(A32EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveReadMemory(A32EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveWriteMemory(A32EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveReadMemoryInline(A32EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveWriteMemoryInline(A32EmitContext& ctx, IR::Inst* inst);
-
- // Terminal instruction emitters
- void EmitSetUpperLocationDescriptor(IR::LocationDescriptor new_location, IR::LocationDescriptor old_location);
- void EmitTerminalImpl(IR::Term::Interpret terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::ReturnToDispatch terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::LinkBlock terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::LinkBlockFast terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::PopRSBHint terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::FastDispatchHint terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::If terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::CheckBit terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::CheckHalt terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
-
- // Patching
- void Unpatch(const IR::LocationDescriptor& target_desc) override;
- void EmitPatchJg(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) override;
- void EmitPatchJz(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) override;
- void EmitPatchJmp(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) override;
- void EmitPatchMovRcx(CodePtr target_code_ptr = nullptr) override;
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/a32_jitstate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/a32_jitstate.h
deleted file mode 100644
index cc13abf8..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/a32_jitstate.h
+++ /dev/null
@@ -1,97 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Backend::X64 {
-
-class BlockOfCode;
-
-#ifdef _MSC_VER
-# pragma warning(push)
-# pragma warning(disable : 4324) // Structure was padded due to alignment specifier
-#endif
-
-struct A32JitState {
- using ProgramCounterType = u32;
-
- A32JitState() { ResetRSB(); }
-
- std::array<u32, 16> Reg{}; // Current register file.
- // TODO: Mode-specific register sets unimplemented.
-
- u32 upper_location_descriptor = 0;
-
- u32 cpsr_ge = 0;
- u32 cpsr_q = 0;
- u32 cpsr_nzcv = 0;
- u32 cpsr_jaifm = 0;
- u32 Cpsr() const;
- void SetCpsr(u32 cpsr);
-
- alignas(16) std::array<u32, 64> ExtReg{}; // Extension registers.
-
- // For internal use (See: BlockOfCode::RunCode)
- u32 guest_MXCSR = 0x00001f80;
- u32 asimd_MXCSR = 0x00009fc0;
- volatile u32 halt_reason = 0;
-
- // Exclusive state
- u32 exclusive_state = 0;
-
- static constexpr size_t RSBSize = 8; // MUST be a power of 2.
- static constexpr size_t RSBPtrMask = RSBSize - 1;
- u32 rsb_ptr = 0;
- std::array<u64, RSBSize> rsb_location_descriptors;
- std::array<u64, RSBSize> rsb_codeptrs;
- void ResetRSB();
-
- u32 fpsr_exc = 0;
- u32 fpsr_qc = 0;
- u32 fpsr_nzcv = 0;
- u32 Fpscr() const;
- void SetFpscr(u32 FPSCR);
-
- u64 GetUniqueHash() const noexcept {
- return (static_cast<u64>(upper_location_descriptor) << 32) | (static_cast<u64>(Reg[15]));
- }
-
- void TransferJitState(const A32JitState& src, bool reset_rsb) {
- Reg = src.Reg;
- upper_location_descriptor = src.upper_location_descriptor;
- cpsr_ge = src.cpsr_ge;
- cpsr_q = src.cpsr_q;
- cpsr_nzcv = src.cpsr_nzcv;
- cpsr_jaifm = src.cpsr_jaifm;
- ExtReg = src.ExtReg;
- guest_MXCSR = src.guest_MXCSR;
- asimd_MXCSR = src.asimd_MXCSR;
- fpsr_exc = src.fpsr_exc;
- fpsr_qc = src.fpsr_qc;
- fpsr_nzcv = src.fpsr_nzcv;
-
- exclusive_state = 0;
-
- if (reset_rsb) {
- ResetRSB();
- } else {
- rsb_ptr = src.rsb_ptr;
- rsb_location_descriptors = src.rsb_location_descriptors;
- rsb_codeptrs = src.rsb_codeptrs;
- }
- }
-};
-
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-
-using CodePtr = const void*;
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/a64_emit_x64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/a64_emit_x64.h
deleted file mode 100644
index ed493155..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/a64_emit_x64.h
+++ /dev/null
@@ -1,144 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <map>
-#include <optional>
-#include <tuple>
-
-#include "dynarmic/backend/block_range_information.h"
-#include "dynarmic/backend/x64/a64_jitstate.h"
-#include "dynarmic/backend/x64/emit_x64.h"
-#include "dynarmic/frontend/A64/a64_location_descriptor.h"
-#include "dynarmic/interface/A64/a64.h"
-#include "dynarmic/interface/A64/config.h"
-#include "dynarmic/ir/terminal.h"
-
-namespace Dynarmic::Backend::X64 {
-
-class RegAlloc;
-
-struct A64EmitContext final : public EmitContext {
- A64EmitContext(const A64::UserConfig& conf, RegAlloc& reg_alloc, IR::Block& block);
-
- A64::LocationDescriptor Location() const;
- bool IsSingleStep() const;
- FP::FPCR FPCR(bool fpcr_controlled = true) const override;
-
- bool HasOptimization(OptimizationFlag flag) const override {
- return conf.HasOptimization(flag);
- }
-
- const A64::UserConfig& conf;
-};
-
-class A64EmitX64 final : public EmitX64 {
-public:
- A64EmitX64(BlockOfCode& code, A64::UserConfig conf, A64::Jit* jit_interface);
- ~A64EmitX64() override;
-
- /**
- * Emit host machine code for a basic block with intermediate representation `block`.
- * @note block is modified.
- */
- BlockDescriptor Emit(IR::Block& block);
-
- void ClearCache() override;
-
- void InvalidateCacheRanges(const boost::icl::interval_set<u64>& ranges);
-
-protected:
- const A64::UserConfig conf;
- A64::Jit* jit_interface;
- BlockRangeInformation<u64> block_ranges;
-
- struct FastDispatchEntry {
- u64 location_descriptor = 0xFFFF'FFFF'FFFF'FFFFull;
- const void* code_ptr = nullptr;
- };
- static_assert(sizeof(FastDispatchEntry) == 0x10);
- static constexpr u64 fast_dispatch_table_mask = 0xFFFFF0;
- static constexpr size_t fast_dispatch_table_size = 0x100000;
- std::array<FastDispatchEntry, fast_dispatch_table_size> fast_dispatch_table;
- void ClearFastDispatchTable();
-
- void (*memory_read_128)();
- void (*memory_write_128)();
- void (*memory_exclusive_write_128)();
- void GenMemory128Accessors();
-
- std::map<std::tuple<bool, size_t, int, int>, void (*)()> read_fallbacks;
- std::map<std::tuple<bool, size_t, int, int>, void (*)()> write_fallbacks;
- std::map<std::tuple<bool, size_t, int, int>, void (*)()> exclusive_write_fallbacks;
- void GenFastmemFallbacks();
-
- const void* terminal_handler_pop_rsb_hint;
- const void* terminal_handler_fast_dispatch_hint = nullptr;
- FastDispatchEntry& (*fast_dispatch_table_lookup)(u64) = nullptr;
- void GenTerminalHandlers();
-
- // Microinstruction emitters
- void EmitPushRSB(EmitContext& ctx, IR::Inst* inst);
-#define OPCODE(...)
-#define A32OPC(...)
-#define A64OPC(name, type, ...) void EmitA64##name(A64EmitContext& ctx, IR::Inst* inst);
-#include "dynarmic/ir/opcodes.inc"
-#undef OPCODE
-#undef A32OPC
-#undef A64OPC
-
- // Helpers
- std::string LocationDescriptorToFriendlyName(const IR::LocationDescriptor&) const override;
-
- // Fastmem information
- using DoNotFastmemMarker = std::tuple<IR::LocationDescriptor, unsigned>;
- struct FastmemPatchInfo {
- u64 resume_rip;
- u64 callback;
- DoNotFastmemMarker marker;
- bool recompile;
- };
- tsl::robin_map<u64, FastmemPatchInfo> fastmem_patch_info;
- std::set<DoNotFastmemMarker> do_not_fastmem;
- std::optional<DoNotFastmemMarker> ShouldFastmem(A64EmitContext& ctx, IR::Inst* inst) const;
- FakeCall FastmemCallback(u64 rip);
-
- // Memory access helpers
- void EmitCheckMemoryAbort(A64EmitContext& ctx, IR::Inst* inst, Xbyak::Label* end = nullptr);
- template<std::size_t bitsize, auto callback>
- void EmitMemoryRead(A64EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitMemoryWrite(A64EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveReadMemory(A64EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveWriteMemory(A64EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveReadMemoryInline(A64EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveWriteMemoryInline(A64EmitContext& ctx, IR::Inst* inst);
-
- // Terminal instruction emitters
- void EmitTerminalImpl(IR::Term::Interpret terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::ReturnToDispatch terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::LinkBlock terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::LinkBlockFast terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::PopRSBHint terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::FastDispatchHint terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::If terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::CheckBit terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::CheckHalt terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
-
- // Patching
- void Unpatch(const IR::LocationDescriptor& target_desc) override;
- void EmitPatchJg(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) override;
- void EmitPatchJz(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) override;
- void EmitPatchJmp(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) override;
- void EmitPatchMovRcx(CodePtr target_code_ptr = nullptr) override;
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/a64_jitstate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/a64_jitstate.h
deleted file mode 100644
index 0929e81e..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/a64_jitstate.h
+++ /dev/null
@@ -1,84 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/backend/x64/nzcv_util.h"
-#include "dynarmic/frontend/A64/a64_location_descriptor.h"
-
-namespace Dynarmic::Backend::X64 {
-
-class BlockOfCode;
-
-#ifdef _MSC_VER
-# pragma warning(push)
-# pragma warning(disable : 4324) // Structure was padded due to alignment specifier
-#endif
-
-struct A64JitState {
- using ProgramCounterType = u64;
-
- A64JitState() { ResetRSB(); }
-
- std::array<u64, 31> reg{};
- u64 sp = 0;
- u64 pc = 0;
-
- u32 cpsr_nzcv = 0;
-
- u32 GetPstate() const {
- return NZCV::FromX64(cpsr_nzcv);
- }
- void SetPstate(u32 new_pstate) {
- cpsr_nzcv = NZCV::ToX64(new_pstate);
- }
-
- alignas(16) std::array<u64, 64> vec{}; // Extension registers.
-
- // For internal use (See: BlockOfCode::RunCode)
- u32 guest_MXCSR = 0x00001f80;
- u32 asimd_MXCSR = 0x00009fc0;
- volatile u32 halt_reason = 0;
-
- // Exclusive state
- static constexpr u64 RESERVATION_GRANULE_MASK = 0xFFFF'FFFF'FFFF'FFF0ull;
- u8 exclusive_state = 0;
-
- static constexpr size_t RSBSize = 8; // MUST be a power of 2.
- static constexpr size_t RSBPtrMask = RSBSize - 1;
- u32 rsb_ptr = 0;
- std::array<u64, RSBSize> rsb_location_descriptors;
- std::array<u64, RSBSize> rsb_codeptrs;
- void ResetRSB() {
- rsb_location_descriptors.fill(0xFFFFFFFFFFFFFFFFull);
- rsb_codeptrs.fill(0);
- }
-
- u32 fpsr_exc = 0;
- u32 fpsr_qc = 0;
- u32 fpcr = 0;
- u32 GetFpcr() const;
- u32 GetFpsr() const;
- void SetFpcr(u32 value);
- void SetFpsr(u32 value);
-
- u64 GetUniqueHash() const noexcept {
- const u64 fpcr_u64 = static_cast<u64>(fpcr & A64::LocationDescriptor::fpcr_mask) << A64::LocationDescriptor::fpcr_shift;
- const u64 pc_u64 = pc & A64::LocationDescriptor::pc_mask;
- return pc_u64 | fpcr_u64;
- }
-};
-
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-
-using CodePtr = const void*;
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/abi.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/abi.h
deleted file mode 100644
index 4bddf51b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/abi.h
+++ /dev/null
@@ -1,132 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/backend/x64/hostloc.h"
-
-namespace Dynarmic::Backend::X64 {
-
-class BlockOfCode;
-
-#ifdef _WIN32
-
-constexpr HostLoc ABI_RETURN = HostLoc::RAX;
-
-constexpr size_t ABI_PARAM_COUNT = 4;
-
-constexpr HostLoc ABI_PARAM1 = HostLoc::RCX;
-constexpr HostLoc ABI_PARAM2 = HostLoc::RDX;
-constexpr HostLoc ABI_PARAM3 = HostLoc::R8;
-constexpr HostLoc ABI_PARAM4 = HostLoc::R9;
-
-constexpr std::array<HostLoc, 13> ABI_ALL_CALLER_SAVE = {
- HostLoc::RAX,
- HostLoc::RCX,
- HostLoc::RDX,
- HostLoc::R8,
- HostLoc::R9,
- HostLoc::R10,
- HostLoc::R11,
- HostLoc::XMM0,
- HostLoc::XMM1,
- HostLoc::XMM2,
- HostLoc::XMM3,
- HostLoc::XMM4,
- HostLoc::XMM5,
-};
-
-constexpr std::array<HostLoc, 18> ABI_ALL_CALLEE_SAVE = {
- HostLoc::RBX,
- HostLoc::RSI,
- HostLoc::RDI,
- HostLoc::RBP,
- HostLoc::R12,
- HostLoc::R13,
- HostLoc::R14,
- HostLoc::R15,
- HostLoc::XMM6,
- HostLoc::XMM7,
- HostLoc::XMM8,
- HostLoc::XMM9,
- HostLoc::XMM10,
- HostLoc::XMM11,
- HostLoc::XMM12,
- HostLoc::XMM13,
- HostLoc::XMM14,
- HostLoc::XMM15,
-};
-
-constexpr size_t ABI_SHADOW_SPACE = 32; // bytes
-
-#else
-
-constexpr HostLoc ABI_RETURN = HostLoc::RAX;
-constexpr HostLoc ABI_RETURN2 = HostLoc::RDX;
-
-constexpr size_t ABI_PARAM_COUNT = 6;
-
-constexpr HostLoc ABI_PARAM1 = HostLoc::RDI;
-constexpr HostLoc ABI_PARAM2 = HostLoc::RSI;
-constexpr HostLoc ABI_PARAM3 = HostLoc::RDX;
-constexpr HostLoc ABI_PARAM4 = HostLoc::RCX;
-constexpr HostLoc ABI_PARAM5 = HostLoc::R8;
-constexpr HostLoc ABI_PARAM6 = HostLoc::R9;
-
-constexpr std::array<HostLoc, 25> ABI_ALL_CALLER_SAVE = {
- HostLoc::RAX,
- HostLoc::RCX,
- HostLoc::RDX,
- HostLoc::RDI,
- HostLoc::RSI,
- HostLoc::R8,
- HostLoc::R9,
- HostLoc::R10,
- HostLoc::R11,
- HostLoc::XMM0,
- HostLoc::XMM1,
- HostLoc::XMM2,
- HostLoc::XMM3,
- HostLoc::XMM4,
- HostLoc::XMM5,
- HostLoc::XMM6,
- HostLoc::XMM7,
- HostLoc::XMM8,
- HostLoc::XMM9,
- HostLoc::XMM10,
- HostLoc::XMM11,
- HostLoc::XMM12,
- HostLoc::XMM13,
- HostLoc::XMM14,
- HostLoc::XMM15,
-};
-
-constexpr std::array<HostLoc, 6> ABI_ALL_CALLEE_SAVE = {
- HostLoc::RBX,
- HostLoc::RBP,
- HostLoc::R12,
- HostLoc::R13,
- HostLoc::R14,
- HostLoc::R15,
-};
-
-constexpr size_t ABI_SHADOW_SPACE = 0; // bytes
-
-#endif
-
-static_assert(ABI_ALL_CALLER_SAVE.size() + ABI_ALL_CALLEE_SAVE.size() == 31, "Invalid total number of registers");
-
-void ABI_PushCalleeSaveRegistersAndAdjustStack(BlockOfCode& code, size_t frame_size = 0);
-void ABI_PopCalleeSaveRegistersAndAdjustStack(BlockOfCode& code, size_t frame_size = 0);
-void ABI_PushCallerSaveRegistersAndAdjustStack(BlockOfCode& code, size_t frame_size = 0);
-void ABI_PopCallerSaveRegistersAndAdjustStack(BlockOfCode& code, size_t frame_size = 0);
-
-void ABI_PushCallerSaveRegistersAndAdjustStackExcept(BlockOfCode& code, HostLoc exception);
-void ABI_PopCallerSaveRegistersAndAdjustStackExcept(BlockOfCode& code, HostLoc exception);
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/block_of_code.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/block_of_code.h
deleted file mode 100644
index 3f7573af..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/block_of_code.h
+++ /dev/null
@@ -1,205 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <functional>
-#include <memory>
-#include <type_traits>
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-#include <xbyak/xbyak.h>
-#include <xbyak/xbyak_util.h>
-
-#include "dynarmic/backend/x64/abi.h"
-#include "dynarmic/backend/x64/callback.h"
-#include "dynarmic/backend/x64/constant_pool.h"
-#include "dynarmic/backend/x64/host_feature.h"
-#include "dynarmic/backend/x64/jitstate_info.h"
-#include "dynarmic/common/cast_util.h"
-#include "dynarmic/interface/halt_reason.h"
-#include "dynarmic/ir/cond.h"
-
-namespace Dynarmic::Backend::X64 {
-
-using CodePtr = const void*;
-
-struct RunCodeCallbacks {
- std::unique_ptr<Callback> LookupBlock;
- std::unique_ptr<Callback> AddTicks;
- std::unique_ptr<Callback> GetTicksRemaining;
- bool enable_cycle_counting;
-};
-
-class BlockOfCode final : public Xbyak::CodeGenerator {
-public:
- BlockOfCode(RunCodeCallbacks cb, JitStateInfo jsi, size_t total_code_size, std::function<void(BlockOfCode&)> rcp);
- BlockOfCode(const BlockOfCode&) = delete;
-
- /// Call when external emitters have finished emitting their preludes.
- void PreludeComplete();
-
- /// Change permissions to RW. This is required to support systems with W^X enforced.
- void EnableWriting();
- /// Change permissions to RX. This is required to support systems with W^X enforced.
- void DisableWriting();
-
- /// Clears this block of code and resets code pointer to beginning.
- void ClearCache();
- /// Calculates how much space is remaining to use.
- size_t SpaceRemaining() const;
- /// Ensure at least codesize bytes of code cache memory are committed at the current code_ptr.
- void EnsureMemoryCommitted(size_t codesize);
-
- /// Runs emulated code from code_ptr.
- HaltReason RunCode(void* jit_state, CodePtr code_ptr) const;
- /// Runs emulated code from code_ptr for a single cycle.
- HaltReason StepCode(void* jit_state, CodePtr code_ptr) const;
- /// Code emitter: Returns to dispatcher
- void ReturnFromRunCode(bool mxcsr_already_exited = false);
- /// Code emitter: Returns to dispatcher, forces return to host
- void ForceReturnFromRunCode(bool mxcsr_already_exited = false);
- /// Code emitter: Makes guest MXCSR the current MXCSR
- void SwitchMxcsrOnEntry();
- /// Code emitter: Makes saved host MXCSR the current MXCSR
- void SwitchMxcsrOnExit();
- /// Code emitter: Enter standard ASIMD MXCSR region
- void EnterStandardASIMD();
- /// Code emitter: Leave standard ASIMD MXCSR region
- void LeaveStandardASIMD();
- /// Code emitter: Updates cycles remaining my calling cb.AddTicks and cb.GetTicksRemaining
- /// @note this clobbers ABI caller-save registers
- void UpdateTicks();
- /// Code emitter: Performs a block lookup based on current state
- /// @note this clobbers ABI caller-save registers
- void LookupBlock();
-
- /// Code emitter: Load required flags for conditional cond from rax into host rflags
- void LoadRequiredFlagsForCondFromRax(IR::Cond cond);
-
- /// Code emitter: Calls the function
- template<typename FunctionPointer>
- void CallFunction(FunctionPointer fn) {
- static_assert(std::is_pointer_v<FunctionPointer> && std::is_function_v<std::remove_pointer_t<FunctionPointer>>,
- "Supplied type must be a pointer to a function");
-
- const u64 address = reinterpret_cast<u64>(fn);
- const u64 distance = address - (getCurr<u64>() + 5);
-
- if (distance >= 0x0000000080000000ULL && distance < 0xFFFFFFFF80000000ULL) {
- // Far call
- mov(rax, address);
- call(rax);
- } else {
- call(fn);
- }
- }
-
- /// Code emitter: Calls the lambda. Lambda must not have any captures.
- template<typename Lambda>
- void CallLambda(Lambda l) {
- CallFunction(Common::FptrCast(l));
- }
-
- void ZeroExtendFrom(size_t bitsize, Xbyak::Reg64 reg) {
- switch (bitsize) {
- case 8:
- movzx(reg.cvt32(), reg.cvt8());
- return;
- case 16:
- movzx(reg.cvt32(), reg.cvt16());
- return;
- case 32:
- mov(reg.cvt32(), reg.cvt32());
- return;
- case 64:
- return;
- default:
- UNREACHABLE();
- }
- }
-
- Xbyak::Address Const(const Xbyak::AddressFrame& frame, u64 lower, u64 upper = 0);
-
- template<size_t esize>
- Xbyak::Address BConst(const Xbyak::AddressFrame& frame, u64 value) {
- return Const(frame, mcl::bit::replicate_element<u64>(esize, value),
- mcl::bit::replicate_element<u64>(esize, value));
- }
-
- CodePtr GetCodeBegin() const;
- size_t GetTotalCodeSize() const;
-
- const void* GetReturnFromRunCodeAddress() const {
- return return_from_run_code[0];
- }
-
- const void* GetForceReturnFromRunCodeAddress() const {
- return return_from_run_code[FORCE_RETURN];
- }
-
- void int3() { db(0xCC); }
-
- /// Allocate memory of `size` bytes from the same block of memory the code is in.
- /// This is useful for objects that need to be placed close to or within code.
- /// The lifetime of this memory is the same as the code around it.
- void* AllocateFromCodeSpace(size_t size);
-
- void SetCodePtr(CodePtr code_ptr);
- void EnsurePatchLocationSize(CodePtr begin, size_t size);
-
- // ABI registers
-#ifdef _WIN32
- static const Xbyak::Reg64 ABI_RETURN;
- static const Xbyak::Reg64 ABI_PARAM1;
- static const Xbyak::Reg64 ABI_PARAM2;
- static const Xbyak::Reg64 ABI_PARAM3;
- static const Xbyak::Reg64 ABI_PARAM4;
- static const std::array<Xbyak::Reg64, ABI_PARAM_COUNT> ABI_PARAMS;
-#else
- static const Xbyak::Reg64 ABI_RETURN;
- static const Xbyak::Reg64 ABI_RETURN2;
- static const Xbyak::Reg64 ABI_PARAM1;
- static const Xbyak::Reg64 ABI_PARAM2;
- static const Xbyak::Reg64 ABI_PARAM3;
- static const Xbyak::Reg64 ABI_PARAM4;
- static const Xbyak::Reg64 ABI_PARAM5;
- static const Xbyak::Reg64 ABI_PARAM6;
- static const std::array<Xbyak::Reg64, ABI_PARAM_COUNT> ABI_PARAMS;
-#endif
-
- JitStateInfo GetJitStateInfo() const { return jsi; }
-
- bool HasHostFeature(HostFeature feature) const {
- return (host_features & feature) == feature;
- }
-
-private:
- RunCodeCallbacks cb;
- JitStateInfo jsi;
-
- bool prelude_complete = false;
- CodePtr code_begin = nullptr;
-
-#ifdef _WIN32
- size_t committed_size = 0;
-#endif
-
- ConstantPool constant_pool;
-
- using RunCodeFuncType = HaltReason (*)(void*, CodePtr);
- RunCodeFuncType run_code = nullptr;
- RunCodeFuncType step_code = nullptr;
- static constexpr size_t MXCSR_ALREADY_EXITED = 1 << 0;
- static constexpr size_t FORCE_RETURN = 1 << 1;
- std::array<const void*, 4> return_from_run_code;
- void GenRunCode(std::function<void(BlockOfCode&)> rcp);
-
- const HostFeature host_features;
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/callback.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/callback.h
deleted file mode 100644
index 716555da..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/callback.h
+++ /dev/null
@@ -1,63 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <functional>
-#include <vector>
-
-#include <mcl/stdint.hpp>
-#include <xbyak/xbyak.h>
-
-namespace Dynarmic::Backend::X64 {
-
-using RegList = std::vector<Xbyak::Reg64>;
-
-class BlockOfCode;
-
-class Callback {
-public:
- virtual ~Callback();
-
- void EmitCall(BlockOfCode& code) const {
- EmitCall(code, [](RegList) {});
- }
-
- virtual void EmitCall(BlockOfCode& code, std::function<void(RegList)> fn) const = 0;
- virtual void EmitCallWithReturnPointer(BlockOfCode& code, std::function<void(Xbyak::Reg64, RegList)> fn) const = 0;
-};
-
-class SimpleCallback final : public Callback {
-public:
- template<typename Function>
- SimpleCallback(Function fn)
- : fn(reinterpret_cast<void (*)()>(fn)) {}
-
- using Callback::EmitCall;
-
- void EmitCall(BlockOfCode& code, std::function<void(RegList)> fn) const override;
- void EmitCallWithReturnPointer(BlockOfCode& code, std::function<void(Xbyak::Reg64, RegList)> fn) const override;
-
-private:
- void (*fn)();
-};
-
-class ArgCallback final : public Callback {
-public:
- template<typename Function>
- ArgCallback(Function fn, u64 arg)
- : fn(reinterpret_cast<void (*)()>(fn)), arg(arg) {}
-
- using Callback::EmitCall;
-
- void EmitCall(BlockOfCode& code, std::function<void(RegList)> fn) const override;
- void EmitCallWithReturnPointer(BlockOfCode& code, std::function<void(Xbyak::Reg64, RegList)> fn) const override;
-
-private:
- void (*fn)();
- u64 arg;
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/constant_pool.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/constant_pool.h
deleted file mode 100644
index 2ab64215..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/constant_pool.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <bit>
-#include <cstddef>
-#include <span>
-#include <utility>
-
-#include <mcl/stdint.hpp>
-#include <tsl/robin_map.h>
-#include <xbyak/xbyak.h>
-
-namespace Dynarmic::Backend::X64 {
-
-class BlockOfCode;
-
-/// ConstantPool allocates a block of memory from BlockOfCode.
-/// It places constants into this block of memory, returning the address
-/// of the memory location where the constant is placed. If the constant
-/// already exists, its memory location is reused.
-class ConstantPool final {
-public:
- ConstantPool(BlockOfCode& code, size_t size);
-
- Xbyak::Address GetConstant(const Xbyak::AddressFrame& frame, u64 lower, u64 upper = 0);
-
-private:
- static constexpr size_t align_size = 16; // bytes
-
- using ConstantT = std::pair<u64, u64>;
- static_assert(sizeof(ConstantT) == align_size);
-
- struct ConstantHash {
- std::size_t operator()(const ConstantT& constant) const noexcept {
- return constant.first ^ std::rotl<u64>(constant.second, 1);
- }
- };
-
- tsl::robin_map<ConstantT, void*, ConstantHash> constant_info;
-
- BlockOfCode& code;
- std::span<ConstantT> pool;
- std::size_t insertion_point;
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/constants.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/constants.h
deleted file mode 100644
index f8173241..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/constants.h
+++ /dev/null
@@ -1,177 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/common/fp/rounding_mode.h"
-
-namespace Dynarmic::Backend::X64 {
-
-// Redefinition of _MM_CMP_* constants for use with the 'vcmp' instruction
-namespace Cmp {
-constexpr u8 Equal_OQ = 0; // Equal (Quiet, Ordered).
-constexpr u8 LessThan_OS = 1; // Less (Signaling, Ordered).
-constexpr u8 LessEqual_OS = 2; // Less/Equal (Signaling, Ordered).
-constexpr u8 Unordered_Q = 3; // Unordered (Quiet).
-constexpr u8 NotEqual_UQ = 4; // Not Equal (Quiet, Unordered).
-constexpr u8 NotLessThan_US = 5; // Not Less (Signaling, Unordered).
-constexpr u8 NotLessEqual_US = 6; // Not Less/Equal (Signaling, Unordered).
-constexpr u8 Ordered_Q = 7; // Ordered (Quiet).
-constexpr u8 Equal_UQ = 8; // Equal (Quiet, Unordered).
-constexpr u8 NotGreaterEqual_US = 9; // Not Greater/Equal (Signaling, Unordered).
-constexpr u8 NotGreaterThan_US = 10; // Not Greater (Signaling, Unordered).
-constexpr u8 False_OQ = 11; // False (Quiet, Ordered).
-constexpr u8 NotEqual_OQ = 12; // Not Equal (Quiet, Ordered).
-constexpr u8 GreaterEqual_OS = 13; // Greater/Equal (Signaling, Ordered).
-constexpr u8 GreaterThan_OS = 14; // Greater (Signaling, Ordered).
-constexpr u8 True_UQ = 15; // True (Quiet, Unordered).
-constexpr u8 Equal_OS = 16; // Equal (Signaling, Ordered).
-constexpr u8 LessThan_OQ = 17; // Less (Quiet, Ordered).
-constexpr u8 LessEqual_OQ = 18; // Less/Equal (Quiet, Ordered).
-constexpr u8 Unordered_S = 19; // Unordered (Signaling).
-constexpr u8 NotEqual_US = 20; // Not Equal (Signaling, Unordered).
-constexpr u8 NotLessThan_UQ = 21; // Not Less (Quiet, Unordered).
-constexpr u8 NotLessEqual_UQ = 22; // Not Less/Equal (Quiet, Unordered).
-constexpr u8 Ordered_S = 23; // Ordered (Signaling).
-constexpr u8 Equal_US = 24; // Equal (Signaling, Unordered).
-constexpr u8 NotGreaterEqual_UQ = 25; // Not Greater/Equal (Quiet, Unordered).
-constexpr u8 NotGreaterThan_UQ = 26; // Not Greater (Quiet, Unordered).
-constexpr u8 False_OS = 27; // False (Signaling, Ordered).
-constexpr u8 NotEqual_OS = 28; // Not Equal (Signaling, Ordered).
-constexpr u8 GreaterEqual_OQ = 29; // Greater/Equal (Quiet, Ordered).
-constexpr u8 GreaterThan_OQ = 30; // Greater (Quiet, Ordered).
-constexpr u8 True_US = 31; // True (Signaling, Unordered).
-} // namespace Cmp
-
-// Redefinition of _MM_CMPINT_* constants for use with the 'vpcmp' instruction
-namespace CmpInt {
-constexpr u8 Equal = 0x0;
-constexpr u8 LessThan = 0x1;
-constexpr u8 LessEqual = 0x2;
-constexpr u8 False = 0x3;
-constexpr u8 NotEqual = 0x4;
-constexpr u8 NotLessThan = 0x5;
-constexpr u8 GreaterEqual = 0x5;
-constexpr u8 NotLessEqual = 0x6;
-constexpr u8 GreaterThan = 0x6;
-constexpr u8 True = 0x7;
-} // namespace CmpInt
-
-// Used to generate ternary logic truth-tables for vpternlog
-// Use these to directly refer to terms and perform binary operations upon them
-// and the resulting value will be the ternary lookup table
-// ex:
-// (Tern::a | ~Tern::b) & Tern::c
-// = 0b10100010
-// = 0xa2
-// vpternlog a, b, c, 0xa2
-//
-// ~(Tern::a ^ Tern::b) & Tern::c
-// = 0b10000010
-// = 0x82
-// vpternlog a, b, c, 0x82
-namespace Tern {
-constexpr u8 a = 0b11110000;
-constexpr u8 b = 0b11001100;
-constexpr u8 c = 0b10101010;
-} // namespace Tern
-
-// For use as a bitmask with vfpclass instruction
-namespace FpClass {
-constexpr u8 QNaN = 0b00000001;
-constexpr u8 ZeroPos = 0b00000010;
-constexpr u8 ZeroNeg = 0b00000100;
-constexpr u8 InfPos = 0b00001000;
-constexpr u8 InfNeg = 0b00010000;
-constexpr u8 Denormal = 0b00100000;
-constexpr u8 Negative = 0b01000000; // Negative finite value
-constexpr u8 SNaN = 0b10000000;
-} // namespace FpClass
-
-// Opcodes for use with vfixupimm
-enum class FpFixup : u8 {
- Dest = 0b0000, // Preserve destination
- Norm_Src = 0b0001, // Source operand (Denormal as positive-zero)
- QNaN_Src = 0b0010, // QNaN with sign of source (Denormal as positive-zero)
- IndefNaN = 0b0011, // Indefinite QNaN (Negative QNaN with no payload on x86)
- NegInf = 0b0100, // -Infinity
- PosInf = 0b0101, // +Infinity
- Inf_Src = 0b0110, // Infinity with sign of source (Denormal as positive-zero)
- NegZero = 0b0111, // -0.0
- PosZero = 0b1000, // +0.0
- NegOne = 0b1001, // -1.0
- PosOne = 0b1010, // +1.0
- Half = 0b1011, // 0.5
- Ninety = 0b1100, // 90.0
- HalfPi = 0b1101, // PI/2
- PosMax = 0b1110, // +{FLT_MAX,DBL_MAX}
- NegMax = 0b1111, // -{FLT_MAX,DBL_MAX}
-};
-
-// Generates 32-bit LUT for vfixupimm instruction
-constexpr u32 FixupLUT(FpFixup src_qnan = FpFixup::Dest,
- FpFixup src_snan = FpFixup::Dest,
- FpFixup src_zero = FpFixup::Dest,
- FpFixup src_posone = FpFixup::Dest,
- FpFixup src_neginf = FpFixup::Dest,
- FpFixup src_posinf = FpFixup::Dest,
- FpFixup src_neg = FpFixup::Dest,
- FpFixup src_pos = FpFixup::Dest) {
- u32 fixup_lut = 0;
- fixup_lut = mcl::bit::set_bits<0, 3, u32>(fixup_lut, static_cast<u32>(src_qnan));
- fixup_lut = mcl::bit::set_bits<4, 7, u32>(fixup_lut, static_cast<u32>(src_snan));
- fixup_lut = mcl::bit::set_bits<8, 11, u32>(fixup_lut, static_cast<u32>(src_zero));
- fixup_lut = mcl::bit::set_bits<12, 15, u32>(fixup_lut, static_cast<u32>(src_posone));
- fixup_lut = mcl::bit::set_bits<16, 19, u32>(fixup_lut, static_cast<u32>(src_neginf));
- fixup_lut = mcl::bit::set_bits<20, 23, u32>(fixup_lut, static_cast<u32>(src_posinf));
- fixup_lut = mcl::bit::set_bits<24, 27, u32>(fixup_lut, static_cast<u32>(src_neg));
- fixup_lut = mcl::bit::set_bits<28, 31, u32>(fixup_lut, static_cast<u32>(src_pos));
- return fixup_lut;
-}
-
-// Opcodes for use with vrange* instructions
-enum class FpRangeSelect : u8 {
- Min = 0b00,
- Max = 0b01,
- AbsMin = 0b10, // Smaller absolute value
- AbsMax = 0b11, // Larger absolute value
-};
-
-enum class FpRangeSign : u8 {
- A = 0b00, // Copy sign of operand A
- Preserve = 0b01, // Leave sign as is
- Positive = 0b10, // Set Positive
- Negative = 0b11, // Set Negative
-};
-
-// Generates 8-bit immediate LUT for vrange instruction
-constexpr u8 FpRangeLUT(FpRangeSelect range_select, FpRangeSign range_sign) {
- u8 range_lut = 0;
- range_lut = mcl::bit::set_bits<0, 1, u8>(range_lut, static_cast<u8>(range_select));
- range_lut = mcl::bit::set_bits<2, 3, u8>(range_lut, static_cast<u8>(range_sign));
- return range_lut;
-}
-
-constexpr std::optional<int> ConvertRoundingModeToX64Immediate(FP::RoundingMode rounding_mode) {
- switch (rounding_mode) {
- case FP::RoundingMode::ToNearest_TieEven:
- return 0b00;
- case FP::RoundingMode::TowardsPlusInfinity:
- return 0b10;
- case FP::RoundingMode::TowardsMinusInfinity:
- return 0b01;
- case FP::RoundingMode::TowardsZero:
- return 0b11;
- default:
- return std::nullopt;
- }
-}
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/devirtualize.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/devirtualize.h
deleted file mode 100644
index 778536a3..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/devirtualize.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstring>
-#include <utility>
-
-#include <mcl/bit_cast.hpp>
-#include <mcl/stdint.hpp>
-#include <mcl/type_traits/function_info.hpp>
-
-#include "dynarmic/backend/x64/callback.h"
-
-namespace Dynarmic {
-namespace Backend::X64 {
-
-namespace impl {
-
-template<typename FunctionType, FunctionType mfp>
-struct ThunkBuilder;
-
-template<typename C, typename R, typename... Args, R (C::*mfp)(Args...)>
-struct ThunkBuilder<R (C::*)(Args...), mfp> {
- static R Thunk(C* this_, Args... args) {
- return (this_->*mfp)(std::forward<Args>(args)...);
- }
-};
-
-} // namespace impl
-
-template<auto mfp>
-ArgCallback DevirtualizeGeneric(mcl::class_type<decltype(mfp)>* this_) {
- return ArgCallback{&impl::ThunkBuilder<decltype(mfp), mfp>::Thunk, reinterpret_cast<u64>(this_)};
-}
-
-template<auto mfp>
-ArgCallback DevirtualizeWindows(mcl::class_type<decltype(mfp)>* this_) {
- static_assert(sizeof(mfp) == 8);
- return ArgCallback{mcl::bit_cast<u64>(mfp), reinterpret_cast<u64>(this_)};
-}
-
-template<auto mfp>
-ArgCallback DevirtualizeItanium(mcl::class_type<decltype(mfp)>* this_) {
- struct MemberFunctionPointer {
- /// For a non-virtual function, this is a simple function pointer.
- /// For a virtual function, it is (1 + virtual table offset in bytes).
- u64 ptr;
- /// The required adjustment to `this`, prior to the call.
- u64 adj;
- } mfp_struct = mcl::bit_cast<MemberFunctionPointer>(mfp);
-
- static_assert(sizeof(MemberFunctionPointer) == 16);
- static_assert(sizeof(MemberFunctionPointer) == sizeof(mfp));
-
- u64 fn_ptr = mfp_struct.ptr;
- u64 this_ptr = reinterpret_cast<u64>(this_) + mfp_struct.adj;
- if (mfp_struct.ptr & 1) {
- u64 vtable = mcl::bit_cast_pointee<u64>(this_ptr);
- fn_ptr = mcl::bit_cast_pointee<u64>(vtable + fn_ptr - 1);
- }
- return ArgCallback{fn_ptr, this_ptr};
-}
-
-template<auto mfp>
-ArgCallback Devirtualize(mcl::class_type<decltype(mfp)>* this_) {
-#if defined(__APPLE__) || defined(linux) || defined(__linux) || defined(__linux__)
- return DevirtualizeItanium<mfp>(this_);
-#elif defined(__MINGW64__)
- return DevirtualizeItanium<mfp>(this_);
-#elif defined(_WIN32)
- return DevirtualizeWindows<mfp>(this_);
-#else
- return DevirtualizeGeneric<mfp>(this_);
-#endif
-}
-
-} // namespace Backend::X64
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/emit_x64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/emit_x64.h
deleted file mode 100644
index 5a46f04e..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/emit_x64.h
+++ /dev/null
@@ -1,145 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <functional>
-#include <memory>
-#include <optional>
-#include <string>
-#include <type_traits>
-#include <vector>
-
-#include <mcl/bitsizeof.hpp>
-#include <tsl/robin_map.h>
-#include <tsl/robin_set.h>
-#include <xbyak/xbyak.h>
-#include <xbyak/xbyak_util.h>
-
-#include "dynarmic/backend/exception_handler.h"
-#include "dynarmic/backend/x64/reg_alloc.h"
-#include "dynarmic/common/fp/fpcr.h"
-#include "dynarmic/ir/location_descriptor.h"
-#include "dynarmic/ir/terminal.h"
-
-namespace Dynarmic::IR {
-class Block;
-class Inst;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic {
-enum class OptimizationFlag : u32;
-} // namespace Dynarmic
-
-namespace Dynarmic::Backend::X64 {
-
-class BlockOfCode;
-
-using A64FullVectorWidth = std::integral_constant<size_t, 128>;
-
-// Array alias that always sizes itself according to the given type T
-// relative to the size of a vector register. e.g. T = u32 would result
-// in a std::array<u32, 4>.
-template<typename T>
-using VectorArray = std::array<T, A64FullVectorWidth::value / mcl::bitsizeof<T>>;
-
-template<typename T>
-using HalfVectorArray = std::array<T, A64FullVectorWidth::value / mcl::bitsizeof<T> / 2>;
-
-struct EmitContext {
- EmitContext(RegAlloc& reg_alloc, IR::Block& block);
- virtual ~EmitContext();
-
- void EraseInstruction(IR::Inst* inst);
-
- virtual FP::FPCR FPCR(bool fpcr_controlled = true) const = 0;
-
- virtual bool HasOptimization(OptimizationFlag flag) const = 0;
-
- RegAlloc& reg_alloc;
- IR::Block& block;
-
- std::vector<std::function<void()>> deferred_emits;
-};
-
-using SharedLabel = std::shared_ptr<Xbyak::Label>;
-
-inline SharedLabel GenSharedLabel() {
- return std::make_shared<Xbyak::Label>();
-}
-
-class EmitX64 {
-public:
- struct BlockDescriptor {
- CodePtr entrypoint; // Entrypoint of emitted code
- size_t size; // Length in bytes of emitted code
- };
-
- explicit EmitX64(BlockOfCode& code);
- virtual ~EmitX64();
-
- /// Looks up an emitted host block in the cache.
- std::optional<BlockDescriptor> GetBasicBlock(IR::LocationDescriptor descriptor) const;
-
- /// Empties the entire cache.
- virtual void ClearCache();
-
- /// Invalidates a selection of basic blocks.
- void InvalidateBasicBlocks(const tsl::robin_set<IR::LocationDescriptor>& locations);
-
-protected:
- // Microinstruction emitters
-#define OPCODE(name, type, ...) void Emit##name(EmitContext& ctx, IR::Inst* inst);
-#define A32OPC(...)
-#define A64OPC(...)
-#include "dynarmic/ir/opcodes.inc"
-#undef OPCODE
-#undef A32OPC
-#undef A64OPC
-
- // Helpers
- virtual std::string LocationDescriptorToFriendlyName(const IR::LocationDescriptor&) const = 0;
- void EmitAddCycles(size_t cycles);
- Xbyak::Label EmitCond(IR::Cond cond);
- BlockDescriptor RegisterBlock(const IR::LocationDescriptor& location_descriptor, CodePtr entrypoint, size_t size);
- void PushRSBHelper(Xbyak::Reg64 loc_desc_reg, Xbyak::Reg64 index_reg, IR::LocationDescriptor target);
-
- void EmitVerboseDebuggingOutput(RegAlloc& reg_alloc);
-
- // Terminal instruction emitters
- void EmitTerminal(IR::Terminal terminal, IR::LocationDescriptor initial_location, bool is_single_step);
- virtual void EmitTerminalImpl(IR::Term::Interpret terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::ReturnToDispatch terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::LinkBlock terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::LinkBlockFast terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::PopRSBHint terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::FastDispatchHint terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::If terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::CheckBit terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::CheckHalt terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
-
- // Patching
- struct PatchInformation {
- std::vector<CodePtr> jg;
- std::vector<CodePtr> jz;
- std::vector<CodePtr> jmp;
- std::vector<CodePtr> mov_rcx;
- };
- void Patch(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr);
- virtual void Unpatch(const IR::LocationDescriptor& target_desc);
- virtual void EmitPatchJg(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) = 0;
- virtual void EmitPatchJz(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) = 0;
- virtual void EmitPatchJmp(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) = 0;
- virtual void EmitPatchMovRcx(CodePtr target_code_ptr = nullptr) = 0;
-
- // State
- BlockOfCode& code;
- ExceptionHandler exception_handler;
- tsl::robin_map<IR::LocationDescriptor, BlockDescriptor> block_descriptors;
- tsl::robin_map<IR::LocationDescriptor, PatchInformation> patch_information;
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/emit_x64_memory.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/emit_x64_memory.h
deleted file mode 100644
index c99980d6..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/emit_x64_memory.h
+++ /dev/null
@@ -1,388 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#include <mcl/bit_cast.hpp>
-#include <xbyak/xbyak.h>
-
-#include "dynarmic/backend/x64/a32_emit_x64.h"
-#include "dynarmic/backend/x64/a64_emit_x64.h"
-#include "dynarmic/backend/x64/exclusive_monitor_friend.h"
-#include "dynarmic/common/spin_lock_x64.h"
-#include "dynarmic/interface/exclusive_monitor.h"
-#include "dynarmic/ir/acc_type.h"
-
-namespace Dynarmic::Backend::X64 {
-
-namespace {
-
-using namespace Xbyak::util;
-
-constexpr size_t page_bits = 12;
-constexpr size_t page_size = 1 << page_bits;
-constexpr size_t page_mask = (1 << page_bits) - 1;
-
-template<typename EmitContext>
-void EmitDetectMisalignedVAddr(BlockOfCode& code, EmitContext& ctx, size_t bitsize, Xbyak::Label& abort, Xbyak::Reg64 vaddr, Xbyak::Reg64 tmp) {
- if (bitsize == 8 || (ctx.conf.detect_misaligned_access_via_page_table & bitsize) == 0) {
- return;
- }
-
- const u32 align_mask = [bitsize]() -> u32 {
- switch (bitsize) {
- case 16:
- return 0b1;
- case 32:
- return 0b11;
- case 64:
- return 0b111;
- case 128:
- return 0b1111;
- default:
- UNREACHABLE();
- }
- }();
-
- code.test(vaddr, align_mask);
-
- if (!ctx.conf.only_detect_misalignment_via_page_table_on_page_boundary) {
- code.jnz(abort, code.T_NEAR);
- return;
- }
-
- const u32 page_align_mask = static_cast<u32>(page_size - 1) & ~align_mask;
-
- SharedLabel detect_boundary = GenSharedLabel(), resume = GenSharedLabel();
-
- code.jnz(*detect_boundary, code.T_NEAR);
- code.L(*resume);
-
- ctx.deferred_emits.emplace_back([=, &code] {
- code.L(*detect_boundary);
- code.mov(tmp, vaddr);
- code.and_(tmp, page_align_mask);
- code.cmp(tmp, page_align_mask);
- code.jne(*resume, code.T_NEAR);
- // NOTE: We expect to fallthrough into abort code here.
- });
-}
-
-template<typename EmitContext>
-Xbyak::RegExp EmitVAddrLookup(BlockOfCode& code, EmitContext& ctx, size_t bitsize, Xbyak::Label& abort, Xbyak::Reg64 vaddr);
-
-template<>
-[[maybe_unused]] Xbyak::RegExp EmitVAddrLookup<A32EmitContext>(BlockOfCode& code, A32EmitContext& ctx, size_t bitsize, Xbyak::Label& abort, Xbyak::Reg64 vaddr) {
- const Xbyak::Reg64 page = ctx.reg_alloc.ScratchGpr();
- const Xbyak::Reg32 tmp = ctx.conf.absolute_offset_page_table ? page.cvt32() : ctx.reg_alloc.ScratchGpr().cvt32();
-
- EmitDetectMisalignedVAddr(code, ctx, bitsize, abort, vaddr, tmp.cvt64());
-
- // TODO: This code assumes vaddr has been zext from 32-bits to 64-bits.
-
- code.mov(tmp, vaddr.cvt32());
- code.shr(tmp, static_cast<int>(page_bits));
-
- code.mov(page, qword[r14 + tmp.cvt64() * sizeof(void*)]);
- if (ctx.conf.page_table_pointer_mask_bits == 0) {
- code.test(page, page);
- } else {
- code.and_(page, ~u32(0) << ctx.conf.page_table_pointer_mask_bits);
- }
- code.jz(abort, code.T_NEAR);
- if (ctx.conf.absolute_offset_page_table) {
- return page + vaddr;
- }
- code.mov(tmp, vaddr.cvt32());
- code.and_(tmp, static_cast<u32>(page_mask));
- return page + tmp.cvt64();
-}
-
-template<>
-[[maybe_unused]] Xbyak::RegExp EmitVAddrLookup<A64EmitContext>(BlockOfCode& code, A64EmitContext& ctx, size_t bitsize, Xbyak::Label& abort, Xbyak::Reg64 vaddr) {
- const size_t valid_page_index_bits = ctx.conf.page_table_address_space_bits - page_bits;
- const size_t unused_top_bits = 64 - ctx.conf.page_table_address_space_bits;
-
- const Xbyak::Reg64 page = ctx.reg_alloc.ScratchGpr();
- const Xbyak::Reg64 tmp = ctx.conf.absolute_offset_page_table ? page : ctx.reg_alloc.ScratchGpr();
-
- EmitDetectMisalignedVAddr(code, ctx, bitsize, abort, vaddr, tmp);
-
- if (unused_top_bits == 0) {
- code.mov(tmp, vaddr);
- code.shr(tmp, int(page_bits));
- } else if (ctx.conf.silently_mirror_page_table) {
- if (valid_page_index_bits >= 32) {
- if (code.HasHostFeature(HostFeature::BMI2)) {
- const Xbyak::Reg64 bit_count = ctx.reg_alloc.ScratchGpr();
- code.mov(bit_count, unused_top_bits);
- code.bzhi(tmp, vaddr, bit_count);
- code.shr(tmp, int(page_bits));
- ctx.reg_alloc.Release(bit_count);
- } else {
- code.mov(tmp, vaddr);
- code.shl(tmp, int(unused_top_bits));
- code.shr(tmp, int(unused_top_bits + page_bits));
- }
- } else {
- code.mov(tmp, vaddr);
- code.shr(tmp, int(page_bits));
- code.and_(tmp, u32((1 << valid_page_index_bits) - 1));
- }
- } else {
- ASSERT(valid_page_index_bits < 32);
- code.mov(tmp, vaddr);
- code.shr(tmp, int(page_bits));
- code.test(tmp, u32(-(1 << valid_page_index_bits)));
- code.jnz(abort, code.T_NEAR);
- }
- code.mov(page, qword[r14 + tmp * sizeof(void*)]);
- if (ctx.conf.page_table_pointer_mask_bits == 0) {
- code.test(page, page);
- } else {
- code.and_(page, ~u32(0) << ctx.conf.page_table_pointer_mask_bits);
- }
- code.jz(abort, code.T_NEAR);
- if (ctx.conf.absolute_offset_page_table) {
- return page + vaddr;
- }
- code.mov(tmp, vaddr);
- code.and_(tmp, static_cast<u32>(page_mask));
- return page + tmp;
-}
-
-template<typename EmitContext>
-Xbyak::RegExp EmitFastmemVAddr(BlockOfCode& code, EmitContext& ctx, Xbyak::Label& abort, Xbyak::Reg64 vaddr, bool& require_abort_handling, std::optional<Xbyak::Reg64> tmp = std::nullopt);
-
-template<>
-[[maybe_unused]] Xbyak::RegExp EmitFastmemVAddr<A32EmitContext>(BlockOfCode&, A32EmitContext&, Xbyak::Label&, Xbyak::Reg64 vaddr, bool&, std::optional<Xbyak::Reg64>) {
- return r13 + vaddr;
-}
-
-template<>
-[[maybe_unused]] Xbyak::RegExp EmitFastmemVAddr<A64EmitContext>(BlockOfCode& code, A64EmitContext& ctx, Xbyak::Label& abort, Xbyak::Reg64 vaddr, bool& require_abort_handling, std::optional<Xbyak::Reg64> tmp) {
- const size_t unused_top_bits = 64 - ctx.conf.fastmem_address_space_bits;
-
- if (unused_top_bits == 0) {
- return r13 + vaddr;
- } else if (ctx.conf.silently_mirror_fastmem) {
- if (!tmp) {
- tmp = ctx.reg_alloc.ScratchGpr();
- }
- if (unused_top_bits < 32) {
- code.mov(*tmp, vaddr);
- code.shl(*tmp, int(unused_top_bits));
- code.shr(*tmp, int(unused_top_bits));
- } else if (unused_top_bits == 32) {
- code.mov(tmp->cvt32(), vaddr.cvt32());
- } else {
- code.mov(tmp->cvt32(), vaddr.cvt32());
- code.and_(*tmp, u32((1 << ctx.conf.fastmem_address_space_bits) - 1));
- }
- return r13 + *tmp;
- } else {
- if (ctx.conf.fastmem_address_space_bits < 32) {
- code.test(vaddr, u32(-(1 << ctx.conf.fastmem_address_space_bits)));
- code.jnz(abort, code.T_NEAR);
- require_abort_handling = true;
- } else {
- // TODO: Consider having TEST as above but coalesce 64-bit constant in register allocator
- if (!tmp) {
- tmp = ctx.reg_alloc.ScratchGpr();
- }
- code.mov(*tmp, vaddr);
- code.shr(*tmp, int(ctx.conf.fastmem_address_space_bits));
- code.jnz(abort, code.T_NEAR);
- require_abort_handling = true;
- }
- return r13 + vaddr;
- }
-}
-
-template<std::size_t bitsize>
-const void* EmitReadMemoryMov(BlockOfCode& code, int value_idx, const Xbyak::RegExp& addr, bool ordered) {
- if (ordered) {
- if constexpr (bitsize != 128) {
- code.xor_(Xbyak::Reg32{value_idx}, Xbyak::Reg32{value_idx});
- } else {
- code.xor_(eax, eax);
- code.xor_(ebx, ebx);
- code.xor_(ecx, ecx);
- code.xor_(edx, edx);
- }
-
- const void* fastmem_location = code.getCurr();
- switch (bitsize) {
- case 8:
- code.lock();
- code.xadd(code.byte[addr], Xbyak::Reg32{value_idx}.cvt8());
- break;
- case 16:
- code.lock();
- code.xadd(word[addr], Xbyak::Reg16{value_idx});
- break;
- case 32:
- code.lock();
- code.xadd(dword[addr], Xbyak::Reg32{value_idx});
- break;
- case 64:
- code.lock();
- code.xadd(qword[addr], Xbyak::Reg64{value_idx});
- break;
- case 128:
- code.lock();
- code.cmpxchg16b(xword[addr]);
- if (code.HasHostFeature(HostFeature::SSE41)) {
- code.movq(Xbyak::Xmm{value_idx}, rax);
- code.pinsrq(Xbyak::Xmm{value_idx}, rdx, 1);
- } else {
- code.movq(Xbyak::Xmm{value_idx}, rax);
- code.movq(xmm0, rdx);
- code.punpcklqdq(Xbyak::Xmm{value_idx}, xmm0);
- }
- break;
- default:
- ASSERT_FALSE("Invalid bitsize");
- }
- return fastmem_location;
- }
-
- const void* fastmem_location = code.getCurr();
- switch (bitsize) {
- case 8:
- code.movzx(Xbyak::Reg32{value_idx}, code.byte[addr]);
- break;
- case 16:
- code.movzx(Xbyak::Reg32{value_idx}, word[addr]);
- break;
- case 32:
- code.mov(Xbyak::Reg32{value_idx}, dword[addr]);
- break;
- case 64:
- code.mov(Xbyak::Reg64{value_idx}, qword[addr]);
- break;
- case 128:
- code.movups(Xbyak::Xmm{value_idx}, xword[addr]);
- break;
- default:
- ASSERT_FALSE("Invalid bitsize");
- }
- return fastmem_location;
-}
-
-template<std::size_t bitsize>
-const void* EmitWriteMemoryMov(BlockOfCode& code, const Xbyak::RegExp& addr, int value_idx, bool ordered) {
- if (ordered) {
- if constexpr (bitsize == 128) {
- code.xor_(eax, eax);
- code.xor_(edx, edx);
- if (code.HasHostFeature(HostFeature::SSE41)) {
- code.movq(rbx, Xbyak::Xmm{value_idx});
- code.pextrq(rcx, Xbyak::Xmm{value_idx}, 1);
- } else {
- code.movaps(xmm0, Xbyak::Xmm{value_idx});
- code.movq(rbx, xmm0);
- code.punpckhqdq(xmm0, xmm0);
- code.movq(rcx, xmm0);
- }
- }
-
- const void* fastmem_location = code.getCurr();
- switch (bitsize) {
- case 8:
- code.xchg(code.byte[addr], Xbyak::Reg64{value_idx}.cvt8());
- break;
- case 16:
- code.xchg(word[addr], Xbyak::Reg16{value_idx});
- break;
- case 32:
- code.xchg(dword[addr], Xbyak::Reg32{value_idx});
- break;
- case 64:
- code.xchg(qword[addr], Xbyak::Reg64{value_idx});
- break;
- case 128: {
- Xbyak::Label loop;
- code.L(loop);
- code.lock();
- code.cmpxchg16b(xword[addr]);
- code.jnz(loop);
- break;
- }
- default:
- ASSERT_FALSE("Invalid bitsize");
- }
- return fastmem_location;
- }
-
- const void* fastmem_location = code.getCurr();
- switch (bitsize) {
- case 8:
- code.mov(code.byte[addr], Xbyak::Reg64{value_idx}.cvt8());
- break;
- case 16:
- code.mov(word[addr], Xbyak::Reg16{value_idx});
- break;
- case 32:
- code.mov(dword[addr], Xbyak::Reg32{value_idx});
- break;
- case 64:
- code.mov(qword[addr], Xbyak::Reg64{value_idx});
- break;
- case 128:
- code.movups(xword[addr], Xbyak::Xmm{value_idx});
- break;
- default:
- ASSERT_FALSE("Invalid bitsize");
- }
- return fastmem_location;
-}
-
-template<typename UserConfig>
-void EmitExclusiveLock(BlockOfCode& code, const UserConfig& conf, Xbyak::Reg64 pointer, Xbyak::Reg32 tmp) {
- if (conf.HasOptimization(OptimizationFlag::Unsafe_IgnoreGlobalMonitor)) {
- return;
- }
-
- code.mov(pointer, mcl::bit_cast<u64>(GetExclusiveMonitorLockPointer(conf.global_monitor)));
- EmitSpinLockLock(code, pointer, tmp);
-}
-
-template<typename UserConfig>
-void EmitExclusiveUnlock(BlockOfCode& code, const UserConfig& conf, Xbyak::Reg64 pointer, Xbyak::Reg32 tmp) {
- if (conf.HasOptimization(OptimizationFlag::Unsafe_IgnoreGlobalMonitor)) {
- return;
- }
-
- code.mov(pointer, mcl::bit_cast<u64>(GetExclusiveMonitorLockPointer(conf.global_monitor)));
- EmitSpinLockUnlock(code, pointer, tmp);
-}
-
-template<typename UserConfig>
-void EmitExclusiveTestAndClear(BlockOfCode& code, const UserConfig& conf, Xbyak::Reg64 vaddr, Xbyak::Reg64 pointer, Xbyak::Reg64 tmp) {
- if (conf.HasOptimization(OptimizationFlag::Unsafe_IgnoreGlobalMonitor)) {
- return;
- }
-
- code.mov(tmp, 0xDEAD'DEAD'DEAD'DEAD);
- const size_t processor_count = GetExclusiveMonitorProcessorCount(conf.global_monitor);
- for (size_t processor_index = 0; processor_index < processor_count; processor_index++) {
- if (processor_index == conf.processor_id) {
- continue;
- }
- Xbyak::Label ok;
- code.mov(pointer, mcl::bit_cast<u64>(GetExclusiveMonitorAddressPointer(conf.global_monitor, processor_index)));
- code.cmp(qword[pointer], vaddr);
- code.jne(ok);
- code.mov(qword[pointer], tmp);
- code.L(ok);
- }
-}
-
-inline bool IsOrdered(IR::AccType acctype) {
- return acctype == IR::AccType::ORDERED || acctype == IR::AccType::ORDEREDRW || acctype == IR::AccType::LIMITEDORDERED;
-}
-
-} // namespace
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/exclusive_monitor_friend.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/exclusive_monitor_friend.h
deleted file mode 100644
index 7f7fa242..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/exclusive_monitor_friend.h
+++ /dev/null
@@ -1,28 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include "dynarmic/interface/exclusive_monitor.h"
-
-namespace Dynarmic {
-
-inline volatile int* GetExclusiveMonitorLockPointer(ExclusiveMonitor* monitor) {
- return &monitor->lock.storage;
-}
-
-inline size_t GetExclusiveMonitorProcessorCount(ExclusiveMonitor* monitor) {
- return monitor->exclusive_addresses.size();
-}
-
-inline VAddr* GetExclusiveMonitorAddressPointer(ExclusiveMonitor* monitor, size_t index) {
- return monitor->exclusive_addresses.data() + index;
-}
-
-inline Vector* GetExclusiveMonitorValuePointer(ExclusiveMonitor* monitor, size_t index) {
- return monitor->exclusive_values.data() + index;
-}
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/host_feature.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/host_feature.h
deleted file mode 100644
index 8e3b14c7..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/host_feature.h
+++ /dev/null
@@ -1,66 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2021 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Backend::X64 {
-
-enum class HostFeature : u64 {
- SSSE3 = 1ULL << 0,
- SSE41 = 1ULL << 1,
- SSE42 = 1ULL << 2,
- AVX = 1ULL << 3,
- AVX2 = 1ULL << 4,
- AVX512F = 1ULL << 5,
- AVX512CD = 1ULL << 6,
- AVX512VL = 1ULL << 7,
- AVX512BW = 1ULL << 8,
- AVX512DQ = 1ULL << 9,
- AVX512BITALG = 1ULL << 10,
- AVX512VBMI = 1ULL << 11,
- PCLMULQDQ = 1ULL << 12,
- F16C = 1ULL << 13,
- FMA = 1ULL << 14,
- AES = 1ULL << 15,
- SHA = 1ULL << 16,
- POPCNT = 1ULL << 17,
- BMI1 = 1ULL << 18,
- BMI2 = 1ULL << 19,
- LZCNT = 1ULL << 20,
- GFNI = 1ULL << 21,
-
- // Zen-based BMI2
- FastBMI2 = 1ULL << 22,
-
- // Orthographic AVX512 features on 128 and 256 vectors
- AVX512_Ortho = AVX512F | AVX512VL,
-
- // Orthographic AVX512 features for both 32-bit and 64-bit floats
- AVX512_OrthoFloat = AVX512_Ortho | AVX512DQ,
-};
-
-constexpr HostFeature operator~(HostFeature f) {
- return static_cast<HostFeature>(~static_cast<u64>(f));
-}
-
-constexpr HostFeature operator|(HostFeature f1, HostFeature f2) {
- return static_cast<HostFeature>(static_cast<u64>(f1) | static_cast<u64>(f2));
-}
-
-constexpr HostFeature operator&(HostFeature f1, HostFeature f2) {
- return static_cast<HostFeature>(static_cast<u64>(f1) & static_cast<u64>(f2));
-}
-
-constexpr HostFeature operator|=(HostFeature& result, HostFeature f) {
- return result = (result | f);
-}
-
-constexpr HostFeature operator&=(HostFeature& result, HostFeature f) {
- return result = (result & f);
-}
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/hostloc.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/hostloc.h
deleted file mode 100644
index dbf526b7..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/hostloc.h
+++ /dev/null
@@ -1,147 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-#pragma once
-
-#include <mcl/assert.hpp>
-#include <mcl/stdint.hpp>
-#include <xbyak/xbyak.h>
-
-namespace Dynarmic::Backend::X64 {
-
-enum class HostLoc {
- // Ordering of the registers is intentional. See also: HostLocToX64.
- RAX,
- RCX,
- RDX,
- RBX,
- RSP,
- RBP,
- RSI,
- RDI,
- R8,
- R9,
- R10,
- R11,
- R12,
- R13,
- R14,
- R15,
- XMM0,
- XMM1,
- XMM2,
- XMM3,
- XMM4,
- XMM5,
- XMM6,
- XMM7,
- XMM8,
- XMM9,
- XMM10,
- XMM11,
- XMM12,
- XMM13,
- XMM14,
- XMM15,
- CF,
- PF,
- AF,
- ZF,
- SF,
- OF,
- FirstSpill,
-};
-
-constexpr size_t NonSpillHostLocCount = static_cast<size_t>(HostLoc::FirstSpill);
-
-inline bool HostLocIsGPR(HostLoc reg) {
- return reg >= HostLoc::RAX && reg <= HostLoc::R15;
-}
-
-inline bool HostLocIsXMM(HostLoc reg) {
- return reg >= HostLoc::XMM0 && reg <= HostLoc::XMM15;
-}
-
-inline bool HostLocIsRegister(HostLoc reg) {
- return HostLocIsGPR(reg) || HostLocIsXMM(reg);
-}
-
-inline bool HostLocIsFlag(HostLoc reg) {
- return reg >= HostLoc::CF && reg <= HostLoc::OF;
-}
-
-inline HostLoc HostLocRegIdx(int idx) {
- ASSERT(idx >= 0 && idx <= 15);
- return static_cast<HostLoc>(idx);
-}
-
-inline HostLoc HostLocXmmIdx(int idx) {
- ASSERT(idx >= 0 && idx <= 15);
- return static_cast<HostLoc>(static_cast<size_t>(HostLoc::XMM0) + idx);
-}
-
-inline HostLoc HostLocSpill(size_t i) {
- return static_cast<HostLoc>(static_cast<size_t>(HostLoc::FirstSpill) + i);
-}
-
-inline bool HostLocIsSpill(HostLoc reg) {
- return reg >= HostLoc::FirstSpill;
-}
-
-inline size_t HostLocBitWidth(HostLoc loc) {
- if (HostLocIsGPR(loc))
- return 64;
- if (HostLocIsXMM(loc))
- return 128;
- if (HostLocIsSpill(loc))
- return 128;
- if (HostLocIsFlag(loc))
- return 1;
- UNREACHABLE();
-}
-
-using HostLocList = std::initializer_list<HostLoc>;
-
-// RSP is preserved for function calls
-// R15 contains the JitState pointer
-const HostLocList any_gpr = {
- HostLoc::RAX,
- HostLoc::RBX,
- HostLoc::RCX,
- HostLoc::RDX,
- HostLoc::RSI,
- HostLoc::RDI,
- HostLoc::RBP,
- HostLoc::R8,
- HostLoc::R9,
- HostLoc::R10,
- HostLoc::R11,
- HostLoc::R12,
- HostLoc::R13,
- HostLoc::R14,
-};
-
-// XMM0 is reserved for use by instructions that implicitly use it as an argument
-const HostLocList any_xmm = {
- HostLoc::XMM1,
- HostLoc::XMM2,
- HostLoc::XMM3,
- HostLoc::XMM4,
- HostLoc::XMM5,
- HostLoc::XMM6,
- HostLoc::XMM7,
- HostLoc::XMM8,
- HostLoc::XMM9,
- HostLoc::XMM10,
- HostLoc::XMM11,
- HostLoc::XMM12,
- HostLoc::XMM13,
- HostLoc::XMM14,
- HostLoc::XMM15,
-};
-
-Xbyak::Reg64 HostLocToReg64(HostLoc loc);
-Xbyak::Xmm HostLocToXmm(HostLoc loc);
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/jitstate_info.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/jitstate_info.h
deleted file mode 100644
index 654b3f04..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/jitstate_info.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstddef>
-
-namespace Dynarmic::Backend::X64 {
-
-struct JitStateInfo {
- template<typename JitStateType>
- JitStateInfo(const JitStateType&)
- : offsetof_guest_MXCSR(offsetof(JitStateType, guest_MXCSR))
- , offsetof_asimd_MXCSR(offsetof(JitStateType, asimd_MXCSR))
- , offsetof_rsb_ptr(offsetof(JitStateType, rsb_ptr))
- , rsb_ptr_mask(JitStateType::RSBPtrMask)
- , offsetof_rsb_location_descriptors(offsetof(JitStateType, rsb_location_descriptors))
- , offsetof_rsb_codeptrs(offsetof(JitStateType, rsb_codeptrs))
- , offsetof_cpsr_nzcv(offsetof(JitStateType, cpsr_nzcv))
- , offsetof_fpsr_exc(offsetof(JitStateType, fpsr_exc))
- , offsetof_fpsr_qc(offsetof(JitStateType, fpsr_qc))
- , offsetof_halt_reason(offsetof(JitStateType, halt_reason)) {}
-
- const size_t offsetof_guest_MXCSR;
- const size_t offsetof_asimd_MXCSR;
- const size_t offsetof_rsb_ptr;
- const size_t rsb_ptr_mask;
- const size_t offsetof_rsb_location_descriptors;
- const size_t offsetof_rsb_codeptrs;
- const size_t offsetof_cpsr_nzcv;
- const size_t offsetof_fpsr_exc;
- const size_t offsetof_fpsr_qc;
- const size_t offsetof_halt_reason;
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/nzcv_util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/nzcv_util.h
deleted file mode 100644
index 3a70cf4f..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/nzcv_util.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Backend::X64::NZCV {
-
-constexpr u32 arm_mask = 0xF000'0000;
-constexpr u32 x64_mask = 0xC101;
-
-constexpr size_t x64_n_flag_bit = 15;
-constexpr size_t x64_z_flag_bit = 14;
-constexpr size_t x64_c_flag_bit = 8;
-constexpr size_t x64_v_flag_bit = 0;
-
-/// This is a constant used to create the x64 flags format from the ARM format.
-/// NZCV * multiplier: NZCV0NZCV000NZCV
-/// x64_flags format: NZ-----C-------V
-constexpr u32 to_x64_multiplier = 0x1081;
-
-/// This is a constant used to create the ARM format from the x64 flags format.
-constexpr u32 from_x64_multiplier = 0x1021'0000;
-
-inline u32 ToX64(u32 nzcv) {
- /* Naive implementation:
- u32 x64_flags = 0;
- x64_flags |= mcl::bit::get_bit<31>(cpsr) ? 1 << 15 : 0;
- x64_flags |= mcl::bit::get_bit<30>(cpsr) ? 1 << 14 : 0;
- x64_flags |= mcl::bit::get_bit<29>(cpsr) ? 1 << 8 : 0;
- x64_flags |= mcl::bit::get_bit<28>(cpsr) ? 1 : 0;
- return x64_flags;
- */
- return ((nzcv >> 28) * to_x64_multiplier) & x64_mask;
-}
-
-inline u32 FromX64(u32 x64_flags) {
- /* Naive implementation:
- u32 nzcv = 0;
- nzcv |= mcl::bit::get_bit<15>(x64_flags) ? 1 << 31 : 0;
- nzcv |= mcl::bit::get_bit<14>(x64_flags) ? 1 << 30 : 0;
- nzcv |= mcl::bit::get_bit<8>(x64_flags) ? 1 << 29 : 0;
- nzcv |= mcl::bit::get_bit<0>(x64_flags) ? 1 << 28 : 0;
- return nzcv;
- */
- return ((x64_flags & x64_mask) * from_x64_multiplier) & arm_mask;
-}
-
-} // namespace Dynarmic::Backend::X64::NZCV
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/oparg.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/oparg.h
deleted file mode 100644
index 70c60dfb..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/oparg.h
+++ /dev/null
@@ -1,79 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/assert.hpp>
-#include <xbyak/xbyak.h>
-
-namespace Dynarmic::Backend::X64 {
-
-struct OpArg {
- OpArg()
- : type(Type::Operand), inner_operand() {}
- /* implicit */ OpArg(const Xbyak::Address& address)
- : type(Type::Address), inner_address(address) {}
- /* implicit */ OpArg(const Xbyak::Reg& reg)
- : type(Type::Reg), inner_reg(reg) {}
-
- Xbyak::Operand& operator*() {
- switch (type) {
- case Type::Address:
- return inner_address;
- case Type::Operand:
- return inner_operand;
- case Type::Reg:
- return inner_reg;
- }
- UNREACHABLE();
- }
-
- void setBit(int bits) {
- switch (type) {
- case Type::Address:
- inner_address.setBit(bits);
- return;
- case Type::Operand:
- inner_operand.setBit(bits);
- return;
- case Type::Reg:
- switch (bits) {
- case 8:
- inner_reg = inner_reg.cvt8();
- return;
- case 16:
- inner_reg = inner_reg.cvt16();
- return;
- case 32:
- inner_reg = inner_reg.cvt32();
- return;
- case 64:
- inner_reg = inner_reg.cvt64();
- return;
- default:
- ASSERT_MSG(false, "Invalid bits");
- return;
- }
- }
- UNREACHABLE();
- }
-
-private:
- enum class Type {
- Operand,
- Address,
- Reg,
- };
-
- Type type;
-
- union {
- Xbyak::Operand inner_operand;
- Xbyak::Address inner_address;
- Xbyak::Reg inner_reg;
- };
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/perf_map.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/perf_map.h
deleted file mode 100644
index 7d739ae6..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/perf_map.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string_view>
-
-#include <mcl/bit_cast.hpp>
-
-namespace Dynarmic::Backend::X64 {
-
-namespace detail {
-void PerfMapRegister(const void* start, const void* end, std::string_view friendly_name);
-} // namespace detail
-
-template<typename T>
-void PerfMapRegister(T start, const void* end, std::string_view friendly_name) {
- detail::PerfMapRegister(mcl::bit_cast<const void*>(start), end, friendly_name);
-}
-
-void PerfMapClear();
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/reg_alloc.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/reg_alloc.h
deleted file mode 100644
index 19debf5f..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/reg_alloc.h
+++ /dev/null
@@ -1,188 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <functional>
-#include <optional>
-#include <utility>
-#include <vector>
-
-#include <mcl/stdint.hpp>
-#include <xbyak/xbyak.h>
-
-#include "dynarmic/backend/x64/block_of_code.h"
-#include "dynarmic/backend/x64/hostloc.h"
-#include "dynarmic/backend/x64/oparg.h"
-#include "dynarmic/ir/cond.h"
-#include "dynarmic/ir/microinstruction.h"
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::IR {
-enum class AccType;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic::Backend::X64 {
-
-class RegAlloc;
-
-struct HostLocInfo {
-public:
- bool IsLocked() const;
- bool IsEmpty() const;
- bool IsLastUse() const;
-
- void SetLastUse();
-
- void ReadLock();
- void WriteLock();
- void AddArgReference();
- void ReleaseOne();
- void ReleaseAll();
-
- bool ContainsValue(const IR::Inst* inst) const;
- size_t GetMaxBitWidth() const;
-
- void AddValue(IR::Inst* inst);
-
- void EmitVerboseDebuggingOutput(BlockOfCode& code, size_t host_loc_index) const;
-
-private:
- // Current instruction state
- size_t is_being_used_count = 0;
- bool is_scratch = false;
- bool is_set_last_use = false;
-
- // Block state
- size_t current_references = 0;
- size_t accumulated_uses = 0;
- size_t total_uses = 0;
-
- // Value state
- std::vector<IR::Inst*> values;
- size_t max_bit_width = 0;
-};
-
-struct Argument {
-public:
- using copyable_reference = std::reference_wrapper<Argument>;
-
- IR::Type GetType() const;
- bool IsImmediate() const;
- bool IsVoid() const;
-
- bool FitsInImmediateU32() const;
- bool FitsInImmediateS32() const;
-
- bool GetImmediateU1() const;
- u8 GetImmediateU8() const;
- u16 GetImmediateU16() const;
- u32 GetImmediateU32() const;
- u64 GetImmediateS32() const;
- u64 GetImmediateU64() const;
- IR::Cond GetImmediateCond() const;
- IR::AccType GetImmediateAccType() const;
-
- /// Is this value currently in a GPR?
- bool IsInGpr() const;
- /// Is this value currently in a XMM?
- bool IsInXmm() const;
- /// Is this value currently in memory?
- bool IsInMemory() const;
-
-private:
- friend class RegAlloc;
- explicit Argument(RegAlloc& reg_alloc)
- : reg_alloc(reg_alloc) {}
-
- bool allocated = false;
- RegAlloc& reg_alloc;
- IR::Value value;
-};
-
-class RegAlloc final {
-public:
- using ArgumentInfo = std::array<Argument, IR::max_arg_count>;
-
- explicit RegAlloc(BlockOfCode& code, std::vector<HostLoc> gpr_order, std::vector<HostLoc> xmm_order);
-
- ArgumentInfo GetArgumentInfo(IR::Inst* inst);
- void RegisterPseudoOperation(IR::Inst* inst);
- bool IsValueLive(IR::Inst* inst) const;
-
- Xbyak::Reg64 UseGpr(Argument& arg);
- Xbyak::Xmm UseXmm(Argument& arg);
- OpArg UseOpArg(Argument& arg);
- void Use(Argument& arg, HostLoc host_loc);
-
- Xbyak::Reg64 UseScratchGpr(Argument& arg);
- Xbyak::Xmm UseScratchXmm(Argument& arg);
- void UseScratch(Argument& arg, HostLoc host_loc);
-
- void DefineValue(IR::Inst* inst, const Xbyak::Reg& reg);
- void DefineValue(IR::Inst* inst, Argument& arg);
-
- void Release(const Xbyak::Reg& reg);
-
- Xbyak::Reg64 ScratchGpr();
- Xbyak::Reg64 ScratchGpr(HostLoc desired_location);
- Xbyak::Xmm ScratchXmm();
- Xbyak::Xmm ScratchXmm(HostLoc desired_location);
-
- void HostCall(IR::Inst* result_def = nullptr,
- std::optional<Argument::copyable_reference> arg0 = {},
- std::optional<Argument::copyable_reference> arg1 = {},
- std::optional<Argument::copyable_reference> arg2 = {},
- std::optional<Argument::copyable_reference> arg3 = {});
-
- // TODO: Values in host flags
-
- void AllocStackSpace(size_t stack_space);
- void ReleaseStackSpace(size_t stack_space);
-
- void EndOfAllocScope();
-
- void AssertNoMoreUses();
-
- void EmitVerboseDebuggingOutput();
-
-private:
- friend struct Argument;
-
- std::vector<HostLoc> gpr_order;
- std::vector<HostLoc> xmm_order;
-
- HostLoc SelectARegister(const std::vector<HostLoc>& desired_locations) const;
- std::optional<HostLoc> ValueLocation(const IR::Inst* value) const;
-
- HostLoc UseImpl(IR::Value use_value, const std::vector<HostLoc>& desired_locations);
- HostLoc UseScratchImpl(IR::Value use_value, const std::vector<HostLoc>& desired_locations);
- HostLoc ScratchImpl(const std::vector<HostLoc>& desired_locations);
- void DefineValueImpl(IR::Inst* def_inst, HostLoc host_loc);
- void DefineValueImpl(IR::Inst* def_inst, const IR::Value& use_inst);
-
- HostLoc LoadImmediate(IR::Value imm, HostLoc host_loc);
- void Move(HostLoc to, HostLoc from);
- void CopyToScratch(size_t bit_width, HostLoc to, HostLoc from);
- void Exchange(HostLoc a, HostLoc b);
- void MoveOutOfTheWay(HostLoc reg);
-
- void SpillRegister(HostLoc loc);
- HostLoc FindFreeSpill() const;
-
- std::vector<HostLocInfo> hostloc_info;
- HostLocInfo& LocInfo(HostLoc loc);
- const HostLocInfo& LocInfo(HostLoc loc) const;
-
- BlockOfCode& code;
- size_t reserved_stack_space = 0;
- void EmitMove(size_t bit_width, HostLoc to, HostLoc from);
- void EmitExchange(HostLoc a, HostLoc b);
-
- Xbyak::Address SpillToOpArg(HostLoc loc);
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/stack_layout.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/stack_layout.h
deleted file mode 100644
index 7e6799f1..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/stack_layout.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Backend::X64 {
-
-constexpr size_t SpillCount = 64;
-
-#ifdef _MSC_VER
-# pragma warning(push)
-# pragma warning(disable : 4324) // Structure was padded due to alignment specifier
-#endif
-
-struct alignas(16) StackLayout {
- s64 cycles_remaining;
- s64 cycles_to_run;
-
- std::array<std::array<u64, 2>, SpillCount> spill;
-
- u32 save_host_MXCSR;
-
- bool check_bit;
-};
-
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-
-static_assert(sizeof(StackLayout) % 16 == 0);
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/verbose_debugging_output.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/verbose_debugging_output.h
deleted file mode 100644
index 4eb2646d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/backend/x64/verbose_debugging_output.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2023 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/backend/x64/stack_layout.h"
-
-namespace Dynarmic::Backend::X64 {
-
-enum class HostLoc;
-using Vector = std::array<u64, 2>;
-
-#ifdef _MSC_VER
-# pragma warning(push)
-# pragma warning(disable : 4324) // Structure was padded due to alignment specifier
-#endif
-
-struct alignas(16) RegisterData {
- std::array<u64, 16> gprs;
- std::array<Vector, 16> xmms;
- decltype(StackLayout::spill)* spill;
- u32 mxcsr;
-};
-
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-
-void PrintVerboseDebuggingOutputLine(RegisterData& reg_data, HostLoc hostloc, size_t inst_index, size_t bitsize);
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/always_false.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/always_false.h
deleted file mode 100644
index b980fea0..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/always_false.h
+++ /dev/null
@@ -1,13 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2023 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::Common {
-
-template<typename T>
-inline constexpr bool always_false_v = false;
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/atomic.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/atomic.h
deleted file mode 100644
index 34042d38..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/atomic.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Atomic {
-
-inline u32 Load(volatile u32* ptr) {
-#ifdef _MSC_VER
- return _InterlockedOr(reinterpret_cast<volatile long*>(ptr), 0);
-#else
- return __atomic_load_n(ptr, __ATOMIC_SEQ_CST);
-#endif
-}
-
-inline void Or(volatile u32* ptr, u32 value) {
-#ifdef _MSC_VER
- _InterlockedOr(reinterpret_cast<volatile long*>(ptr), value);
-#else
- __atomic_or_fetch(ptr, value, __ATOMIC_SEQ_CST);
-#endif
-}
-
-inline void And(volatile u32* ptr, u32 value) {
-#ifdef _MSC_VER
- _InterlockedAnd(reinterpret_cast<volatile long*>(ptr), value);
-#else
- __atomic_and_fetch(ptr, value, __ATOMIC_SEQ_CST);
-#endif
-}
-
-inline void Barrier() {
-#ifdef _MSC_VER
- _ReadWriteBarrier();
-#else
- __atomic_thread_fence(__ATOMIC_SEQ_CST);
-#endif
-}
-
-} // namespace Dynarmic::Atomic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/cast_util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/cast_util.h
deleted file mode 100644
index 92c9a259..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/cast_util.h
+++ /dev/null
@@ -1,18 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/type_traits/function_info.hpp>
-
-namespace Dynarmic::Common {
-
-/// Cast a lambda into an equivalent function pointer.
-template<class Function>
-inline auto FptrCast(Function f) noexcept {
- return static_cast<mcl::equivalent_function_type<Function>*>(f);
-}
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/crypto/aes.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/crypto/aes.h
deleted file mode 100644
index fa6d5a81..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/crypto/aes.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Common::Crypto::AES {
-
-using State = std::array<u8, 16>;
-
-// Assumes the state has already been XORed by the round key.
-void DecryptSingleRound(State& out_state, const State& state);
-void EncryptSingleRound(State& out_state, const State& state);
-
-void MixColumns(State& out_state, const State& state);
-void InverseMixColumns(State& out_state, const State& state);
-
-} // namespace Dynarmic::Common::Crypto::AES
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/crypto/crc32.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/crypto/crc32.h
deleted file mode 100644
index 30942327..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/crypto/crc32.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Common::Crypto::CRC32 {
-
-/**
- * Computes a CRC32 value using Castagnoli polynomial (0x1EDC6F41).
- *
- * @param crc The initial CRC value
- * @param value The value to compute the CRC of.
- * @param length The length of the data to compute.
- *
- * @remark @p value is interpreted internally as an array of
- * unsigned char with @p length data.
- *
- * @return The computed CRC32 value.
- */
-u32 ComputeCRC32Castagnoli(u32 crc, u64 value, int length);
-
-/**
- * Computes a CRC32 value using the ISO polynomial (0x04C11DB7).
- *
- * @param crc The initial CRC value
- * @param value The value to compute the CRC of.
- * @param length The length of the data to compute.
- *
- * @remark @p value is interpreted internally as an array of
- * unsigned char with @p length data.
- *
- * @return The computed CRC32 value.
- */
-u32 ComputeCRC32ISO(u32 crc, u64 value, int length);
-
-} // namespace Dynarmic::Common::Crypto::CRC32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/crypto/sm4.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/crypto/sm4.h
deleted file mode 100644
index 417e9b92..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/crypto/sm4.h
+++ /dev/null
@@ -1,14 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Common::Crypto::SM4 {
-
-u8 AccessSubstitutionBox(u8 index);
-
-} // namespace Dynarmic::Common::Crypto::SM4
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/fpcr.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/fpcr.h
deleted file mode 100644
index 287f6d28..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/fpcr.h
+++ /dev/null
@@ -1,209 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-
-#include <mcl/assert.hpp>
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/common/fp/rounding_mode.h"
-
-namespace Dynarmic::FP {
-
-/**
- * Representation of the Floating-Point Control Register.
- */
-class FPCR final {
-public:
- FPCR() = default;
- FPCR(const FPCR&) = default;
- FPCR(FPCR&&) = default;
- explicit FPCR(u32 data)
- : value{data & mask} {}
-
- FPCR& operator=(const FPCR&) = default;
- FPCR& operator=(FPCR&&) = default;
- FPCR& operator=(u32 data) {
- value = data & mask;
- return *this;
- }
-
- /// Get alternate half-precision control flag.
- bool AHP() const {
- return mcl::bit::get_bit<26>(value);
- }
-
- /// Set alternate half-precision control flag.
- void AHP(bool ahp) {
- value = mcl::bit::set_bit<26>(value, ahp);
- }
-
- /// Get default NaN mode control bit.
- bool DN() const {
- return mcl::bit::get_bit<25>(value);
- }
-
- /// Set default NaN mode control bit.
- void DN(bool dn) {
- value = mcl::bit::set_bit<25>(value, dn);
- }
-
- /// Get flush-to-zero mode control bit.
- bool FZ() const {
- return mcl::bit::get_bit<24>(value);
- }
-
- /// Set flush-to-zero mode control bit.
- void FZ(bool fz) {
- value = mcl::bit::set_bit<24>(value, fz);
- }
-
- /// Get rounding mode control field.
- FP::RoundingMode RMode() const {
- return static_cast<FP::RoundingMode>(mcl::bit::get_bits<22, 23>(value));
- }
-
- /// Set rounding mode control field.
- void RMode(FP::RoundingMode rounding_mode) {
- ASSERT_MSG(static_cast<u32>(rounding_mode) <= 0b11, "FPCR: Invalid rounding mode");
- value = mcl::bit::set_bits<22, 23>(value, static_cast<u32>(rounding_mode));
- }
-
- /// Get the stride of a vector when executing AArch32 VFP instructions.
- /// This field has no function in AArch64 state.
- std::optional<size_t> Stride() const {
- switch (mcl::bit::get_bits<20, 21>(value)) {
- case 0b00:
- return 1;
- case 0b11:
- return 2;
- default:
- return std::nullopt;
- }
- }
-
- /// Set the stride of a vector when executing AArch32 VFP instructions.
- /// This field has no function in AArch64 state.
- void Stride(size_t stride) {
- ASSERT_MSG(stride >= 1 && stride <= 2, "FPCR: Invalid stride");
- value = mcl::bit::set_bits<20, 21>(value, stride == 1 ? 0b00u : 0b11u);
- }
-
- /// Get flush-to-zero (half-precision specific) mode control bit.
- bool FZ16() const {
- return mcl::bit::get_bit<19>(value);
- }
-
- /// Set flush-to-zero (half-precision specific) mode control bit.
- void FZ16(bool fz16) {
- value = mcl::bit::set_bit<19>(value, fz16);
- }
-
- /// Gets the length of a vector when executing AArch32 VFP instructions.
- /// This field has no function in AArch64 state.
- size_t Len() const {
- return mcl::bit::get_bits<16, 18>(value) + 1;
- }
-
- /// Sets the length of a vector when executing AArch32 VFP instructions.
- /// This field has no function in AArch64 state.
- void Len(size_t len) {
- ASSERT_MSG(len >= 1 && len <= 8, "FPCR: Invalid len");
- value = mcl::bit::set_bits<16, 18>(value, static_cast<u32>(len - 1));
- }
-
- /// Get input denormal exception trap enable flag.
- bool IDE() const {
- return mcl::bit::get_bit<15>(value);
- }
-
- /// Set input denormal exception trap enable flag.
- void IDE(bool ide) {
- value = mcl::bit::set_bit<15>(value, ide);
- }
-
- /// Get inexact exception trap enable flag.
- bool IXE() const {
- return mcl::bit::get_bit<12>(value);
- }
-
- /// Set inexact exception trap enable flag.
- void IXE(bool ixe) {
- value = mcl::bit::set_bit<12>(value, ixe);
- }
-
- /// Get underflow exception trap enable flag.
- bool UFE() const {
- return mcl::bit::get_bit<11>(value);
- }
-
- /// Set underflow exception trap enable flag.
- void UFE(bool ufe) {
- value = mcl::bit::set_bit<11>(value, ufe);
- }
-
- /// Get overflow exception trap enable flag.
- bool OFE() const {
- return mcl::bit::get_bit<10>(value);
- }
-
- /// Set overflow exception trap enable flag.
- void OFE(bool ofe) {
- value = mcl::bit::set_bit<10>(value, ofe);
- }
-
- /// Get division by zero exception trap enable flag.
- bool DZE() const {
- return mcl::bit::get_bit<9>(value);
- }
-
- /// Set division by zero exception trap enable flag.
- void DZE(bool dze) {
- value = mcl::bit::set_bit<9>(value, dze);
- }
-
- /// Get invalid operation exception trap enable flag.
- bool IOE() const {
- return mcl::bit::get_bit<8>(value);
- }
-
- /// Set invalid operation exception trap enable flag.
- void IOE(bool ioe) {
- value = mcl::bit::set_bit<8>(value, ioe);
- }
-
- /// Gets the underlying raw value within the FPCR.
- u32 Value() const {
- return value;
- }
-
- /// Gets the StandardFPSCRValue (A32 ASIMD).
- FPCR ASIMDStandardValue() const {
- FPCR stdvalue;
- stdvalue.AHP(AHP());
- stdvalue.FZ16(FZ16());
- stdvalue.FZ(true);
- stdvalue.DN(true);
- return stdvalue;
- }
-
-private:
- // Bits 0-7, 13-14, and 27-31 are reserved.
- static constexpr u32 mask = 0x07FF9F00;
- u32 value = 0;
-};
-
-inline bool operator==(FPCR lhs, FPCR rhs) {
- return lhs.Value() == rhs.Value();
-}
-
-inline bool operator!=(FPCR lhs, FPCR rhs) {
- return !operator==(lhs, rhs);
-}
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/fpsr.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/fpsr.h
deleted file mode 100644
index fba58ebb..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/fpsr.h
+++ /dev/null
@@ -1,160 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::FP {
-
-/**
- * Representation of the Floating-Point Status Register.
- */
-class FPSR final {
-public:
- FPSR() = default;
- FPSR(const FPSR&) = default;
- FPSR(FPSR&&) = default;
- explicit FPSR(u32 data)
- : value{data & mask} {}
-
- FPSR& operator=(const FPSR&) = default;
- FPSR& operator=(FPSR&&) = default;
- FPSR& operator=(u32 data) {
- value = data & mask;
- return *this;
- }
-
- /// Get negative condition flag
- bool N() const {
- return mcl::bit::get_bit<31>(value);
- }
-
- /// Set negative condition flag
- void N(bool N_) {
- value = mcl::bit::set_bit<31>(value, N_);
- }
-
- /// Get zero condition flag
- bool Z() const {
- return mcl::bit::get_bit<30>(value);
- }
-
- /// Set zero condition flag
- void Z(bool Z_) {
- value = mcl::bit::set_bit<30>(value, Z_);
- }
-
- /// Get carry condition flag
- bool C() const {
- return mcl::bit::get_bit<29>(value);
- }
-
- /// Set carry condition flag
- void C(bool C_) {
- value = mcl::bit::set_bit<29>(value, C_);
- }
-
- /// Get overflow condition flag
- bool V() const {
- return mcl::bit::get_bit<28>(value);
- }
-
- /// Set overflow condition flag
- void V(bool V_) {
- value = mcl::bit::set_bit<28>(value, V_);
- }
-
- /// Get cumulative saturation bit
- bool QC() const {
- return mcl::bit::get_bit<27>(value);
- }
-
- /// Set cumulative saturation bit
- void QC(bool QC_) {
- value = mcl::bit::set_bit<27>(value, QC_);
- }
-
- /// Get input denormal floating-point exception bit
- bool IDC() const {
- return mcl::bit::get_bit<7>(value);
- }
-
- /// Set input denormal floating-point exception bit
- void IDC(bool IDC_) {
- value = mcl::bit::set_bit<7>(value, IDC_);
- }
-
- /// Get inexact cumulative floating-point exception bit
- bool IXC() const {
- return mcl::bit::get_bit<4>(value);
- }
-
- /// Set inexact cumulative floating-point exception bit
- void IXC(bool IXC_) {
- value = mcl::bit::set_bit<4>(value, IXC_);
- }
-
- /// Get underflow cumulative floating-point exception bit
- bool UFC() const {
- return mcl::bit::get_bit<3>(value);
- }
-
- /// Set underflow cumulative floating-point exception bit
- void UFC(bool UFC_) {
- value = mcl::bit::set_bit<3>(value, UFC_);
- }
-
- /// Get overflow cumulative floating-point exception bit
- bool OFC() const {
- return mcl::bit::get_bit<2>(value);
- }
-
- /// Set overflow cumulative floating-point exception bit
- void OFC(bool OFC_) {
- value = mcl::bit::set_bit<2>(value, OFC_);
- }
-
- /// Get divide by zero cumulative floating-point exception bit
- bool DZC() const {
- return mcl::bit::get_bit<1>(value);
- }
-
- /// Set divide by zero cumulative floating-point exception bit
- void DZC(bool DZC_) {
- value = mcl::bit::set_bit<1>(value, DZC_);
- }
-
- /// Get invalid operation cumulative floating-point exception bit
- bool IOC() const {
- return mcl::bit::get_bit<0>(value);
- }
-
- /// Set invalid operation cumulative floating-point exception bit
- void IOC(bool IOC_) {
- value = mcl::bit::set_bit<0>(value, IOC_);
- }
-
- /// Gets the underlying raw value within the FPSR.
- u32 Value() const {
- return value;
- }
-
-private:
- // Bits 5-6 and 8-26 are reserved.
- static constexpr u32 mask = 0xF800009F;
- u32 value = 0;
-};
-
-inline bool operator==(FPSR lhs, FPSR rhs) {
- return lhs.Value() == rhs.Value();
-}
-
-inline bool operator!=(FPSR lhs, FPSR rhs) {
- return !operator==(lhs, rhs);
-}
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/fused.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/fused.h
deleted file mode 100644
index 0ffa2683..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/fused.h
+++ /dev/null
@@ -1,15 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-struct FPUnpacked;
-
-/// This function assumes all arguments have been normalized.
-FPUnpacked FusedMulAdd(FPUnpacked addend, FPUnpacked op1, FPUnpacked op2);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/info.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/info.h
deleted file mode 100644
index 8cc2d29d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/info.h
+++ /dev/null
@@ -1,138 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/bit/bit_count.hpp>
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::FP {
-
-template<typename FPT>
-struct FPInfo {};
-
-template<>
-struct FPInfo<u16> {
- static constexpr size_t total_width = 16;
- static constexpr size_t exponent_width = 5;
- static constexpr size_t explicit_mantissa_width = 10;
- static constexpr size_t mantissa_width = explicit_mantissa_width + 1;
-
- static constexpr u32 implicit_leading_bit = u32(1) << explicit_mantissa_width;
- static constexpr u32 sign_mask = 0x8000;
- static constexpr u32 exponent_mask = 0x7C00;
- static constexpr u32 mantissa_mask = 0x3FF;
- static constexpr u32 mantissa_msb = 0x200;
-
- static constexpr int exponent_min = -14;
- static constexpr int exponent_max = 15;
- static constexpr int exponent_bias = 15;
-
- static constexpr u16 Zero(bool sign) {
- return sign ? static_cast<u16>(sign_mask) : u16{0};
- }
-
- static constexpr u16 Infinity(bool sign) {
- return static_cast<u16>(exponent_mask | Zero(sign));
- }
-
- static constexpr u16 MaxNormal(bool sign) {
- return static_cast<u16>((exponent_mask - 1) | Zero(sign));
- }
-
- static constexpr u16 DefaultNaN() {
- return static_cast<u16>(exponent_mask | (u32(1) << (explicit_mantissa_width - 1)));
- }
-};
-
-template<>
-struct FPInfo<u32> {
- static constexpr size_t total_width = 32;
- static constexpr size_t exponent_width = 8;
- static constexpr size_t explicit_mantissa_width = 23;
- static constexpr size_t mantissa_width = explicit_mantissa_width + 1;
-
- static constexpr u32 implicit_leading_bit = u32(1) << explicit_mantissa_width;
- static constexpr u32 sign_mask = 0x80000000;
- static constexpr u32 exponent_mask = 0x7F800000;
- static constexpr u32 mantissa_mask = 0x007FFFFF;
- static constexpr u32 mantissa_msb = 0x00400000;
-
- static constexpr int exponent_min = -126;
- static constexpr int exponent_max = 127;
- static constexpr int exponent_bias = 127;
-
- static constexpr u32 Zero(bool sign) {
- return sign ? sign_mask : 0;
- }
-
- static constexpr u32 Infinity(bool sign) {
- return exponent_mask | Zero(sign);
- }
-
- static constexpr u32 MaxNormal(bool sign) {
- return (exponent_mask - 1) | Zero(sign);
- }
-
- static constexpr u32 DefaultNaN() {
- return exponent_mask | (u32(1) << (explicit_mantissa_width - 1));
- }
-};
-
-template<>
-struct FPInfo<u64> {
- static constexpr size_t total_width = 64;
- static constexpr size_t exponent_width = 11;
- static constexpr size_t explicit_mantissa_width = 52;
- static constexpr size_t mantissa_width = explicit_mantissa_width + 1;
-
- static constexpr u64 implicit_leading_bit = u64(1) << explicit_mantissa_width;
- static constexpr u64 sign_mask = 0x8000'0000'0000'0000;
- static constexpr u64 exponent_mask = 0x7FF0'0000'0000'0000;
- static constexpr u64 mantissa_mask = 0x000F'FFFF'FFFF'FFFF;
- static constexpr u64 mantissa_msb = 0x0008'0000'0000'0000;
-
- static constexpr int exponent_min = -1022;
- static constexpr int exponent_max = 1023;
- static constexpr int exponent_bias = 1023;
-
- static constexpr u64 Zero(bool sign) {
- return sign ? sign_mask : 0;
- }
-
- static constexpr u64 Infinity(bool sign) {
- return exponent_mask | Zero(sign);
- }
-
- static constexpr u64 MaxNormal(bool sign) {
- return (exponent_mask - 1) | Zero(sign);
- }
-
- static constexpr u64 DefaultNaN() {
- return exponent_mask | (u64(1) << (explicit_mantissa_width - 1));
- }
-};
-
-/// value = (sign ? -1 : +1) * 2^exponent * value
-/// @note We do not handle denormals. Denormals will static_assert.
-template<typename FPT, bool sign, int exponent, FPT value>
-constexpr FPT FPValue() {
- if constexpr (value == 0) {
- return FPInfo<FPT>::Zero(sign);
- }
-
- constexpr int point_position = static_cast<int>(FPInfo<FPT>::explicit_mantissa_width);
- constexpr int highest_bit = mcl::bit::highest_set_bit(value);
- constexpr int offset = point_position - highest_bit;
- constexpr int normalized_exponent = exponent - offset + point_position;
- static_assert(offset >= 0);
- static_assert(normalized_exponent >= FPInfo<FPT>::exponent_min && normalized_exponent <= FPInfo<FPT>::exponent_max);
-
- constexpr FPT mantissa = (value << offset) & FPInfo<FPT>::mantissa_mask;
- constexpr FPT biased_exponent = static_cast<FPT>(normalized_exponent + FPInfo<FPT>::exponent_bias);
- return FPT(FPInfo<FPT>::Zero(sign) | mantissa | (biased_exponent << FPInfo<FPT>::explicit_mantissa_width));
-}
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/mantissa_util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/mantissa_util.h
deleted file mode 100644
index 31be52f7..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/mantissa_util.h
+++ /dev/null
@@ -1,47 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/bitsizeof.hpp>
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::FP {
-
-enum class ResidualError {
- Zero,
- LessThanHalf,
- Half,
- GreaterThanHalf,
-};
-
-inline ResidualError ResidualErrorOnRightShift(u64 mantissa, int shift_amount) {
- if (shift_amount <= 0 || mantissa == 0) {
- return ResidualError::Zero;
- }
-
- if (shift_amount > static_cast<int>(mcl::bitsizeof<u64>)) {
- return mcl::bit::most_significant_bit(mantissa) ? ResidualError::GreaterThanHalf : ResidualError::LessThanHalf;
- }
-
- const size_t half_bit_position = static_cast<size_t>(shift_amount - 1);
- const u64 half = static_cast<u64>(1) << half_bit_position;
- const u64 error_mask = mcl::bit::ones<u64>(static_cast<size_t>(shift_amount));
- const u64 error = mantissa & error_mask;
-
- if (error == 0) {
- return ResidualError::Zero;
- }
- if (error < half) {
- return ResidualError::LessThanHalf;
- }
- if (error == half) {
- return ResidualError::Half;
- }
- return ResidualError::GreaterThanHalf;
-}
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op.h
deleted file mode 100644
index b30ff39c..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include "dynarmic/common/fp/op/FPCompare.h"
-#include "dynarmic/common/fp/op/FPConvert.h"
-#include "dynarmic/common/fp/op/FPMulAdd.h"
-#include "dynarmic/common/fp/op/FPRSqrtEstimate.h"
-#include "dynarmic/common/fp/op/FPRSqrtStepFused.h"
-#include "dynarmic/common/fp/op/FPRecipEstimate.h"
-#include "dynarmic/common/fp/op/FPRecipExponent.h"
-#include "dynarmic/common/fp/op/FPRecipStepFused.h"
-#include "dynarmic/common/fp/op/FPRoundInt.h"
-#include "dynarmic/common/fp/op/FPToFixed.h"
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPCompare.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPCompare.h
deleted file mode 100644
index e0d5ca03..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPCompare.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2019 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-template<typename FPT>
-bool FPCompareEQ(FPT lhs, FPT rhs, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPConvert.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPConvert.h
deleted file mode 100644
index 0fea22e4..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPConvert.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2019 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-enum class RoundingMode;
-
-template<typename FPT_TO, typename FPT_FROM>
-FPT_TO FPConvert(FPT_FROM op, FPCR fpcr, RoundingMode rounding_mode, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPMulAdd.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPMulAdd.h
deleted file mode 100644
index 8e0a16cd..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPMulAdd.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-template<typename FPT>
-FPT FPMulAdd(FPT addend, FPT op1, FPT op2, FPCR fpcr, FPSR& fpsr);
-
-template<typename FPT>
-FPT FPMulSub(FPT minuend, FPT op1, FPT op2, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPNeg.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPNeg.h
deleted file mode 100644
index 4f172a59..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPNeg.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include "dynarmic/common/fp/info.h"
-
-namespace Dynarmic::FP {
-
-template<typename FPT>
-constexpr FPT FPNeg(FPT op) {
- return op ^ FPInfo<FPT>::sign_mask;
-}
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPRSqrtEstimate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPRSqrtEstimate.h
deleted file mode 100644
index f51be1e8..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPRSqrtEstimate.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-template<typename FPT>
-FPT FPRSqrtEstimate(FPT op, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPRSqrtStepFused.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPRSqrtStepFused.h
deleted file mode 100644
index 384a7592..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPRSqrtStepFused.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-template<typename FPT>
-FPT FPRSqrtStepFused(FPT op1, FPT op2, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPRecipEstimate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPRecipEstimate.h
deleted file mode 100644
index eaf6fee5..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPRecipEstimate.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-template<typename FPT>
-FPT FPRecipEstimate(FPT op, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPRecipExponent.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPRecipExponent.h
deleted file mode 100644
index 63ff3530..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPRecipExponent.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2019 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-template<typename FPT>
-FPT FPRecipExponent(FPT op, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPRecipStepFused.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPRecipStepFused.h
deleted file mode 100644
index abe447b5..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPRecipStepFused.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-template<typename FPT>
-FPT FPRecipStepFused(FPT op1, FPT op2, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPRoundInt.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPRoundInt.h
deleted file mode 100644
index e326627c..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPRoundInt.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-enum class RoundingMode;
-
-template<typename FPT>
-u64 FPRoundInt(FPT op, FPCR fpcr, RoundingMode rounding, bool exact, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPToFixed.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPToFixed.h
deleted file mode 100644
index 53a95283..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/op/FPToFixed.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-enum class RoundingMode;
-
-template<typename FPT>
-u64 FPToFixed(size_t ibits, FPT op, size_t fbits, bool unsigned_, FPCR fpcr, RoundingMode rounding, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/process_exception.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/process_exception.h
deleted file mode 100644
index 436a9daa..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/process_exception.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-enum class FPExc {
- InvalidOp,
- DivideByZero,
- Overflow,
- Underflow,
- Inexact,
- InputDenorm,
-};
-
-void FPProcessException(FPExc exception, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/process_nan.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/process_nan.h
deleted file mode 100644
index 331b7943..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/process_nan.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-enum class FPType;
-
-template<typename FPT>
-FPT FPProcessNaN(FPType type, FPT op, FPCR fpcr, FPSR& fpsr);
-
-template<typename FPT>
-std::optional<FPT> FPProcessNaNs(FPType type1, FPType type2, FPT op1, FPT op2, FPCR fpcr, FPSR& fpsr);
-
-template<typename FPT>
-std::optional<FPT> FPProcessNaNs3(FPType type1, FPType type2, FPType type3, FPT op1, FPT op2, FPT op3, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/rounding_mode.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/rounding_mode.h
deleted file mode 100644
index fcf36f61..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/rounding_mode.h
+++ /dev/null
@@ -1,27 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-/// Ordering of first four values is important as they correspond to bits in FPCR.
-enum class RoundingMode {
- /// Round to nearest floating point. If there is a tie, round to nearest even digit in required position.
- ToNearest_TieEven,
- /// Round up towards positive infinity.
- TowardsPlusInfinity,
- /// Round downwards towards negative infinity.
- TowardsMinusInfinity,
- /// Truncate towards zero.
- TowardsZero,
- /// Round to nearest floating point. If there is a tie, round away from zero.
- ToNearest_TieAwayFromZero,
- /// Von Neumann rounding (as modified by Brent). Also known as sticky rounding.
- /// Set the least significant bit to 1 if the result is not exact.
- ToOdd,
-};
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/unpacked.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/unpacked.h
deleted file mode 100644
index 77f33d89..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/unpacked.h
+++ /dev/null
@@ -1,90 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <tuple>
-
-#include <mcl/bit/bit_count.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/common/fp/fpcr.h"
-
-namespace Dynarmic::FP {
-
-class FPSR;
-enum class RoundingMode;
-
-enum class FPType {
- Nonzero,
- Zero,
- Infinity,
- QNaN,
- SNaN,
-};
-
-constexpr size_t normalized_point_position = 62;
-
-/// value = (sign ? -1 : +1) * mantissa/(2^62) * 2^exponent
-/// 63rd bit of mantissa is always set (unless value is zero)
-struct FPUnpacked {
- bool sign;
- int exponent;
- u64 mantissa;
-};
-
-inline bool operator==(const FPUnpacked& a, const FPUnpacked& b) {
- return std::tie(a.sign, a.exponent, a.mantissa) == std::tie(b.sign, b.exponent, b.mantissa);
-}
-
-/// return value = (sign ? -1 : +1) * value * 2^exponent
-constexpr FPUnpacked ToNormalized(bool sign, int exponent, u64 value) {
- if (value == 0) {
- return {sign, 0, 0};
- }
-
- const int highest_bit = mcl::bit::highest_set_bit(value);
- const int offset = static_cast<int>(normalized_point_position) - highest_bit;
- value <<= offset;
- exponent -= offset - static_cast<int>(normalized_point_position);
- return {sign, exponent, value};
-}
-
-template<typename FPT>
-std::tuple<FPType, bool, FPUnpacked> FPUnpackBase(FPT op, FPCR fpcr, FPSR& fpsr);
-
-template<typename FPT>
-std::tuple<FPType, bool, FPUnpacked> FPUnpack(FPT op, FPCR fpcr, FPSR& fpsr) {
- fpcr.AHP(false);
- return FPUnpackBase(op, fpcr, fpsr);
-}
-
-template<typename FPT>
-std::tuple<FPType, bool, FPUnpacked> FPUnpackCV(FPT op, FPCR fpcr, FPSR& fpsr) {
- fpcr.FZ16(false);
- return FPUnpackBase(op, fpcr, fpsr);
-}
-
-template<typename FPT>
-FPT FPRoundBase(FPUnpacked op, FPCR fpcr, RoundingMode rounding, FPSR& fpsr);
-
-template<typename FPT>
-FPT FPRound(FPUnpacked op, FPCR fpcr, RoundingMode rounding, FPSR& fpsr) {
- fpcr.AHP(false);
- return FPRoundBase<FPT>(op, fpcr, rounding, fpsr);
-}
-
-template<typename FPT>
-FPT FPRoundCV(FPUnpacked op, FPCR fpcr, RoundingMode rounding, FPSR& fpsr) {
- fpcr.FZ16(false);
- return FPRoundBase<FPT>(op, fpcr, rounding, fpsr);
-}
-
-template<typename FPT>
-FPT FPRound(FPUnpacked op, FPCR fpcr, FPSR& fpsr) {
- return FPRound<FPT>(op, fpcr, fpcr.RMode(), fpsr);
-}
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/util.h
deleted file mode 100644
index fda34e3e..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/fp/util.h
+++ /dev/null
@@ -1,99 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-
-#include "dynarmic/common/fp/fpcr.h"
-#include "dynarmic/common/fp/info.h"
-
-namespace Dynarmic::FP {
-
-/// Is floating point value a zero?
-template<typename FPT>
-inline bool IsZero(FPT value, FPCR fpcr) {
- if (fpcr.FZ()) {
- return (value & FPInfo<FPT>::exponent_mask) == 0;
- }
- return (value & ~FPInfo<FPT>::sign_mask) == 0;
-}
-
-/// Is floating point value an infinity?
-template<typename FPT>
-constexpr bool IsInf(FPT value) {
- return (value & ~FPInfo<FPT>::sign_mask) == FPInfo<FPT>::Infinity(false);
-}
-
-/// Is floating point value a QNaN?
-template<typename FPT>
-constexpr bool IsQNaN(FPT value) {
- constexpr FPT qnan_bits = FPInfo<FPT>::exponent_mask | FPInfo<FPT>::mantissa_msb;
- return (value & qnan_bits) == qnan_bits;
-}
-
-/// Is floating point value a SNaN?
-template<typename FPT>
-constexpr bool IsSNaN(FPT value) {
- constexpr FPT qnan_bits = FPInfo<FPT>::exponent_mask | FPInfo<FPT>::mantissa_msb;
- constexpr FPT snan_bits = FPInfo<FPT>::exponent_mask;
- return (value & qnan_bits) == snan_bits && (value & FPInfo<FPT>::mantissa_mask) != 0;
-}
-
-/// Is floating point value a NaN?
-template<typename FPT>
-constexpr bool IsNaN(FPT value) {
- return IsQNaN(value) || IsSNaN(value);
-}
-
-/// Given a single argument, return the NaN value which would be returned by an ARM processor.
-/// If the argument isn't a NaN, returns std::nullopt.
-template<typename FPT>
-constexpr std::optional<FPT> ProcessNaNs(FPT a) {
- if (IsSNaN(a)) {
- return a | FPInfo<FPT>::mantissa_msb;
- } else if (IsQNaN(a)) {
- return a;
- }
- return std::nullopt;
-}
-
-/// Given a pair of arguments, return the NaN value which would be returned by an ARM processor.
-/// If neither argument is a NaN, returns std::nullopt.
-template<typename FPT>
-constexpr std::optional<FPT> ProcessNaNs(FPT a, FPT b) {
- if (IsSNaN(a)) {
- return a | FPInfo<FPT>::mantissa_msb;
- } else if (IsSNaN(b)) {
- return b | FPInfo<FPT>::mantissa_msb;
- } else if (IsQNaN(a)) {
- return a;
- } else if (IsQNaN(b)) {
- return b;
- }
- return std::nullopt;
-}
-
-/// Given three arguments, return the NaN value which would be returned by an ARM processor.
-/// If none of the arguments is a NaN, returns std::nullopt.
-template<typename FPT>
-constexpr std::optional<FPT> ProcessNaNs(FPT a, FPT b, FPT c) {
- if (IsSNaN(a)) {
- return a | FPInfo<FPT>::mantissa_msb;
- } else if (IsSNaN(b)) {
- return b | FPInfo<FPT>::mantissa_msb;
- } else if (IsSNaN(c)) {
- return c | FPInfo<FPT>::mantissa_msb;
- } else if (IsQNaN(a)) {
- return a;
- } else if (IsQNaN(b)) {
- return b;
- } else if (IsQNaN(c)) {
- return c;
- }
- return std::nullopt;
-}
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/llvm_disassemble.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/llvm_disassemble.h
deleted file mode 100644
index 56de791a..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/llvm_disassemble.h
+++ /dev/null
@@ -1,18 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Common {
-
-std::string DisassembleX64(const void* pos, const void* end);
-std::string DisassembleAArch32(bool is_thumb, u32 pc, const u8* instructions, size_t length);
-std::string DisassembleAArch64(u32 instruction, u64 pc = 0);
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/lut_from_list.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/lut_from_list.h
deleted file mode 100644
index ed9e3dc0..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/lut_from_list.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <initializer_list>
-#include <map>
-#include <type_traits>
-
-#include <mcl/mp/metafunction/apply.hpp>
-#include <mcl/mp/typelist/list.hpp>
-#include <mcl/type_traits/is_instance_of_template.hpp>
-
-#ifdef _MSC_VER
-# include <mcl/mp/typelist/head.hpp>
-#endif
-
-namespace Dynarmic::Common {
-
-template<typename Function, typename... Values>
-inline auto GenerateLookupTableFromList(Function f, mcl::mp::list<Values...>) {
-#ifdef _MSC_VER
- using PairT = std::invoke_result_t<Function, mcl::mp::head<mcl::mp::list<Values...>>>;
-#else
- using PairT = std::common_type_t<std::invoke_result_t<Function, Values>...>;
-#endif
- using MapT = mcl::mp::apply<std::map, PairT>;
-
- static_assert(mcl::is_instance_of_template_v<std::pair, PairT>);
-
- const std::initializer_list<PairT> pair_array{f(Values{})...};
- return MapT(pair_array.begin(), pair_array.end());
-}
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/math_util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/math_util.h
deleted file mode 100644
index 5c1f784c..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/math_util.h
+++ /dev/null
@@ -1,47 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <utility>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Common {
-
-/**
- * This function is a workaround for a bug in MSVC 19.12 where fold expressions
- * do not work when the /permissive- flag is enabled.
- */
-template<typename T, typename... Ts>
-constexpr T Sum(T first, Ts&&... rest) {
- if constexpr (sizeof...(rest) == 0) {
- return first;
- } else {
- return first + Sum(std::forward<Ts>(rest)...);
- }
-}
-
-/**
- * Input is a u0.9 fixed point number. Only values in [0.5, 1.0) are valid.
- * Output is a u0.8 fixed point number, with an implied 1 prefixed.
- * i.e.: The output is a value in [1.0, 2.0).
- *
- * @see RecipEstimate() within the ARMv8 architecture reference manual
- * for a general overview of the requirements of the algorithm.
- */
-u8 RecipEstimate(u64 a);
-
-/**
- * Input is a u0.9 fixed point number. Only values in [0.25, 1.0) are valid.
- * Output is a u0.8 fixed point number, with an implied 1 prefixed.
- * i.e.: The output is a value in [1.0, 2.0).
- *
- * @see RecipSqrtEstimate() within the ARMv8 architecture reference manual
- * for a general overview of the requirements of the algorithm.
- */
-u8 RecipSqrtEstimate(u64 a);
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/memory_pool.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/memory_pool.h
deleted file mode 100644
index 1cbdd909..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/memory_pool.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstddef>
-#include <vector>
-
-namespace Dynarmic::Common {
-
-class Pool {
-public:
- /**
- * @param object_size Byte-size of objects to construct
- * @param initial_pool_size Number of objects to have per slab
- */
- Pool(size_t object_size, size_t initial_pool_size);
- ~Pool();
-
- Pool(const Pool&) = delete;
- Pool(Pool&&) = delete;
-
- Pool& operator=(const Pool&) = delete;
- Pool& operator=(Pool&&) = delete;
-
- /// Returns a pointer to an `object_size`-bytes block of memory.
- void* Alloc();
-
-private:
- // Allocates a completely new memory slab.
- // Used when an entirely new slab is needed
- // due the current one running out of usable space.
- void AllocateNewSlab();
-
- size_t object_size;
- size_t slab_size;
- char* current_slab;
- char* current_ptr;
- size_t remaining;
- std::vector<char*> slabs;
-};
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/safe_ops.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/safe_ops.h
deleted file mode 100644
index aef31347..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/safe_ops.h
+++ /dev/null
@@ -1,115 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <type_traits>
-
-#include <mcl/bitsizeof.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/common/u128.h"
-
-namespace Dynarmic::Safe {
-
-template<typename T>
-T LogicalShiftLeft(T value, int shift_amount);
-template<typename T>
-T LogicalShiftRight(T value, int shift_amount);
-template<typename T>
-T ArithmeticShiftLeft(T value, int shift_amount);
-template<typename T>
-T ArithmeticShiftRight(T value, int shift_amount);
-
-template<typename T>
-T LogicalShiftLeft(T value, int shift_amount) {
- static_assert(std::is_integral_v<T>);
-
- if (shift_amount >= static_cast<int>(mcl::bitsizeof<T>)) {
- return 0;
- }
-
- if (shift_amount < 0) {
- return LogicalShiftRight(value, -shift_amount);
- }
-
- auto unsigned_value = static_cast<std::make_unsigned_t<T>>(value);
- return static_cast<T>(unsigned_value << shift_amount);
-}
-
-template<>
-inline u128 LogicalShiftLeft(u128 value, int shift_amount) {
- return value << shift_amount;
-}
-
-template<typename T>
-T LogicalShiftRight(T value, int shift_amount) {
- static_assert(std::is_integral_v<T>);
-
- if (shift_amount >= static_cast<int>(mcl::bitsizeof<T>)) {
- return 0;
- }
-
- if (shift_amount < 0) {
- return LogicalShiftLeft(value, -shift_amount);
- }
-
- auto unsigned_value = static_cast<std::make_unsigned_t<T>>(value);
- return static_cast<T>(unsigned_value >> shift_amount);
-}
-
-template<>
-inline u128 LogicalShiftRight(u128 value, int shift_amount) {
- return value >> shift_amount;
-}
-
-template<typename T>
-T LogicalShiftRightDouble(T top, T bottom, int shift_amount) {
- return LogicalShiftLeft(top, int(mcl::bitsizeof<T>) - shift_amount) | LogicalShiftRight(bottom, shift_amount);
-}
-
-template<typename T>
-T ArithmeticShiftLeft(T value, int shift_amount) {
- static_assert(std::is_integral_v<T>);
-
- if (shift_amount >= static_cast<int>(mcl::bitsizeof<T>)) {
- return 0;
- }
-
- if (shift_amount < 0) {
- return ArithmeticShiftRight(value, -shift_amount);
- }
-
- auto unsigned_value = static_cast<std::make_unsigned_t<T>>(value);
- return static_cast<T>(unsigned_value << shift_amount);
-}
-
-template<typename T>
-T ArithmeticShiftRight(T value, int shift_amount) {
- static_assert(std::is_integral_v<T>);
-
- if (shift_amount >= static_cast<int>(mcl::bitsizeof<T>)) {
- return mcl::bit::most_significant_bit(value) ? ~static_cast<T>(0) : 0;
- }
-
- if (shift_amount < 0) {
- return ArithmeticShiftLeft(value, -shift_amount);
- }
-
- auto signed_value = static_cast<std::make_signed_t<T>>(value);
- return static_cast<T>(signed_value >> shift_amount);
-}
-
-template<typename T>
-T ArithmeticShiftRightDouble(T top, T bottom, int shift_amount) {
- return ArithmeticShiftLeft(top, int(mcl::bitsizeof<T>) - shift_amount) | LogicalShiftRight(bottom, shift_amount);
-}
-
-template<typename T>
-T Negate(T value) {
- return static_cast<T>(~static_cast<std::uintmax_t>(value) + 1);
-}
-
-} // namespace Dynarmic::Safe
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/spin_lock.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/spin_lock.h
deleted file mode 100644
index f653704d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/spin_lock.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic {
-
-struct SpinLock {
- void Lock();
- void Unlock();
-
- volatile int storage = 0;
-};
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/spin_lock_arm64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/spin_lock_arm64.h
deleted file mode 100644
index c0a86bfe..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/spin_lock_arm64.h
+++ /dev/null
@@ -1,15 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <oaknut/oaknut.hpp>
-
-namespace Dynarmic {
-
-void EmitSpinLockLock(oaknut::CodeGenerator& code, oaknut::XReg ptr);
-void EmitSpinLockUnlock(oaknut::CodeGenerator& code, oaknut::XReg ptr);
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/spin_lock_x64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/spin_lock_x64.h
deleted file mode 100644
index df6a3d74..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/spin_lock_x64.h
+++ /dev/null
@@ -1,15 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <xbyak/xbyak.h>
-
-namespace Dynarmic {
-
-void EmitSpinLockLock(Xbyak::CodeGenerator& code, Xbyak::Reg64 ptr, Xbyak::Reg32 tmp);
-void EmitSpinLockUnlock(Xbyak::CodeGenerator& code, Xbyak::Reg64 ptr, Xbyak::Reg32 tmp);
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/string_util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/string_util.h
deleted file mode 100644
index 900b3aad..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/string_util.h
+++ /dev/null
@@ -1,15 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::Common {
-
-template<typename T>
-constexpr char SignToChar(T value) {
- return value >= 0 ? '+' : '-';
-}
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/u128.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/u128.h
deleted file mode 100644
index f6df1ae6..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/u128.h
+++ /dev/null
@@ -1,99 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <tuple>
-#include <type_traits>
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/bitsizeof.hpp>
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic {
-
-struct u128 {
- u128() = default;
- u128(const u128&) = default;
- u128(u128&&) = default;
- u128& operator=(const u128&) = default;
- u128& operator=(u128&&) = default;
-
- u128(u64 lower_, u64 upper_)
- : lower(lower_), upper(upper_) {}
-
- template<typename T>
- /* implicit */ u128(T value)
- : lower(value), upper(0) {
- static_assert(std::is_integral_v<T>);
- static_assert(mcl::bitsizeof<T> <= mcl::bitsizeof<u64>);
- }
-
- u64 lower = 0;
- u64 upper = 0;
-
- template<size_t bit_position>
- bool Bit() const {
- static_assert(bit_position < 128);
- if constexpr (bit_position < 64) {
- return mcl::bit::get_bit<bit_position>(lower);
- } else {
- return mcl::bit::get_bit<bit_position - 64>(upper);
- }
- }
-};
-
-static_assert(mcl::bitsizeof<u128> == 128);
-static_assert(std::is_standard_layout_v<u128>);
-static_assert(std::is_trivially_copyable_v<u128>);
-
-u128 Multiply64To128(u64 a, u64 b);
-
-inline u128 operator+(u128 a, u128 b) {
- u128 result;
- result.lower = a.lower + b.lower;
- result.upper = a.upper + b.upper + (a.lower > result.lower);
- return result;
-}
-
-inline u128 operator-(u128 a, u128 b) {
- u128 result;
- result.lower = a.lower - b.lower;
- result.upper = a.upper - b.upper - (a.lower < result.lower);
- return result;
-}
-
-inline bool operator<(u128 a, u128 b) {
- return std::tie(a.upper, a.lower) < std::tie(b.upper, b.lower);
-}
-
-inline bool operator>(u128 a, u128 b) {
- return operator<(b, a);
-}
-
-inline bool operator<=(u128 a, u128 b) {
- return !operator>(a, b);
-}
-
-inline bool operator>=(u128 a, u128 b) {
- return !operator<(a, b);
-}
-
-inline bool operator==(u128 a, u128 b) {
- return std::tie(a.upper, a.lower) == std::tie(b.upper, b.lower);
-}
-
-inline bool operator!=(u128 a, u128 b) {
- return !operator==(a, b);
-}
-
-u128 operator<<(u128 operand, int amount);
-u128 operator>>(u128 operand, int amount);
-
-/// LSB is a "sticky-bit".
-/// If a 1 is shifted off, the LSB would be set.
-u128 StickyLogicalShiftRight(u128 operand, int amount);
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/variant_util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/variant_util.h
deleted file mode 100644
index 4dd7f671..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/variant_util.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <boost/variant.hpp>
-
-namespace Dynarmic::Common {
-namespace detail {
-
-template<typename ReturnT, typename Lambda>
-struct VariantVisitor : boost::static_visitor<ReturnT>
- , Lambda {
- VariantVisitor(Lambda&& lambda)
- : Lambda(std::move(lambda)) {}
-
- using Lambda::operator();
-};
-
-} // namespace detail
-
-template<typename ReturnT, typename Variant, typename Lambda>
-inline ReturnT VisitVariant(Variant&& variant, Lambda&& lambda) {
- return boost::apply_visitor(detail::VariantVisitor<ReturnT, Lambda>(std::move(lambda)), variant);
-}
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/x64_disassemble.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/x64_disassemble.h
deleted file mode 100644
index 03c511bf..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/common/x64_disassemble.h
+++ /dev/null
@@ -1,21 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2021 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string>
-#include <vector>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Common {
-
-void DumpDisassembledX64(const void* ptr, size_t size);
-/**
- * Disassemble `size' bytes from `ptr' and return the disassembled lines as a vector
- * of strings.
- */
-std::vector<std::string> DisassembleX64(const void* ptr, size_t size);
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/FPSCR.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/FPSCR.h
deleted file mode 100644
index 28414e9f..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/FPSCR.h
+++ /dev/null
@@ -1,191 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/common/fp/rounding_mode.h"
-
-namespace Dynarmic::A32 {
-
-/**
- * Representation of the Floating-Point Status and Control Register.
- */
-class FPSCR final {
-public:
- FPSCR() = default;
- FPSCR(const FPSCR&) = default;
- FPSCR(FPSCR&&) = default;
- explicit FPSCR(u32 data)
- : value{data & mask} {}
-
- FPSCR& operator=(const FPSCR&) = default;
- FPSCR& operator=(FPSCR&&) = default;
- FPSCR& operator=(u32 data) {
- value = data & mask;
- return *this;
- }
-
- /// Negative condition flag.
- bool N() const {
- return mcl::bit::get_bit<31>(value);
- }
-
- /// Zero condition flag.
- bool Z() const {
- return mcl::bit::get_bit<30>(value);
- }
-
- /// Carry condition flag.
- bool C() const {
- return mcl::bit::get_bit<29>(value);
- }
-
- /// Overflow condition flag.
- bool V() const {
- return mcl::bit::get_bit<28>(value);
- }
-
- /// Cumulative saturation flag.
- bool QC() const {
- return mcl::bit::get_bit<27>(value);
- }
-
- /// Alternate half-precision control flag.
- bool AHP() const {
- return mcl::bit::get_bit<26>(value);
- }
-
- /// Default NaN mode control bit.
- bool DN() const {
- return mcl::bit::get_bit<25>(value);
- }
-
- /// Flush-to-zero mode control bit.
- bool FTZ() const {
- return mcl::bit::get_bit<24>(value);
- }
-
- /// Rounding mode control field.
- FP::RoundingMode RMode() const {
- return static_cast<FP::RoundingMode>(mcl::bit::get_bits<22, 23>(value));
- }
-
- /// Indicates the stride of a vector.
- std::optional<size_t> Stride() const {
- switch (mcl::bit::get_bits<20, 21>(value)) {
- case 0b00:
- return 1;
- case 0b11:
- return 2;
- default:
- return std::nullopt;
- }
- }
-
- /// Indicates the length of a vector.
- size_t Len() const {
- return mcl::bit::get_bits<16, 18>(value) + 1;
- }
-
- /// Input denormal exception trap enable flag.
- bool IDE() const {
- return mcl::bit::get_bit<15>(value);
- }
-
- /// Inexact exception trap enable flag.
- bool IXE() const {
- return mcl::bit::get_bit<12>(value);
- }
-
- /// Underflow exception trap enable flag.
- bool UFE() const {
- return mcl::bit::get_bit<11>(value);
- }
-
- /// Overflow exception trap enable flag.
- bool OFE() const {
- return mcl::bit::get_bit<10>(value);
- }
-
- /// Division by zero exception trap enable flag.
- bool DZE() const {
- return mcl::bit::get_bit<9>(value);
- }
-
- /// Invalid operation exception trap enable flag.
- bool IOE() const {
- return mcl::bit::get_bit<8>(value);
- }
-
- /// Input denormal cumulative exception bit.
- bool IDC() const {
- return mcl::bit::get_bit<7>(value);
- }
-
- /// Inexact cumulative exception bit.
- bool IXC() const {
- return mcl::bit::get_bit<4>(value);
- }
-
- /// Underflow cumulative exception bit.
- bool UFC() const {
- return mcl::bit::get_bit<3>(value);
- }
-
- /// Overflow cumulative exception bit.
- bool OFC() const {
- return mcl::bit::get_bit<2>(value);
- }
-
- /// Division by zero cumulative exception bit.
- bool DZC() const {
- return mcl::bit::get_bit<1>(value);
- }
-
- /// Invalid operation cumulative exception bit.
- bool IOC() const {
- return mcl::bit::get_bit<0>(value);
- }
-
- /**
- * Whether or not the FPSCR indicates RunFast mode.
- *
- * RunFast mode is enabled when:
- * - Flush-to-zero is enabled
- * - Default NaNs are enabled.
- * - All exception enable bits are cleared.
- */
- bool InRunFastMode() const {
- constexpr u32 runfast_mask = 0x03001F00;
- constexpr u32 expected = 0x03000000;
-
- return (value & runfast_mask) == expected;
- }
-
- /// Gets the underlying raw value within the FPSCR.
- u32 Value() const {
- return value;
- }
-
-private:
- // Bits 5-6, 13-14, and 19 are reserved.
- static constexpr u32 mask = 0xFFF79F9F;
- u32 value = 0;
-};
-
-inline bool operator==(FPSCR lhs, FPSCR rhs) {
- return lhs.Value() == rhs.Value();
-}
-
-inline bool operator!=(FPSCR lhs, FPSCR rhs) {
- return !operator==(lhs, rhs);
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/ITState.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/ITState.h
deleted file mode 100644
index ae69fa1e..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/ITState.h
+++ /dev/null
@@ -1,64 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2019 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/ir/cond.h"
-
-namespace Dynarmic::A32 {
-
-class ITState final {
-public:
- ITState() = default;
- explicit ITState(u8 data)
- : value(data) {}
-
- ITState& operator=(u8 data) {
- value = data;
- return *this;
- }
-
- IR::Cond Cond() const {
- if (value == 0b00000000) {
- return IR::Cond::AL;
- }
- return static_cast<IR::Cond>(mcl::bit::get_bits<4, 7>(value));
- }
-
- bool IsInITBlock() const {
- return mcl::bit::get_bits<0, 3>(value) != 0b0000;
- }
-
- bool IsLastInITBlock() const {
- return mcl::bit::get_bits<0, 3>(value) == 0b1000;
- }
-
- ITState Advance() const {
- if (mcl::bit::get_bits<0, 2>(value) == 0b000) {
- return ITState{0b00000000};
- }
- return ITState{mcl::bit::set_bits<0, 4>(value, static_cast<u8>(mcl::bit::get_bits<0, 4>(value) << 1))};
- }
-
- u8 Value() const {
- return value;
- }
-
-private:
- u8 value = 0;
-};
-
-inline bool operator==(ITState lhs, ITState rhs) {
- return lhs.Value() == rhs.Value();
-}
-
-inline bool operator!=(ITState lhs, ITState rhs) {
- return !operator==(lhs, rhs);
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/PSR.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/PSR.h
deleted file mode 100644
index 9af78eaa..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/PSR.h
+++ /dev/null
@@ -1,224 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/A32/ITState.h"
-
-namespace Dynarmic::A32 {
-
-/**
- * Program Status Register
- *
- * | Bit(s) | Description |
- * |:-------:|:----------------------------------------------|
- * | N | Negative |
- * | Z | Zero |
- * | C | Carry |
- * | V | Overflow |
- * | Q | Sticky overflow for DSP-oriented instructions |
- * | IT[1:0] | Lower two bits of the If-Then execution state |
- * | J | Jazelle bit |
- * | GE | Greater-than or Equal |
- * | IT[7:2] | Upper six bits of the If-Then execution state |
- * | E | Endian (0 is little endian, 1 is big endian) |
- * | A | Imprecise data abort (disables them when set) |
- * | I | IRQ interrupts (disabled when set) |
- * | F | FIQ interrupts (disabled when set) |
- * | T | Thumb bit |
- * | M | Current processor mode |
- */
-class PSR final {
-public:
- /// Valid processor modes that may be indicated.
- enum class Mode : u32 {
- User = 0b10000,
- FIQ = 0b10001,
- IRQ = 0b10010,
- Supervisor = 0b10011,
- Monitor = 0b10110,
- Abort = 0b10111,
- Hypervisor = 0b11010,
- Undefined = 0b11011,
- System = 0b11111
- };
-
- /// Instruction sets that may be signified through a PSR.
- enum class InstructionSet {
- ARM,
- Jazelle,
- Thumb,
- ThumbEE
- };
-
- PSR() = default;
- explicit PSR(u32 data)
- : value{data & mask} {}
-
- PSR& operator=(u32 data) {
- value = data & mask;
- return *this;
- }
-
- bool N() const {
- return mcl::bit::get_bit<31>(value);
- }
- void N(bool set) {
- value = mcl::bit::set_bit<31>(value, set);
- }
-
- bool Z() const {
- return mcl::bit::get_bit<30>(value);
- }
- void Z(bool set) {
- value = mcl::bit::set_bit<30>(value, set);
- }
-
- bool C() const {
- return mcl::bit::get_bit<29>(value);
- }
- void C(bool set) {
- value = mcl::bit::set_bit<29>(value, set);
- }
-
- bool V() const {
- return mcl::bit::get_bit<28>(value);
- }
- void V(bool set) {
- value = mcl::bit::set_bit<28>(value, set);
- }
-
- bool Q() const {
- return mcl::bit::get_bit<27>(value);
- }
- void Q(bool set) {
- value = mcl::bit::set_bit<27>(value, set);
- }
-
- bool J() const {
- return mcl::bit::get_bit<24>(value);
- }
- void J(bool set) {
- value = mcl::bit::set_bit<24>(value, set);
- }
-
- u32 GE() const {
- return mcl::bit::get_bits<16, 19>(value);
- }
- void GE(u32 data) {
- value = mcl::bit::set_bits<16, 19>(value, data);
- }
-
- ITState IT() const {
- return ITState{static_cast<u8>((value & 0x6000000) >> 25 | (value & 0xFC00) >> 8)};
- }
- void IT(ITState it_state) {
- const u32 data = it_state.Value();
- value = (value & ~0x000FC00) | (data & 0b11111100) << 8;
- value = (value & ~0x6000000) | (data & 0b00000011) << 25;
- }
-
- bool E() const {
- return mcl::bit::get_bit<9>(value);
- }
- void E(bool set) {
- value = mcl::bit::set_bit<9>(value, set);
- }
-
- bool A() const {
- return mcl::bit::get_bit<8>(value);
- }
- void A(bool set) {
- value = mcl::bit::set_bit<8>(value, set);
- }
-
- bool I() const {
- return mcl::bit::get_bit<7>(value);
- }
- void I(bool set) {
- value = mcl::bit::set_bit<7>(value, set);
- }
-
- bool F() const {
- return mcl::bit::get_bit<6>(value);
- }
- void F(bool set) {
- value = mcl::bit::set_bit<6>(value, set);
- }
-
- bool T() const {
- return mcl::bit::get_bit<5>(value);
- }
- void T(bool set) {
- value = mcl::bit::set_bit<5>(value, set);
- }
-
- Mode M() const {
- return static_cast<Mode>(mcl::bit::get_bits<0, 4>(value));
- }
- void M(Mode mode) {
- value = mcl::bit::set_bits<0, 4>(value, static_cast<u32>(mode));
- }
-
- u32 Value() const {
- return value;
- }
-
- InstructionSet CurrentInstructionSet() const {
- const bool j_bit = J();
- const bool t_bit = T();
-
- if (j_bit && t_bit)
- return InstructionSet::ThumbEE;
-
- if (t_bit)
- return InstructionSet::Thumb;
-
- if (j_bit)
- return InstructionSet::Jazelle;
-
- return InstructionSet::ARM;
- }
-
- void CurrentInstructionSet(InstructionSet instruction_set) {
- switch (instruction_set) {
- case InstructionSet::ARM:
- T(false);
- J(false);
- break;
- case InstructionSet::Jazelle:
- T(false);
- J(true);
- break;
- case InstructionSet::Thumb:
- T(true);
- J(false);
- break;
- case InstructionSet::ThumbEE:
- T(true);
- J(true);
- break;
- }
- }
-
-private:
- // Bits 20-23 are reserved and should be zero.
- static constexpr u32 mask = 0xFF0FFFFF;
-
- u32 value = 0;
-};
-
-inline bool operator==(PSR lhs, PSR rhs) {
- return lhs.Value() == rhs.Value();
-}
-
-inline bool operator!=(PSR lhs, PSR rhs) {
- return !operator==(lhs, rhs);
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/a32_ir_emitter.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/a32_ir_emitter.h
deleted file mode 100644
index 9fde4f87..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/a32_ir_emitter.h
+++ /dev/null
@@ -1,116 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <utility>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/A32/a32_location_descriptor.h"
-#include "dynarmic/ir/ir_emitter.h"
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::A32 {
-
-enum class ArchVersion;
-enum class CoprocReg;
-enum class Exception;
-enum class ExtReg;
-enum class Reg;
-
-/**
- * Convenience class to construct a basic block of the intermediate representation.
- * `block` is the resulting block.
- * The user of this class updates `current_location` as appropriate.
- */
-class IREmitter : public IR::IREmitter {
-public:
- IREmitter(IR::Block& block, LocationDescriptor descriptor, ArchVersion arch_version)
- : IR::IREmitter(block), current_location(descriptor), arch_version(arch_version) {}
-
- LocationDescriptor current_location;
-
- size_t ArchVersion() const;
-
- u32 PC() const;
- u32 AlignPC(size_t alignment) const;
-
- IR::U32 GetRegister(Reg source_reg);
- IR::U32U64 GetExtendedRegister(ExtReg source_reg);
- IR::U128 GetVector(ExtReg source_reg);
- void SetRegister(Reg dest_reg, const IR::U32& value);
- void SetExtendedRegister(ExtReg dest_reg, const IR::U32U64& value);
- void SetVector(ExtReg dest_reg, const IR::U128& value);
-
- void ALUWritePC(const IR::U32& value);
- void BranchWritePC(const IR::U32& value);
- void BXWritePC(const IR::U32& value);
- void LoadWritePC(const IR::U32& value);
- void UpdateUpperLocationDescriptor();
-
- void CallSupervisor(const IR::U32& value);
- void ExceptionRaised(Exception exception);
-
- IR::U32 GetCpsr();
- void SetCpsr(const IR::U32& value);
- void SetCpsrNZCV(const IR::NZCV& value);
- void SetCpsrNZCVRaw(const IR::U32& value);
- void SetCpsrNZCVQ(const IR::U32& value);
- void SetCheckBit(const IR::U1& value);
- IR::U1 GetOverflowFrom(const IR::Value& value);
- IR::U1 GetCFlag();
- void OrQFlag(const IR::U1& value);
- IR::U32 GetGEFlags();
- void SetGEFlags(const IR::U32& value);
- void SetGEFlagsCompressed(const IR::U32& value);
-
- IR::NZCV NZFrom(const IR::Value& value);
- void SetCpsrNZ(const IR::NZCV& nz);
- void SetCpsrNZC(const IR::NZCV& nz, const IR::U1& c);
-
- void DataSynchronizationBarrier();
- void DataMemoryBarrier();
- void InstructionSynchronizationBarrier();
-
- IR::U32 GetFpscr();
- void SetFpscr(const IR::U32& new_fpscr);
- IR::U32 GetFpscrNZCV();
- void SetFpscrNZCV(const IR::NZCV& new_fpscr_nzcv);
-
- void ClearExclusive();
- IR::UAny ReadMemory(size_t bitsize, const IR::U32& vaddr, IR::AccType acc_type);
- IR::U8 ReadMemory8(const IR::U32& vaddr, IR::AccType acc_type);
- IR::U16 ReadMemory16(const IR::U32& vaddr, IR::AccType acc_type);
- IR::U32 ReadMemory32(const IR::U32& vaddr, IR::AccType acc_type);
- IR::U64 ReadMemory64(const IR::U32& vaddr, IR::AccType acc_type);
- IR::U8 ExclusiveReadMemory8(const IR::U32& vaddr, IR::AccType acc_type);
- IR::U16 ExclusiveReadMemory16(const IR::U32& vaddr, IR::AccType acc_type);
- IR::U32 ExclusiveReadMemory32(const IR::U32& vaddr, IR::AccType acc_type);
- std::pair<IR::U32, IR::U32> ExclusiveReadMemory64(const IR::U32& vaddr, IR::AccType acc_type);
- void WriteMemory(size_t bitsize, const IR::U32& vaddr, const IR::UAny& value, IR::AccType acc_type);
- void WriteMemory8(const IR::U32& vaddr, const IR::U8& value, IR::AccType acc_type);
- void WriteMemory16(const IR::U32& vaddr, const IR::U16& value, IR::AccType acc_type);
- void WriteMemory32(const IR::U32& vaddr, const IR::U32& value, IR::AccType acc_type);
- void WriteMemory64(const IR::U32& vaddr, const IR::U64& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory8(const IR::U32& vaddr, const IR::U8& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory16(const IR::U32& vaddr, const IR::U16& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory32(const IR::U32& vaddr, const IR::U32& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory64(const IR::U32& vaddr, const IR::U32& value_lo, const IR::U32& value_hi, IR::AccType acc_type);
-
- void CoprocInternalOperation(size_t coproc_no, bool two, size_t opc1, CoprocReg CRd, CoprocReg CRn, CoprocReg CRm, size_t opc2);
- void CoprocSendOneWord(size_t coproc_no, bool two, size_t opc1, CoprocReg CRn, CoprocReg CRm, size_t opc2, const IR::U32& word);
- void CoprocSendTwoWords(size_t coproc_no, bool two, size_t opc, CoprocReg CRm, const IR::U32& word1, const IR::U32& word2);
- IR::U32 CoprocGetOneWord(size_t coproc_no, bool two, size_t opc1, CoprocReg CRn, CoprocReg CRm, size_t opc2);
- IR::U64 CoprocGetTwoWords(size_t coproc_no, bool two, size_t opc, CoprocReg CRm);
- void CoprocLoadWords(size_t coproc_no, bool two, bool long_transfer, CoprocReg CRd, const IR::U32& address, bool has_option, u8 option);
- void CoprocStoreWords(size_t coproc_no, bool two, bool long_transfer, CoprocReg CRd, const IR::U32& address, bool has_option, u8 option);
-
-private:
- enum ArchVersion arch_version;
- IR::U64 ImmCurrentLocationDescriptor();
-};
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/a32_location_descriptor.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/a32_location_descriptor.h
deleted file mode 100644
index c53e75d4..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/a32_location_descriptor.h
+++ /dev/null
@@ -1,162 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <functional>
-#include <string>
-#include <tuple>
-
-#include <fmt/format.h>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/A32/FPSCR.h"
-#include "dynarmic/frontend/A32/ITState.h"
-#include "dynarmic/frontend/A32/PSR.h"
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace Dynarmic::A32 {
-
-/**
- * LocationDescriptor describes the location of a basic block.
- * The location is not solely based on the PC because other flags influence the way
- * instructions should be translated. The CPSR.T flag is most notable since it
- * tells us if the processor is in Thumb or Arm mode.
- */
-class LocationDescriptor {
-public:
- // Indicates bits that should be preserved within descriptors.
- static constexpr u32 CPSR_MODE_MASK = 0x0600FE20;
- static constexpr u32 FPSCR_MODE_MASK = 0x07F70000;
-
- LocationDescriptor(u32 arm_pc, PSR cpsr, FPSCR fpscr, bool single_stepping = false)
- : arm_pc(arm_pc)
- , cpsr(cpsr.Value() & CPSR_MODE_MASK)
- , fpscr(fpscr.Value() & FPSCR_MODE_MASK)
- , single_stepping(single_stepping) {}
-
- explicit LocationDescriptor(const IR::LocationDescriptor& o) {
- arm_pc = static_cast<u32>(o.Value());
- cpsr.T((o.Value() >> 32) & 1);
- cpsr.E((o.Value() >> 32) & 2);
- fpscr = (o.Value() >> 32) & FPSCR_MODE_MASK;
- cpsr.IT(ITState{static_cast<u8>(o.Value() >> 40)});
- single_stepping = (o.Value() >> 32) & 4;
- }
-
- u32 PC() const { return arm_pc; }
- bool TFlag() const { return cpsr.T(); }
- bool EFlag() const { return cpsr.E(); }
- ITState IT() const { return cpsr.IT(); }
-
- A32::PSR CPSR() const { return cpsr; }
- A32::FPSCR FPSCR() const { return fpscr; }
-
- bool SingleStepping() const { return single_stepping; }
-
- bool operator==(const LocationDescriptor& o) const {
- return std::tie(arm_pc, cpsr, fpscr, single_stepping) == std::tie(o.arm_pc, o.cpsr, o.fpscr, o.single_stepping);
- }
-
- bool operator!=(const LocationDescriptor& o) const {
- return !operator==(o);
- }
-
- LocationDescriptor SetPC(u32 new_arm_pc) const {
- return LocationDescriptor(new_arm_pc, cpsr, fpscr, single_stepping);
- }
-
- LocationDescriptor AdvancePC(int amount) const {
- return LocationDescriptor(static_cast<u32>(arm_pc + amount), cpsr, fpscr, single_stepping);
- }
-
- LocationDescriptor SetTFlag(bool new_tflag) const {
- PSR new_cpsr = cpsr;
- new_cpsr.T(new_tflag);
-
- return LocationDescriptor(arm_pc, new_cpsr, fpscr, single_stepping);
- }
-
- LocationDescriptor SetEFlag(bool new_eflag) const {
- PSR new_cpsr = cpsr;
- new_cpsr.E(new_eflag);
-
- return LocationDescriptor(arm_pc, new_cpsr, fpscr, single_stepping);
- }
-
- LocationDescriptor SetFPSCR(u32 new_fpscr) const {
- return LocationDescriptor(arm_pc, cpsr, A32::FPSCR{new_fpscr & FPSCR_MODE_MASK}, single_stepping);
- }
-
- LocationDescriptor SetIT(ITState new_it) const {
- PSR new_cpsr = cpsr;
- new_cpsr.IT(new_it);
-
- return LocationDescriptor(arm_pc, new_cpsr, fpscr, single_stepping);
- }
-
- LocationDescriptor AdvanceIT() const {
- return SetIT(IT().Advance());
- }
-
- LocationDescriptor SetSingleStepping(bool new_single_stepping) const {
- return LocationDescriptor(arm_pc, cpsr, fpscr, new_single_stepping);
- }
-
- u64 UniqueHash() const noexcept {
- // This value MUST BE UNIQUE.
- // This calculation has to match up with EmitX64::EmitTerminalPopRSBHint
- const u64 pc_u64 = arm_pc;
- const u64 fpscr_u64 = fpscr.Value();
- const u64 t_u64 = cpsr.T() ? 1 : 0;
- const u64 e_u64 = cpsr.E() ? 2 : 0;
- const u64 single_stepping_u64 = single_stepping ? 4 : 0;
- const u64 it_u64 = u64(cpsr.IT().Value()) << 8;
- const u64 upper = (fpscr_u64 | t_u64 | e_u64 | single_stepping_u64 | it_u64) << 32;
- return pc_u64 | upper;
- }
-
- operator IR::LocationDescriptor() const {
- return IR::LocationDescriptor{UniqueHash()};
- }
-
-private:
- u32 arm_pc; ///< Current program counter value.
- PSR cpsr; ///< Current program status register.
- A32::FPSCR fpscr; ///< Floating point status control register.
- bool single_stepping;
-};
-
-/**
- * Provides a string representation of a LocationDescriptor.
- *
- * @param descriptor The descriptor to get a string representation of
- */
-std::string ToString(const LocationDescriptor& descriptor);
-
-} // namespace Dynarmic::A32
-
-namespace std {
-template<>
-struct less<Dynarmic::A32::LocationDescriptor> {
- bool operator()(const Dynarmic::A32::LocationDescriptor& x, const Dynarmic::A32::LocationDescriptor& y) const noexcept {
- return x.UniqueHash() < y.UniqueHash();
- }
-};
-template<>
-struct hash<Dynarmic::A32::LocationDescriptor> {
- size_t operator()(const Dynarmic::A32::LocationDescriptor& x) const noexcept {
- return std::hash<u64>()(x.UniqueHash());
- }
-};
-} // namespace std
-
-template<>
-struct fmt::formatter<Dynarmic::A32::LocationDescriptor> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::A32::LocationDescriptor descriptor, FormatContext& ctx) const {
- return formatter<std::string>::format(Dynarmic::A32::ToString(descriptor), ctx);
- }
-};
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/a32_types.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/a32_types.h
deleted file mode 100644
index 6f56bea5..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/a32_types.h
+++ /dev/null
@@ -1,177 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string>
-#include <utility>
-
-#include <fmt/format.h>
-#include <mcl/assert.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/interface/A32/coprocessor_util.h"
-#include "dynarmic/ir/cond.h"
-
-namespace Dynarmic::A32 {
-
-using Cond = IR::Cond;
-
-enum class Reg {
- R0,
- R1,
- R2,
- R3,
- R4,
- R5,
- R6,
- R7,
- R8,
- R9,
- R10,
- R11,
- R12,
- R13,
- R14,
- R15,
- SP = R13,
- LR = R14,
- PC = R15,
- INVALID_REG = 99
-};
-
-enum class ExtReg {
- // clang-format off
- S0, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14, S15, S16, S17, S18, S19, S20, S21, S22, S23, S24, S25, S26, S27, S28, S29, S30, S31,
- D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23, D24, D25, D26, D27, D28, D29, D30, D31,
- Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10, Q11, Q12, Q13, Q14, Q15
- // clang-format on
-};
-
-using RegList = u16;
-
-enum class ShiftType {
- LSL,
- LSR,
- ASR,
- ROR ///< RRX falls under this too
-};
-
-enum class SignExtendRotation {
- ROR_0, ///< ROR #0 or omitted
- ROR_8, ///< ROR #8
- ROR_16, ///< ROR #16
- ROR_24 ///< ROR #24
-};
-
-const char* CondToString(Cond cond, bool explicit_al = false);
-const char* RegToString(Reg reg);
-const char* ExtRegToString(ExtReg reg);
-const char* CoprocRegToString(CoprocReg reg);
-std::string RegListToString(RegList reg_list);
-
-constexpr bool IsSingleExtReg(ExtReg reg) {
- return reg >= ExtReg::S0 && reg <= ExtReg::S31;
-}
-
-constexpr bool IsDoubleExtReg(ExtReg reg) {
- return reg >= ExtReg::D0 && reg <= ExtReg::D31;
-}
-
-constexpr bool IsQuadExtReg(ExtReg reg) {
- return reg >= ExtReg::Q0 && reg <= ExtReg::Q15;
-}
-
-inline size_t RegNumber(Reg reg) {
- ASSERT(reg != Reg::INVALID_REG);
- return static_cast<size_t>(reg);
-}
-
-inline size_t RegNumber(ExtReg reg) {
- if (IsSingleExtReg(reg)) {
- return static_cast<size_t>(reg) - static_cast<size_t>(ExtReg::S0);
- }
-
- if (IsDoubleExtReg(reg)) {
- return static_cast<size_t>(reg) - static_cast<size_t>(ExtReg::D0);
- }
-
- if (IsQuadExtReg(reg)) {
- return static_cast<size_t>(reg) - static_cast<size_t>(ExtReg::Q0);
- }
-
- ASSERT_FALSE("Invalid extended register");
-}
-
-inline Reg operator+(Reg reg, size_t number) {
- const size_t new_reg = RegNumber(reg) + number;
- ASSERT(new_reg <= 15);
-
- return static_cast<Reg>(new_reg);
-}
-
-inline ExtReg operator+(ExtReg reg, size_t number) {
- const auto new_reg = static_cast<ExtReg>(static_cast<size_t>(reg) + number);
-
- ASSERT((IsSingleExtReg(reg) && IsSingleExtReg(new_reg))
- || (IsDoubleExtReg(reg) && IsDoubleExtReg(new_reg))
- || (IsQuadExtReg(reg) && IsQuadExtReg(new_reg)));
-
- return new_reg;
-}
-
-inline ExtReg ToExtRegQ(size_t base, bool bit) {
- return ExtReg::Q0 + ((base >> 1) + (bit ? 8 : 0));
-}
-
-inline ExtReg ToExtRegD(size_t base, bool bit) {
- return ExtReg::D0 + (base + (bit ? 16 : 0));
-}
-
-inline ExtReg ToExtRegS(size_t base, bool bit) {
- return ExtReg::S0 + ((base << 1) + (bit ? 1 : 0));
-}
-
-inline ExtReg ToExtReg(bool sz, size_t base, bool bit) {
- return sz ? ToExtRegD(base, bit) : ToExtRegS(base, bit);
-}
-
-inline ExtReg ToVector(bool Q, size_t base, bool bit) {
- return Q ? ToExtRegQ(base, bit) : ToExtRegD(base, bit);
-}
-
-} // namespace Dynarmic::A32
-
-template<>
-struct fmt::formatter<Dynarmic::A32::Reg> : fmt::formatter<const char*> {
- template<typename FormatContext>
- auto format(Dynarmic::A32::Reg reg, FormatContext& ctx) const {
- return formatter<const char*>::format(Dynarmic::A32::RegToString(reg), ctx);
- }
-};
-
-template<>
-struct fmt::formatter<Dynarmic::A32::ExtReg> : fmt::formatter<const char*> {
- template<typename FormatContext>
- auto format(Dynarmic::A32::ExtReg reg, FormatContext& ctx) const {
- return formatter<const char*>::format(Dynarmic::A32::ExtRegToString(reg), ctx);
- }
-};
-
-template<>
-struct fmt::formatter<Dynarmic::A32::CoprocReg> : fmt::formatter<const char*> {
- template<typename FormatContext>
- auto format(Dynarmic::A32::CoprocReg reg, FormatContext& ctx) const {
- return formatter<const char*>::format(Dynarmic::A32::CoprocRegToString(reg), ctx);
- }
-};
-
-template<>
-struct fmt::formatter<Dynarmic::A32::RegList> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::A32::RegList reg_list, FormatContext& ctx) const {
- return formatter<std::string>::format(Dynarmic::A32::RegListToString(reg_list), ctx);
- }
-};
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/arm.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/arm.h
deleted file mode 100644
index 16ae52e1..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/arm.h
+++ /dev/null
@@ -1,74 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- *
- * Original version of table by Lioncash.
- */
-
-#pragma once
-
-#include <algorithm>
-#include <functional>
-#include <optional>
-#include <vector>
-
-#include <mcl/bit/bit_count.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/decoder/decoder_detail.h"
-#include "dynarmic/frontend/decoder/matcher.h"
-
-namespace Dynarmic::A32 {
-
-template<typename Visitor>
-using ArmMatcher = Decoder::Matcher<Visitor, u32>;
-
-template<typename Visitor>
-using ArmDecodeTable = std::array<std::vector<ArmMatcher<Visitor>>, 0x1000>;
-
-namespace detail {
-inline size_t ToFastLookupIndexArm(u32 instruction) {
- return ((instruction >> 4) & 0x00F) | ((instruction >> 16) & 0xFF0);
-}
-} // namespace detail
-
-template<typename V>
-ArmDecodeTable<V> GetArmDecodeTable() {
- std::vector<ArmMatcher<V>> list = {
-
-#define INST(fn, name, bitstring) DYNARMIC_DECODER_GET_MATCHER(ArmMatcher, fn, name, Decoder::detail::StringToArray<32>(bitstring)),
-#include "./arm.inc"
-#undef INST
-
- };
-
- // If a matcher has more bits in its mask it is more specific, so it should come first.
- std::stable_sort(list.begin(), list.end(), [](const auto& matcher1, const auto& matcher2) {
- return mcl::bit::count_ones(matcher1.GetMask()) > mcl::bit::count_ones(matcher2.GetMask());
- });
-
- ArmDecodeTable<V> table{};
- for (size_t i = 0; i < table.size(); ++i) {
- for (auto matcher : list) {
- const auto expect = detail::ToFastLookupIndexArm(matcher.GetExpected());
- const auto mask = detail::ToFastLookupIndexArm(matcher.GetMask());
- if ((i & mask) == expect) {
- table[i].push_back(matcher);
- }
- }
- }
- return table;
-}
-
-template<typename V>
-std::optional<std::reference_wrapper<const ArmMatcher<V>>> DecodeArm(u32 instruction) {
- static const auto table = GetArmDecodeTable<V>();
-
- const auto matches_instruction = [instruction](const auto& matcher) { return matcher.Matches(instruction); };
-
- const auto& subtable = table[detail::ToFastLookupIndexArm(instruction)];
- auto iter = std::find_if(subtable.begin(), subtable.end(), matches_instruction);
- return iter != subtable.end() ? std::optional<std::reference_wrapper<const ArmMatcher<V>>>(*iter) : std::nullopt;
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/asimd.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/asimd.h
deleted file mode 100644
index cfcd28c6..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/asimd.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2020 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <algorithm>
-#include <functional>
-#include <optional>
-#include <set>
-#include <vector>
-
-#include <mcl/bit/bit_count.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/decoder/decoder_detail.h"
-#include "dynarmic/frontend/decoder/matcher.h"
-
-namespace Dynarmic::A32 {
-
-template<typename Visitor>
-using ASIMDMatcher = Decoder::Matcher<Visitor, u32>;
-
-template<typename V>
-std::vector<ASIMDMatcher<V>> GetASIMDDecodeTable() {
- std::vector<ASIMDMatcher<V>> table = {
-
-#define INST(fn, name, bitstring) DYNARMIC_DECODER_GET_MATCHER(ASIMDMatcher, fn, name, Decoder::detail::StringToArray<32>(bitstring)),
-#include "./asimd.inc"
-#undef INST
-
- };
-
- // Exceptions to the rule of thumb.
- const std::set<std::string> comes_first{
- "VBIC, VMOV, VMVN, VORR (immediate)",
- "VEXT",
- "VTBL",
- "VTBX",
- "VDUP (scalar)",
- };
- const std::set<std::string> comes_last{
- "VMLA (scalar)",
- "VMLAL (scalar)",
- "VQDMLAL/VQDMLSL (scalar)",
- "VMUL (scalar)",
- "VMULL (scalar)",
- "VQDMULL (scalar)",
- "VQDMULH (scalar)",
- "VQRDMULH (scalar)",
- };
- const auto sort_begin = std::stable_partition(table.begin(), table.end(), [&](const auto& matcher) {
- return comes_first.count(matcher.GetName()) > 0;
- });
- const auto sort_end = std::stable_partition(table.begin(), table.end(), [&](const auto& matcher) {
- return comes_last.count(matcher.GetName()) == 0;
- });
-
- // If a matcher has more bits in its mask it is more specific, so it should come first.
- std::stable_sort(sort_begin, sort_end, [](const auto& matcher1, const auto& matcher2) {
- return mcl::bit::count_ones(matcher1.GetMask()) > mcl::bit::count_ones(matcher2.GetMask());
- });
-
- return table;
-}
-
-template<typename V>
-std::optional<std::reference_wrapper<const ASIMDMatcher<V>>> DecodeASIMD(u32 instruction) {
- static const auto table = GetASIMDDecodeTable<V>();
-
- const auto matches_instruction = [instruction](const auto& matcher) { return matcher.Matches(instruction); };
-
- auto iter = std::find_if(table.begin(), table.end(), matches_instruction);
- return iter != table.end() ? std::optional<std::reference_wrapper<const ASIMDMatcher<V>>>(*iter) : std::nullopt;
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/thumb16.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/thumb16.h
deleted file mode 100644
index 6a4275f7..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/thumb16.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <algorithm>
-#include <functional>
-#include <optional>
-#include <vector>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/decoder/decoder_detail.h"
-#include "dynarmic/frontend/decoder/matcher.h"
-
-namespace Dynarmic::A32 {
-
-template<typename Visitor>
-using Thumb16Matcher = Decoder::Matcher<Visitor, u16>;
-
-template<typename V>
-std::optional<std::reference_wrapper<const Thumb16Matcher<V>>> DecodeThumb16(u16 instruction) {
- static const std::vector<Thumb16Matcher<V>> table = {
-
-#define INST(fn, name, bitstring) DYNARMIC_DECODER_GET_MATCHER(Thumb16Matcher, fn, name, Decoder::detail::StringToArray<16>(bitstring)),
-#include "./thumb16.inc"
-#undef INST
-
- };
-
- const auto matches_instruction = [instruction](const auto& matcher) { return matcher.Matches(instruction); };
-
- auto iter = std::find_if(table.begin(), table.end(), matches_instruction);
- return iter != table.end() ? std::optional<std::reference_wrapper<const Thumb16Matcher<V>>>(*iter) : std::nullopt;
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/thumb32.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/thumb32.h
deleted file mode 100644
index f3f4b3b9..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/thumb32.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <algorithm>
-#include <optional>
-#include <vector>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/decoder/decoder_detail.h"
-#include "dynarmic/frontend/decoder/matcher.h"
-
-namespace Dynarmic::A32 {
-
-template<typename Visitor>
-using Thumb32Matcher = Decoder::Matcher<Visitor, u32>;
-
-template<typename V>
-std::optional<std::reference_wrapper<const Thumb32Matcher<V>>> DecodeThumb32(u32 instruction) {
- static const std::vector<Thumb32Matcher<V>> table = {
-
-#define INST(fn, name, bitstring) DYNARMIC_DECODER_GET_MATCHER(Thumb32Matcher, fn, name, Decoder::detail::StringToArray<32>(bitstring)),
-#include "./thumb32.inc"
-#undef INST
-
- };
-
- const auto matches_instruction = [instruction](const auto& matcher) { return matcher.Matches(instruction); };
-
- auto iter = std::find_if(table.begin(), table.end(), matches_instruction);
- return iter != table.end() ? std::optional<std::reference_wrapper<const Thumb32Matcher<V>>>(*iter) : std::nullopt;
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/vfp.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/vfp.h
deleted file mode 100644
index f79a859b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/vfp.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2032 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <algorithm>
-#include <functional>
-#include <optional>
-#include <vector>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/decoder/decoder_detail.h"
-#include "dynarmic/frontend/decoder/matcher.h"
-
-namespace Dynarmic::A32 {
-
-template<typename Visitor>
-using VFPMatcher = Decoder::Matcher<Visitor, u32>;
-
-template<typename V>
-std::optional<std::reference_wrapper<const VFPMatcher<V>>> DecodeVFP(u32 instruction) {
- using Table = std::vector<VFPMatcher<V>>;
-
- static const struct Tables {
- Table unconditional;
- Table conditional;
- } tables = [] {
- Table list = {
-
-#define INST(fn, name, bitstring) DYNARMIC_DECODER_GET_MATCHER(VFPMatcher, fn, name, Decoder::detail::StringToArray<32>(bitstring)),
-#include "./vfp.inc"
-#undef INST
-
- };
-
- const auto division = std::stable_partition(list.begin(), list.end(), [&](const auto& matcher) {
- return (matcher.GetMask() & 0xF0000000) == 0xF0000000;
- });
-
- return Tables{
- Table{list.begin(), division},
- Table{division, list.end()},
- };
- }();
-
- const bool is_unconditional = (instruction & 0xF0000000) == 0xF0000000;
- const Table& table = is_unconditional ? tables.unconditional : tables.conditional;
-
- const auto matches_instruction = [instruction](const auto& matcher) { return matcher.Matches(instruction); };
-
- auto iter = std::find_if(table.begin(), table.end(), matches_instruction);
- return iter != table.end() ? std::optional<std::reference_wrapper<const VFPMatcher<V>>>(*iter) : std::nullopt;
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/disassembler/disassembler.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/disassembler/disassembler.h
deleted file mode 100644
index 6a61afde..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/disassembler/disassembler.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::A32 {
-
-std::string DisassembleArm(u32 instruction);
-std::string DisassembleThumb16(u16 instruction);
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/translate/a32_translate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/translate/a32_translate.h
deleted file mode 100644
index 0f2c3a12..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/translate/a32_translate.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/interface/A32/arch_version.h"
-
-namespace Dynarmic::IR {
-class Block;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic::A32 {
-
-class LocationDescriptor;
-struct TranslateCallbacks;
-
-struct TranslationOptions {
- ArchVersion arch_version;
-
- /// This changes what IR we emit when we translate an unpredictable instruction.
- /// If this is false, the ExceptionRaised IR instruction is emitted.
- /// If this is true, we define some behaviour for some instructions.
- bool define_unpredictable_behaviour = false;
-
- /// This changes what IR we emit when we translate a hint instruction.
- /// If this is false, we treat the instruction as a NOP.
- /// If this is true, we emit an ExceptionRaised instruction.
- bool hook_hint_instructions = true;
-};
-
-/**
- * This function translates instructions in memory into our intermediate representation.
- * @param descriptor The starting location of the basic block. Includes information like PC, Thumb state, &c.
- * @param tcb The callbacks we should use to read emulated memory.
- * @param options Configures how certain instructions are translated.
- * @return A translated basic block in the intermediate representation.
- */
-IR::Block Translate(LocationDescriptor descriptor, TranslateCallbacks* tcb, const TranslationOptions& options);
-
-/**
- * This function translates a single provided instruction into our intermediate representation.
- * @param block The block to append the IR for the instruction to.
- * @param descriptor The location of the instruction. Includes information like PC, Thumb state, &c.
- * @param instruction The instruction to translate.
- * @return The translated instruction translated to the intermediate representation.
- */
-bool TranslateSingleInstruction(IR::Block& block, LocationDescriptor descriptor, u32 instruction);
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/translate/conditional_state.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/translate/conditional_state.h
deleted file mode 100644
index 18c8b1cc..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/translate/conditional_state.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2020 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::IR {
-enum class Cond;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic::A32 {
-
-class IREmitter;
-struct TranslatorVisitor;
-
-enum class ConditionalState {
- /// We haven't met any conditional instructions yet.
- None,
- /// Current instruction is a conditional. This marks the end of this basic block.
- Break,
- /// This basic block is made up solely of conditional instructions.
- Translating,
- /// This basic block is made up of conditional instructions followed by unconditional instructions.
- Trailing,
-};
-
-bool CondCanContinue(ConditionalState cond_state, const A32::IREmitter& ir);
-bool IsConditionPassed(TranslatorVisitor& v, IR::Cond cond);
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/translate/impl/a32_translate_impl.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/translate/impl/a32_translate_impl.h
deleted file mode 100644
index 44ac2450..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/translate/impl/a32_translate_impl.h
+++ /dev/null
@@ -1,982 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/assert.hpp>
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/bit/rotate.hpp>
-
-#include "dynarmic/frontend/A32/a32_ir_emitter.h"
-#include "dynarmic/frontend/A32/a32_location_descriptor.h"
-#include "dynarmic/frontend/A32/a32_types.h"
-#include "dynarmic/frontend/A32/translate/a32_translate.h"
-#include "dynarmic/frontend/A32/translate/conditional_state.h"
-#include "dynarmic/frontend/imm.h"
-
-namespace Dynarmic::A32 {
-
-enum class Exception;
-
-struct TranslatorVisitor final {
- using instruction_return_type = bool;
-
- explicit TranslatorVisitor(IR::Block& block, LocationDescriptor descriptor, const TranslationOptions& options)
- : ir(block, descriptor, options.arch_version), options(options) {}
-
- A32::IREmitter ir;
- ConditionalState cond_state = ConditionalState::None;
- TranslationOptions options;
-
- size_t current_instruction_size;
-
- bool ArmConditionPassed(Cond cond);
- bool ThumbConditionPassed();
- bool VFPConditionPassed(Cond cond);
-
- bool InterpretThisInstruction();
- bool UnpredictableInstruction();
- bool UndefinedInstruction();
- bool DecodeError();
- bool RaiseException(Exception exception);
-
- struct ImmAndCarry {
- u32 imm32;
- IR::U1 carry;
- };
-
- ImmAndCarry ArmExpandImm_C(int rotate, Imm<8> imm8, IR::U1 carry_in) {
- u32 imm32 = imm8.ZeroExtend();
- auto carry_out = carry_in;
- if (rotate) {
- imm32 = mcl::bit::rotate_right<u32>(imm8.ZeroExtend(), rotate * 2);
- carry_out = ir.Imm1(mcl::bit::get_bit<31>(imm32));
- }
- return {imm32, carry_out};
- }
-
- u32 ArmExpandImm(int rotate, Imm<8> imm8) {
- return ArmExpandImm_C(rotate, imm8, ir.Imm1(0)).imm32;
- }
-
- ImmAndCarry ThumbExpandImm_C(Imm<1> i, Imm<3> imm3, Imm<8> imm8, IR::U1 carry_in) {
- const Imm<12> imm12 = concatenate(i, imm3, imm8);
- if (imm12.Bits<10, 11>() == 0) {
- const u32 imm32 = [&] {
- const u32 imm8 = imm12.Bits<0, 7>();
- switch (imm12.Bits<8, 9>()) {
- case 0b00:
- return imm8;
- case 0b01:
- return mcl::bit::replicate_element<u16, u32>(imm8);
- case 0b10:
- return mcl::bit::replicate_element<u16, u32>(imm8 << 8);
- case 0b11:
- return mcl::bit::replicate_element<u8, u32>(imm8);
- }
- UNREACHABLE();
- }();
- return {imm32, carry_in};
- }
- const u32 imm32 = mcl::bit::rotate_right<u32>((1 << 7) | imm12.Bits<0, 6>(), imm12.Bits<7, 11>());
- return {imm32, ir.Imm1(mcl::bit::get_bit<31>(imm32))};
- }
-
- u32 ThumbExpandImm(Imm<1> i, Imm<3> imm3, Imm<8> imm8) {
- return ThumbExpandImm_C(i, imm3, imm8, ir.Imm1(0)).imm32;
- }
-
- // Creates an immediate of the given value
- IR::UAny I(size_t bitsize, u64 value);
-
- IR::ResultAndCarry<IR::U32> EmitImmShift(IR::U32 value, ShiftType type, Imm<3> imm3, Imm<2> imm2, IR::U1 carry_in);
- IR::ResultAndCarry<IR::U32> EmitImmShift(IR::U32 value, ShiftType type, Imm<5> imm5, IR::U1 carry_in);
- IR::ResultAndCarry<IR::U32> EmitRegShift(IR::U32 value, ShiftType type, IR::U8 amount, IR::U1 carry_in);
- template<typename FnT>
- bool EmitVfpVectorOperation(bool sz, ExtReg d, ExtReg n, ExtReg m, const FnT& fn);
- template<typename FnT>
- bool EmitVfpVectorOperation(bool sz, ExtReg d, ExtReg m, const FnT& fn);
-
- // Barrier instructions
- bool arm_DMB(Imm<4> option);
- bool arm_DSB(Imm<4> option);
- bool arm_ISB(Imm<4> option);
-
- // Branch instructions
- bool arm_B(Cond cond, Imm<24> imm24);
- bool arm_BL(Cond cond, Imm<24> imm24);
- bool arm_BLX_imm(bool H, Imm<24> imm24);
- bool arm_BLX_reg(Cond cond, Reg m);
- bool arm_BX(Cond cond, Reg m);
- bool arm_BXJ(Cond cond, Reg m);
-
- // Coprocessor instructions
- bool arm_CDP(Cond cond, size_t opc1, CoprocReg CRn, CoprocReg CRd, size_t coproc_no, size_t opc2, CoprocReg CRm);
- bool arm_LDC(Cond cond, bool p, bool u, bool d, bool w, Reg n, CoprocReg CRd, size_t coproc_no, Imm<8> imm8);
- bool arm_MCR(Cond cond, size_t opc1, CoprocReg CRn, Reg t, size_t coproc_no, size_t opc2, CoprocReg CRm);
- bool arm_MCRR(Cond cond, Reg t2, Reg t, size_t coproc_no, size_t opc, CoprocReg CRm);
- bool arm_MRC(Cond cond, size_t opc1, CoprocReg CRn, Reg t, size_t coproc_no, size_t opc2, CoprocReg CRm);
- bool arm_MRRC(Cond cond, Reg t2, Reg t, size_t coproc_no, size_t opc, CoprocReg CRm);
- bool arm_STC(Cond cond, bool p, bool u, bool d, bool w, Reg n, CoprocReg CRd, size_t coproc_no, Imm<8> imm8);
-
- // CRC32 instructions
- bool arm_CRC32(Cond cond, Imm<2> sz, Reg n, Reg d, Reg m);
- bool arm_CRC32C(Cond cond, Imm<2> sz, Reg n, Reg d, Reg m);
-
- // Data processing instructions
- bool arm_ADC_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_ADC_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_ADC_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_ADD_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_ADD_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_ADD_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_AND_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_AND_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_AND_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_BIC_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_BIC_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_BIC_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_CMN_imm(Cond cond, Reg n, int rotate, Imm<8> imm8);
- bool arm_CMN_reg(Cond cond, Reg n, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_CMN_rsr(Cond cond, Reg n, Reg s, ShiftType shift, Reg m);
- bool arm_CMP_imm(Cond cond, Reg n, int rotate, Imm<8> imm8);
- bool arm_CMP_reg(Cond cond, Reg n, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_CMP_rsr(Cond cond, Reg n, Reg s, ShiftType shift, Reg m);
- bool arm_EOR_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_EOR_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_EOR_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_MOV_imm(Cond cond, bool S, Reg d, int rotate, Imm<8> imm8);
- bool arm_MOV_reg(Cond cond, bool S, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_MOV_rsr(Cond cond, bool S, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_MVN_imm(Cond cond, bool S, Reg d, int rotate, Imm<8> imm8);
- bool arm_MVN_reg(Cond cond, bool S, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_MVN_rsr(Cond cond, bool S, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_ORR_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_ORR_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_ORR_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_RSB_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_RSB_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_RSB_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_RSC_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_RSC_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_RSC_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_SBC_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_SBC_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_SBC_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_SUB_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_SUB_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_SUB_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_TEQ_imm(Cond cond, Reg n, int rotate, Imm<8> imm8);
- bool arm_TEQ_reg(Cond cond, Reg n, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_TEQ_rsr(Cond cond, Reg n, Reg s, ShiftType shift, Reg m);
- bool arm_TST_imm(Cond cond, Reg n, int rotate, Imm<8> imm8);
- bool arm_TST_reg(Cond cond, Reg n, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_TST_rsr(Cond cond, Reg n, Reg s, ShiftType shift, Reg m);
-
- // Exception generating instructions
- bool arm_BKPT(Cond cond, Imm<12> imm12, Imm<4> imm4);
- bool arm_SVC(Cond cond, Imm<24> imm24);
- bool arm_UDF();
-
- // Extension instructions
- bool arm_SXTAB(Cond cond, Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_SXTAB16(Cond cond, Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_SXTAH(Cond cond, Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_SXTB(Cond cond, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_SXTB16(Cond cond, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_SXTH(Cond cond, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_UXTAB(Cond cond, Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_UXTAB16(Cond cond, Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_UXTAH(Cond cond, Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_UXTB(Cond cond, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_UXTB16(Cond cond, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_UXTH(Cond cond, Reg d, SignExtendRotation rotate, Reg m);
-
- // Hint instructions
- bool arm_PLD_imm(bool add, bool R, Reg n, Imm<12> imm12);
- bool arm_PLD_reg(bool add, bool R, Reg n, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_SEV();
- bool arm_SEVL();
- bool arm_WFE();
- bool arm_WFI();
- bool arm_YIELD();
-
- // Load/Store
- bool arm_LDRBT();
- bool arm_LDRHT();
- bool arm_LDRSBT();
- bool arm_LDRSHT();
- bool arm_LDRT();
- bool arm_STRBT();
- bool arm_STRHT();
- bool arm_STRT();
- bool arm_LDR_lit(Cond cond, bool U, Reg t, Imm<12> imm12);
- bool arm_LDR_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg d, Imm<12> imm12);
- bool arm_LDR_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_LDRB_lit(Cond cond, bool U, Reg t, Imm<12> imm12);
- bool arm_LDRB_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<12> imm12);
- bool arm_LDRB_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_LDRD_lit(Cond cond, bool U, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRD_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRD_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg d, Reg m);
- bool arm_LDRH_lit(Cond cond, bool P, bool U, bool W, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRH_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRH_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg d, Reg m);
- bool arm_LDRSB_lit(Cond cond, bool U, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRSB_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRSB_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Reg m);
- bool arm_LDRSH_lit(Cond cond, bool U, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRSH_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRSH_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Reg m);
- bool arm_STR_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<12> imm12);
- bool arm_STR_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_STRB_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<12> imm12);
- bool arm_STRB_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_STRD_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_STRD_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Reg m);
- bool arm_STRH_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_STRH_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Reg m);
-
- // Load/Store multiple instructions
- bool arm_LDM(Cond cond, bool W, Reg n, RegList list);
- bool arm_LDMDA(Cond cond, bool W, Reg n, RegList list);
- bool arm_LDMDB(Cond cond, bool W, Reg n, RegList list);
- bool arm_LDMIB(Cond cond, bool W, Reg n, RegList list);
- bool arm_LDM_usr();
- bool arm_LDM_eret();
- bool arm_STM(Cond cond, bool W, Reg n, RegList list);
- bool arm_STMDA(Cond cond, bool W, Reg n, RegList list);
- bool arm_STMDB(Cond cond, bool W, Reg n, RegList list);
- bool arm_STMIB(Cond cond, bool W, Reg n, RegList list);
- bool arm_STM_usr();
-
- // Miscellaneous instructions
- bool arm_BFC(Cond cond, Imm<5> msb, Reg d, Imm<5> lsb);
- bool arm_BFI(Cond cond, Imm<5> msb, Reg d, Imm<5> lsb, Reg n);
- bool arm_CLZ(Cond cond, Reg d, Reg m);
- bool arm_MOVT(Cond cond, Imm<4> imm4, Reg d, Imm<12> imm12);
- bool arm_MOVW(Cond cond, Imm<4> imm4, Reg d, Imm<12> imm12);
- bool arm_NOP() { return true; }
- bool arm_RBIT(Cond cond, Reg d, Reg m);
- bool arm_SBFX(Cond cond, Imm<5> widthm1, Reg d, Imm<5> lsb, Reg n);
- bool arm_SEL(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UBFX(Cond cond, Imm<5> widthm1, Reg d, Imm<5> lsb, Reg n);
-
- // Unsigned sum of absolute difference functions
- bool arm_USAD8(Cond cond, Reg d, Reg m, Reg n);
- bool arm_USADA8(Cond cond, Reg d, Reg a, Reg m, Reg n);
-
- // Packing instructions
- bool arm_PKHBT(Cond cond, Reg n, Reg d, Imm<5> imm5, Reg m);
- bool arm_PKHTB(Cond cond, Reg n, Reg d, Imm<5> imm5, Reg m);
-
- // Reversal instructions
- bool arm_REV(Cond cond, Reg d, Reg m);
- bool arm_REV16(Cond cond, Reg d, Reg m);
- bool arm_REVSH(Cond cond, Reg d, Reg m);
-
- // Saturation instructions
- bool arm_SSAT(Cond cond, Imm<5> sat_imm, Reg d, Imm<5> imm5, bool sh, Reg n);
- bool arm_SSAT16(Cond cond, Imm<4> sat_imm, Reg d, Reg n);
- bool arm_USAT(Cond cond, Imm<5> sat_imm, Reg d, Imm<5> imm5, bool sh, Reg n);
- bool arm_USAT16(Cond cond, Imm<4> sat_imm, Reg d, Reg n);
-
- // Divide instructions
- bool arm_SDIV(Cond cond, Reg d, Reg m, Reg n);
- bool arm_UDIV(Cond cond, Reg d, Reg m, Reg n);
-
- // Multiply (Normal) instructions
- bool arm_MLA(Cond cond, bool S, Reg d, Reg a, Reg m, Reg n);
- bool arm_MLS(Cond cond, Reg d, Reg a, Reg m, Reg n);
- bool arm_MUL(Cond cond, bool S, Reg d, Reg m, Reg n);
-
- // Multiply (Long) instructions
- bool arm_SMLAL(Cond cond, bool S, Reg dHi, Reg dLo, Reg m, Reg n);
- bool arm_SMULL(Cond cond, bool S, Reg dHi, Reg dLo, Reg m, Reg n);
- bool arm_UMAAL(Cond cond, Reg dHi, Reg dLo, Reg m, Reg n);
- bool arm_UMLAL(Cond cond, bool S, Reg dHi, Reg dLo, Reg m, Reg n);
- bool arm_UMULL(Cond cond, bool S, Reg dHi, Reg dLo, Reg m, Reg n);
-
- // Multiply (Halfword) instructions
- bool arm_SMLALxy(Cond cond, Reg dHi, Reg dLo, Reg m, bool M, bool N, Reg n);
- bool arm_SMLAxy(Cond cond, Reg d, Reg a, Reg m, bool M, bool N, Reg n);
- bool arm_SMULxy(Cond cond, Reg d, Reg m, bool M, bool N, Reg n);
-
- // Multiply (word by halfword) instructions
- bool arm_SMLAWy(Cond cond, Reg d, Reg a, Reg m, bool M, Reg n);
- bool arm_SMULWy(Cond cond, Reg d, Reg m, bool M, Reg n);
-
- // Multiply (Most significant word) instructions
- bool arm_SMMLA(Cond cond, Reg d, Reg a, Reg m, bool R, Reg n);
- bool arm_SMMLS(Cond cond, Reg d, Reg a, Reg m, bool R, Reg n);
- bool arm_SMMUL(Cond cond, Reg d, Reg m, bool R, Reg n);
-
- // Multiply (Dual) instructions
- bool arm_SMLAD(Cond cond, Reg d, Reg a, Reg m, bool M, Reg n);
- bool arm_SMLALD(Cond cond, Reg dHi, Reg dLo, Reg m, bool M, Reg n);
- bool arm_SMLSD(Cond cond, Reg d, Reg a, Reg m, bool M, Reg n);
- bool arm_SMLSLD(Cond cond, Reg dHi, Reg dLo, Reg m, bool M, Reg n);
- bool arm_SMUAD(Cond cond, Reg d, Reg m, bool M, Reg n);
- bool arm_SMUSD(Cond cond, Reg d, Reg m, bool M, Reg n);
-
- // Parallel Add/Subtract (Modulo arithmetic) instructions
- bool arm_SADD8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SADD16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SASX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SSAX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SSUB8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SSUB16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UADD8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UADD16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UASX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_USAX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_USUB8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_USUB16(Cond cond, Reg n, Reg d, Reg m);
-
- // Parallel Add/Subtract (Saturating) instructions
- bool arm_QADD8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QADD16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QASX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QSAX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QSUB8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QSUB16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UQADD8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UQADD16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UQASX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UQSAX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UQSUB8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UQSUB16(Cond cond, Reg n, Reg d, Reg m);
-
- // Parallel Add/Subtract (Halving) instructions
- bool arm_SHADD8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SHADD16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SHASX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SHSAX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SHSUB8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SHSUB16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UHADD8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UHADD16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UHASX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UHSAX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UHSUB8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UHSUB16(Cond cond, Reg n, Reg d, Reg m);
-
- // Saturated Add/Subtract instructions
- bool arm_QADD(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QSUB(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QDADD(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QDSUB(Cond cond, Reg n, Reg d, Reg m);
-
- // Synchronization Primitive instructions
- bool arm_CLREX();
- bool arm_SWP(Cond cond, Reg n, Reg t, Reg t2);
- bool arm_SWPB(Cond cond, Reg n, Reg t, Reg t2);
- bool arm_STL(Cond cond, Reg n, Reg t);
- bool arm_STLEX(Cond cond, Reg n, Reg d, Reg t);
- bool arm_STREX(Cond cond, Reg n, Reg d, Reg t);
- bool arm_LDA(Cond cond, Reg n, Reg t);
- bool arm_LDAEX(Cond cond, Reg n, Reg t);
- bool arm_LDREX(Cond cond, Reg n, Reg t);
- bool arm_STLEXD(Cond cond, Reg n, Reg d, Reg t);
- bool arm_STREXD(Cond cond, Reg n, Reg d, Reg t);
- bool arm_LDAEXD(Cond cond, Reg n, Reg t);
- bool arm_LDREXD(Cond cond, Reg n, Reg t);
- bool arm_STLB(Cond cond, Reg n, Reg t);
- bool arm_STLEXB(Cond cond, Reg n, Reg d, Reg t);
- bool arm_STREXB(Cond cond, Reg n, Reg d, Reg t);
- bool arm_LDAB(Cond cond, Reg n, Reg t);
- bool arm_LDAEXB(Cond cond, Reg n, Reg t);
- bool arm_LDREXB(Cond cond, Reg n, Reg t);
- bool arm_STLH(Cond cond, Reg n, Reg t);
- bool arm_STLEXH(Cond cond, Reg n, Reg d, Reg t);
- bool arm_STREXH(Cond cond, Reg n, Reg d, Reg t);
- bool arm_LDAH(Cond cond, Reg n, Reg t);
- bool arm_LDAEXH(Cond cond, Reg n, Reg t);
- bool arm_LDREXH(Cond cond, Reg n, Reg t);
-
- // Status register access instructions
- bool arm_CPS();
- bool arm_MRS(Cond cond, Reg d);
- bool arm_MSR_imm(Cond cond, unsigned mask, int rotate, Imm<8> imm8);
- bool arm_MSR_reg(Cond cond, unsigned mask, Reg n);
- bool arm_RFE();
- bool arm_SETEND(bool E);
- bool arm_SRS();
-
- // thumb16
- bool thumb16_LSL_imm(Imm<5> imm5, Reg m, Reg d);
- bool thumb16_LSR_imm(Imm<5> imm5, Reg m, Reg d);
- bool thumb16_ASR_imm(Imm<5> imm5, Reg m, Reg d);
- bool thumb16_ADD_reg_t1(Reg m, Reg n, Reg d);
- bool thumb16_SUB_reg(Reg m, Reg n, Reg d);
- bool thumb16_ADD_imm_t1(Imm<3> imm3, Reg n, Reg d);
- bool thumb16_SUB_imm_t1(Imm<3> imm3, Reg n, Reg d);
- bool thumb16_MOV_imm(Reg d, Imm<8> imm8);
- bool thumb16_CMP_imm(Reg n, Imm<8> imm8);
- bool thumb16_ADD_imm_t2(Reg d_n, Imm<8> imm8);
- bool thumb16_SUB_imm_t2(Reg d_n, Imm<8> imm8);
- bool thumb16_AND_reg(Reg m, Reg d_n);
- bool thumb16_EOR_reg(Reg m, Reg d_n);
- bool thumb16_LSL_reg(Reg m, Reg d_n);
- bool thumb16_LSR_reg(Reg m, Reg d_n);
- bool thumb16_ASR_reg(Reg m, Reg d_n);
- bool thumb16_ADC_reg(Reg m, Reg d_n);
- bool thumb16_SBC_reg(Reg m, Reg d_n);
- bool thumb16_ROR_reg(Reg m, Reg d_n);
- bool thumb16_TST_reg(Reg m, Reg n);
- bool thumb16_RSB_imm(Reg n, Reg d);
- bool thumb16_CMP_reg_t1(Reg m, Reg n);
- bool thumb16_CMN_reg(Reg m, Reg n);
- bool thumb16_ORR_reg(Reg m, Reg d_n);
- bool thumb16_MUL_reg(Reg n, Reg d_m);
- bool thumb16_BIC_reg(Reg m, Reg d_n);
- bool thumb16_MVN_reg(Reg m, Reg d);
- bool thumb16_ADD_reg_t2(bool d_n_hi, Reg m, Reg d_n_lo);
- bool thumb16_CMP_reg_t2(bool n_hi, Reg m, Reg n_lo);
- bool thumb16_MOV_reg(bool d_hi, Reg m, Reg d_lo);
- bool thumb16_LDR_literal(Reg t, Imm<8> imm8);
- bool thumb16_STR_reg(Reg m, Reg n, Reg t);
- bool thumb16_STRH_reg(Reg m, Reg n, Reg t);
- bool thumb16_STRB_reg(Reg m, Reg n, Reg t);
- bool thumb16_LDRSB_reg(Reg m, Reg n, Reg t);
- bool thumb16_LDR_reg(Reg m, Reg n, Reg t);
- bool thumb16_LDRH_reg(Reg m, Reg n, Reg t);
- bool thumb16_LDRB_reg(Reg m, Reg n, Reg t);
- bool thumb16_LDRSH_reg(Reg m, Reg n, Reg t);
- bool thumb16_STR_imm_t1(Imm<5> imm5, Reg n, Reg t);
- bool thumb16_LDR_imm_t1(Imm<5> imm5, Reg n, Reg t);
- bool thumb16_STRB_imm(Imm<5> imm5, Reg n, Reg t);
- bool thumb16_LDRB_imm(Imm<5> imm5, Reg n, Reg t);
- bool thumb16_STRH_imm(Imm<5> imm5, Reg n, Reg t);
- bool thumb16_LDRH_imm(Imm<5> imm5, Reg n, Reg t);
- bool thumb16_STR_imm_t2(Reg t, Imm<8> imm8);
- bool thumb16_LDR_imm_t2(Reg t, Imm<8> imm8);
- bool thumb16_ADR(Reg d, Imm<8> imm8);
- bool thumb16_ADD_sp_t1(Reg d, Imm<8> imm8);
- bool thumb16_ADD_sp_t2(Imm<7> imm7);
- bool thumb16_SUB_sp(Imm<7> imm7);
- bool thumb16_SEV();
- bool thumb16_SEVL();
- bool thumb16_WFE();
- bool thumb16_WFI();
- bool thumb16_YIELD();
- bool thumb16_NOP();
- bool thumb16_IT(Imm<8> imm8);
- bool thumb16_SXTH(Reg m, Reg d);
- bool thumb16_SXTB(Reg m, Reg d);
- bool thumb16_UXTH(Reg m, Reg d);
- bool thumb16_UXTB(Reg m, Reg d);
- bool thumb16_PUSH(bool M, RegList reg_list);
- bool thumb16_POP(bool P, RegList reg_list);
- bool thumb16_SETEND(bool E);
- bool thumb16_CPS(bool, bool, bool, bool);
- bool thumb16_REV(Reg m, Reg d);
- bool thumb16_REV16(Reg m, Reg d);
- bool thumb16_REVSH(Reg m, Reg d);
- bool thumb16_BKPT(Imm<8> imm8);
- bool thumb16_STMIA(Reg n, RegList reg_list);
- bool thumb16_LDMIA(Reg n, RegList reg_list);
- bool thumb16_CBZ_CBNZ(bool nonzero, Imm<1> i, Imm<5> imm5, Reg n);
- bool thumb16_UDF();
- bool thumb16_BX(Reg m);
- bool thumb16_BLX_reg(Reg m);
- bool thumb16_SVC(Imm<8> imm8);
- bool thumb16_B_t1(Cond cond, Imm<8> imm8);
- bool thumb16_B_t2(Imm<11> imm11);
-
- // thumb32 load/store multiple instructions
- bool thumb32_LDMDB(bool W, Reg n, Imm<16> reg_list);
- bool thumb32_LDMIA(bool W, Reg n, Imm<16> reg_list);
- bool thumb32_POP(Imm<16> reg_list);
- bool thumb32_PUSH(Imm<15> reg_list);
- bool thumb32_STMIA(bool W, Reg n, Imm<15> reg_list);
- bool thumb32_STMDB(bool W, Reg n, Imm<15> reg_list);
-
- // thumb32 load/store dual, load/store exclusive, table branch instructions
- bool thumb32_LDA(Reg n, Reg t);
- bool thumb32_LDRD_imm_1(bool U, Reg n, Reg t, Reg t2, Imm<8> imm8);
- bool thumb32_LDRD_imm_2(bool U, bool W, Reg n, Reg t, Reg t2, Imm<8> imm8);
- bool thumb32_LDRD_lit_1(bool U, Reg t, Reg t2, Imm<8> imm8);
- bool thumb32_LDRD_lit_2(bool U, bool W, Reg t, Reg t2, Imm<8> imm8);
- bool thumb32_STRD_imm_1(bool U, Reg n, Reg t, Reg t2, Imm<8> imm8);
- bool thumb32_STRD_imm_2(bool U, bool W, Reg n, Reg t, Reg t2, Imm<8> imm8);
- bool thumb32_LDREX(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_LDREXD(Reg n, Reg t, Reg t2);
- bool thumb32_LDREXB(Reg n, Reg t);
- bool thumb32_LDREXH(Reg n, Reg t);
- bool thumb32_STL(Reg n, Reg t);
- bool thumb32_STREX(Reg n, Reg t, Reg d, Imm<8> imm8);
- bool thumb32_STREXB(Reg n, Reg t, Reg d);
- bool thumb32_STREXD(Reg n, Reg t, Reg t2, Reg d);
- bool thumb32_STREXH(Reg n, Reg t, Reg d);
- bool thumb32_TBB(Reg n, Reg m);
- bool thumb32_TBH(Reg n, Reg m);
-
- // thumb32 data processing (shifted register) instructions
- bool thumb32_TST_reg(Reg n, Imm<3> imm3, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_AND_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_BIC_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_MOV_reg(bool S, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_ORR_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_MVN_reg(bool S, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_ORN_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_TEQ_reg(Reg n, Imm<3> imm3, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_EOR_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_PKH(Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, Imm<1> tb, Reg m);
- bool thumb32_CMN_reg(Reg n, Imm<3> imm3, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_ADD_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_ADC_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_SBC_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_CMP_reg(Reg n, Imm<3> imm3, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_SUB_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_RSB_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
-
- // thumb32 data processing (modified immediate) instructions
- bool thumb32_TST_imm(Imm<1> i, Reg n, Imm<3> imm3, Imm<8> imm8);
- bool thumb32_AND_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_BIC_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_MOV_imm(Imm<1> i, bool S, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_ORR_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_MVN_imm(Imm<1> i, bool S, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_ORN_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_TEQ_imm(Imm<1> i, Reg n, Imm<3> imm3, Imm<8> imm8);
- bool thumb32_EOR_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_CMN_imm(Imm<1> i, Reg n, Imm<3> imm3, Imm<8> imm8);
- bool thumb32_ADD_imm_1(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_ADC_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_SBC_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_CMP_imm(Imm<1> i, Reg n, Imm<3> imm3, Imm<8> imm8);
- bool thumb32_SUB_imm_1(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_RSB_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
-
- // thumb32 data processing (plain binary immediate) instructions.
- bool thumb32_ADR_t2(Imm<1> imm1, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_ADR_t3(Imm<1> imm1, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_ADD_imm_2(Imm<1> imm1, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_BFC(Imm<3> imm3, Reg d, Imm<2> imm2, Imm<5> msb);
- bool thumb32_BFI(Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, Imm<5> msb);
- bool thumb32_MOVT(Imm<1> imm1, Imm<4> imm4, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_MOVW_imm(Imm<1> imm1, Imm<4> imm4, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_SBFX(Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, Imm<5> widthm1);
- bool thumb32_SSAT(bool sh, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, Imm<5> sat_imm);
- bool thumb32_SSAT16(Reg n, Reg d, Imm<4> sat_imm);
- bool thumb32_SUB_imm_2(Imm<1> imm1, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_UBFX(Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, Imm<5> widthm1);
- bool thumb32_USAT(bool sh, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, Imm<5> sat_imm);
- bool thumb32_USAT16(Reg n, Reg d, Imm<4> sat_imm);
-
- // thumb32 miscellaneous control instructions
- bool thumb32_BXJ(Reg m);
- bool thumb32_CLREX();
- bool thumb32_DMB(Imm<4> option);
- bool thumb32_DSB(Imm<4> option);
- bool thumb32_ISB(Imm<4> option);
- bool thumb32_NOP();
- bool thumb32_SEV();
- bool thumb32_SEVL();
- bool thumb32_UDF();
- bool thumb32_WFE();
- bool thumb32_WFI();
- bool thumb32_YIELD();
- bool thumb32_MSR_reg(bool R, Reg n, Imm<4> mask);
- bool thumb32_MRS_reg(bool R, Reg d);
-
- // thumb32 branch instructions
- bool thumb32_BL_imm(Imm<1> S, Imm<10> hi, Imm<1> j1, Imm<1> j2, Imm<11> lo);
- bool thumb32_BLX_imm(Imm<1> S, Imm<10> hi, Imm<1> j1, Imm<1> j2, Imm<11> lo);
- bool thumb32_B(Imm<1> S, Imm<10> hi, Imm<1> j1, Imm<1> j2, Imm<11> lo);
- bool thumb32_B_cond(Imm<1> S, Cond cond, Imm<6> hi, Imm<1> j1, Imm<1> j2, Imm<11> lo);
-
- // thumb32 store single data item instructions
- bool thumb32_STRB_imm_1(Reg n, Reg t, bool P, bool U, Imm<8> imm8);
- bool thumb32_STRB_imm_2(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_STRB_imm_3(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_STRBT(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_STRB(Reg n, Reg t, Imm<2> imm2, Reg m);
- bool thumb32_STRH_imm_1(Reg n, Reg t, bool P, bool U, Imm<8> imm8);
- bool thumb32_STRH_imm_2(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_STRH_imm_3(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_STRHT(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_STRH(Reg n, Reg t, Imm<2> imm2, Reg m);
- bool thumb32_STR_imm_1(Reg n, Reg t, bool P, bool U, Imm<8> imm8);
- bool thumb32_STR_imm_2(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_STR_imm_3(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_STRT(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_STR_reg(Reg n, Reg t, Imm<2> imm2, Reg m);
-
- // thumb32 load byte and memory hints
- bool thumb32_PLD_lit(bool U, Imm<12> imm12);
- bool thumb32_PLD_imm8(bool W, Reg n, Imm<8> imm8);
- bool thumb32_PLD_imm12(bool W, Reg n, Imm<12> imm12);
- bool thumb32_PLD_reg(bool W, Reg n, Imm<2> imm2, Reg m);
- bool thumb32_PLI_lit(bool U, Imm<12> imm12);
- bool thumb32_PLI_imm8(Reg n, Imm<8> imm8);
- bool thumb32_PLI_imm12(Reg n, Imm<12> imm12);
- bool thumb32_PLI_reg(Reg n, Imm<2> imm2, Reg m);
- bool thumb32_LDRB_lit(bool U, Reg t, Imm<12> imm12);
- bool thumb32_LDRB_reg(Reg n, Reg t, Imm<2> imm2, Reg m);
- bool thumb32_LDRB_imm8(Reg n, Reg t, bool P, bool U, bool W, Imm<8> imm8);
- bool thumb32_LDRB_imm12(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_LDRBT(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_LDRSB_lit(bool U, Reg t, Imm<12> imm12);
- bool thumb32_LDRSB_reg(Reg n, Reg t, Imm<2> imm2, Reg m);
- bool thumb32_LDRSB_imm8(Reg n, Reg t, bool P, bool U, bool W, Imm<8> imm8);
- bool thumb32_LDRSB_imm12(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_LDRSBT(Reg n, Reg t, Imm<8> imm8);
-
- // thumb32 load halfword instructions
- bool thumb32_LDRH_lit(bool U, Reg t, Imm<12> imm12);
- bool thumb32_LDRH_reg(Reg n, Reg t, Imm<2> imm2, Reg m);
- bool thumb32_LDRH_imm8(Reg n, Reg t, bool P, bool U, bool W, Imm<8> imm8);
- bool thumb32_LDRH_imm12(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_LDRHT(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_LDRSH_lit(bool U, Reg t, Imm<12> imm12);
- bool thumb32_LDRSH_reg(Reg n, Reg t, Imm<2> imm2, Reg m);
- bool thumb32_LDRSH_imm8(Reg n, Reg t, bool P, bool U, bool W, Imm<8> imm8);
- bool thumb32_LDRSH_imm12(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_LDRSHT(Reg n, Reg t, Imm<8> imm8);
-
- // thumb32 load word instructions
- bool thumb32_LDR_lit(bool U, Reg t, Imm<12> imm12);
- bool thumb32_LDR_reg(Reg n, Reg t, Imm<2> imm2, Reg m);
- bool thumb32_LDR_imm8(Reg n, Reg t, bool P, bool U, bool W, Imm<8> imm8);
- bool thumb32_LDR_imm12(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_LDRT(Reg n, Reg t, Imm<8> imm8);
-
- // thumb32 data processing (register) instructions
- bool thumb32_ASR_reg(bool S, Reg m, Reg d, Reg s);
- bool thumb32_LSL_reg(bool S, Reg m, Reg d, Reg s);
- bool thumb32_LSR_reg(bool S, Reg m, Reg d, Reg s);
- bool thumb32_ROR_reg(bool S, Reg m, Reg d, Reg s);
- bool thumb32_SXTB(Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_SXTB16(Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_SXTAB(Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_SXTAB16(Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_SXTH(Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_SXTAH(Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_UXTB(Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_UXTB16(Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_UXTAB(Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_UXTAB16(Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_UXTH(Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_UXTAH(Reg n, Reg d, SignExtendRotation rotate, Reg m);
-
- // thumb32 long multiply, long multiply accumulate, and divide instructions
- bool thumb32_SDIV(Reg n, Reg d, Reg m);
- bool thumb32_SMLAL(Reg n, Reg dLo, Reg dHi, Reg m);
- bool thumb32_SMLALD(Reg n, Reg dLo, Reg dHi, bool M, Reg m);
- bool thumb32_SMLALXY(Reg n, Reg dLo, Reg dHi, bool N, bool M, Reg m);
- bool thumb32_SMLSLD(Reg n, Reg dLo, Reg dHi, bool M, Reg m);
- bool thumb32_SMULL(Reg n, Reg dLo, Reg dHi, Reg m);
- bool thumb32_UDIV(Reg n, Reg d, Reg m);
- bool thumb32_UMAAL(Reg n, Reg dLo, Reg dHi, Reg m);
- bool thumb32_UMLAL(Reg n, Reg dLo, Reg dHi, Reg m);
- bool thumb32_UMULL(Reg n, Reg dLo, Reg dHi, Reg m);
-
- // thumb32 miscellaneous instructions
- bool thumb32_CLZ(Reg n, Reg d, Reg m);
- bool thumb32_QADD(Reg n, Reg d, Reg m);
- bool thumb32_QDADD(Reg n, Reg d, Reg m);
- bool thumb32_QDSUB(Reg n, Reg d, Reg m);
- bool thumb32_QSUB(Reg n, Reg d, Reg m);
- bool thumb32_RBIT(Reg n, Reg d, Reg m);
- bool thumb32_REV(Reg n, Reg d, Reg m);
- bool thumb32_REV16(Reg n, Reg d, Reg m);
- bool thumb32_REVSH(Reg n, Reg d, Reg m);
- bool thumb32_SEL(Reg n, Reg d, Reg m);
-
- // thumb32 multiply instructions
- bool thumb32_MLA(Reg n, Reg a, Reg d, Reg m);
- bool thumb32_MLS(Reg n, Reg a, Reg d, Reg m);
- bool thumb32_MUL(Reg n, Reg d, Reg m);
- bool thumb32_SMLAD(Reg n, Reg a, Reg d, bool X, Reg m);
- bool thumb32_SMLAXY(Reg n, Reg a, Reg d, bool N, bool M, Reg m);
- bool thumb32_SMLAWY(Reg n, Reg a, Reg d, bool M, Reg m);
- bool thumb32_SMLSD(Reg n, Reg a, Reg d, bool X, Reg m);
- bool thumb32_SMMLA(Reg n, Reg a, Reg d, bool R, Reg m);
- bool thumb32_SMMLS(Reg n, Reg a, Reg d, bool R, Reg m);
- bool thumb32_SMMUL(Reg n, Reg d, bool R, Reg m);
- bool thumb32_SMUAD(Reg n, Reg d, bool M, Reg m);
- bool thumb32_SMUSD(Reg n, Reg d, bool M, Reg m);
- bool thumb32_SMULXY(Reg n, Reg d, bool N, bool M, Reg m);
- bool thumb32_SMULWY(Reg n, Reg d, bool M, Reg m);
- bool thumb32_USAD8(Reg n, Reg d, Reg m);
- bool thumb32_USADA8(Reg n, Reg a, Reg d, Reg m);
-
- // thumb32 parallel add/sub instructions
- bool thumb32_SADD8(Reg n, Reg d, Reg m);
- bool thumb32_SADD16(Reg n, Reg d, Reg m);
- bool thumb32_SASX(Reg n, Reg d, Reg m);
- bool thumb32_SSAX(Reg n, Reg d, Reg m);
- bool thumb32_SSUB8(Reg n, Reg d, Reg m);
- bool thumb32_SSUB16(Reg n, Reg d, Reg m);
- bool thumb32_UADD8(Reg n, Reg d, Reg m);
- bool thumb32_UADD16(Reg n, Reg d, Reg m);
- bool thumb32_UASX(Reg n, Reg d, Reg m);
- bool thumb32_USAX(Reg n, Reg d, Reg m);
- bool thumb32_USUB8(Reg n, Reg d, Reg m);
- bool thumb32_USUB16(Reg n, Reg d, Reg m);
-
- bool thumb32_QADD8(Reg n, Reg d, Reg m);
- bool thumb32_QADD16(Reg n, Reg d, Reg m);
- bool thumb32_QASX(Reg n, Reg d, Reg m);
- bool thumb32_QSAX(Reg n, Reg d, Reg m);
- bool thumb32_QSUB8(Reg n, Reg d, Reg m);
- bool thumb32_QSUB16(Reg n, Reg d, Reg m);
- bool thumb32_UQADD8(Reg n, Reg d, Reg m);
- bool thumb32_UQADD16(Reg n, Reg d, Reg m);
- bool thumb32_UQASX(Reg n, Reg d, Reg m);
- bool thumb32_UQSAX(Reg n, Reg d, Reg m);
- bool thumb32_UQSUB8(Reg n, Reg d, Reg m);
- bool thumb32_UQSUB16(Reg n, Reg d, Reg m);
-
- bool thumb32_SHADD8(Reg n, Reg d, Reg m);
- bool thumb32_SHADD16(Reg n, Reg d, Reg m);
- bool thumb32_SHASX(Reg n, Reg d, Reg m);
- bool thumb32_SHSAX(Reg n, Reg d, Reg m);
- bool thumb32_SHSUB8(Reg n, Reg d, Reg m);
- bool thumb32_SHSUB16(Reg n, Reg d, Reg m);
- bool thumb32_UHADD8(Reg n, Reg d, Reg m);
- bool thumb32_UHADD16(Reg n, Reg d, Reg m);
- bool thumb32_UHASX(Reg n, Reg d, Reg m);
- bool thumb32_UHSAX(Reg n, Reg d, Reg m);
- bool thumb32_UHSUB8(Reg n, Reg d, Reg m);
- bool thumb32_UHSUB16(Reg n, Reg d, Reg m);
-
- // thumb32 coprocessor insturctions
- bool thumb32_MCRR(bool two, Reg t2, Reg t, size_t coproc_no, size_t opc, CoprocReg CRm);
- bool thumb32_MRRC(bool two, Reg t2, Reg t, size_t coproc_no, size_t opc, CoprocReg CRm);
- bool thumb32_STC(bool two, bool p, bool u, bool d, bool w, Reg n, CoprocReg CRd, size_t coproc_no, Imm<8> imm8);
- bool thumb32_LDC(bool two, bool p, bool u, bool d, bool w, Reg n, CoprocReg CRd, size_t coproc_no, Imm<8> imm8);
- bool thumb32_CDP(bool two, size_t opc1, CoprocReg CRn, CoprocReg CRd, size_t coproc_no, size_t opc2, CoprocReg CRm);
- bool thumb32_MCR(bool two, size_t opc1, CoprocReg CRn, Reg t, size_t coproc_no, size_t opc2, CoprocReg CRm);
- bool thumb32_MRC(bool two, size_t opc1, CoprocReg CRn, Reg t, size_t coproc_no, size_t opc2, CoprocReg CRm);
-
- // Floating-point three-register data processing instructions
- bool vfp_VADD(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VSUB(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VMUL(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VMLA(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VMLS(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VNMUL(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VNMLA(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VNMLS(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VDIV(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VFNMS(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VFNMA(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VFMA(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VFMS(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VSEL(bool D, Imm<2> cc, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VMAXNM(bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VMINNM(bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
-
- // Floating-point move instructions
- bool vfp_VMOV_u32_f64(Cond cond, size_t Vd, Reg t, bool D);
- bool vfp_VMOV_f64_u32(Cond cond, size_t Vn, Reg t, bool N);
- bool vfp_VMOV_u32_f32(Cond cond, size_t Vn, Reg t, bool N);
- bool vfp_VMOV_f32_u32(Cond cond, size_t Vn, Reg t, bool N);
- bool vfp_VMOV_2u32_2f32(Cond cond, Reg t2, Reg t, bool M, size_t Vm);
- bool vfp_VMOV_2f32_2u32(Cond cond, Reg t2, Reg t, bool M, size_t Vm);
- bool vfp_VMOV_2u32_f64(Cond cond, Reg t2, Reg t, bool M, size_t Vm);
- bool vfp_VMOV_f64_2u32(Cond cond, Reg t2, Reg t, bool M, size_t Vm);
- bool vfp_VMOV_from_i32(Cond cond, Imm<1> i, size_t Vd, Reg t, bool D);
- bool vfp_VMOV_from_i16(Cond cond, Imm<1> i1, size_t Vd, Reg t, bool D, Imm<1> i2);
- bool vfp_VMOV_from_i8(Cond cond, Imm<1> i1, size_t Vd, Reg t, bool D, Imm<2> i2);
- bool vfp_VMOV_to_i32(Cond cond, Imm<1> i, size_t Vn, Reg t, bool N);
- bool vfp_VMOV_to_i16(Cond cond, bool U, Imm<1> i1, size_t Vn, Reg t, bool N, Imm<1> i2);
- bool vfp_VMOV_to_i8(Cond cond, bool U, Imm<1> i1, size_t Vn, Reg t, bool N, Imm<2> i2);
- bool vfp_VDUP(Cond cond, Imm<1> B, bool Q, size_t Vd, Reg t, bool D, Imm<1> E);
- bool vfp_VMOV_imm(Cond cond, bool D, Imm<4> imm4H, size_t Vd, bool sz, Imm<4> imm4L);
- bool vfp_VMOV_reg(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
-
- // Floating-point misc instructions
- bool vfp_VABS(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VNEG(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VSQRT(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VCVTB(Cond cond, bool D, bool op, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VCVTT(Cond cond, bool D, bool op, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VCMP(Cond cond, bool D, size_t Vd, bool sz, bool E, bool M, size_t Vm);
- bool vfp_VCMP_zero(Cond cond, bool D, size_t Vd, bool sz, bool E);
- bool vfp_VRINTR(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VRINTZ(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VRINTX(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VCVT_f_to_f(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VCVT_from_int(Cond cond, bool D, size_t Vd, bool sz, bool is_signed, bool M, size_t Vm);
- bool vfp_VCVT_from_fixed(Cond cond, bool D, bool U, size_t Vd, bool sz, bool sx, Imm<1> i, Imm<4> imm4);
- bool vfp_VCVT_to_u32(Cond cond, bool D, size_t Vd, bool sz, bool round_towards_zero, bool M, size_t Vm);
- bool vfp_VCVT_to_s32(Cond cond, bool D, size_t Vd, bool sz, bool round_towards_zero, bool M, size_t Vm);
- bool vfp_VCVT_to_fixed(Cond cond, bool D, bool U, size_t Vd, bool sz, bool sx, Imm<1> i, Imm<4> imm4);
- bool vfp_VRINT_rm(bool D, size_t rm, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VCVT_rm(bool D, size_t rm, size_t Vd, bool sz, bool U, bool M, size_t Vm);
-
- // Floating-point system register access
- bool vfp_VMSR(Cond cond, Reg t);
- bool vfp_VMRS(Cond cond, Reg t);
-
- // Floating-point load-store instructions
- bool vfp_VLDR(Cond cond, bool U, bool D, Reg n, size_t Vd, bool sz, Imm<8> imm8);
- bool vfp_VSTR(Cond cond, bool U, bool D, Reg n, size_t Vd, bool sz, Imm<8> imm8);
- bool vfp_VPOP(Cond cond, bool D, size_t Vd, bool sz, Imm<8> imm8);
- bool vfp_VPUSH(Cond cond, bool D, size_t Vd, bool sz, Imm<8> imm8);
- bool vfp_VSTM_a1(Cond cond, bool p, bool u, bool D, bool w, Reg n, size_t Vd, Imm<8> imm8);
- bool vfp_VSTM_a2(Cond cond, bool p, bool u, bool D, bool w, Reg n, size_t Vd, Imm<8> imm8);
- bool vfp_VLDM_a1(Cond cond, bool p, bool u, bool D, bool w, Reg n, size_t Vd, Imm<8> imm8);
- bool vfp_VLDM_a2(Cond cond, bool p, bool u, bool D, bool w, Reg n, size_t Vd, Imm<8> imm8);
-
- // Advanced SIMD one register, modified immediate
- bool asimd_VMOV_imm(Imm<1> a, bool D, Imm<1> b, Imm<1> c, Imm<1> d, size_t Vd, Imm<4> cmode, bool Q, bool op, Imm<1> e, Imm<1> f, Imm<1> g, Imm<1> h);
-
- // Advanced SIMD three register with same length
- bool asimd_VHADD(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VQADD(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VRHADD(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VAND_reg(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VBIC_reg(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VORR_reg(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VORN_reg(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VEOR_reg(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VBSL(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VBIT(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VBIF(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VHSUB(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VQSUB(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VCGT_reg(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VCGE_reg(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VABD(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VABA(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VADD_int(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VSUB_int(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VSHL_reg(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VQSHL_reg(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VRSHL(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMAX(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, bool op, size_t Vm);
- bool asimd_VTST(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VCEQ_reg(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMLA(bool op, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMUL(bool P, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VPMAX_int(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, bool op, size_t Vm);
- bool v8_VMAXNM(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool v8_VMINNM(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VQDMULH(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VQRDMULH(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VPADD(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VFMA(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VFMS(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VADD_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VSUB_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VPADD_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VABD_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMLA_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMLS_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMUL_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VCEQ_reg_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VCGE_reg_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VCGT_reg_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VACGE(bool D, bool op, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMAX_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMIN_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VPMAX_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VPMIN_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VRECPS(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VRSQRTS(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool v8_SHA256H(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool v8_SHA256H2(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool v8_SHA256SU1(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
-
- // Advanced SIMD three registers with different lengths
- bool asimd_VADDL(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool op, bool N, bool M, size_t Vm);
- bool asimd_VSUBL(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool op, bool N, bool M, size_t Vm);
- bool asimd_VABAL(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool M, size_t Vm);
- bool asimd_VABDL(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool M, size_t Vm);
- bool asimd_VMLAL(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool op, bool N, bool M, size_t Vm);
- bool asimd_VMULL(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool P, bool N, bool M, size_t Vm);
-
- // Advanced SIMD two registers and a scalar
- bool asimd_VMLA_scalar(bool Q, bool D, size_t sz, size_t Vn, size_t Vd, bool op, bool F, bool N, bool M, size_t Vm);
- bool asimd_VMLAL_scalar(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool op, bool N, bool M, size_t Vm);
- bool asimd_VMUL_scalar(bool Q, bool D, size_t sz, size_t Vn, size_t Vd, bool F, bool N, bool M, size_t Vm);
- bool asimd_VMULL_scalar(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool M, size_t Vm);
- bool asimd_VQDMULL_scalar(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool M, size_t Vm);
- bool asimd_VQDMULH_scalar(bool Q, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool M, size_t Vm);
- bool asimd_VQRDMULH_scalar(bool Q, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool M, size_t Vm);
-
- // Two registers and a shift amount
- bool asimd_SHR(bool U, bool D, size_t imm6, size_t Vd, bool L, bool Q, bool M, size_t Vm);
- bool asimd_SRA(bool U, bool D, size_t imm6, size_t Vd, bool L, bool Q, bool M, size_t Vm);
- bool asimd_VRSHR(bool U, bool D, size_t imm6, size_t Vd, bool L, bool Q, bool M, size_t Vm);
- bool asimd_VRSRA(bool U, bool D, size_t imm6, size_t Vd, bool L, bool Q, bool M, size_t Vm);
- bool asimd_VSRI(bool D, size_t imm6, size_t Vd, bool L, bool Q, bool M, size_t Vm);
- bool asimd_VSHL(bool D, size_t imm6, size_t Vd, bool L, bool Q, bool M, size_t Vm);
- bool asimd_VSLI(bool D, size_t imm6, size_t Vd, bool L, bool Q, bool M, size_t Vm);
- bool asimd_VQSHL(bool U, bool D, size_t imm6, size_t Vd, bool op, bool L, bool Q, bool M, size_t Vm);
- bool asimd_VSHRN(bool D, size_t imm6, size_t Vd, bool M, size_t Vm);
- bool asimd_VRSHRN(bool D, size_t imm6, size_t Vd, bool M, size_t Vm);
- bool asimd_VQSHRUN(bool D, size_t imm6, size_t Vd, bool M, size_t Vm);
- bool asimd_VQRSHRUN(bool D, size_t imm6, size_t Vd, bool M, size_t Vm);
- bool asimd_VQSHRN(bool U, bool D, size_t imm6, size_t Vd, bool M, size_t Vm);
- bool asimd_VQRSHRN(bool U, bool D, size_t imm6, size_t Vd, bool M, size_t Vm);
- bool asimd_VSHLL(bool U, bool D, size_t imm6, size_t Vd, bool M, size_t Vm);
- bool asimd_VCVT_fixed(bool U, bool D, size_t imm6, size_t Vd, bool to_fixed, bool Q, bool M, size_t Vm);
-
- // Advanced SIMD two register, miscellaneous
- bool asimd_VREV(bool D, size_t sz, size_t Vd, size_t op, bool Q, bool M, size_t Vm);
- bool asimd_VPADDL(bool D, size_t sz, size_t Vd, bool op, bool Q, bool M, size_t Vm);
- bool v8_AESD(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool v8_AESE(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool v8_AESIMC(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool v8_AESMC(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool v8_SHA256SU0(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool asimd_VCLS(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VCLZ(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VCNT(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VMVN_reg(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VPADAL(bool D, size_t sz, size_t Vd, bool op, bool Q, bool M, size_t Vm);
- bool asimd_VQABS(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VQNEG(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VCGT_zero(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VCGE_zero(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VCEQ_zero(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VCLE_zero(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VCLT_zero(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VABS(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VNEG(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VSWP(bool D, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VTRN(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VUZP(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VZIP(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VMOVN(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool asimd_VQMOVUN(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool asimd_VQMOVN(bool D, size_t sz, size_t Vd, bool op, bool M, size_t Vm);
- bool asimd_VSHLL_max(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool v8_VRINTN(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool v8_VRINTX(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool v8_VRINTA(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool v8_VRINTZ(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool v8_VRINTM(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool v8_VRINTP(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VCVT_half(bool D, size_t sz, size_t Vd, bool op, bool M, size_t Vm);
- bool v8_VCVTA(bool D, size_t sz, size_t Vd, bool op, bool Q, bool M, size_t Vm);
- bool v8_VCVTN(bool D, size_t sz, size_t Vd, bool op, bool Q, bool M, size_t Vm);
- bool v8_VCVTP(bool D, size_t sz, size_t Vd, bool op, bool Q, bool M, size_t Vm);
- bool v8_VCVTM(bool D, size_t sz, size_t Vd, bool op, bool Q, bool M, size_t Vm);
- bool asimd_VRECPE(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VRSQRTE(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VCVT_integer(bool D, size_t sz, size_t Vd, bool op, bool U, bool Q, bool M, size_t Vm);
-
- // Advanced SIMD miscellaneous
- bool asimd_VEXT(bool D, size_t Vn, size_t Vd, Imm<4> imm4, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VTBL(bool D, size_t Vn, size_t Vd, size_t len, bool N, bool M, size_t Vm);
- bool asimd_VTBX(bool D, size_t Vn, size_t Vd, size_t len, bool N, bool M, size_t Vm);
- bool asimd_VDUP_scalar(bool D, Imm<4> imm4, size_t Vd, bool Q, bool M, size_t Vm);
-
- // Advanced SIMD load/store structures
- bool v8_VST_multiple(bool D, Reg n, size_t Vd, Imm<4> type, size_t sz, size_t align, Reg m);
- bool v8_VLD_multiple(bool D, Reg n, size_t Vd, Imm<4> type, size_t sz, size_t align, Reg m);
- bool v8_VLD_all_lanes(bool D, Reg n, size_t Vd, size_t nn, size_t sz, bool T, bool a, Reg m);
- bool v8_VST_single(bool D, Reg n, size_t Vd, size_t sz, size_t nn, size_t index_align, Reg m);
- bool v8_VLD_single(bool D, Reg n, size_t Vd, size_t sz, size_t nn, size_t index_align, Reg m);
-};
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/translate/translate_callbacks.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/translate/translate_callbacks.h
deleted file mode 100644
index e0ad48ea..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A32/translate/translate_callbacks.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2021 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-#pragma once
-
-#include <cstdint>
-#include <optional>
-
-namespace Dynarmic::A32 {
-
-using VAddr = std::uint32_t;
-
-class IREmitter;
-
-struct TranslateCallbacks {
- // All reads through this callback are 4-byte aligned.
- // Memory must be interpreted as little endian.
- virtual std::optional<std::uint32_t> MemoryReadCode(VAddr vaddr) = 0;
-
- // This function is called before the instruction at pc is read.
- // IR code can be emitted by the callee prior to instruction handling.
- // By returning false the callee precludes the translation of the instruction;
- // in such case the callee is responsible for setting the terminal.
- virtual bool PreCodeReadHook(bool is_thumb, VAddr pc, A32::IREmitter& ir) = 0;
-
- // This function is called before the instruction at pc is interpreted.
- // IR code can be emitted by the callee prior to translation of the instruction.
- virtual void PreCodeTranslationHook(bool is_thumb, VAddr pc, A32::IREmitter& ir) = 0;
-
- // How many ticks should this instruction take to execute?
- virtual std::uint64_t GetTicksForCode(bool is_thumb, VAddr vaddr, std::uint32_t instruction) = 0;
-};
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A64/a64_ir_emitter.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A64/a64_ir_emitter.h
deleted file mode 100644
index 7fc8bea7..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A64/a64_ir_emitter.h
+++ /dev/null
@@ -1,102 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/A64/a64_location_descriptor.h"
-#include "dynarmic/frontend/A64/a64_types.h"
-#include "dynarmic/interface/A64/config.h"
-#include "dynarmic/ir/ir_emitter.h"
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::A64 {
-
-/**
- * Convenience class to construct a basic block of the intermediate representation.
- * `block` is the resulting block.
- * The user of this class updates `current_location` as appropriate.
- */
-class IREmitter : public IR::IREmitter {
-public:
- explicit IREmitter(IR::Block& block)
- : IR::IREmitter(block) {}
- explicit IREmitter(IR::Block& block, LocationDescriptor descriptor)
- : IR::IREmitter(block), current_location(descriptor) {}
-
- std::optional<LocationDescriptor> current_location;
-
- u64 PC() const;
- u64 AlignPC(size_t alignment) const;
-
- void SetCheckBit(const IR::U1& value);
- IR::U1 GetCFlag();
- IR::U32 GetNZCVRaw();
- void SetNZCVRaw(IR::U32 value);
- void SetNZCV(const IR::NZCV& nzcv);
-
- void CallSupervisor(u32 imm);
- void ExceptionRaised(Exception exception);
- void DataCacheOperationRaised(DataCacheOperation op, const IR::U64& value);
- void InstructionCacheOperationRaised(InstructionCacheOperation op, const IR::U64& value);
- void DataSynchronizationBarrier();
- void DataMemoryBarrier();
- void InstructionSynchronizationBarrier();
- IR::U32 GetCNTFRQ();
- IR::U64 GetCNTPCT(); // TODO: Ensure sub-basic-block cycle counts are updated before this.
- IR::U32 GetCTR();
- IR::U32 GetDCZID();
- IR::U64 GetTPIDR();
- IR::U64 GetTPIDRRO();
- void SetTPIDR(const IR::U64& value);
-
- void ClearExclusive();
- IR::U8 ReadMemory8(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U16 ReadMemory16(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U32 ReadMemory32(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U64 ReadMemory64(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U128 ReadMemory128(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U8 ExclusiveReadMemory8(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U16 ExclusiveReadMemory16(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U32 ExclusiveReadMemory32(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U64 ExclusiveReadMemory64(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U128 ExclusiveReadMemory128(const IR::U64& vaddr, IR::AccType acc_type);
- void WriteMemory8(const IR::U64& vaddr, const IR::U8& value, IR::AccType acc_type);
- void WriteMemory16(const IR::U64& vaddr, const IR::U16& value, IR::AccType acc_type);
- void WriteMemory32(const IR::U64& vaddr, const IR::U32& value, IR::AccType acc_type);
- void WriteMemory64(const IR::U64& vaddr, const IR::U64& value, IR::AccType acc_type);
- void WriteMemory128(const IR::U64& vaddr, const IR::U128& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory8(const IR::U64& vaddr, const IR::U8& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory16(const IR::U64& vaddr, const IR::U16& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory32(const IR::U64& vaddr, const IR::U32& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory64(const IR::U64& vaddr, const IR::U64& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory128(const IR::U64& vaddr, const IR::U128& value, IR::AccType acc_type);
-
- IR::U32 GetW(Reg source_reg);
- IR::U64 GetX(Reg source_reg);
- IR::U128 GetS(Vec source_vec);
- IR::U128 GetD(Vec source_vec);
- IR::U128 GetQ(Vec source_vec);
- IR::U64 GetSP();
- IR::U32 GetFPCR();
- IR::U32 GetFPSR();
- void SetW(Reg dest_reg, const IR::U32& value);
- void SetX(Reg dest_reg, const IR::U64& value);
- void SetS(Vec dest_vec, const IR::U128& value);
- void SetD(Vec dest_vec, const IR::U128& value);
- void SetQ(Vec dest_vec, const IR::U128& value);
- void SetSP(const IR::U64& value);
- void SetFPCR(const IR::U32& value);
- void SetFPSR(const IR::U32& value);
- void SetPC(const IR::U64& value);
-
-private:
- IR::U64 ImmCurrentLocationDescriptor();
-};
-
-} // namespace Dynarmic::A64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A64/a64_location_descriptor.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A64/a64_location_descriptor.h
deleted file mode 100644
index 122bebbc..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A64/a64_location_descriptor.h
+++ /dev/null
@@ -1,115 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <functional>
-#include <string>
-#include <tuple>
-
-#include <fmt/format.h>
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/common/fp/fpcr.h"
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace Dynarmic::A64 {
-
-/**
- * LocationDescriptor describes the location of a basic block.
- * The location is not solely based on the PC because other flags influence the way
- * instructions should be translated.
- */
-class LocationDescriptor {
-public:
- static constexpr size_t pc_bit_count = 56;
- static constexpr u64 pc_mask = mcl::bit::ones<u64>(pc_bit_count);
- static constexpr u32 fpcr_mask = 0x07C8'0000;
- static constexpr size_t fpcr_shift = 37;
- static constexpr size_t single_stepping_bit = 57;
- static_assert((pc_mask & (u64(fpcr_mask) << fpcr_shift) & (u64(1) << single_stepping_bit)) == 0);
-
- LocationDescriptor(u64 pc, FP::FPCR fpcr, bool single_stepping = false)
- : pc(pc & pc_mask), fpcr(fpcr.Value() & fpcr_mask), single_stepping(single_stepping) {}
-
- explicit LocationDescriptor(const IR::LocationDescriptor& o)
- : pc(o.Value() & pc_mask)
- , fpcr((o.Value() >> fpcr_shift) & fpcr_mask)
- , single_stepping(mcl::bit::get_bit<single_stepping_bit>(o.Value())) {}
-
- u64 PC() const { return mcl::bit::sign_extend<pc_bit_count>(pc); }
- FP::FPCR FPCR() const { return fpcr; }
- bool SingleStepping() const { return single_stepping; }
-
- bool operator==(const LocationDescriptor& o) const {
- return std::tie(pc, fpcr, single_stepping) == std::tie(o.pc, o.fpcr, o.single_stepping);
- }
-
- bool operator!=(const LocationDescriptor& o) const {
- return !operator==(o);
- }
-
- LocationDescriptor SetPC(u64 new_pc) const {
- return LocationDescriptor(new_pc, fpcr, single_stepping);
- }
-
- LocationDescriptor AdvancePC(int amount) const {
- return LocationDescriptor(static_cast<u64>(pc + amount), fpcr, single_stepping);
- }
-
- LocationDescriptor SetSingleStepping(bool new_single_stepping) const {
- return LocationDescriptor(pc, fpcr, new_single_stepping);
- }
-
- u64 UniqueHash() const noexcept {
- // This value MUST BE UNIQUE.
- // This calculation has to match up with EmitTerminalPopRSBHint
- const u64 fpcr_u64 = static_cast<u64>(fpcr.Value()) << fpcr_shift;
- const u64 single_stepping_u64 = static_cast<u64>(single_stepping) << single_stepping_bit;
- return pc | fpcr_u64 | single_stepping_u64;
- }
-
- operator IR::LocationDescriptor() const {
- return IR::LocationDescriptor{UniqueHash()};
- }
-
-private:
- u64 pc; ///< Current program counter value.
- FP::FPCR fpcr; ///< Floating point control register.
- bool single_stepping;
-};
-
-/**
- * Provides a string representation of a LocationDescriptor.
- *
- * @param descriptor The descriptor to get a string representation of
- */
-std::string ToString(const LocationDescriptor& descriptor);
-
-} // namespace Dynarmic::A64
-
-namespace std {
-template<>
-struct less<Dynarmic::A64::LocationDescriptor> {
- bool operator()(const Dynarmic::A64::LocationDescriptor& x, const Dynarmic::A64::LocationDescriptor& y) const noexcept {
- return x.UniqueHash() < y.UniqueHash();
- }
-};
-template<>
-struct hash<Dynarmic::A64::LocationDescriptor> {
- size_t operator()(const Dynarmic::A64::LocationDescriptor& x) const noexcept {
- return std::hash<u64>()(x.UniqueHash());
- }
-};
-} // namespace std
-
-template<>
-struct fmt::formatter<Dynarmic::A64::LocationDescriptor> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::A64::LocationDescriptor descriptor, FormatContext& ctx) const {
- return formatter<std::string>::format(Dynarmic::A64::ToString(descriptor), ctx);
- }
-};
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A64/a64_types.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A64/a64_types.h
deleted file mode 100644
index 6bc7a245..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A64/a64_types.h
+++ /dev/null
@@ -1,142 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string>
-
-#include <fmt/format.h>
-#include <mcl/assert.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/ir/cond.h"
-
-namespace Dynarmic::A64 {
-
-using Cond = IR::Cond;
-
-enum class Reg {
- R0,
- R1,
- R2,
- R3,
- R4,
- R5,
- R6,
- R7,
- R8,
- R9,
- R10,
- R11,
- R12,
- R13,
- R14,
- R15,
- R16,
- R17,
- R18,
- R19,
- R20,
- R21,
- R22,
- R23,
- R24,
- R25,
- R26,
- R27,
- R28,
- R29,
- R30,
- R31,
- LR = R30,
- SP = R31,
- ZR = R31,
-};
-
-enum class Vec {
- V0,
- V1,
- V2,
- V3,
- V4,
- V5,
- V6,
- V7,
- V8,
- V9,
- V10,
- V11,
- V12,
- V13,
- V14,
- V15,
- V16,
- V17,
- V18,
- V19,
- V20,
- V21,
- V22,
- V23,
- V24,
- V25,
- V26,
- V27,
- V28,
- V29,
- V30,
- V31,
-};
-
-enum class ShiftType {
- LSL,
- LSR,
- ASR,
- ROR,
-};
-
-const char* CondToString(Cond cond);
-std::string RegToString(Reg reg);
-std::string VecToString(Vec vec);
-
-constexpr size_t RegNumber(Reg reg) {
- return static_cast<size_t>(reg);
-}
-
-constexpr size_t VecNumber(Vec vec) {
- return static_cast<size_t>(vec);
-}
-
-inline Reg operator+(Reg reg, size_t number) {
- const size_t new_reg = RegNumber(reg) + number;
- ASSERT(new_reg <= 31);
-
- return static_cast<Reg>(new_reg);
-}
-
-inline Vec operator+(Vec vec, size_t number) {
- const size_t new_vec = VecNumber(vec) + number;
- ASSERT(new_vec <= 31);
-
- return static_cast<Vec>(new_vec);
-}
-
-} // namespace Dynarmic::A64
-
-template<>
-struct fmt::formatter<Dynarmic::A64::Reg> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::A64::Reg reg, FormatContext& ctx) const {
- return formatter<std::string>::format(Dynarmic::A64::RegToString(reg), ctx);
- }
-};
-
-template<>
-struct fmt::formatter<Dynarmic::A64::Vec> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::A64::Vec vec, FormatContext& ctx) const {
- return formatter<std::string>::format(Dynarmic::A64::VecToString(vec), ctx);
- }
-};
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A64/decoder/a64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A64/decoder/a64.h
deleted file mode 100644
index d6f447e5..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A64/decoder/a64.h
+++ /dev/null
@@ -1,83 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <algorithm>
-#include <functional>
-#include <optional>
-#include <set>
-#include <string>
-#include <vector>
-
-#include <mcl/bit/bit_count.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/decoder/decoder_detail.h"
-#include "dynarmic/frontend/decoder/matcher.h"
-
-namespace Dynarmic::A64 {
-
-template<typename Visitor>
-using Matcher = Decoder::Matcher<Visitor, u32>;
-
-template<typename Visitor>
-using DecodeTable = std::array<std::vector<Matcher<Visitor>>, 0x1000>;
-
-namespace detail {
-inline size_t ToFastLookupIndex(u32 instruction) {
- return ((instruction >> 10) & 0x00F) | ((instruction >> 18) & 0xFF0);
-}
-} // namespace detail
-
-template<typename V>
-DecodeTable<V> GetDecodeTable() {
- std::vector<Matcher<V>> list = {
-#define INST(fn, name, bitstring) DYNARMIC_DECODER_GET_MATCHER(Matcher, fn, name, Decoder::detail::StringToArray<32>(bitstring)),
-#include "./a64.inc"
-#undef INST
- };
-
- std::stable_sort(list.begin(), list.end(), [](const auto& matcher1, const auto& matcher2) {
- // If a matcher has more bits in its mask it is more specific, so it should come first.
- return mcl::bit::count_ones(matcher1.GetMask()) > mcl::bit::count_ones(matcher2.GetMask());
- });
-
- // Exceptions to the above rule of thumb.
- const std::set<std::string> comes_first{
- "MOVI, MVNI, ORR, BIC (vector, immediate)",
- "FMOV (vector, immediate)",
- "Unallocated SIMD modified immediate",
- };
-
- std::stable_partition(list.begin(), list.end(), [&](const auto& matcher) {
- return comes_first.count(matcher.GetName()) > 0;
- });
-
- DecodeTable<V> table{};
- for (size_t i = 0; i < table.size(); ++i) {
- for (auto matcher : list) {
- const auto expect = detail::ToFastLookupIndex(matcher.GetExpected());
- const auto mask = detail::ToFastLookupIndex(matcher.GetMask());
- if ((i & mask) == expect) {
- table[i].push_back(matcher);
- }
- }
- }
- return table;
-}
-
-template<typename V>
-std::optional<std::reference_wrapper<const Matcher<V>>> Decode(u32 instruction) {
- static const auto table = GetDecodeTable<V>();
-
- const auto matches_instruction = [instruction](const auto& matcher) { return matcher.Matches(instruction); };
-
- const auto& subtable = table[detail::ToFastLookupIndex(instruction)];
- auto iter = std::find_if(subtable.begin(), subtable.end(), matches_instruction);
- return iter != subtable.end() ? std::optional<std::reference_wrapper<const Matcher<V>>>(*iter) : std::nullopt;
-}
-
-} // namespace Dynarmic::A64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A64/translate/a64_translate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A64/translate/a64_translate.h
deleted file mode 100644
index 2f62ac6e..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A64/translate/a64_translate.h
+++ /dev/null
@@ -1,59 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-#pragma once
-
-#include <functional>
-#include <optional>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic {
-
-namespace IR {
-class Block;
-} // namespace IR
-
-namespace A64 {
-
-class LocationDescriptor;
-
-using MemoryReadCodeFuncType = std::function<std::optional<u32>(u64 vaddr)>;
-
-struct TranslationOptions {
- /// This changes what IR we emit when we translate an unpredictable instruction.
- /// If this is false, the ExceptionRaised IR instruction is emitted.
- /// If this is true, we define some behaviour for some instructions.
- bool define_unpredictable_behaviour = false;
-
- /// This tells the translator a wall clock will be used, thus allowing it
- /// to avoid writting certain unnecessary code only needed for cycle timers.
- bool wall_clock_cntpct = false;
-
- /// This changes what IR we emit when we translate a hint instruction.
- /// If this is false, we treat the instruction as a NOP.
- /// If this is true, we emit an ExceptionRaised instruction.
- bool hook_hint_instructions = true;
-};
-
-/**
- * This function translates instructions in memory into our intermediate representation.
- * @param descriptor The starting location of the basic block. Includes information like PC, FPCR state, &c.
- * @param memory_read_code The function we should use to read emulated memory.
- * @param options Configures how certain instructions are translated.
- * @return A translated basic block in the intermediate representation.
- */
-IR::Block Translate(LocationDescriptor descriptor, MemoryReadCodeFuncType memory_read_code, TranslationOptions options);
-
-/**
- * This function translates a single provided instruction into our intermediate representation.
- * @param block The block to append the IR for the instruction to.
- * @param descriptor The location of the instruction. Includes information like PC, FPCR state, &c.
- * @param instruction The instruction to translate.
- * @return The translated instruction translated to the intermediate representation.
- */
-bool TranslateSingleInstruction(IR::Block& block, LocationDescriptor descriptor, u32 instruction);
-
-} // namespace A64
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A64/translate/impl/impl.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A64/translate/impl/impl.h
deleted file mode 100644
index 86bc534d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/A64/translate/impl/impl.h
+++ /dev/null
@@ -1,1084 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-
-#include "dynarmic/frontend/A64/a64_ir_emitter.h"
-#include "dynarmic/frontend/A64/a64_location_descriptor.h"
-#include "dynarmic/frontend/A64/a64_types.h"
-#include "dynarmic/frontend/A64/translate/a64_translate.h"
-#include "dynarmic/frontend/imm.h"
-
-namespace Dynarmic::A64 {
-
-struct TranslatorVisitor final {
- using instruction_return_type = bool;
-
- explicit TranslatorVisitor(IR::Block& block, LocationDescriptor descriptor, TranslationOptions options)
- : ir(block, descriptor), options(std::move(options)) {}
-
- A64::IREmitter ir;
- TranslationOptions options;
-
- bool InterpretThisInstruction();
- bool UnpredictableInstruction();
- bool DecodeError();
- bool ReservedValue();
- bool UnallocatedEncoding();
- bool RaiseException(Exception exception);
-
- struct BitMasks {
- u64 wmask, tmask;
- };
-
- static std::optional<BitMasks> DecodeBitMasks(bool immN, Imm<6> imms, Imm<6> immr, bool immediate);
-
- IR::UAny I(size_t bitsize, u64 value);
- IR::UAny X(size_t bitsize, Reg reg);
- void X(size_t bitsize, Reg reg, IR::U32U64 value);
- IR::U32U64 SP(size_t bitsize);
- void SP(size_t bitsize, IR::U32U64 value);
-
- IR::U128 V(size_t bitsize, Vec vec);
- void V(size_t bitsize, Vec vec, IR::U128 value);
-
- IR::UAnyU128 V_scalar(size_t bitsize, Vec vec);
- void V_scalar(size_t bitsize, Vec vec, IR::UAnyU128 value);
-
- IR::U128 Vpart(size_t bitsize, Vec vec, size_t part);
- void Vpart(size_t bitsize, Vec vec, size_t part, IR::U128 value);
-
- IR::UAny Vpart_scalar(size_t bitsize, Vec vec, size_t part);
- void Vpart_scalar(size_t bitsize, Vec vec, size_t part, IR::UAny value);
-
- IR::UAnyU128 Mem(IR::U64 address, size_t size, IR::AccType acctype);
- void Mem(IR::U64 address, size_t size, IR::AccType acctype, IR::UAnyU128 value);
- IR::UAnyU128 ExclusiveMem(IR::U64 address, size_t size, IR::AccType acctype);
- IR::U32 ExclusiveMem(IR::U64 address, size_t size, IR::AccType acctype, IR::UAnyU128 value);
-
- IR::U32U64 SignExtend(IR::UAny value, size_t to_size);
- IR::U32U64 ZeroExtend(IR::UAny value, size_t to_size);
- IR::U32U64 ShiftReg(size_t bitsize, Reg reg, Imm<2> shift, IR::U8 amount);
- IR::U32U64 ExtendReg(size_t bitsize, Reg reg, Imm<3> option, u8 shift);
-
- // Data processing - Immediate - PC relative addressing
- bool ADR(Imm<2> immlo, Imm<19> immhi, Reg Rd);
- bool ADRP(Imm<2> immlo, Imm<19> immhi, Reg Rd);
-
- // Data processing - Immediate - Add/Sub (with tag)
- bool ADDG(Imm<6> offset_imm, Imm<4> tag_offset, Reg Rn, Reg Rd);
- bool SUBG(Imm<6> offset_imm, Imm<4> tag_offset, Reg Rn, Reg Rd);
-
- // Data processing - Immediate - Add/Sub
- bool ADD_imm(bool sf, Imm<2> shift, Imm<12> imm12, Reg Rn, Reg Rd);
- bool ADDS_imm(bool sf, Imm<2> shift, Imm<12> imm12, Reg Rn, Reg Rd);
- bool SUB_imm(bool sf, Imm<2> shift, Imm<12> imm12, Reg Rn, Reg Rd);
- bool SUBS_imm(bool sf, Imm<2> shift, Imm<12> imm12, Reg Rn, Reg Rd);
-
- // Data processing - Immediate - Logical
- bool AND_imm(bool sf, bool N, Imm<6> immr, Imm<6> imms, Reg Rn, Reg Rd);
- bool ORR_imm(bool sf, bool N, Imm<6> immr, Imm<6> imms, Reg Rn, Reg Rd);
- bool EOR_imm(bool sf, bool N, Imm<6> immr, Imm<6> imms, Reg Rn, Reg Rd);
- bool ANDS_imm(bool sf, bool N, Imm<6> immr, Imm<6> imms, Reg Rn, Reg Rd);
-
- // Data processing - Immediate - Move Wide
- bool MOVN(bool sf, Imm<2> hw, Imm<16> imm16, Reg Rd);
- bool MOVZ(bool sf, Imm<2> hw, Imm<16> imm16, Reg Rd);
- bool MOVK(bool sf, Imm<2> hw, Imm<16> imm16, Reg Rd);
-
- // Data processing - Immediate - Bitfield
- bool SBFM(bool sf, bool N, Imm<6> immr, Imm<6> imms, Reg Rn, Reg Rd);
- bool BFM(bool sf, bool N, Imm<6> immr, Imm<6> imms, Reg Rn, Reg Rd);
- bool UBFM(bool sf, bool N, Imm<6> immr, Imm<6> imms, Reg Rn, Reg Rd);
- bool ASR_1(Imm<5> immr, Reg Rn, Reg Rd);
- bool ASR_2(Imm<6> immr, Reg Rn, Reg Rd);
- bool SXTB_1(Reg Rn, Reg Rd);
- bool SXTB_2(Reg Rn, Reg Rd);
- bool SXTH_1(Reg Rn, Reg Rd);
- bool SXTH_2(Reg Rn, Reg Rd);
- bool SXTW(Reg Rn, Reg Rd);
-
- // Data processing - Immediate - Extract
- bool EXTR(bool sf, bool N, Reg Rm, Imm<6> imms, Reg Rn, Reg Rd);
-
- // Conditional branch
- bool B_cond(Imm<19> imm19, Cond cond);
-
- // Exception generation
- bool SVC(Imm<16> imm16);
- bool HVC(Imm<16> imm16);
- bool SMC(Imm<16> imm16);
- bool BRK(Imm<16> imm16);
- bool HLT(Imm<16> imm16);
- bool DCPS1(Imm<16> imm16);
- bool DCPS2(Imm<16> imm16);
- bool DCPS3(Imm<16> imm16);
-
- // System
- bool MSR_imm(Imm<3> op1, Imm<4> CRm, Imm<3> op2);
- bool HINT(Imm<4> CRm, Imm<3> op2);
- bool NOP();
- bool YIELD();
- bool WFE();
- bool WFI();
- bool SEV();
- bool SEVL();
- bool XPAC_1(bool D, Reg Rd);
- bool XPAC_2();
- bool PACIA_1(bool Z, Reg Rn, Reg Rd);
- bool PACIA_2();
- bool PACIB_1(bool Z, Reg Rn, Reg Rd);
- bool PACIB_2();
- bool AUTIA_1(bool Z, Reg Rn, Reg Rd);
- bool AUTIA_2();
- bool AUTIB_1(bool Z, Reg Rn, Reg Rd);
- bool AUTIB_2();
- bool BTI(Imm<2> upper_op2);
- bool ESB();
- bool PSB();
- bool TSB();
- bool CSDB();
- bool CLREX(Imm<4> CRm);
- bool DSB(Imm<4> CRm);
- bool SSBB();
- bool PSSBB();
- bool DMB(Imm<4> CRm);
- bool ISB(Imm<4> CRm);
- bool SYS(Imm<3> op1, Imm<4> CRn, Imm<4> CRm, Imm<3> op2, Reg Rt);
- bool SB();
- bool MSR_reg(Imm<1> o0, Imm<3> op1, Imm<4> CRn, Imm<4> CRm, Imm<3> op2, Reg Rt);
- bool SYSL(Imm<3> op1, Imm<4> CRn, Imm<4> CRm, Imm<3> op2, Reg Rt);
- bool MRS(Imm<1> o0, Imm<3> op1, Imm<4> CRn, Imm<4> CRm, Imm<3> op2, Reg Rt);
-
- // System - Flag manipulation instructions
- bool CFINV();
- bool RMIF(Imm<6> lsb, Reg Rn, Imm<4> mask);
- bool SETF8(Reg Rn);
- bool SETF16(Reg Rn);
-
- // System - Flag format instructions
- bool XAFlag();
- bool AXFlag();
-
- // SYS: Data Cache
- bool DC_IVAC(Reg Rt);
- bool DC_ISW(Reg Rt);
- bool DC_CSW(Reg Rt);
- bool DC_CISW(Reg Rt);
- bool DC_ZVA(Reg Rt);
- bool DC_CVAC(Reg Rt);
- bool DC_CVAU(Reg Rt);
- bool DC_CVAP(Reg Rt);
- bool DC_CIVAC(Reg Rt);
-
- // SYS: Instruction Cache
- bool IC_IALLU();
- bool IC_IALLUIS();
- bool IC_IVAU(Reg Rt);
-
- // Unconditional branch (Register)
- bool BR(Reg Rn);
- bool BRA(bool Z, bool M, Reg Rn, Reg Rm);
- bool BLR(Reg Rn);
- bool BLRA(bool Z, bool M, Reg Rn, Reg Rm);
- bool RET(Reg Rn);
- bool RETA(bool M);
- bool ERET();
- bool ERETA(bool M);
- bool DRPS();
-
- // Unconditional branch (immediate)
- bool B_uncond(Imm<26> imm26);
- bool BL(Imm<26> imm26);
-
- // Compare and branch (immediate)
- bool CBZ(bool sf, Imm<19> imm19, Reg Rt);
- bool CBNZ(bool sf, Imm<19> imm19, Reg Rt);
- bool TBZ(Imm<1> b5, Imm<5> b40, Imm<14> imm14, Reg Rt);
- bool TBNZ(Imm<1> b5, Imm<5> b40, Imm<14> imm14, Reg Rt);
-
- // Loads and stores - Advanced SIMD Load/Store multiple structures
- bool STx_mult_1(bool Q, Imm<4> opcode, Imm<2> size, Reg Rn, Vec Vt);
- bool STx_mult_2(bool Q, Reg Rm, Imm<4> opcode, Imm<2> size, Reg Rn, Vec Vt);
- bool LDx_mult_1(bool Q, Imm<4> opcode, Imm<2> size, Reg Rn, Vec Vt);
- bool LDx_mult_2(bool Q, Reg Rm, Imm<4> opcode, Imm<2> size, Reg Rn, Vec Vt);
-
- // Loads and stores - Advanced SIMD Load/Store single structures
- bool ST1_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool ST1_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool ST3_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool ST3_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool ST2_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool ST2_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool ST4_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool ST4_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD1_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD1_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD3_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD3_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD1R_1(bool Q, Imm<2> size, Reg Rn, Vec Vt);
- bool LD1R_2(bool Q, Reg Rm, Imm<2> size, Reg Rn, Vec Vt);
- bool LD3R_1(bool Q, Imm<2> size, Reg Rn, Vec Vt);
- bool LD3R_2(bool Q, Reg Rm, Imm<2> size, Reg Rn, Vec Vt);
- bool LD2_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD2_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD4_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD4_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD2R_1(bool Q, Imm<2> size, Reg Rn, Vec Vt);
- bool LD2R_2(bool Q, Reg Rm, Imm<2> size, Reg Rn, Vec Vt);
- bool LD4R_1(bool Q, Imm<2> size, Reg Rn, Vec Vt);
- bool LD4R_2(bool Q, Reg Rm, Imm<2> size, Reg Rn, Vec Vt);
-
- // Loads and stores - Load/Store Exclusive
- bool STXR(Imm<2> size, Reg Rs, Reg Rn, Reg Rt);
- bool STLXR(Imm<2> size, Reg Rs, Reg Rn, Reg Rt);
- bool STXP(Imm<1> size, Reg Rs, Reg Rt2, Reg Rn, Reg Rt);
- bool STLXP(Imm<1> size, Reg Rs, Reg Rt2, Reg Rn, Reg Rt);
- bool LDXR(Imm<2> size, Reg Rn, Reg Rt);
- bool LDAXR(Imm<2> size, Reg Rn, Reg Rt);
- bool LDXP(Imm<1> size, Reg Rt2, Reg Rn, Reg Rt);
- bool LDAXP(Imm<1> size, Reg Rt2, Reg Rn, Reg Rt);
- bool STLLR(Imm<2> size, Reg Rn, Reg Rt);
- bool STLR(Imm<2> size, Reg Rn, Reg Rt);
- bool LDLAR(Imm<2> size, Reg Rn, Reg Rt);
- bool LDAR(Imm<2> size, Reg Rn, Reg Rt);
- bool CASP(bool sz, bool L, Reg Rs, bool o0, Reg Rn, Reg Rt);
- bool CASB(bool L, Reg Rs, bool o0, Reg Rn, Reg Rt);
- bool CASH(bool L, Reg Rs, bool o0, Reg Rn, Reg Rt);
- bool CAS(bool sz, bool L, Reg Rs, bool o0, Reg Rn, Reg Rt);
-
- // Loads and stores - Load register (literal)
- bool LDR_lit_gen(bool opc_0, Imm<19> imm19, Reg Rt);
- bool LDR_lit_fpsimd(Imm<2> opc, Imm<19> imm19, Vec Vt);
- bool LDRSW_lit(Imm<19> imm19, Reg Rt);
- bool PRFM_lit(Imm<19> imm19, Imm<5> prfop);
-
- // Loads and stores - Load/Store no-allocate pair
- bool STNP_LDNP_gen(Imm<1> upper_opc, Imm<1> L, Imm<7> imm7, Reg Rt2, Reg Rn, Reg Rt);
- bool STNP_LDNP_fpsimd(Imm<2> opc, Imm<1> L, Imm<7> imm7, Vec Vt2, Reg Rn, Vec Vt);
-
- // Loads and stores - Load/Store register pair
- bool STP_LDP_gen(Imm<2> opc, bool not_postindex, bool wback, Imm<1> L, Imm<7> imm7, Reg Rt2, Reg Rn, Reg Rt);
- bool STP_LDP_fpsimd(Imm<2> opc, bool not_postindex, bool wback, Imm<1> L, Imm<7> imm7, Vec Vt2, Reg Rn, Vec Vt);
- bool STGP_1(Imm<7> offset_imm, Reg Rt2, Reg Rn, Reg Rt);
- bool STGP_2(Imm<7> offset_imm, Reg Rt2, Reg Rn, Reg Rt);
- bool STGP_3(Imm<7> offset_imm, Reg Rt2, Reg Rn, Reg Rt);
-
- // Loads and stores - Load/Store register (immediate)
- bool STRx_LDRx_imm_1(Imm<2> size, Imm<2> opc, Imm<9> imm9, bool not_postindex, Reg Rn, Reg Rt);
- bool STRx_LDRx_imm_2(Imm<2> size, Imm<2> opc, Imm<12> imm12, Reg Rn, Reg Rt);
- bool STURx_LDURx(Imm<2> size, Imm<2> opc, Imm<9> imm9, Reg Rn, Reg Rt);
- bool PRFM_imm(Imm<12> imm12, Reg Rn, Reg Rt);
- bool PRFM_unscaled_imm(Imm<9> imm9, Reg Rn, Reg Rt);
- bool STR_imm_fpsimd_1(Imm<2> size, Imm<1> opc_1, Imm<9> imm9, bool not_postindex, Reg Rn, Vec Vt);
- bool STR_imm_fpsimd_2(Imm<2> size, Imm<1> opc_1, Imm<12> imm12, Reg Rn, Vec Vt);
- bool LDR_imm_fpsimd_1(Imm<2> size, Imm<1> opc_1, Imm<9> imm9, bool not_postindex, Reg Rn, Vec Vt);
- bool LDR_imm_fpsimd_2(Imm<2> size, Imm<1> opc_1, Imm<12> imm12, Reg Rn, Vec Vt);
- bool STUR_fpsimd(Imm<2> size, Imm<1> opc_1, Imm<9> imm9, Reg Rn, Vec Vt);
- bool LDUR_fpsimd(Imm<2> size, Imm<1> opc_1, Imm<9> imm9, Reg Rn, Vec Vt);
-
- // Loads and stores - Load/Store register (unprivileged)
- bool STTRB(Imm<9> imm9, Reg Rn, Reg Rt);
- bool LDTRB(Imm<9> imm9, Reg Rn, Reg Rt);
- bool LDTRSB(Imm<2> opc, Imm<9> imm9, Reg Rn, Reg Rt);
- bool STTRH(Imm<9> imm9, Reg Rn, Reg Rt);
- bool LDTRH(Imm<9> imm9, Reg Rn, Reg Rt);
- bool LDTRSH(Imm<2> opc, Imm<9> imm9, Reg Rn, Reg Rt);
- bool STTR(Imm<2> size, Imm<9> imm9, Reg Rn, Reg Rt);
- bool LDTR(Imm<2> size, Imm<9> imm9, Reg Rn, Reg Rt);
- bool LDTRSW(Imm<9> imm9, Reg Rn, Reg Rt);
-
- // Loads and stores - Atomic memory options
- bool LDADDB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDCLRB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDEORB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSETB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSMAXB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSMINB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDUMAXB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDUMINB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool SWPB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDAPRB(Reg Rn, Reg Rt);
- bool LDADDH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDCLRH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDEORH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSETH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSMAXH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSMINH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDUMAXH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDUMINH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool SWPH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDAPRH(Reg Rn, Reg Rt);
- bool LDADD(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDCLR(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDEOR(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSET(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSMAX(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSMIN(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDUMAX(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDUMIN(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool SWP(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDAPR(Reg Rn, Reg Rt);
-
- // Loads and stores - Load/Store register (register offset)
- bool STRx_reg(Imm<2> size, Imm<1> opc_1, Reg Rm, Imm<3> option, bool S, Reg Rn, Reg Rt);
- bool LDRx_reg(Imm<2> size, Imm<1> opc_1, Reg Rm, Imm<3> option, bool S, Reg Rn, Reg Rt);
- bool STR_reg_fpsimd(Imm<2> size, Imm<1> opc_1, Reg Rm, Imm<3> option, bool S, Reg Rn, Vec Vt);
- bool LDR_reg_fpsimd(Imm<2> size, Imm<1> opc_1, Reg Rm, Imm<3> option, bool S, Reg Rn, Vec Vt);
-
- // Loads and stores - Load/Store memory tags
- bool STG_1(Imm<9> imm9, Reg Rn);
- bool STG_2(Imm<9> imm9, Reg Rn);
- bool STG_3(Imm<9> imm9, Reg Rn);
- bool LDG(Imm<9> offset_imm, Reg Rn, Reg Rt);
- bool STZG_1(Imm<9> offset_imm, Reg Rn);
- bool STZG_2(Imm<9> offset_imm, Reg Rn);
- bool STZG_3(Imm<9> offset_imm, Reg Rn);
- bool ST2G_1(Imm<9> offset_imm, Reg Rn);
- bool ST2G_2(Imm<9> offset_imm, Reg Rn);
- bool ST2G_3(Imm<9> offset_imm, Reg Rn);
- bool STGV(Reg Rn, Reg Rt);
- bool STZ2G_1(Imm<9> offset_imm, Reg Rn);
- bool STZ2G_2(Imm<9> offset_imm, Reg Rn);
- bool STZ2G_3(Imm<9> offset_imm, Reg Rn);
- bool LDGV(Reg Rn, Reg Rt);
-
- // Loads and stores - Load/Store register (pointer authentication)
- bool LDRA(bool M, bool S, Imm<9> imm9, bool W, Reg Rn, Reg Rt);
-
- // Data Processing - Register - 2 source
- bool UDIV(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool SDIV(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool LSLV(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool LSRV(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool ASRV(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool RORV(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool CRC32(bool sf, Reg Rm, Imm<2> sz, Reg Rn, Reg Rd);
- bool CRC32C(bool sf, Reg Rm, Imm<2> sz, Reg Rn, Reg Rd);
- bool PACGA(Reg Rm, Reg Rn, Reg Rd);
- bool SUBP(Reg Rm, Reg Rn, Reg Rd);
- bool IRG(Reg Rm, Reg Rn, Reg Rd);
- bool GMI(Reg Rm, Reg Rn, Reg Rd);
- bool SUBPS(Reg Rm, Reg Rn, Reg Rd);
-
- // Data Processing - Register - 1 source
- bool RBIT_int(bool sf, Reg Rn, Reg Rd);
- bool REV16_int(bool sf, Reg Rn, Reg Rd);
- bool REV(bool sf, bool opc_0, Reg Rn, Reg Rd);
- bool CLZ_int(bool sf, Reg Rn, Reg Rd);
- bool CLS_int(bool sf, Reg Rn, Reg Rd);
- bool REV32_int(Reg Rn, Reg Rd);
- bool PACDA(bool Z, Reg Rn, Reg Rd);
- bool PACDB(bool Z, Reg Rn, Reg Rd);
- bool AUTDA(bool Z, Reg Rn, Reg Rd);
- bool AUTDB(bool Z, Reg Rn, Reg Rd);
-
- // Data Processing - Register - Logical (shifted register)
- bool AND_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool BIC_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool ORR_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool ORN_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool EOR_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool EON(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool ANDS_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool BICS(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
-
- // Data Processing - Register - Add/Sub (shifted register)
- bool ADD_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool ADDS_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool SUB_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool SUBS_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
-
- // Data Processing - Register - Add/Sub (shifted register)
- bool ADD_ext(bool sf, Reg Rm, Imm<3> option, Imm<3> imm3, Reg Rn, Reg Rd);
- bool ADDS_ext(bool sf, Reg Rm, Imm<3> option, Imm<3> imm3, Reg Rn, Reg Rd);
- bool SUB_ext(bool sf, Reg Rm, Imm<3> option, Imm<3> imm3, Reg Rn, Reg Rd);
- bool SUBS_ext(bool sf, Reg Rm, Imm<3> option, Imm<3> imm3, Reg Rn, Reg Rd);
-
- // Data Processing - Register - Add/Sub (with carry)
- bool ADC(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool ADCS(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool SBC(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool SBCS(bool sf, Reg Rm, Reg Rn, Reg Rd);
-
- // Data Processing - Register - Conditional compare
- bool CCMN_reg(bool sf, Reg Rm, Cond cond, Reg Rn, Imm<4> nzcv);
- bool CCMP_reg(bool sf, Reg Rm, Cond cond, Reg Rn, Imm<4> nzcv);
- bool CCMN_imm(bool sf, Imm<5> imm5, Cond cond, Reg Rn, Imm<4> nzcv);
- bool CCMP_imm(bool sf, Imm<5> imm5, Cond cond, Reg Rn, Imm<4> nzcv);
-
- // Data Processing - Register - Conditional select
- bool CSEL(bool sf, Reg Rm, Cond cond, Reg Rn, Reg Rd);
- bool CSINC(bool sf, Reg Rm, Cond cond, Reg Rn, Reg Rd);
- bool CSINV(bool sf, Reg Rm, Cond cond, Reg Rn, Reg Rd);
- bool CSNEG(bool sf, Reg Rm, Cond cond, Reg Rn, Reg Rd);
-
- // Data Processing - Register - 3 source
- bool MADD(bool sf, Reg Rm, Reg Ra, Reg Rn, Reg Rd);
- bool MSUB(bool sf, Reg Rm, Reg Ra, Reg Rn, Reg Rd);
- bool SMADDL(Reg Rm, Reg Ra, Reg Rn, Reg Rd);
- bool SMSUBL(Reg Rm, Reg Ra, Reg Rn, Reg Rd);
- bool SMULH(Reg Rm, Reg Rn, Reg Rd);
- bool UMADDL(Reg Rm, Reg Ra, Reg Rn, Reg Rd);
- bool UMSUBL(Reg Rm, Reg Ra, Reg Rn, Reg Rd);
- bool UMULH(Reg Rm, Reg Rn, Reg Rd);
-
- // Data Processing - FP and SIMD - AES
- bool AESE(Vec Vn, Vec Vd);
- bool AESD(Vec Vn, Vec Vd);
- bool AESMC(Vec Vn, Vec Vd);
- bool AESIMC(Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SHA
- bool SHA1C(Vec Vm, Vec Vn, Vec Vd);
- bool SHA1P(Vec Vm, Vec Vn, Vec Vd);
- bool SHA1M(Vec Vm, Vec Vn, Vec Vd);
- bool SHA1SU0(Vec Vm, Vec Vn, Vec Vd);
- bool SHA256H(Vec Vm, Vec Vn, Vec Vd);
- bool SHA256H2(Vec Vm, Vec Vn, Vec Vd);
- bool SHA256SU1(Vec Vm, Vec Vn, Vec Vd);
- bool SHA1H(Vec Vn, Vec Vd);
- bool SHA1SU1(Vec Vn, Vec Vd);
- bool SHA256SU0(Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Scalar copy
- bool DUP_elt_1(Imm<5> imm5, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Scalar three
- bool FMULX_vec_1(Vec Vm, Vec Vn, Vec Vd);
- bool FMULX_vec_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FCMEQ_reg_1(Vec Vm, Vec Vn, Vec Vd);
- bool FCMEQ_reg_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FRECPS_1(Vec Vm, Vec Vn, Vec Vd);
- bool FRECPS_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FRSQRTS_1(Vec Vm, Vec Vn, Vec Vd);
- bool FRSQRTS_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FCMGE_reg_1(Vec Vm, Vec Vn, Vec Vd);
- bool FCMGE_reg_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FACGE_1(Vec Vm, Vec Vn, Vec Vd);
- bool FACGE_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FABD_1(Vec Vm, Vec Vn, Vec Vd);
- bool FABD_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FCMGT_reg_1(Vec Vm, Vec Vn, Vec Vd);
- bool FCMGT_reg_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FACGT_1(Vec Vm, Vec Vn, Vec Vd);
- bool FACGT_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Two register misc FP16
- bool FCVTNS_1(Vec Vn, Vec Vd);
- bool FCVTMS_1(Vec Vn, Vec Vd);
- bool FCVTAS_1(Vec Vn, Vec Vd);
- bool SCVTF_int_1(Vec Vn, Vec Vd);
- bool FCMGT_zero_1(Vec Vn, Vec Vd);
- bool FCMEQ_zero_1(Vec Vn, Vec Vd);
- bool FCMLT_1(Vec Vn, Vec Vd);
- bool FCVTPS_1(Vec Vn, Vec Vd);
- bool FCVTZS_int_1(Vec Vn, Vec Vd);
- bool FRECPE_1(Vec Vn, Vec Vd);
- bool FRECPX_1(Vec Vn, Vec Vd);
- bool FCVTNU_1(Vec Vn, Vec Vd);
- bool FCVTMU_1(Vec Vn, Vec Vd);
- bool FCVTAU_1(Vec Vn, Vec Vd);
- bool UCVTF_int_1(Vec Vn, Vec Vd);
- bool FCMGE_zero_1(Vec Vn, Vec Vd);
- bool FCMLE_1(Vec Vn, Vec Vd);
- bool FCVTPU_1(Vec Vn, Vec Vd);
- bool FCVTZU_int_1(Vec Vn, Vec Vd);
- bool FRSQRTE_1(Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Two register misc
- bool FCVTNS_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTMS_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTAS_2(bool sz, Vec Vn, Vec Vd);
- bool SCVTF_int_2(bool sz, Vec Vn, Vec Vd);
- bool FCMGT_zero_2(bool sz, Vec Vn, Vec Vd);
- bool FCMEQ_zero_2(bool sz, Vec Vn, Vec Vd);
- bool FCMLT_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTPS_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTZS_int_2(bool sz, Vec Vn, Vec Vd);
- bool FRECPE_2(bool sz, Vec Vn, Vec Vd);
- bool FRECPX_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTNU_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTMU_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTAU_2(bool sz, Vec Vn, Vec Vd);
- bool UCVTF_int_2(bool sz, Vec Vn, Vec Vd);
- bool FCMGE_zero_2(bool sz, Vec Vn, Vec Vd);
- bool FCMLE_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTPU_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTZU_int_2(bool sz, Vec Vn, Vec Vd);
- bool FRSQRTE_2(bool sz, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Scalar two register misc FP16
- bool FCVTNS_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTMS_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTAS_3(bool Q, Vec Vn, Vec Vd);
- bool SCVTF_int_3(bool Q, Vec Vn, Vec Vd);
- bool FCMGT_zero_3(bool Q, Vec Vn, Vec Vd);
- bool FCMEQ_zero_3(bool Q, Vec Vn, Vec Vd);
- bool FCMLT_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTPS_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTZS_int_3(bool Q, Vec Vn, Vec Vd);
- bool FRECPE_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTNU_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTMU_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTAU_3(bool Q, Vec Vn, Vec Vd);
- bool UCVTF_int_3(bool Q, Vec Vn, Vec Vd);
- bool FCMGE_zero_3(bool Q, Vec Vn, Vec Vd);
- bool FCMLE_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTPU_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTZU_int_3(bool Q, Vec Vn, Vec Vd);
- bool FRSQRTE_3(bool Q, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Scalar two register misc
- bool FCVTNS_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTMS_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTAS_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool SCVTF_int_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCMGT_zero_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCMEQ_zero_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCMLT_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTPS_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTZS_int_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRECPE_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTNU_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTMU_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTAU_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool UCVTF_int_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCMGE_zero_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCMLE_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTPU_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTZU_int_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRSQRTE_4(bool Q, bool sz, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Scalar three same extra
- bool SQRDMLAH_vec_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQRDMLAH_vec_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQRDMLSH_vec_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQRDMLSH_vec_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Scalar two-register misc
- bool SUQADD_1(Imm<2> size, Vec Vn, Vec Vd);
- bool SQABS_1(Imm<2> size, Vec Vn, Vec Vd);
- bool CMGT_zero_1(Imm<2> size, Vec Vn, Vec Vd);
- bool CMEQ_zero_1(Imm<2> size, Vec Vn, Vec Vd);
- bool CMLT_1(Imm<2> size, Vec Vn, Vec Vd);
- bool ABS_1(Imm<2> size, Vec Vn, Vec Vd);
- bool SQXTN_1(Imm<2> size, Vec Vn, Vec Vd);
- bool USQADD_1(Imm<2> size, Vec Vn, Vec Vd);
- bool SQNEG_1(Imm<2> size, Vec Vn, Vec Vd);
- bool CMGE_zero_1(Imm<2> size, Vec Vn, Vec Vd);
- bool CMLE_1(Imm<2> size, Vec Vn, Vec Vd);
- bool NEG_1(Imm<2> size, Vec Vn, Vec Vd);
- bool SQXTUN_1(Imm<2> size, Vec Vn, Vec Vd);
- bool UQXTN_1(Imm<2> size, Vec Vn, Vec Vd);
- bool FCVTXN_1(bool sz, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Scalar pairwise
- bool ADDP_pair(Imm<2> size, Vec Vn, Vec Vd);
- bool FMAXNMP_pair_1(Vec Vn, Vec Vd);
- bool FMAXNMP_pair_2(bool sz, Vec Vn, Vec Vd);
- bool FADDP_pair_1(Vec Vn, Vec Vd);
- bool FADDP_pair_2(bool sz, Vec Vn, Vec Vd);
- bool FMAXP_pair_1(Vec Vn, Vec Vd);
- bool FMAXP_pair_2(bool sz, Vec Vn, Vec Vd);
- bool FMINNMP_pair_1(Vec Vn, Vec Vd);
- bool FMINNMP_pair_2(bool sz, Vec Vn, Vec Vd);
- bool FMINP_pair_1(Vec Vn, Vec Vd);
- bool FMINP_pair_2(bool sz, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Scalar three different
- bool SQDMLAL_vec_1(Imm<2> size, Reg Rm, Reg Rn, Vec Vd);
- bool SQDMLSL_vec_1(Imm<2> size, Reg Rm, Reg Rn, Vec Vd);
- bool SQDMULL_vec_1(Imm<2> size, Reg Rm, Reg Rn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Scalar three same
- bool SQADD_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQSUB_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMGT_reg_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMGE_reg_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SSHL_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQSHL_reg_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SRSHL_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQRSHL_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool ADD_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMTST_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQDMULH_vec_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQADD_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQSUB_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMHI_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMHS_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool USHL_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQSHL_reg_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool URSHL_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQRSHL_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SUB_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMEQ_reg_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQRDMULH_vec_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Scalar shift by immediate
- bool SSHR_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SSRA_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SRSHR_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SRSRA_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SHL_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHL_imm_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHRN_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQRSHRN_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SCVTF_fix_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool FCVTZS_fix_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool USHR_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool USRA_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool URSHR_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool URSRA_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SRI_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SLI_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHLU_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UQSHL_imm_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHRUN_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQRSHRUN_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UQSHRN_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UQRSHRN_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UCVTF_fix_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool FCVTZU_fix_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Scalar x indexed element
- bool SQDMLAL_elt_1(Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQDMLSL_elt_1(Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQDMULL_elt_1(Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQDMULH_elt_1(Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQRDMULH_elt_1(Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLA_elt_1(Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLA_elt_2(bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLS_elt_1(Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLS_elt_2(bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMUL_elt_1(Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMUL_elt_2(bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQRDMLAH_elt_1(Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQRDMLSH_elt_1(Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMULX_elt_1(Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMULX_elt_2(bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Table Lookup
- bool TBL(bool Q, Vec Vm, Imm<2> len, size_t Vn, Vec Vd);
- bool TBX(bool Q, Vec Vm, Imm<2> len, size_t Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Permute
- bool UZP1(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool TRN1(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool ZIP1(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UZP2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool TRN2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool ZIP2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Extract
- bool EXT(bool Q, Vec Vm, Imm<4> imm4, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Copy
- bool DUP_elt_2(bool Q, Imm<5> imm5, Vec Vn, Vec Vd);
- bool DUP_gen(bool Q, Imm<5> imm5, Reg Rn, Vec Vd);
- bool SMOV(bool Q, Imm<5> imm5, Vec Vn, Reg Rd);
- bool UMOV(bool Q, Imm<5> imm5, Vec Vn, Reg Rd);
- bool INS_gen(Imm<5> imm5, Reg Rn, Vec Vd);
- bool INS_elt(Imm<5> imm5, Imm<4> imm4, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Three same
- bool FMULX_vec_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FCMEQ_reg_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FRECPS_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FRSQRTS_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FCMGE_reg_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FACGE_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FABD_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FCMGT_reg_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FACGT_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMAXNM_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMLA_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FADD_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMAX_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMINNM_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMLS_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FSUB_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMIN_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMAXNMP_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FADDP_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMUL_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMAXP_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FDIV_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMINNMP_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMINP_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Three same extra
- bool SDOT_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UDOT_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool FCMLA_vec(bool Q, Imm<2> size, Vec Vm, Imm<2> rot, Vec Vn, Vec Vd);
- bool FCADD_vec(bool Q, Imm<2> size, Vec Vm, Imm<1> rot, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Two register misc
- bool REV64_asimd(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool REV16_asimd(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SADDLP(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CLS_asimd(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CNT(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SADALP(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool XTN(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool FCVTN(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTL(bool Q, bool sz, Vec Vn, Vec Vd);
- bool URECPE(bool Q, bool sz, Vec Vn, Vec Vd);
- bool REV32_asimd(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool UADDLP(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CLZ_asimd(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool UADALP(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SHLL(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool NOT(bool Q, Vec Vn, Vec Vd);
- bool RBIT_asimd(bool Q, Vec Vn, Vec Vd);
- bool URSQRTE(bool Q, bool sz, Vec Vn, Vec Vd);
- bool SUQADD_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SQABS_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CMGT_zero_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CMEQ_zero_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CMLT_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool ABS_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SQXTN_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool USQADD_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SQNEG_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CMGE_zero_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CMLE_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool NEG_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SQXTUN_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool UQXTN_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool FCVTXN_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINTN_1(bool Q, Vec Vn, Vec Vd);
- bool FRINTN_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINTM_1(bool Q, Vec Vn, Vec Vd);
- bool FRINTM_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FABS_1(bool Q, Vec Vn, Vec Vd);
- bool FABS_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINTP_1(bool Q, Vec Vn, Vec Vd);
- bool FRINTP_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINTZ_1(bool Q, Vec Vn, Vec Vd);
- bool FRINTZ_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINTA_1(bool Q, Vec Vn, Vec Vd);
- bool FRINTA_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINTX_1(bool Q, Vec Vn, Vec Vd);
- bool FRINTX_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FNEG_1(bool Q, Vec Vn, Vec Vd);
- bool FNEG_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINTI_1(bool Q, Vec Vn, Vec Vd);
- bool FRINTI_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FSQRT_1(bool Q, Vec Vn, Vec Vd);
- bool FSQRT_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINT32X_1(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINT64X_1(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINT32Z_1(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINT64Z_1(bool Q, bool sz, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD across lanes
- bool SADDLV(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SMAXV(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SMINV(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool ADDV(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool FMAXNMV_1(bool Q, Vec Vn, Vec Vd);
- bool FMAXNMV_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FMAXV_1(bool Q, Vec Vn, Vec Vd);
- bool FMAXV_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FMINNMV_1(bool Q, Vec Vn, Vec Vd);
- bool FMINNMV_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FMINV_1(bool Q, Vec Vn, Vec Vd);
- bool FMINV_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool UADDLV(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool UMAXV(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool UMINV(bool Q, Imm<2> size, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD three different
- bool SADDL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SADDW(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SSUBL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SSUBW(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool ADDHN(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SABAL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SUBHN(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SABDL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SMLAL_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SMLSL_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SMULL_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool PMULL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UADDL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UADDW(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool USUBL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool USUBW(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool RADDHN(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UABAL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool RSUBHN(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UABDL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UMLAL_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UMLSL_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UMULL_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQDMLAL_vec_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQDMLSL_vec_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQDMULL_vec_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD three same
- bool SHADD(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SRHADD(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SHSUB(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SMAX(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SMIN(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SABD(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SABA(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool MLA_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool MUL_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SMAXP(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SMINP(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool ADDP_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool FMLAL_vec_1(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMLAL_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool AND_asimd(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool BIC_asimd_reg(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMLSL_vec_1(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMLSL_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool ORR_asimd_reg(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool ORN_asimd(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool UHADD(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool URHADD(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UHSUB(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UMAX(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UMIN(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UABD(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UABA(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool MLS_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool PMUL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UMAXP(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UMINP(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool EOR_asimd(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool BSL(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool BIT(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool BIF(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMAXNM_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMLA_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FADD_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMAX_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMINNM_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMLS_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FSUB_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMIN_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMAXNMP_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FADDP_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMUL_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMAXP_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FDIV_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMINNMP_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMINP_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMULX_vec_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FCMEQ_reg_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FRECPS_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FRSQRTS_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FCMGE_reg_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FACGE_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FABD_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FCMGT_reg_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FACGT_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool SQADD_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQSUB_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMGT_reg_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMGE_reg_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SSHL_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQSHL_reg_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SRSHL_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQRSHL_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool ADD_vector(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMTST_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQDMULH_vec_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQADD_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQSUB_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMHI_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMHS_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool USHL_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQSHL_reg_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool URSHL_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQRSHL_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SUB_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMEQ_reg_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQRDMULH_vec_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD modified immediate
- bool MOVI(bool Q, bool op, Imm<1> a, Imm<1> b, Imm<1> c, Imm<4> cmode, Imm<1> d, Imm<1> e, Imm<1> f, Imm<1> g, Imm<1> h, Vec Vd);
- bool FMOV_2(bool Q, bool op, Imm<1> a, Imm<1> b, Imm<1> c, Imm<1> d, Imm<1> e, Imm<1> f, Imm<1> g, Imm<1> h, Vec Vd);
- bool FMOV_3(bool Q, Imm<1> a, Imm<1> b, Imm<1> c, Imm<1> d, Imm<1> e, Imm<1> f, Imm<1> g, Imm<1> h, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Shift by immediate
- bool SSHR_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SSRA_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SRSHR_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SRSRA_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SHL_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHL_imm_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SHRN(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool RSHRN(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHRN_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQRSHRN_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SSHLL(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SCVTF_fix_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool FCVTZS_fix_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool USHR_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool USRA_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool URSHR_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool URSRA_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SRI_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SLI_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHLU_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UQSHL_imm_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHRUN_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQRSHRUN_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UQSHRN_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UQRSHRN_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool USHLL(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UCVTF_fix_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool FCVTZU_fix_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD vector x indexed element
- bool SMLAL_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQDMLAL_elt_2(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SMLSL_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQDMLSL_elt_2(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool MUL_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SMULL_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vm, Imm<1> H, Vec Vn, Vec Vd);
- bool SQDMULL_elt_2(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQDMULH_elt_2(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQRDMULH_elt_2(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SDOT_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLA_elt_3(bool Q, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLA_elt_4(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLS_elt_3(bool Q, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLS_elt_4(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMUL_elt_3(bool Q, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMUL_elt_4(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLAL_elt_1(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLAL_elt_2(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLSL_elt_1(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLSL_elt_2(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool MLA_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool UMLAL_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool MLS_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool UMLSL_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool UMULL_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQRDMLAH_elt_2(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool UDOT_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQRDMLSH_elt_2(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMULX_elt_3(bool Q, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMULX_elt_4(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FCMLA_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<2> rot, Imm<1> H, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Cryptographic three register
- bool SM3TT1A(Vec Vm, Imm<2> imm2, Vec Vn, Vec Vd);
- bool SM3TT1B(Vec Vm, Imm<2> imm2, Vec Vn, Vec Vd);
- bool SM3TT2A(Vec Vm, Imm<2> imm2, Vec Vn, Vec Vd);
- bool SM3TT2B(Vec Vm, Imm<2> imm2, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SHA512 three register
- bool SHA512H(Vec Vm, Vec Vn, Vec Vd);
- bool SHA512H2(Vec Vm, Vec Vn, Vec Vd);
- bool SHA512SU1(Vec Vm, Vec Vn, Vec Vd);
- bool RAX1(Vec Vm, Vec Vn, Vec Vd);
- bool XAR(Vec Vm, Imm<6> imm6, Vec Vn, Vec Vd);
- bool SM3PARTW1(Vec Vm, Vec Vn, Vec Vd);
- bool SM3PARTW2(Vec Vm, Vec Vn, Vec Vd);
- bool SM4EKEY(Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Cryptographic four register
- bool EOR3(Vec Vm, Vec Va, Vec Vn, Vec Vd);
- bool BCAX(Vec Vm, Vec Va, Vec Vn, Vec Vd);
- bool SM3SS1(Vec Vm, Vec Va, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SHA512 two register
- bool SHA512SU0(Vec Vn, Vec Vd);
- bool SM4E(Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Conversion between floating point and fixed point
- bool SCVTF_float_fix(bool sf, Imm<2> type, Imm<6> scale, Reg Rn, Vec Vd);
- bool UCVTF_float_fix(bool sf, Imm<2> type, Imm<6> scale, Reg Rn, Vec Vd);
- bool FCVTZS_float_fix(bool sf, Imm<2> type, Imm<6> scale, Vec Vn, Reg Rd);
- bool FCVTZU_float_fix(bool sf, Imm<2> type, Imm<6> scale, Vec Vn, Reg Rd);
-
- // Data Processing - FP and SIMD - Conversion between floating point and integer
- bool FCVTNS_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FCVTNU_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool SCVTF_float_int(bool sf, Imm<2> type, Reg Rn, Vec Vd);
- bool UCVTF_float_int(bool sf, Imm<2> type, Reg Rn, Vec Vd);
- bool FCVTAS_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FCVTAU_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FMOV_float_gen(bool sf, Imm<2> type, Imm<1> rmode_0, Imm<1> opc_0, size_t n, size_t d);
- bool FCVTPS_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FCVTPU_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FCVTMS_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FCVTMU_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FCVTZS_float_int(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FCVTZU_float_int(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FJCVTZS(Vec Vn, Reg Rd);
-
- // Data Processing - FP and SIMD - Floating point data processing
- bool FMOV_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FABS_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FNEG_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FSQRT_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FCVT_float(Imm<2> type, Imm<2> opc, Vec Vn, Vec Vd);
- bool FRINTN_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINTP_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINTM_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINTZ_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINTA_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINTX_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINTI_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINT32X_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINT64X_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINT32Z_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINT64Z_float(Imm<2> type, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Floating point compare
- bool FCMP_float(Imm<2> type, Vec Vm, Vec Vn, bool cmp_with_zero);
- bool FCMPE_float(Imm<2> type, Vec Vm, Vec Vn, bool cmp_with_zero);
-
- // Data Processing - FP and SIMD - Floating point immediate
- bool FMOV_float_imm(Imm<2> type, Imm<8> imm8, Vec Vd);
-
- // Data Processing - FP and SIMD - Floating point conditional compare
- bool FCCMP_float(Imm<2> type, Vec Vm, Cond cond, Vec Vn, Imm<4> nzcv);
- bool FCCMPE_float(Imm<2> type, Vec Vm, Cond cond, Vec Vn, Imm<4> nzcv);
-
- // Data Processing - FP and SIMD - Floating point data processing two register
- bool FMUL_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FDIV_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FADD_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FSUB_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FMAX_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FMIN_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FMAXNM_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FMINNM_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FNMUL_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Floating point conditional select
- bool FCSEL_float(Imm<2> type, Vec Vm, Cond cond, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Floating point data processing three register
- bool FMADD_float(Imm<2> type, Vec Vm, Vec Va, Vec Vn, Vec Vd);
- bool FMSUB_float(Imm<2> type, Vec Vm, Vec Va, Vec Vn, Vec Vd);
- bool FNMADD_float(Imm<2> type, Vec Vm, Vec Va, Vec Vn, Vec Vd);
- bool FNMSUB_float(Imm<2> type, Vec Vm, Vec Va, Vec Vn, Vec Vd);
-};
-
-inline std::optional<size_t> FPGetDataSize(Imm<2> type) {
- switch (type.ZeroExtend()) {
- case 0b00:
- return 32;
- case 0b01:
- return 64;
- case 0b11:
- return 16;
- }
- return std::nullopt;
-}
-
-} // namespace Dynarmic::A64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/decoder/decoder_detail.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/decoder/decoder_detail.h
deleted file mode 100644
index cf7d0e64..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/decoder/decoder_detail.h
+++ /dev/null
@@ -1,190 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <algorithm>
-#include <array>
-#include <tuple>
-
-#include <mcl/assert.hpp>
-#include <mcl/bitsizeof.hpp>
-#include <mcl/type_traits/function_info.hpp>
-
-namespace Dynarmic::Decoder {
-namespace detail {
-
-template<size_t N>
-inline consteval std::array<char, N> StringToArray(const char (&str)[N + 1]) {
- std::array<char, N> result{};
- for (size_t i = 0; i < N; i++) {
- result[i] = str[i];
- }
- return result;
-}
-
-/**
- * Helper functions for the decoders.
- *
- * @tparam MatcherT The type of the Matcher to use.
- */
-template<class MatcherT>
-struct detail {
- using opcode_type = typename MatcherT::opcode_type;
- using visitor_type = typename MatcherT::visitor_type;
-
- static constexpr size_t opcode_bitsize = mcl::bitsizeof<opcode_type>;
-
- /**
- * Generates the mask and the expected value after masking from a given bitstring.
- * A '0' in a bitstring indicates that a zero must be present at that bit position.
- * A '1' in a bitstring indicates that a one must be present at that bit position.
- */
-#ifdef __clang__
- static constexpr auto GetMaskAndExpect(std::array<char, opcode_bitsize> bitstring) {
-#else
- static consteval auto GetMaskAndExpect(std::array<char, opcode_bitsize> bitstring) {
-#endif
- const auto one = static_cast<opcode_type>(1);
- opcode_type mask = 0, expect = 0;
- for (size_t i = 0; i < opcode_bitsize; i++) {
- const size_t bit_position = opcode_bitsize - i - 1;
- switch (bitstring[i]) {
- case '0':
- mask |= one << bit_position;
- break;
- case '1':
- expect |= one << bit_position;
- mask |= one << bit_position;
- break;
- default:
- // Ignore
- break;
- }
- }
- return std::make_tuple(mask, expect);
- }
-
- /**
- * Generates the masks and shifts for each argument.
- * A '-' in a bitstring indicates that we don't care about that value.
- * An argument is specified by a continuous string of the same character.
- */
- template<size_t N>
- static consteval auto GetArgInfo(std::array<char, opcode_bitsize> bitstring) {
- std::array<opcode_type, N> masks = {};
- std::array<size_t, N> shifts = {};
- size_t arg_index = 0;
- char ch = 0;
-
- for (size_t i = 0; i < opcode_bitsize; i++) {
- if (bitstring[i] == '0' || bitstring[i] == '1' || bitstring[i] == '-') {
- if (ch != 0) {
- ch = 0;
- arg_index++;
- }
- } else {
- if (ch == 0) {
- ch = bitstring[i];
- } else if (ch != bitstring[i]) {
- ch = bitstring[i];
- arg_index++;
- }
-
- if constexpr (N > 0) {
- const size_t bit_position = opcode_bitsize - i - 1;
-
- if (arg_index >= N)
- throw std::out_of_range("Unexpected field");
-
- masks[arg_index] |= static_cast<opcode_type>(1) << bit_position;
- shifts[arg_index] = bit_position;
- } else {
- throw std::out_of_range("Unexpected field");
- }
- }
- }
-
-#if !defined(DYNARMIC_IGNORE_ASSERTS) && !defined(__ANDROID__)
- // Avoids a MSVC ICE, and avoids Android NDK issue.
- ASSERT(std::all_of(masks.begin(), masks.end(), [](auto m) { return m != 0; }));
-#endif
-
- return std::make_tuple(masks, shifts);
- }
-
- /**
- * This struct's Make member function generates a lambda which decodes an instruction based on
- * the provided arg_masks and arg_shifts. The Visitor member function to call is provided as a
- * template argument.
- */
- template<typename FnT>
- struct VisitorCaller;
-
-#ifdef _MSC_VER
-# pragma warning(push)
-# pragma warning(disable : 4800) // forcing value to bool 'true' or 'false' (performance warning)
-#endif
- template<typename Visitor, typename... Args, typename CallRetT>
- struct VisitorCaller<CallRetT (Visitor::*)(Args...)> {
- template<size_t... iota>
- static auto Make(std::integer_sequence<size_t, iota...>,
- CallRetT (Visitor::*const fn)(Args...),
- const std::array<opcode_type, sizeof...(iota)> arg_masks,
- const std::array<size_t, sizeof...(iota)> arg_shifts) {
- static_assert(std::is_same_v<visitor_type, Visitor>, "Member function is not from Matcher's Visitor");
- return [fn, arg_masks, arg_shifts](Visitor& v, opcode_type instruction) {
- (void)instruction;
- (void)arg_masks;
- (void)arg_shifts;
- return (v.*fn)(static_cast<Args>((instruction & arg_masks[iota]) >> arg_shifts[iota])...);
- };
- }
- };
-
- template<typename Visitor, typename... Args, typename CallRetT>
- struct VisitorCaller<CallRetT (Visitor::*)(Args...) const> {
- template<size_t... iota>
- static auto Make(std::integer_sequence<size_t, iota...>,
- CallRetT (Visitor::*const fn)(Args...) const,
- const std::array<opcode_type, sizeof...(iota)> arg_masks,
- const std::array<size_t, sizeof...(iota)> arg_shifts) {
- static_assert(std::is_same_v<visitor_type, const Visitor>, "Member function is not from Matcher's Visitor");
- return [fn, arg_masks, arg_shifts](const Visitor& v, opcode_type instruction) {
- (void)instruction;
- (void)arg_masks;
- (void)arg_shifts;
- return (v.*fn)(static_cast<Args>((instruction & arg_masks[iota]) >> arg_shifts[iota])...);
- };
- }
- };
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-
- /**
- * Creates a matcher that can match and parse instructions based on bitstring.
- * See also: GetMaskAndExpect and GetArgInfo for format of bitstring.
- */
- template<auto bitstring, typename FnT>
- static auto GetMatcher(FnT fn, const char* const name) {
- constexpr size_t args_count = mcl::parameter_count_v<FnT>;
-
- constexpr auto mask = std::get<0>(GetMaskAndExpect(bitstring));
- constexpr auto expect = std::get<1>(GetMaskAndExpect(bitstring));
- constexpr auto arg_masks = std::get<0>(GetArgInfo<args_count>(bitstring));
- constexpr auto arg_shifts = std::get<1>(GetArgInfo<args_count>(bitstring));
-
- using Iota = std::make_index_sequence<args_count>;
-
- const auto proxy_fn = VisitorCaller<FnT>::Make(Iota(), fn, arg_masks, arg_shifts);
- return MatcherT(name, mask, expect, proxy_fn);
- }
-};
-
-#define DYNARMIC_DECODER_GET_MATCHER(MatcherT, fn, name, bitstring) Decoder::detail::detail<MatcherT<V>>::template GetMatcher<bitstring>(&V::fn, name)
-
-} // namespace detail
-} // namespace Dynarmic::Decoder
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/decoder/matcher.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/decoder/matcher.h
deleted file mode 100644
index adf9556d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/decoder/matcher.h
+++ /dev/null
@@ -1,76 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <functional>
-
-#include <mcl/assert.hpp>
-
-namespace Dynarmic::Decoder {
-
-/**
- * Generic instruction handling construct.
- *
- * @tparam Visitor An arbitrary visitor type that will be passed through
- * to the function being handled. This type must be the
- * type of the first parameter in a handler function.
- *
- * @tparam OpcodeType Type representing an opcode. This must be the
- * type of the second parameter in a handler function.
- */
-template<typename Visitor, typename OpcodeType>
-class Matcher {
-public:
- using opcode_type = OpcodeType;
- using visitor_type = Visitor;
- using handler_return_type = typename Visitor::instruction_return_type;
- using handler_function = std::function<handler_return_type(Visitor&, opcode_type)>;
-
- Matcher(const char* const name, opcode_type mask, opcode_type expected, handler_function func)
- : name{name}, mask{mask}, expected{expected}, fn{std::move(func)} {}
-
- /// Gets the name of this type of instruction.
- const char* GetName() const {
- return name;
- }
-
- /// Gets the mask for this instruction.
- opcode_type GetMask() const {
- return mask;
- }
-
- /// Gets the expected value after masking for this instruction.
- opcode_type GetExpected() const {
- return expected;
- }
-
- /**
- * Tests to see if the given instruction is the instruction this matcher represents.
- * @param instruction The instruction to test
- * @returns true if the given instruction matches.
- */
- bool Matches(opcode_type instruction) const {
- return (instruction & mask) == expected;
- }
-
- /**
- * Calls the corresponding instruction handler on visitor for this type of instruction.
- * @param v The visitor to use
- * @param instruction The instruction to decode.
- */
- handler_return_type call(Visitor& v, opcode_type instruction) const {
- ASSERT(Matches(instruction));
- return fn(v, instruction);
- }
-
-private:
- const char* name;
- opcode_type mask;
- opcode_type expected;
- handler_function fn;
-};
-
-} // namespace Dynarmic::Decoder
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/imm.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/imm.h
deleted file mode 100644
index 7d86abbb..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/frontend/imm.h
+++ /dev/null
@@ -1,168 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <type_traits>
-
-#include <mcl/assert.hpp>
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/bitsizeof.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/common/math_util.h"
-
-namespace Dynarmic {
-
-/**
- * Imm represents an immediate value in an AArch32/AArch64 instruction.
- * Imm is used during translation as a typesafe way of passing around immediates of fixed sizes.
- */
-template<size_t bit_size_>
-class Imm {
-public:
- static constexpr size_t bit_size = bit_size_;
-
- explicit Imm(u32 value)
- : value(value) {
- ASSERT_MSG((mcl::bit::get_bits<0, bit_size - 1>(value) == value), "More bits in value than expected");
- }
-
- template<typename T = u32>
- T ZeroExtend() const {
- static_assert(mcl::bitsizeof<T> >= bit_size);
- return static_cast<T>(value);
- }
-
- template<typename T = s32>
- T SignExtend() const {
- static_assert(mcl::bitsizeof<T> >= bit_size);
- return static_cast<T>(mcl::bit::sign_extend<bit_size, std::make_unsigned_t<T>>(value));
- }
-
- template<size_t bit>
- bool Bit() const {
- static_assert(bit < bit_size);
- return mcl::bit::get_bit<bit>(value);
- }
-
- template<size_t begin_bit, size_t end_bit, typename T = u32>
- T Bits() const {
- static_assert(begin_bit <= end_bit && end_bit < bit_size);
- static_assert(mcl::bitsizeof<T> >= end_bit - begin_bit + 1);
- return static_cast<T>(mcl::bit::get_bits<begin_bit, end_bit>(value));
- }
-
- bool operator==(Imm other) const {
- return value == other.value;
- }
-
- bool operator!=(Imm other) const {
- return !operator==(other);
- }
-
- bool operator<(Imm other) const {
- return value < other.value;
- }
-
- bool operator<=(Imm other) const {
- return value <= other.value;
- }
-
- bool operator>(Imm other) const {
- return value > other.value;
- }
-
- bool operator>=(Imm other) const {
- return value >= other.value;
- }
-
-private:
- static_assert(bit_size != 0, "Cannot have a zero-sized immediate");
- static_assert(bit_size <= 32, "Cannot have an immediate larger than the instruction size");
-
- u32 value;
-};
-
-template<size_t bit_size>
-bool operator==(u32 a, Imm<bit_size> b) {
- return Imm<bit_size>{a} == b;
-}
-
-template<size_t bit_size>
-bool operator==(Imm<bit_size> a, u32 b) {
- return Imm<bit_size>{b} == a;
-}
-
-template<size_t bit_size>
-bool operator!=(u32 a, Imm<bit_size> b) {
- return !operator==(a, b);
-}
-
-template<size_t bit_size>
-bool operator!=(Imm<bit_size> a, u32 b) {
- return !operator==(a, b);
-}
-
-template<size_t bit_size>
-bool operator<(u32 a, Imm<bit_size> b) {
- return Imm<bit_size>{a} < b;
-}
-
-template<size_t bit_size>
-bool operator<(Imm<bit_size> a, u32 b) {
- return a < Imm<bit_size>{b};
-}
-
-template<size_t bit_size>
-bool operator<=(u32 a, Imm<bit_size> b) {
- return !operator<(b, a);
-}
-
-template<size_t bit_size>
-bool operator<=(Imm<bit_size> a, u32 b) {
- return !operator<(b, a);
-}
-
-template<size_t bit_size>
-bool operator>(u32 a, Imm<bit_size> b) {
- return operator<(b, a);
-}
-
-template<size_t bit_size>
-bool operator>(Imm<bit_size> a, u32 b) {
- return operator<(b, a);
-}
-
-template<size_t bit_size>
-bool operator>=(u32 a, Imm<bit_size> b) {
- return !operator<(a, b);
-}
-
-template<size_t bit_size>
-bool operator>=(Imm<bit_size> a, u32 b) {
- return !operator<(a, b);
-}
-
-/**
- * Concatenate immediates together.
- * Left to right corresponds to most significant imm to least significant imm.
- * This is equivalent to a:b:...:z in ASL.
- */
-template<size_t first_bit_size, size_t... rest_bit_sizes>
-auto concatenate(Imm<first_bit_size> first, Imm<rest_bit_sizes>... rest) {
- if constexpr (sizeof...(rest) == 0) {
- return first;
- } else {
- const auto concat_rest = concatenate(rest...);
- const u32 value = (first.ZeroExtend() << concat_rest.bit_size) | concat_rest.ZeroExtend();
- return Imm<Common::Sum(first_bit_size, rest_bit_sizes...)>{value};
- }
-}
-
-/// Expands an Advanced SIMD modified immediate.
-u64 AdvSIMDExpandImm(bool op, Imm<4> cmode, Imm<8> imm8);
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A32/a32.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A32/a32.h
deleted file mode 100644
index e1c5b40f..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A32/a32.h
+++ /dev/null
@@ -1,109 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstddef>
-#include <cstdint>
-#include <memory>
-#include <string>
-#include <vector>
-
-#include "dynarmic/interface/A32/config.h"
-#include "dynarmic/interface/halt_reason.h"
-
-namespace Dynarmic {
-namespace A32 {
-
-class Jit final {
-public:
- explicit Jit(UserConfig conf);
- ~Jit();
-
- /**
- * Runs the emulated CPU.
- * Cannot be recursively called.
- */
- HaltReason Run();
-
- /**
- * Steps the emulated CPU.
- * Cannot be recursively called.
- */
- HaltReason Step();
-
- /**
- * Clears the code cache of all compiled code.
- * Can be called at any time. Halts execution if called within a callback.
- */
- void ClearCache();
-
- /**
- * Invalidate the code cache at a range of addresses.
- * @param start_address The starting address of the range to invalidate.
- * @param length The length (in bytes) of the range to invalidate.
- */
- void InvalidateCacheRange(std::uint32_t start_address, std::size_t length);
-
- /**
- * Reset CPU state to state at startup. Does not clear code cache.
- * Cannot be called from a callback.
- */
- void Reset();
-
- /**
- * Stops execution in Jit::Run.
- */
- void HaltExecution(HaltReason hr = HaltReason::UserDefined1);
-
- /**
- * Clears a halt reason from flags.
- * Warning: Only use this if you're sure this won't introduce races.
- */
- void ClearHalt(HaltReason hr = HaltReason::UserDefined1);
-
- /// View and modify registers.
- std::array<std::uint32_t, 16>& Regs();
- const std::array<std::uint32_t, 16>& Regs() const;
- std::array<std::uint32_t, 64>& ExtRegs();
- const std::array<std::uint32_t, 64>& ExtRegs() const;
-
- /// View and modify CPSR.
- std::uint32_t Cpsr() const;
- void SetCpsr(std::uint32_t value);
-
- /// View and modify FPSCR.
- std::uint32_t Fpscr() const;
- void SetFpscr(std::uint32_t value);
-
- /// Clears exclusive state for this core.
- void ClearExclusiveState();
-
- /**
- * Returns true if Jit::Run was called but hasn't returned yet.
- * i.e.: We're in a callback.
- */
- bool IsExecuting() const {
- return is_executing;
- }
-
- /// Debugging: Dump a disassembly all compiled code to the console.
- void DumpDisassembly() const;
-
- /**
- * Disassemble the instructions following the current pc and return
- * the resulting instructions as a vector of their string representations.
- */
- std::vector<std::string> Disassemble() const;
-
-private:
- bool is_executing = false;
-
- struct Impl;
- std::unique_ptr<Impl> impl;
-};
-
-} // namespace A32
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A32/arch_version.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A32/arch_version.h
deleted file mode 100644
index 240e40ee..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A32/arch_version.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2020 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic {
-namespace A32 {
-
-enum class ArchVersion {
- v3,
- v4,
- v4T,
- v5TE,
- v6K,
- v6T2,
- v7,
- v8,
-};
-
-} // namespace A32
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A32/config.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A32/config.h
deleted file mode 100644
index a3c2aa15..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A32/config.h
+++ /dev/null
@@ -1,246 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <cstddef>
-#include <cstdint>
-#include <memory>
-#include <optional>
-
-#include "dynarmic/frontend/A32/translate/translate_callbacks.h"
-#include "dynarmic/interface/A32/arch_version.h"
-#include "dynarmic/interface/optimization_flags.h"
-
-namespace Dynarmic {
-class ExclusiveMonitor;
-} // namespace Dynarmic
-
-namespace Dynarmic {
-namespace A32 {
-
-using VAddr = std::uint32_t;
-
-class Coprocessor;
-
-enum class Exception {
- /// An UndefinedFault occured due to executing instruction with an unallocated encoding
- UndefinedInstruction,
- /// An unpredictable instruction is to be executed. Implementation-defined behaviour should now happen.
- /// This behaviour is up to the user of this library to define.
- UnpredictableInstruction,
- /// A decode error occurred when decoding this instruction. This should never happen.
- DecodeError,
- /// A SEV instruction was executed. The event register of all PEs should be set. (Hint instruction.)
- SendEvent,
- /// A SEVL instruction was executed. The event register of the current PE should be set. (Hint instruction.)
- SendEventLocal,
- /// A WFI instruction was executed. You may now enter a low-power state. (Hint instruction.)
- WaitForInterrupt,
- /// A WFE instruction was executed. You may now enter a low-power state if the event register is clear. (Hint instruction.)
- WaitForEvent,
- /// A YIELD instruction was executed. (Hint instruction.)
- Yield,
- /// A BKPT instruction was executed.
- Breakpoint,
- /// A PLD instruction was executed. (Hint instruction.)
- PreloadData,
- /// A PLDW instruction was executed. (Hint instruction.)
- PreloadDataWithIntentToWrite,
- /// A PLI instruction was executed. (Hint instruction.)
- PreloadInstruction,
- /// Attempted to execute a code block at an address for which MemoryReadCode returned std::nullopt.
- /// (Intended to be used to emulate memory protection faults.)
- NoExecuteFault,
-};
-
-/// These function pointers may be inserted into compiled code.
-struct UserCallbacks : public TranslateCallbacks {
- virtual ~UserCallbacks() = default;
-
- // All reads through this callback are 4-byte aligned.
- // Memory must be interpreted as little endian.
- std::optional<std::uint32_t> MemoryReadCode(VAddr vaddr) override { return MemoryRead32(vaddr); }
-
- // This function is called before the instruction at pc is read.
- // IR code can be emitted by the callee prior to instruction handling.
- // By returning true the callee precludes the translation of the instruction;
- // in such case the callee is responsible for setting the terminal.
- bool PreCodeReadHook(bool /*is_thumb*/, VAddr /*pc*/, A32::IREmitter& /*ir*/) override { return true; }
-
- // Thus function is called before the instruction at pc is interpreted.
- // IR code can be emitted by the callee prior to translation of the instruction.
- void PreCodeTranslationHook(bool /*is_thumb*/, VAddr /*pc*/, A32::IREmitter& /*ir*/) override {}
-
- // Reads through these callbacks may not be aligned.
- // Memory must be interpreted as if ENDIANSTATE == 0, endianness will be corrected by the JIT.
- virtual std::uint8_t MemoryRead8(VAddr vaddr) = 0;
- virtual std::uint16_t MemoryRead16(VAddr vaddr) = 0;
- virtual std::uint32_t MemoryRead32(VAddr vaddr) = 0;
- virtual std::uint64_t MemoryRead64(VAddr vaddr) = 0;
-
- // Writes through these callbacks may not be aligned.
- virtual void MemoryWrite8(VAddr vaddr, std::uint8_t value) = 0;
- virtual void MemoryWrite16(VAddr vaddr, std::uint16_t value) = 0;
- virtual void MemoryWrite32(VAddr vaddr, std::uint32_t value) = 0;
- virtual void MemoryWrite64(VAddr vaddr, std::uint64_t value) = 0;
-
- // Writes through these callbacks may not be aligned.
- virtual bool MemoryWriteExclusive8(VAddr /*vaddr*/, std::uint8_t /*value*/, std::uint8_t /*expected*/) { return false; }
- virtual bool MemoryWriteExclusive16(VAddr /*vaddr*/, std::uint16_t /*value*/, std::uint16_t /*expected*/) { return false; }
- virtual bool MemoryWriteExclusive32(VAddr /*vaddr*/, std::uint32_t /*value*/, std::uint32_t /*expected*/) { return false; }
- virtual bool MemoryWriteExclusive64(VAddr /*vaddr*/, std::uint64_t /*value*/, std::uint64_t /*expected*/) { return false; }
-
- // If this callback returns true, the JIT will assume MemoryRead* callbacks will always
- // return the same value at any point in time for this vaddr. The JIT may use this information
- // in optimizations.
- // A conservative implementation that always returns false is safe.
- virtual bool IsReadOnlyMemory(VAddr /*vaddr*/) { return false; }
-
- /// The interpreter must execute exactly num_instructions starting from PC.
- virtual void InterpreterFallback(VAddr pc, size_t num_instructions) = 0;
-
- // This callback is called whenever a SVC instruction is executed.
- virtual void CallSVC(std::uint32_t swi) = 0;
-
- virtual void ExceptionRaised(VAddr pc, Exception exception) = 0;
-
- virtual void InstructionSynchronizationBarrierRaised() {}
-
- // Timing-related callbacks
- // ticks ticks have passed
- virtual void AddTicks(std::uint64_t ticks) = 0;
- // How many more ticks am I allowed to execute?
- virtual std::uint64_t GetTicksRemaining() = 0;
- // How many ticks should this instruction take to execute?
- std::uint64_t GetTicksForCode(bool /*is_thumb*/, VAddr /*vaddr*/, std::uint32_t /*instruction*/) override { return 1; }
-};
-
-struct UserConfig {
- UserCallbacks* callbacks;
-
- size_t processor_id = 0;
- ExclusiveMonitor* global_monitor = nullptr;
-
- /// Select the architecture version to use.
- /// There are minor behavioural differences between versions.
- ArchVersion arch_version = ArchVersion::v8;
-
- /// This selects other optimizations than can't otherwise be disabled by setting other
- /// configuration options. This includes:
- /// - IR optimizations
- /// - Block linking optimizations
- /// - RSB optimizations
- /// This is intended to be used for debugging.
- OptimizationFlag optimizations = all_safe_optimizations;
-
- bool HasOptimization(OptimizationFlag f) const {
- if (!unsafe_optimizations) {
- f &= all_safe_optimizations;
- }
- return (f & optimizations) != no_optimizations;
- }
-
- /// This enables unsafe optimizations that reduce emulation accuracy in favour of speed.
- /// For safety, in order to enable unsafe optimizations you have to set BOTH this flag
- /// AND the appropriate flag bits above.
- /// The prefered and tested mode for this library is with unsafe optimizations disabled.
- bool unsafe_optimizations = false;
-
- // Page Table
- // The page table is used for faster memory access. If an entry in the table is nullptr,
- // the JIT will fallback to calling the MemoryRead*/MemoryWrite* callbacks.
- static constexpr std::size_t PAGE_BITS = 12;
- static constexpr std::size_t NUM_PAGE_TABLE_ENTRIES = 1 << (32 - PAGE_BITS);
- std::array<std::uint8_t*, NUM_PAGE_TABLE_ENTRIES>* page_table = nullptr;
- /// Determines if the pointer in the page_table shall be offseted locally or globally.
- /// 'false' will access page_table[addr >> bits][addr & mask]
- /// 'true' will access page_table[addr >> bits][addr]
- /// Note: page_table[addr >> bits] will still be checked to verify active pages.
- /// So there might be wrongly faulted pages which maps to nullptr.
- /// This can be avoided by carefully allocating the memory region.
- bool absolute_offset_page_table = false;
- /// Masks out the first N bits in host pointers from the page table.
- /// The intention behind this is to allow users of Dynarmic to pack attributes in the
- /// same integer and update the pointer attribute pair atomically.
- /// If the configured value is 3, all pointers will be forcefully aligned to 8 bytes.
- int page_table_pointer_mask_bits = 0;
- /// Determines if we should detect memory accesses via page_table that straddle are
- /// misaligned. Accesses that straddle page boundaries will fallback to the relevant
- /// memory callback.
- /// This value should be the required access sizes this applies to ORed together.
- /// To detect any access, use: 8 | 16 | 32 | 64.
- std::uint8_t detect_misaligned_access_via_page_table = 0;
- /// Determines if the above option only triggers when the misalignment straddles a
- /// page boundary.
- bool only_detect_misalignment_via_page_table_on_page_boundary = false;
-
- // Fastmem Pointer
- // This should point to the beginning of a 4GB address space which is in arranged just like
- // what you wish for emulated memory to be. If the host page faults on an address, the JIT
- // will fallback to calling the MemoryRead*/MemoryWrite* callbacks.
- void* fastmem_pointer = nullptr;
- /// Determines if instructions that pagefault should cause recompilation of that block
- /// with fastmem disabled.
- /// Recompiled code will use the page_table if this is available, otherwise memory
- /// accesses will hit the memory callbacks.
- bool recompile_on_fastmem_failure = true;
-
- /// Determines if we should use the above fastmem_pointer for exclusive reads and
- /// writes. On x64, dynarmic currently relies on x64 cmpxchg semantics which may not
- /// provide fully accurate emulation.
- bool fastmem_exclusive_access = false;
- /// Determines if exclusive access instructions that pagefault should cause
- /// recompilation of that block with fastmem disabled. Recompiled code will use memory
- /// callbacks.
- bool recompile_on_exclusive_fastmem_failure = true;
-
- // Coprocessors
- std::array<std::shared_ptr<Coprocessor>, 16> coprocessors{};
-
- /// When set to true, UserCallbacks::InstructionSynchronizationBarrierRaised will be
- /// called when an ISB instruction is executed.
- /// When set to false, ISB will be treated as a NOP instruction.
- bool hook_isb = false;
-
- /// Hint instructions would cause ExceptionRaised to be called with the appropriate
- /// argument.
- bool hook_hint_instructions = false;
-
- /// This option relates to translation. Generally when we run into an unpredictable
- /// instruction the ExceptionRaised callback is called. If this is true, we define
- /// definite behaviour for some unpredictable instructions.
- bool define_unpredictable_behaviour = false;
-
- /// HACK:
- /// This tells the translator a wall clock will be used, thus allowing it
- /// to avoid writting certain unnecessary code only needed for cycle timers.
- bool wall_clock_cntpct = false;
-
- /// This allows accurately emulating protection fault handlers. If true, we check
- /// for exit after every data memory access by the emulated program.
- bool check_halt_on_memory_access = false;
-
- /// This option allows you to disable cycle counting. If this is set to false,
- /// AddTicks and GetTicksRemaining are never called, and no cycle counting is done.
- bool enable_cycle_counting = true;
-
- /// This option relates to the CPSR.E flag. Enabling this option disables modification
- /// of CPSR.E by the emulated program, forcing it to 0.
- /// NOTE: Calling Jit::SetCpsr with CPSR.E=1 while this option is enabled may result
- /// in unusual behavior.
- bool always_little_endian = false;
-
- // Minimum size is about 8MiB. Maximum size is about 128MiB (arm64 host) or 2GiB (x64 host).
- // Maximum size is limited by the maximum length of a x86_64 / arm64 jump.
- size_t code_cache_size = 128 * 1024 * 1024; // bytes
-
- /// Internal use only
- bool very_verbose_debugging_output = false;
-};
-
-} // namespace A32
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A32/coprocessor.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A32/coprocessor.h
deleted file mode 100644
index 7ee2e96e..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A32/coprocessor.h
+++ /dev/null
@@ -1,110 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstdint>
-#include <optional>
-#include <variant>
-
-#include "dynarmic/interface/A32/coprocessor_util.h"
-
-namespace Dynarmic {
-namespace A32 {
-
-class Jit;
-
-class Coprocessor {
-public:
- virtual ~Coprocessor() = default;
-
- struct Callback {
- /**
- * @param jit CPU state
- * @param user_arg Set to Callback::user_arg at runtime
- * @param arg0 Purpose of this argument depends on type of callback.
- * @param arg1 Purpose of this argument depends on type of callback.
- * @return Purpose of return value depends on type of callback.
- */
- std::uint64_t (*function)(void* user_arg, std::uint32_t arg0, std::uint32_t arg1);
- /// If std::nullopt, function will be called with a user_arg parameter containing garbage.
- std::optional<void*> user_arg;
- };
-
- /**
- * std::monostate: coprocessor exception will be compiled
- * Callback: a call to the Callback will be compiled
- * std::uint32_t*: a write/read to that memory address will be compiled
- */
- using CallbackOrAccessOneWord = std::variant<std::monostate, Callback, std::uint32_t*>;
-
- /**
- * std::monostate: coprocessor exception will be compiled
- * Callback: a call to the Callback will be compiled
- * std::array<std::uint32_t*, 2>: a write/read to those memory addresses will be compiled
- */
- using CallbackOrAccessTwoWords = std::variant<std::monostate, Callback, std::array<std::uint32_t*, 2>>;
-
- /**
- * Called when compiling CDP or CDP2 for this coprocessor.
- * A return value of std::nullopt will cause a coprocessor exception to be compiled.
- * arg0, arg1 and return value of callback are ignored.
- */
- virtual std::optional<Callback> CompileInternalOperation(bool two, unsigned opc1, CoprocReg CRd, CoprocReg CRn, CoprocReg CRm, unsigned opc2) = 0;
-
- /**
- * Called when compiling MCR or MCR2 for this coprocessor.
- * A return value of std::monostate will cause a coprocessor exception to be compiled.
- * arg0 of the callback will contain the word sent to the coprocessor.
- * arg1 and return value of the callback are ignored.
- */
- virtual CallbackOrAccessOneWord CompileSendOneWord(bool two, unsigned opc1, CoprocReg CRn, CoprocReg CRm, unsigned opc2) = 0;
-
- /**
- * Called when compiling MCRR or MCRR2 for this coprocessor.
- * A return value of std::monostate will cause a coprocessor exception to be compiled.
- * arg0 and arg1 of the callback will contain the words sent to the coprocessor.
- * The return value of the callback is ignored.
- */
- virtual CallbackOrAccessTwoWords CompileSendTwoWords(bool two, unsigned opc, CoprocReg CRm) = 0;
-
- /**
- * Called when compiling MRC or MRC2 for this coprocessor.
- * A return value of std::monostate will cause a coprocessor exception to be compiled.
- * The return value of the callback should contain word from coprocessor.
- * The low word of the return value will be stored in Rt.
- * arg0 and arg1 of the callback are ignored.
- */
- virtual CallbackOrAccessOneWord CompileGetOneWord(bool two, unsigned opc1, CoprocReg CRn, CoprocReg CRm, unsigned opc2) = 0;
-
- /**
- * Called when compiling MRRC or MRRC2 for this coprocessor.
- * A return value of std::monostate will cause a coprocessor exception to be compiled.
- * The return value of the callback should contain words from coprocessor.
- * The low word of the return value will be stored in Rt.
- * The high word of the return value will be stored in Rt2.
- * arg0 and arg1 of the callback are ignored.
- */
- virtual CallbackOrAccessTwoWords CompileGetTwoWords(bool two, unsigned opc, CoprocReg CRm) = 0;
-
- /**
- * Called when compiling LDC or LDC2 for this coprocessor.
- * A return value of std::nullopt will cause a coprocessor exception to be compiled.
- * arg0 of the callback will contain the start address.
- * arg1 and return value of the callback are ignored.
- */
- virtual std::optional<Callback> CompileLoadWords(bool two, bool long_transfer, CoprocReg CRd, std::optional<std::uint8_t> option) = 0;
-
- /**
- * Called when compiling STC or STC2 for this coprocessor.
- * A return value of std::nullopt will cause a coprocessor exception to be compiled.
- * arg0 of the callback will contain the start address.
- * arg1 and return value of the callback are ignored.
- */
- virtual std::optional<Callback> CompileStoreWords(bool two, bool long_transfer, CoprocReg CRd, std::optional<std::uint8_t> option) = 0;
-};
-
-} // namespace A32
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A32/coprocessor_util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A32/coprocessor_util.h
deleted file mode 100644
index ed695d17..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A32/coprocessor_util.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic {
-namespace A32 {
-
-enum class CoprocReg {
- C0,
- C1,
- C2,
- C3,
- C4,
- C5,
- C6,
- C7,
- C8,
- C9,
- C10,
- C11,
- C12,
- C13,
- C14,
- C15
-};
-
-} // namespace A32
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A32/disassembler.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A32/disassembler.h
deleted file mode 100644
index 54058bf5..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A32/disassembler.h
+++ /dev/null
@@ -1,18 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstdint>
-#include <string>
-
-namespace Dynarmic {
-namespace A32 {
-
-std::string DisassembleArm(std::uint32_t instruction);
-std::string DisassembleThumb16(std::uint16_t instruction);
-
-} // namespace A32
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A64/a64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A64/a64.h
deleted file mode 100644
index a150da84..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A64/a64.h
+++ /dev/null
@@ -1,137 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <cstddef>
-#include <cstdint>
-#include <memory>
-#include <string>
-#include <vector>
-
-#include "dynarmic/interface/A64/config.h"
-#include "dynarmic/interface/halt_reason.h"
-
-namespace Dynarmic {
-namespace A64 {
-
-class Jit final {
-public:
- explicit Jit(UserConfig conf);
- ~Jit();
-
- /**
- * Runs the emulated CPU.
- * Cannot be recursively called.
- */
- HaltReason Run();
-
- /**
- * Step the emulated CPU for one instruction.
- * Cannot be recursively called.
- */
- HaltReason Step();
-
- /**
- * Clears the code cache of all compiled code.
- * Can be called at any time. Halts execution if called within a callback.
- */
- void ClearCache();
-
- /**
- * Invalidate the code cache at a range of addresses.
- * @param start_address The starting address of the range to invalidate.
- * @param length The length (in bytes) of the range to invalidate.
- */
- void InvalidateCacheRange(std::uint64_t start_address, std::size_t length);
-
- /**
- * Reset CPU state to state at startup. Does not clear code cache.
- * Cannot be called from a callback.
- */
- void Reset();
-
- /**
- * Stops execution in Jit::Run.
- */
- void HaltExecution(HaltReason hr = HaltReason::UserDefined1);
-
- /**
- * Clears a halt reason from flags.
- * Warning: Only use this if you're sure this won't introduce races.
- */
- void ClearHalt(HaltReason hr = HaltReason::UserDefined1);
-
- /// Read Stack Pointer
- std::uint64_t GetSP() const;
- /// Modify Stack Pointer
- void SetSP(std::uint64_t value);
-
- /// Read Program Counter
- std::uint64_t GetPC() const;
- /// Modify Program Counter
- void SetPC(std::uint64_t value);
-
- /// Read general-purpose register.
- std::uint64_t GetRegister(std::size_t index) const;
- /// Modify general-purpose register.
- void SetRegister(size_t index, std::uint64_t value);
-
- /// Read all general-purpose registers.
- std::array<std::uint64_t, 31> GetRegisters() const;
- /// Modify all general-purpose registers.
- void SetRegisters(const std::array<std::uint64_t, 31>& value);
-
- /// Read floating point and SIMD register.
- Vector GetVector(std::size_t index) const;
- /// Modify floating point and SIMD register.
- void SetVector(std::size_t index, Vector value);
-
- /// Read all floating point and SIMD registers.
- std::array<Vector, 32> GetVectors() const;
- /// Modify all floating point and SIMD registers.
- void SetVectors(const std::array<Vector, 32>& value);
-
- /// View FPCR.
- std::uint32_t GetFpcr() const;
- /// Modify FPCR.
- void SetFpcr(std::uint32_t value);
-
- /// View FPSR.
- std::uint32_t GetFpsr() const;
- /// Modify FPSR.
- void SetFpsr(std::uint32_t value);
-
- /// View PSTATE
- std::uint32_t GetPstate() const;
- /// Modify PSTATE
- void SetPstate(std::uint32_t value);
-
- /// Clears exclusive state for this core.
- void ClearExclusiveState();
-
- /**
- * Returns true if Jit::Run was called but hasn't returned yet.
- * i.e.: We're in a callback.
- */
- bool IsExecuting() const;
-
- /// Debugging: Dump a disassembly all of compiled code to the console.
- void DumpDisassembly() const;
-
- /*
- * Disassemble the instructions following the current pc and return
- * the resulting instructions as a vector of their string representations.
- */
- std::vector<std::string> Disassemble() const;
-
-private:
- struct Impl;
- std::unique_ptr<Impl> impl;
-};
-
-} // namespace A64
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A64/config.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A64/config.h
deleted file mode 100644
index b10c65bc..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/A64/config.h
+++ /dev/null
@@ -1,297 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <cstddef>
-#include <cstdint>
-#include <memory>
-#include <optional>
-
-#include "dynarmic/interface/optimization_flags.h"
-
-namespace Dynarmic {
-class ExclusiveMonitor;
-} // namespace Dynarmic
-
-namespace Dynarmic {
-namespace A64 {
-
-using VAddr = std::uint64_t;
-
-using Vector = std::array<std::uint64_t, 2>;
-static_assert(sizeof(Vector) == sizeof(std::uint64_t) * 2, "Vector must be 128 bits in size");
-
-enum class Exception {
- /// An UndefinedFault occured due to executing instruction with an unallocated encoding
- UnallocatedEncoding,
- /// An UndefinedFault occured due to executing instruction containing a reserved value
- ReservedValue,
- /// An unpredictable instruction is to be executed. Implementation-defined behaviour should now happen.
- /// This behaviour is up to the user of this library to define.
- /// Note: Constraints on unpredictable behaviour are specified in the ARMv8 ARM.
- UnpredictableInstruction,
- /// A WFI instruction was executed. You may now enter a low-power state. (Hint instruction.)
- WaitForInterrupt,
- /// A WFE instruction was executed. You may now enter a low-power state if the event register is clear. (Hint instruction.)
- WaitForEvent,
- /// A SEV instruction was executed. The event register of all PEs should be set. (Hint instruction.)
- SendEvent,
- /// A SEVL instruction was executed. The event register of the current PE should be set. (Hint instruction.)
- SendEventLocal,
- /// A YIELD instruction was executed. (Hint instruction.)
- Yield,
- /// A BRK instruction was executed. (Hint instruction.)
- Breakpoint,
- /// Attempted to execute a code block at an address for which MemoryReadCode returned std::nullopt.
- /// (Intended to be used to emulate memory protection faults.)
- NoExecuteFault,
-};
-
-enum class DataCacheOperation {
- /// DC CISW
- CleanAndInvalidateBySetWay,
- /// DC CIVAC
- CleanAndInvalidateByVAToPoC,
- /// DC CSW
- CleanBySetWay,
- /// DC CVAC
- CleanByVAToPoC,
- /// DC CVAU
- CleanByVAToPoU,
- /// DC CVAP
- CleanByVAToPoP,
- /// DC ISW
- InvalidateBySetWay,
- /// DC IVAC
- InvalidateByVAToPoC,
- /// DC ZVA
- ZeroByVA,
-};
-
-enum class InstructionCacheOperation {
- /// IC IVAU
- InvalidateByVAToPoU,
- /// IC IALLU
- InvalidateAllToPoU,
- /// IC IALLUIS
- InvalidateAllToPoUInnerSharable
-};
-
-struct UserCallbacks {
- virtual ~UserCallbacks() = default;
-
- // All reads through this callback are 4-byte aligned.
- // Memory must be interpreted as little endian.
- virtual std::optional<std::uint32_t> MemoryReadCode(VAddr vaddr) { return MemoryRead32(vaddr); }
-
- // Reads through these callbacks may not be aligned.
- virtual std::uint8_t MemoryRead8(VAddr vaddr) = 0;
- virtual std::uint16_t MemoryRead16(VAddr vaddr) = 0;
- virtual std::uint32_t MemoryRead32(VAddr vaddr) = 0;
- virtual std::uint64_t MemoryRead64(VAddr vaddr) = 0;
- virtual Vector MemoryRead128(VAddr vaddr) = 0;
-
- // Writes through these callbacks may not be aligned.
- virtual void MemoryWrite8(VAddr vaddr, std::uint8_t value) = 0;
- virtual void MemoryWrite16(VAddr vaddr, std::uint16_t value) = 0;
- virtual void MemoryWrite32(VAddr vaddr, std::uint32_t value) = 0;
- virtual void MemoryWrite64(VAddr vaddr, std::uint64_t value) = 0;
- virtual void MemoryWrite128(VAddr vaddr, Vector value) = 0;
-
- // Writes through these callbacks may not be aligned.
- virtual bool MemoryWriteExclusive8(VAddr /*vaddr*/, std::uint8_t /*value*/, std::uint8_t /*expected*/) { return false; }
- virtual bool MemoryWriteExclusive16(VAddr /*vaddr*/, std::uint16_t /*value*/, std::uint16_t /*expected*/) { return false; }
- virtual bool MemoryWriteExclusive32(VAddr /*vaddr*/, std::uint32_t /*value*/, std::uint32_t /*expected*/) { return false; }
- virtual bool MemoryWriteExclusive64(VAddr /*vaddr*/, std::uint64_t /*value*/, std::uint64_t /*expected*/) { return false; }
- virtual bool MemoryWriteExclusive128(VAddr /*vaddr*/, Vector /*value*/, Vector /*expected*/) { return false; }
-
- // If this callback returns true, the JIT will assume MemoryRead* callbacks will always
- // return the same value at any point in time for this vaddr. The JIT may use this information
- // in optimizations.
- // A conservative implementation that always returns false is safe.
- virtual bool IsReadOnlyMemory(VAddr /*vaddr*/) { return false; }
-
- /// The interpreter must execute exactly num_instructions starting from PC.
- virtual void InterpreterFallback(VAddr pc, size_t num_instructions) = 0;
-
- // This callback is called whenever a SVC instruction is executed.
- virtual void CallSVC(std::uint32_t swi) = 0;
-
- virtual void ExceptionRaised(VAddr pc, Exception exception) = 0;
- virtual void DataCacheOperationRaised(DataCacheOperation /*op*/, VAddr /*value*/) {}
- virtual void InstructionCacheOperationRaised(InstructionCacheOperation /*op*/, VAddr /*value*/) {}
- virtual void InstructionSynchronizationBarrierRaised() {}
-
- // Timing-related callbacks
- // ticks ticks have passed
- virtual void AddTicks(std::uint64_t ticks) = 0;
- // How many more ticks am I allowed to execute?
- virtual std::uint64_t GetTicksRemaining() = 0;
- // Get value in the emulated counter-timer physical count register.
- virtual std::uint64_t GetCNTPCT() = 0;
-};
-
-struct UserConfig {
- UserCallbacks* callbacks;
-
- size_t processor_id = 0;
- ExclusiveMonitor* global_monitor = nullptr;
-
- /// This selects other optimizations than can't otherwise be disabled by setting other
- /// configuration options. This includes:
- /// - IR optimizations
- /// - Block linking optimizations
- /// - RSB optimizations
- /// This is intended to be used for debugging.
- OptimizationFlag optimizations = all_safe_optimizations;
-
- bool HasOptimization(OptimizationFlag f) const {
- if (!unsafe_optimizations) {
- f &= all_safe_optimizations;
- }
- return (f & optimizations) != no_optimizations;
- }
-
- /// This enables unsafe optimizations that reduce emulation accuracy in favour of speed.
- /// For safety, in order to enable unsafe optimizations you have to set BOTH this flag
- /// AND the appropriate flag bits above.
- /// The prefered and tested mode for this library is with unsafe optimizations disabled.
- bool unsafe_optimizations = false;
-
- /// When set to true, UserCallbacks::DataCacheOperationRaised will be called when any
- /// data cache instruction is executed. Notably DC ZVA will not implicitly do anything.
- /// When set to false, UserCallbacks::DataCacheOperationRaised will never be called.
- /// Executing DC ZVA in this mode will result in zeros being written to memory.
- bool hook_data_cache_operations = false;
-
- /// When set to true, UserCallbacks::InstructionSynchronizationBarrierRaised will be
- /// called when an ISB instruction is executed.
- /// When set to false, ISB will be treated as a NOP instruction.
- bool hook_isb = false;
-
- /// When set to true, UserCallbacks::ExceptionRaised will be called when any hint
- /// instruction is executed.
- bool hook_hint_instructions = false;
-
- /// Counter-timer frequency register. The value of the register is not interpreted by
- /// dynarmic.
- std::uint32_t cntfrq_el0 = 600000000;
-
- /// CTR_EL0<27:24> is log2 of the cache writeback granule in words.
- /// CTR_EL0<23:20> is log2 of the exclusives reservation granule in words.
- /// CTR_EL0<19:16> is log2 of the smallest data/unified cacheline in words.
- /// CTR_EL0<15:14> is the level 1 instruction cache policy.
- /// CTR_EL0<3:0> is log2 of the smallest instruction cacheline in words.
- std::uint32_t ctr_el0 = 0x8444c004;
-
- /// DCZID_EL0<3:0> is log2 of the block size in words
- /// DCZID_EL0<4> is 0 if the DC ZVA instruction is permitted.
- std::uint32_t dczid_el0 = 4;
-
- /// Pointer to where TPIDRRO_EL0 is stored. This pointer will be inserted into
- /// emitted code.
- const std::uint64_t* tpidrro_el0 = nullptr;
-
- /// Pointer to where TPIDR_EL0 is stored. This pointer will be inserted into
- /// emitted code.
- std::uint64_t* tpidr_el0 = nullptr;
-
- /// Pointer to the page table which we can use for direct page table access.
- /// If an entry in page_table is null, the relevant memory callback will be called.
- /// If page_table is nullptr, all memory accesses hit the memory callbacks.
- void** page_table = nullptr;
- /// Declares how many valid address bits are there in virtual addresses.
- /// Determines the size of page_table. Valid values are between 12 and 64 inclusive.
- /// This is only used if page_table is not nullptr.
- size_t page_table_address_space_bits = 36;
- /// Masks out the first N bits in host pointers from the page table.
- /// The intention behind this is to allow users of Dynarmic to pack attributes in the
- /// same integer and update the pointer attribute pair atomically.
- /// If the configured value is 3, all pointers will be forcefully aligned to 8 bytes.
- int page_table_pointer_mask_bits = 0;
- /// Determines what happens if the guest accesses an entry that is off the end of the
- /// page table. If true, Dynarmic will silently mirror page_table's address space. If
- /// false, accessing memory outside of page_table bounds will result in a call to the
- /// relevant memory callback.
- /// This is only used if page_table is not nullptr.
- bool silently_mirror_page_table = true;
- /// Determines if the pointer in the page_table shall be offseted locally or globally.
- /// 'false' will access page_table[addr >> bits][addr & mask]
- /// 'true' will access page_table[addr >> bits][addr]
- /// Note: page_table[addr >> bits] will still be checked to verify active pages.
- /// So there might be wrongly faulted pages which maps to nullptr.
- /// This can be avoided by carefully allocating the memory region.
- bool absolute_offset_page_table = false;
- /// Determines if we should detect memory accesses via page_table that straddle are
- /// misaligned. Accesses that straddle page boundaries will fallback to the relevant
- /// memory callback.
- /// This value should be the required access sizes this applies to ORed together.
- /// To detect any access, use: 8 | 16 | 32 | 64 | 128.
- std::uint8_t detect_misaligned_access_via_page_table = 0;
- /// Determines if the above option only triggers when the misalignment straddles a
- /// page boundary.
- bool only_detect_misalignment_via_page_table_on_page_boundary = false;
-
- /// Fastmem Pointer
- /// This should point to the beginning of a 2^page_table_address_space_bits bytes
- /// address space which is in arranged just like what you wish for emulated memory to
- /// be. If the host page faults on an address, the JIT will fallback to calling the
- /// MemoryRead*/MemoryWrite* callbacks.
- void* fastmem_pointer = nullptr;
- /// Determines if instructions that pagefault should cause recompilation of that block
- /// with fastmem disabled.
- /// Recompiled code will use the page_table if this is available, otherwise memory
- /// accesses will hit the memory callbacks.
- bool recompile_on_fastmem_failure = true;
- /// Declares how many valid address bits are there in virtual addresses.
- /// Determines the size of fastmem arena. Valid values are between 12 and 64 inclusive.
- /// This is only used if fastmem_pointer is not nullptr.
- size_t fastmem_address_space_bits = 36;
- /// Determines what happens if the guest accesses an entry that is off the end of the
- /// fastmem arena. If true, Dynarmic will silently mirror fastmem's address space. If
- /// false, accessing memory outside of fastmem bounds will result in a call to the
- /// relevant memory callback.
- /// This is only used if fastmem_pointer is not nullptr.
- bool silently_mirror_fastmem = true;
-
- /// Determines if we should use the above fastmem_pointer for exclusive reads and
- /// writes. On x64, dynarmic currently relies on x64 cmpxchg semantics which may not
- /// provide fully accurate emulation.
- bool fastmem_exclusive_access = false;
- /// Determines if exclusive access instructions that pagefault should cause
- /// recompilation of that block with fastmem disabled. Recompiled code will use memory
- /// callbacks.
- bool recompile_on_exclusive_fastmem_failure = true;
-
- /// This option relates to translation. Generally when we run into an unpredictable
- /// instruction the ExceptionRaised callback is called. If this is true, we define
- /// definite behaviour for some unpredictable instructions.
- bool define_unpredictable_behaviour = false;
-
- /// HACK:
- /// This tells the translator a wall clock will be used, thus allowing it
- /// to avoid writting certain unnecessary code only needed for cycle timers.
- bool wall_clock_cntpct = false;
-
- /// This allows accurately emulating protection fault handlers. If true, we check
- /// for exit after every data memory access by the emulated program.
- bool check_halt_on_memory_access = false;
-
- /// This option allows you to disable cycle counting. If this is set to false,
- /// AddTicks and GetTicksRemaining are never called, and no cycle counting is done.
- bool enable_cycle_counting = true;
-
- // Minimum size is about 8MiB. Maximum size is about 128MiB (arm64 host) or 2GiB (x64 host).
- // Maximum size is limited by the maximum length of a x86_64 / arm64 jump.
- size_t code_cache_size = 128 * 1024 * 1024; // bytes
-
- /// Internal use only
- bool very_verbose_debugging_output = false;
-};
-
-} // namespace A64
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/exclusive_monitor.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/exclusive_monitor.h
deleted file mode 100644
index 48136758..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/exclusive_monitor.h
+++ /dev/null
@@ -1,88 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <atomic>
-#include <cstddef>
-#include <cstdint>
-#include <cstring>
-#include <vector>
-
-#include <dynarmic/common/spin_lock.h>
-
-namespace Dynarmic {
-
-using VAddr = std::uint64_t;
-using Vector = std::array<std::uint64_t, 2>;
-
-class ExclusiveMonitor {
-public:
- /// @param processor_count Maximum number of processors using this global
- /// exclusive monitor. Each processor must have a
- /// unique id.
- explicit ExclusiveMonitor(size_t processor_count);
-
- size_t GetProcessorCount() const;
-
- /// Marks a region containing [address, address+size) to be exclusive to
- /// processor processor_id.
- template<typename T, typename Function>
- T ReadAndMark(size_t processor_id, VAddr address, Function op) {
- static_assert(std::is_trivially_copyable_v<T>);
- const VAddr masked_address = address & RESERVATION_GRANULE_MASK;
-
- Lock();
- exclusive_addresses[processor_id] = masked_address;
- const T value = op();
- std::memcpy(exclusive_values[processor_id].data(), &value, sizeof(T));
- Unlock();
- return value;
- }
-
- /// Checks to see if processor processor_id has exclusive access to the
- /// specified region. If it does, executes the operation then clears
- /// the exclusive state for processors if their exclusive region(s)
- /// contain [address, address+size).
- template<typename T, typename Function>
- bool DoExclusiveOperation(size_t processor_id, VAddr address, Function op) {
- static_assert(std::is_trivially_copyable_v<T>);
- if (!CheckAndClear(processor_id, address)) {
- return false;
- }
-
- T saved_value;
- std::memcpy(&saved_value, exclusive_values[processor_id].data(), sizeof(T));
- const bool result = op(saved_value);
-
- Unlock();
- return result;
- }
-
- /// Unmark everything.
- void Clear();
- /// Unmark processor id
- void ClearProcessor(size_t processor_id);
-
-private:
- bool CheckAndClear(size_t processor_id, VAddr address);
-
- void Lock();
- void Unlock();
-
- friend volatile int* GetExclusiveMonitorLockPointer(ExclusiveMonitor*);
- friend size_t GetExclusiveMonitorProcessorCount(ExclusiveMonitor*);
- friend VAddr* GetExclusiveMonitorAddressPointer(ExclusiveMonitor*, size_t index);
- friend Vector* GetExclusiveMonitorValuePointer(ExclusiveMonitor*, size_t index);
-
- static constexpr VAddr RESERVATION_GRANULE_MASK = 0xFFFF'FFFF'FFFF'FFFFull;
- static constexpr VAddr INVALID_EXCLUSIVE_ADDRESS = 0xDEAD'DEAD'DEAD'DEADull;
- SpinLock lock;
- std::vector<VAddr> exclusive_addresses;
- std::vector<Vector> exclusive_values;
-};
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/halt_reason.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/halt_reason.h
deleted file mode 100644
index 121a8455..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/halt_reason.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2020 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstdint>
-
-namespace Dynarmic {
-
-enum class HaltReason : std::uint32_t {
- Step = 0x00000001,
- CacheInvalidation = 0x00000002,
- MemoryAbort = 0x00000004,
- UserDefined1 = 0x01000000,
- UserDefined2 = 0x02000000,
- UserDefined3 = 0x04000000,
- UserDefined4 = 0x08000000,
- UserDefined5 = 0x10000000,
- UserDefined6 = 0x20000000,
- UserDefined7 = 0x40000000,
- UserDefined8 = 0x80000000,
-};
-
-constexpr HaltReason operator~(HaltReason hr) {
- return static_cast<HaltReason>(~static_cast<std::uint32_t>(hr));
-}
-
-constexpr HaltReason operator|(HaltReason hr1, HaltReason hr2) {
- return static_cast<HaltReason>(static_cast<std::uint32_t>(hr1) | static_cast<std::uint32_t>(hr2));
-}
-
-constexpr HaltReason operator&(HaltReason hr1, HaltReason hr2) {
- return static_cast<HaltReason>(static_cast<std::uint32_t>(hr1) & static_cast<std::uint32_t>(hr2));
-}
-
-constexpr HaltReason operator|=(HaltReason& result, HaltReason hr) {
- return result = (result | hr);
-}
-
-constexpr HaltReason operator&=(HaltReason& result, HaltReason hr) {
- return result = (result & hr);
-}
-
-constexpr bool operator!(HaltReason hr) {
- return static_cast<std::uint32_t>(hr) == 0;
-}
-
-constexpr bool Has(HaltReason hr1, HaltReason hr2) {
- return (static_cast<std::uint32_t>(hr1) & static_cast<std::uint32_t>(hr2)) != 0;
-}
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/optimization_flags.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/optimization_flags.h
deleted file mode 100644
index 2f65f0bf..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/interface/optimization_flags.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2020 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstdint>
-
-namespace Dynarmic {
-
-enum class OptimizationFlag : std::uint32_t {
- /// This optimization avoids dispatcher lookups by allowing emitted basic blocks to jump
- /// directly to other basic blocks if the destination PC is predictable at JIT-time.
- /// This is a safe optimization.
- BlockLinking = 0x00000001,
- /// This optimization avoids dispatcher lookups by emulating a return stack buffer. This
- /// allows for function returns and syscall returns to be predicted at runtime.
- /// This is a safe optimization.
- ReturnStackBuffer = 0x00000002,
- /// This optimization enables a two-tiered dispatch system.
- /// A fast dispatcher (written in assembly) first does a look-up in a small MRU cache.
- /// If this fails, it falls back to the usual slower dispatcher.
- /// This is a safe optimization.
- FastDispatch = 0x00000004,
- /// This is an IR optimization. This optimization eliminates unnecessary emulated CPU state
- /// context lookups.
- /// This is a safe optimization.
- GetSetElimination = 0x00000008,
- /// This is an IR optimization. This optimization does constant propagation.
- /// This is a safe optimization.
- ConstProp = 0x00000010,
- /// This is enables miscellaneous safe IR optimizations.
- MiscIROpt = 0x00000020,
-
- /// This is an UNSAFE optimization that reduces accuracy of fused multiply-add operations.
- /// This unfuses fused instructions to improve performance on host CPUs without FMA support.
- Unsafe_UnfuseFMA = 0x00010000,
- /// This is an UNSAFE optimization that reduces accuracy of certain floating-point instructions.
- /// This allows results of FRECPE and FRSQRTE to have **less** error than spec allows.
- Unsafe_ReducedErrorFP = 0x00020000,
- /// This is an UNSAFE optimization that causes floating-point instructions to not produce correct NaNs.
- /// This may also result in inaccurate results when instructions are given certain special values.
- Unsafe_InaccurateNaN = 0x00040000,
- /// This is an UNSAFE optimization that causes ASIMD floating-point instructions to be run with incorrect
- /// rounding modes. This may result in inaccurate results with all floating-point ASIMD instructions.
- Unsafe_IgnoreStandardFPCRValue = 0x00080000,
- /// This is an UNSAFE optimization that causes the global monitor to be ignored. This may
- /// result in unexpected behaviour in multithreaded scenarios, including but not limited
- /// to data races and deadlocks.
- Unsafe_IgnoreGlobalMonitor = 0x00100000,
-};
-
-constexpr OptimizationFlag no_optimizations = static_cast<OptimizationFlag>(0);
-constexpr OptimizationFlag all_safe_optimizations = static_cast<OptimizationFlag>(0x0000FFFF);
-
-constexpr OptimizationFlag operator~(OptimizationFlag f) {
- return static_cast<OptimizationFlag>(~static_cast<std::uint32_t>(f));
-}
-
-constexpr OptimizationFlag operator|(OptimizationFlag f1, OptimizationFlag f2) {
- return static_cast<OptimizationFlag>(static_cast<std::uint32_t>(f1) | static_cast<std::uint32_t>(f2));
-}
-
-constexpr OptimizationFlag operator&(OptimizationFlag f1, OptimizationFlag f2) {
- return static_cast<OptimizationFlag>(static_cast<std::uint32_t>(f1) & static_cast<std::uint32_t>(f2));
-}
-
-constexpr OptimizationFlag operator|=(OptimizationFlag& result, OptimizationFlag f) {
- return result = (result | f);
-}
-
-constexpr OptimizationFlag operator&=(OptimizationFlag& result, OptimizationFlag f) {
- return result = (result & f);
-}
-
-constexpr bool operator!(OptimizationFlag f) {
- return f == no_optimizations;
-}
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/acc_type.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/acc_type.h
deleted file mode 100644
index f259660b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/acc_type.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::IR {
-
-enum class AccType {
- NORMAL,
- VEC,
- STREAM,
- VECSTREAM,
- ATOMIC,
- ORDERED,
- ORDEREDRW,
- LIMITEDORDERED,
- UNPRIV,
- IFETCH,
- PTW,
- DC,
- IC,
- DCZVA,
- AT,
- SWAP, // TODO: Remove
-};
-
-} // namespace Dynarmic::IR
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/basic_block.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/basic_block.h
deleted file mode 100644
index 18d7fada..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/basic_block.h
+++ /dev/null
@@ -1,168 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <initializer_list>
-#include <memory>
-#include <optional>
-#include <string>
-
-#include <mcl/container/intrusive_list.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/ir/location_descriptor.h"
-#include "dynarmic/ir/microinstruction.h"
-#include "dynarmic/ir/terminal.h"
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::Common {
-class Pool;
-}
-
-namespace Dynarmic::IR {
-
-enum class Cond;
-enum class Opcode;
-
-/**
- * A basic block. It consists of zero or more instructions followed by exactly one terminal.
- * Note that this is a linear IR and not a pure tree-based IR: i.e.: there is an ordering to
- * the microinstructions. This only matters before chaining is done in order to correctly
- * order memory accesses.
- */
-class Block final {
-public:
- using InstructionList = mcl::intrusive_list<Inst>;
- using size_type = InstructionList::size_type;
- using iterator = InstructionList::iterator;
- using const_iterator = InstructionList::const_iterator;
- using reverse_iterator = InstructionList::reverse_iterator;
- using const_reverse_iterator = InstructionList::const_reverse_iterator;
-
- explicit Block(const LocationDescriptor& location);
- ~Block();
-
- Block(const Block&) = delete;
- Block& operator=(const Block&) = delete;
-
- Block(Block&&);
- Block& operator=(Block&&);
-
- bool empty() const { return instructions.empty(); }
- size_type size() const { return instructions.size(); }
-
- Inst& front() { return instructions.front(); }
- const Inst& front() const { return instructions.front(); }
-
- Inst& back() { return instructions.back(); }
- const Inst& back() const { return instructions.back(); }
-
- iterator begin() { return instructions.begin(); }
- const_iterator begin() const { return instructions.begin(); }
- iterator end() { return instructions.end(); }
- const_iterator end() const { return instructions.end(); }
-
- reverse_iterator rbegin() { return instructions.rbegin(); }
- const_reverse_iterator rbegin() const { return instructions.rbegin(); }
- reverse_iterator rend() { return instructions.rend(); }
- const_reverse_iterator rend() const { return instructions.rend(); }
-
- const_iterator cbegin() const { return instructions.cbegin(); }
- const_iterator cend() const { return instructions.cend(); }
-
- const_reverse_iterator crbegin() const { return instructions.crbegin(); }
- const_reverse_iterator crend() const { return instructions.crend(); }
-
- /**
- * Appends a new instruction to the end of this basic block,
- * handling any allocations necessary to do so.
- *
- * @param op Opcode representing the instruction to add.
- * @param args A sequence of Value instances used as arguments for the instruction.
- */
- void AppendNewInst(Opcode op, std::initializer_list<Value> args);
-
- /**
- * Prepends a new instruction to this basic block before the insertion point,
- * handling any allocations necessary to do so.
- *
- * @param insertion_point Where to insert the new instruction.
- * @param op Opcode representing the instruction to add.
- * @param args A sequence of Value instances used as arguments for the instruction.
- * @returns Iterator to the newly created instruction.
- */
- iterator PrependNewInst(iterator insertion_point, Opcode op, std::initializer_list<Value> args);
-
- /// Gets the starting location for this basic block.
- LocationDescriptor Location() const;
- /// Gets the end location for this basic block.
- LocationDescriptor EndLocation() const;
- /// Sets the end location for this basic block.
- void SetEndLocation(const LocationDescriptor& descriptor);
-
- /// Gets the condition required to pass in order to execute this block.
- Cond GetCondition() const;
- /// Sets the condition required to pass in order to execute this block.
- void SetCondition(Cond condition);
-
- /// Gets the location of the block to execute if the predicated condition fails.
- LocationDescriptor ConditionFailedLocation() const;
- /// Sets the location of the block to execute if the predicated condition fails.
- void SetConditionFailedLocation(LocationDescriptor fail_location);
- /// Determines whether or not a predicated condition failure block is present.
- bool HasConditionFailedLocation() const;
-
- /// Gets a mutable reference to the condition failed cycle count.
- size_t& ConditionFailedCycleCount();
- /// Gets an immutable reference to the condition failed cycle count.
- const size_t& ConditionFailedCycleCount() const;
-
- /// Gets a mutable reference to the instruction list for this basic block.
- InstructionList& Instructions();
- /// Gets an immutable reference to the instruction list for this basic block.
- const InstructionList& Instructions() const;
-
- /// Gets the terminal instruction for this basic block.
- Terminal GetTerminal() const;
- /// Sets the terminal instruction for this basic block.
- void SetTerminal(Terminal term);
- /// Replaces the terminal instruction for this basic block.
- void ReplaceTerminal(Terminal term);
- /// Determines whether or not this basic block has a terminal instruction.
- bool HasTerminal() const;
-
- /// Gets a mutable reference to the cycle count for this basic block.
- size_t& CycleCount();
- /// Gets an immutable reference to the cycle count for this basic block.
- const size_t& CycleCount() const;
-
-private:
- /// Description of the starting location of this block
- LocationDescriptor location;
- /// Description of the end location of this block
- LocationDescriptor end_location;
- /// Conditional to pass in order to execute this block
- Cond cond;
- /// Block to execute next if `cond` did not pass.
- std::optional<LocationDescriptor> cond_failed = {};
- /// Number of cycles this block takes to execute if the conditional fails.
- size_t cond_failed_cycle_count = 0;
-
- /// List of instructions in this block.
- InstructionList instructions;
- /// Memory pool for instruction list
- std::unique_ptr<Common::Pool> instruction_alloc_pool;
- /// Terminal instruction of this block.
- Terminal terminal = Term::Invalid{};
-
- /// Number of cycles this block takes to execute.
- size_t cycle_count = 0;
-};
-
-/// Returns a string representation of the contents of block. Intended for debugging.
-std::string DumpBlock(const IR::Block& block);
-
-} // namespace Dynarmic::IR
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/cond.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/cond.h
deleted file mode 100644
index 5bdd05ed..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/cond.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::IR {
-
-enum class Cond {
- EQ,
- NE,
- CS,
- CC,
- MI,
- PL,
- VS,
- VC,
- HI,
- LS,
- GE,
- LT,
- GT,
- LE,
- AL,
- NV,
- HS = CS,
- LO = CC,
-};
-
-} // namespace Dynarmic::IR
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/ir_emitter.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/ir_emitter.h
deleted file mode 100644
index d37df245..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/ir_emitter.h
+++ /dev/null
@@ -1,432 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/ir/acc_type.h"
-#include "dynarmic/ir/basic_block.h"
-#include "dynarmic/ir/location_descriptor.h"
-#include "dynarmic/ir/terminal.h"
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::FP {
-enum class RoundingMode;
-} // namespace Dynarmic::FP
-
-// ARM JIT Microinstruction Intermediate Representation
-//
-// This intermediate representation is an SSA IR. It is designed primarily for analysis,
-// though it can be lowered into a reduced form for interpretation. Each IR node (Value)
-// is a microinstruction of an idealised ARM CPU. The choice of microinstructions is made
-// not based on any existing microarchitecture but on ease of implementation.
-
-namespace Dynarmic::IR {
-
-enum class Opcode;
-
-template<typename T>
-struct ResultAndCarry {
- T result;
- U1 carry;
-};
-
-template<typename T>
-struct ResultAndOverflow {
- T result;
- U1 overflow;
-};
-
-template<typename T>
-struct ResultAndGE {
- T result;
- U32 ge;
-};
-
-struct UpperAndLower {
- U128 upper;
- U128 lower;
-};
-
-enum class MemOp {
- LOAD,
- STORE,
- PREFETCH,
-};
-
-/**
- * Convenience class to construct a basic block of the intermediate representation.
- * `block` is the resulting block.
- * The user of this class updates `current_location` as appropriate.
- */
-class IREmitter {
-public:
- explicit IREmitter(Block& block)
- : block(block), insertion_point(block.end()) {}
-
- Block& block;
-
- U1 Imm1(bool value) const;
- U8 Imm8(u8 value) const;
- U16 Imm16(u16 value) const;
- U32 Imm32(u32 value) const;
- U64 Imm64(u64 value) const;
-
- void PushRSB(const LocationDescriptor& return_location);
-
- U64 Pack2x32To1x64(const U32& lo, const U32& hi);
- U128 Pack2x64To1x128(const U64& lo, const U64& hi);
- UAny LeastSignificant(size_t bitsize, const U32U64& value);
- U32 LeastSignificantWord(const U64& value);
- U16 LeastSignificantHalf(U32U64 value);
- U8 LeastSignificantByte(U32U64 value);
- ResultAndCarry<U32> MostSignificantWord(const U64& value);
- U1 MostSignificantBit(const U32& value);
- U1 IsZero(const U32& value);
- U1 IsZero(const U64& value);
- U1 IsZero(const U32U64& value);
- U1 TestBit(const U32U64& value, const U8& bit);
- U32 ConditionalSelect(Cond cond, const U32& a, const U32& b);
- U64 ConditionalSelect(Cond cond, const U64& a, const U64& b);
- NZCV ConditionalSelect(Cond cond, const NZCV& a, const NZCV& b);
- U32U64 ConditionalSelect(Cond cond, const U32U64& a, const U32U64& b);
-
- U1 GetCFlagFromNZCV(const NZCV& nzcv);
- NZCV NZCVFromPackedFlags(const U32& a);
- // This pseudo-instruction may only be added to instructions that support it.
- NZCV NZCVFrom(const Value& value);
-
- ResultAndCarry<U32> LogicalShiftLeft(const U32& value_in, const U8& shift_amount, const U1& carry_in);
- ResultAndCarry<U32> LogicalShiftRight(const U32& value_in, const U8& shift_amount, const U1& carry_in);
- ResultAndCarry<U32> ArithmeticShiftRight(const U32& value_in, const U8& shift_amount, const U1& carry_in);
- ResultAndCarry<U32> RotateRight(const U32& value_in, const U8& shift_amount, const U1& carry_in);
- U32U64 LogicalShiftLeft(const U32U64& value_in, const U8& shift_amount);
- U32U64 LogicalShiftRight(const U32U64& value_in, const U8& shift_amount);
- U32U64 ArithmeticShiftRight(const U32U64& value_in, const U8& shift_amount);
- U32U64 RotateRight(const U32U64& value_in, const U8& shift_amount);
- U32U64 LogicalShiftLeftMasked(const U32U64& value_in, const U32U64& shift_amount);
- U32U64 LogicalShiftRightMasked(const U32U64& value_in, const U32U64& shift_amount);
- U32U64 ArithmeticShiftRightMasked(const U32U64& value_in, const U32U64& shift_amount);
- U32U64 RotateRightMasked(const U32U64& value_in, const U32U64& shift_amount);
- ResultAndCarry<U32> RotateRightExtended(const U32& value_in, const U1& carry_in);
- U32U64 AddWithCarry(const U32U64& a, const U32U64& b, const U1& carry_in);
- U32U64 SubWithCarry(const U32U64& a, const U32U64& b, const U1& carry_in);
- U32U64 Add(const U32U64& a, const U32U64& b);
- U32U64 Sub(const U32U64& a, const U32U64& b);
- U32U64 Mul(const U32U64& a, const U32U64& b);
- U64 UnsignedMultiplyHigh(const U64& a, const U64& b);
- U64 SignedMultiplyHigh(const U64& a, const U64& b);
- U32U64 UnsignedDiv(const U32U64& a, const U32U64& b);
- U32U64 SignedDiv(const U32U64& a, const U32U64& b);
- U32U64 And(const U32U64& a, const U32U64& b);
- U32U64 AndNot(const U32U64& a, const U32U64& b);
- U32U64 Eor(const U32U64& a, const U32U64& b);
- U32U64 Or(const U32U64& a, const U32U64& b);
- U32U64 Not(const U32U64& a);
- U32 SignExtendToWord(const UAny& a);
- U64 SignExtendToLong(const UAny& a);
- U32 SignExtendByteToWord(const U8& a);
- U32 SignExtendHalfToWord(const U16& a);
- U64 SignExtendWordToLong(const U32& a);
- U32 ZeroExtendToWord(const UAny& a);
- U64 ZeroExtendToLong(const UAny& a);
- U128 ZeroExtendToQuad(const UAny& a);
- U32 ZeroExtendByteToWord(const U8& a);
- U32 ZeroExtendHalfToWord(const U16& a);
- U64 ZeroExtendWordToLong(const U32& a);
- U32 IndeterminateExtendToWord(const UAny& a);
- U64 IndeterminateExtendToLong(const UAny& a);
- U32 ByteReverseWord(const U32& a);
- U16 ByteReverseHalf(const U16& a);
- U64 ByteReverseDual(const U64& a);
- U32U64 CountLeadingZeros(const U32U64& a);
- U32U64 ExtractRegister(const U32U64& a, const U32U64& b, const U8& lsb);
- U32U64 ReplicateBit(const U32U64& a, u8 bit);
- U32U64 MaxSigned(const U32U64& a, const U32U64& b);
- U32U64 MaxUnsigned(const U32U64& a, const U32U64& b);
- U32U64 MinSigned(const U32U64& a, const U32U64& b);
- U32U64 MinUnsigned(const U32U64& a, const U32U64& b);
-
- ResultAndOverflow<U32> SignedSaturatedAddWithFlag(const U32& a, const U32& b);
- ResultAndOverflow<U32> SignedSaturatedSubWithFlag(const U32& a, const U32& b);
- ResultAndOverflow<U32> SignedSaturation(const U32& a, size_t bit_size_to_saturate_to);
- ResultAndOverflow<U32> UnsignedSaturation(const U32& a, size_t bit_size_to_saturate_to);
-
- UAny SignedSaturatedAdd(const UAny& a, const UAny& b);
- UAny SignedSaturatedDoublingMultiplyReturnHigh(const UAny& a, const UAny& b);
- UAny SignedSaturatedSub(const UAny& a, const UAny& b);
- UAny UnsignedSaturatedAdd(const UAny& a, const UAny& b);
- UAny UnsignedSaturatedSub(const UAny& a, const UAny& b);
-
- U128 VectorSignedSaturatedAdd(size_t esize, const U128& a, const U128& b);
- U128 VectorSignedSaturatedSub(size_t esize, const U128& a, const U128& b);
- U128 VectorUnsignedSaturatedAdd(size_t esize, const U128& a, const U128& b);
- U128 VectorUnsignedSaturatedSub(size_t esize, const U128& a, const U128& b);
-
- ResultAndGE<U32> PackedAddU8(const U32& a, const U32& b);
- ResultAndGE<U32> PackedAddS8(const U32& a, const U32& b);
- ResultAndGE<U32> PackedAddU16(const U32& a, const U32& b);
- ResultAndGE<U32> PackedAddS16(const U32& a, const U32& b);
- ResultAndGE<U32> PackedSubU8(const U32& a, const U32& b);
- ResultAndGE<U32> PackedSubS8(const U32& a, const U32& b);
- ResultAndGE<U32> PackedSubU16(const U32& a, const U32& b);
- ResultAndGE<U32> PackedSubS16(const U32& a, const U32& b);
- ResultAndGE<U32> PackedAddSubU16(const U32& a, const U32& b);
- ResultAndGE<U32> PackedAddSubS16(const U32& a, const U32& b);
- ResultAndGE<U32> PackedSubAddU16(const U32& a, const U32& b);
- ResultAndGE<U32> PackedSubAddS16(const U32& a, const U32& b);
- U32 PackedHalvingAddU8(const U32& a, const U32& b);
- U32 PackedHalvingAddS8(const U32& a, const U32& b);
- U32 PackedHalvingSubU8(const U32& a, const U32& b);
- U32 PackedHalvingSubS8(const U32& a, const U32& b);
- U32 PackedHalvingAddU16(const U32& a, const U32& b);
- U32 PackedHalvingAddS16(const U32& a, const U32& b);
- U32 PackedHalvingSubU16(const U32& a, const U32& b);
- U32 PackedHalvingSubS16(const U32& a, const U32& b);
- U32 PackedHalvingAddSubU16(const U32& a, const U32& b);
- U32 PackedHalvingAddSubS16(const U32& a, const U32& b);
- U32 PackedHalvingSubAddU16(const U32& a, const U32& b);
- U32 PackedHalvingSubAddS16(const U32& a, const U32& b);
- U32 PackedSaturatedAddU8(const U32& a, const U32& b);
- U32 PackedSaturatedAddS8(const U32& a, const U32& b);
- U32 PackedSaturatedSubU8(const U32& a, const U32& b);
- U32 PackedSaturatedSubS8(const U32& a, const U32& b);
- U32 PackedSaturatedAddU16(const U32& a, const U32& b);
- U32 PackedSaturatedAddS16(const U32& a, const U32& b);
- U32 PackedSaturatedSubU16(const U32& a, const U32& b);
- U32 PackedSaturatedSubS16(const U32& a, const U32& b);
- U32 PackedAbsDiffSumU8(const U32& a, const U32& b);
- U32 PackedSelect(const U32& ge, const U32& a, const U32& b);
-
- U32 CRC32Castagnoli8(const U32& a, const U32& b);
- U32 CRC32Castagnoli16(const U32& a, const U32& b);
- U32 CRC32Castagnoli32(const U32& a, const U32& b);
- U32 CRC32Castagnoli64(const U32& a, const U64& b);
- U32 CRC32ISO8(const U32& a, const U32& b);
- U32 CRC32ISO16(const U32& a, const U32& b);
- U32 CRC32ISO32(const U32& a, const U32& b);
- U32 CRC32ISO64(const U32& a, const U64& b);
-
- U128 AESDecryptSingleRound(const U128& a);
- U128 AESEncryptSingleRound(const U128& a);
- U128 AESInverseMixColumns(const U128& a);
- U128 AESMixColumns(const U128& a);
-
- U8 SM4AccessSubstitutionBox(const U8& a);
-
- U128 SHA256Hash(const U128& x, const U128& y, const U128& w, bool part1);
- U128 SHA256MessageSchedule0(const U128& x, const U128& y);
- U128 SHA256MessageSchedule1(const U128& x, const U128& y, const U128& z);
-
- UAny VectorGetElement(size_t esize, const U128& a, size_t index);
- U128 VectorSetElement(size_t esize, const U128& a, size_t index, const UAny& elem);
- U128 VectorAbs(size_t esize, const U128& a);
- U128 VectorAdd(size_t esize, const U128& a, const U128& b);
- U128 VectorAnd(const U128& a, const U128& b);
- U128 VectorAndNot(const U128& a, const U128& b);
- U128 VectorArithmeticShiftRight(size_t esize, const U128& a, u8 shift_amount);
- U128 VectorArithmeticVShift(size_t esize, const U128& a, const U128& b);
- U128 VectorBroadcast(size_t esize, const UAny& a);
- U128 VectorBroadcastLower(size_t esize, const UAny& a);
- U128 VectorBroadcastElement(size_t esize, const U128& a, size_t index);
- U128 VectorBroadcastElementLower(size_t esize, const U128& a, size_t index);
- U128 VectorCountLeadingZeros(size_t esize, const U128& a);
- U128 VectorEor(const U128& a, const U128& b);
- U128 VectorDeinterleaveEven(size_t esize, const U128& a, const U128& b);
- U128 VectorDeinterleaveEvenLower(size_t esize, const U128& a, const U128& b);
- U128 VectorDeinterleaveOdd(size_t esize, const U128& a, const U128& b);
- U128 VectorDeinterleaveOddLower(size_t esize, const U128& a, const U128& b);
- U128 VectorEqual(size_t esize, const U128& a, const U128& b);
- U128 VectorExtract(const U128& a, const U128& b, size_t position);
- U128 VectorExtractLower(const U128& a, const U128& b, size_t position);
- U128 VectorGreaterEqualSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorGreaterEqualUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorGreaterSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorGreaterUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorHalvingAddSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorHalvingAddUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorHalvingSubSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorHalvingSubUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorInterleaveLower(size_t esize, const U128& a, const U128& b);
- U128 VectorInterleaveUpper(size_t esize, const U128& a, const U128& b);
- U128 VectorLessEqualSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorLessEqualUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorLessSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorLessUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorLogicalShiftLeft(size_t esize, const U128& a, u8 shift_amount);
- U128 VectorLogicalShiftRight(size_t esize, const U128& a, u8 shift_amount);
- U128 VectorLogicalVShift(size_t esize, const U128& a, const U128& b);
- U128 VectorMaxSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorMaxUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorMinSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorMinUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorMultiply(size_t esize, const U128& a, const U128& b);
- U128 VectorMultiplySignedWiden(size_t esize, const U128& a, const U128& b);
- U128 VectorMultiplyUnsignedWiden(size_t esize, const U128& a, const U128& b);
- U128 VectorNarrow(size_t original_esize, const U128& a);
- U128 VectorNot(const U128& a);
- U128 VectorOr(const U128& a, const U128& b);
- U128 VectorPairedAdd(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedAddLower(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedAddSignedWiden(size_t original_esize, const U128& a);
- U128 VectorPairedAddUnsignedWiden(size_t original_esize, const U128& a);
- U128 VectorPairedMaxSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedMaxUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedMinSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedMinUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedMaxSignedLower(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedMaxUnsignedLower(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedMinSignedLower(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedMinUnsignedLower(size_t esize, const U128& a, const U128& b);
- U128 VectorPolynomialMultiply(const U128& a, const U128& b);
- U128 VectorPolynomialMultiplyLong(size_t esize, const U128& a, const U128& b);
- U128 VectorPopulationCount(const U128& a);
- U128 VectorReverseBits(const U128& a);
- U128 VectorReverseElementsInHalfGroups(size_t esize, const U128& a);
- U128 VectorReverseElementsInWordGroups(size_t esize, const U128& a);
- U128 VectorReverseElementsInLongGroups(size_t esize, const U128& a);
- U128 VectorReduceAdd(size_t esize, const U128& a);
- U128 VectorRotateLeft(size_t esize, const U128& a, u8 amount);
- U128 VectorRotateRight(size_t esize, const U128& a, u8 amount);
- U128 VectorRotateWholeVectorRight(const U128& a, u8 amount);
- U128 VectorRoundingHalvingAddSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorRoundingHalvingAddUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorRoundingShiftLeftSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorRoundingShiftLeftUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorSignExtend(size_t original_esize, const U128& a);
- U128 VectorSignedAbsoluteDifference(size_t esize, const U128& a, const U128& b);
- UpperAndLower VectorSignedMultiply(size_t esize, const U128& a, const U128& b);
- U128 VectorSignedSaturatedAbs(size_t esize, const U128& a);
- U128 VectorSignedSaturatedAccumulateUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorSignedSaturatedDoublingMultiplyHigh(size_t esize, const U128& a, const U128& b);
- U128 VectorSignedSaturatedDoublingMultiplyHighRounding(size_t esize, const U128& a, const U128& b);
- U128 VectorSignedSaturatedDoublingMultiplyLong(size_t esize, const U128& a, const U128& b);
- U128 VectorSignedSaturatedNarrowToSigned(size_t original_esize, const U128& a);
- U128 VectorSignedSaturatedNarrowToUnsigned(size_t original_esize, const U128& a);
- U128 VectorSignedSaturatedNeg(size_t esize, const U128& a);
- U128 VectorSignedSaturatedShiftLeft(size_t esize, const U128& a, const U128& b);
- U128 VectorSignedSaturatedShiftLeftUnsigned(size_t esize, const U128& a, u8 shift_amount);
- U128 VectorSub(size_t esize, const U128& a, const U128& b);
- Table VectorTable(std::vector<U64> values);
- Table VectorTable(std::vector<U128> values);
- U64 VectorTableLookup(const U64& defaults, const Table& table, const U64& indices);
- U128 VectorTableLookup(const U128& defaults, const Table& table, const U128& indices);
- U128 VectorTranspose(size_t esize, const U128& a, const U128& b, bool part);
- U128 VectorUnsignedAbsoluteDifference(size_t esize, const U128& a, const U128& b);
- U128 VectorUnsignedRecipEstimate(const U128& a);
- U128 VectorUnsignedRecipSqrtEstimate(const U128& a);
- U128 VectorUnsignedSaturatedAccumulateSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorUnsignedSaturatedNarrow(size_t esize, const U128& a);
- U128 VectorUnsignedSaturatedShiftLeft(size_t esize, const U128& a, const U128& b);
- U128 VectorZeroExtend(size_t original_esize, const U128& a);
- U128 VectorZeroUpper(const U128& a);
- U128 ZeroVector();
-
- U16U32U64 FPAbs(const U16U32U64& a);
- U32U64 FPAdd(const U32U64& a, const U32U64& b);
- NZCV FPCompare(const U32U64& a, const U32U64& b, bool exc_on_qnan);
- U32U64 FPDiv(const U32U64& a, const U32U64& b);
- U32U64 FPMax(const U32U64& a, const U32U64& b);
- U32U64 FPMaxNumeric(const U32U64& a, const U32U64& b);
- U32U64 FPMin(const U32U64& a, const U32U64& b);
- U32U64 FPMinNumeric(const U32U64& a, const U32U64& b);
- U32U64 FPMul(const U32U64& a, const U32U64& b);
- U16U32U64 FPMulAdd(const U16U32U64& addend, const U16U32U64& op1, const U16U32U64& op2);
- U16U32U64 FPMulSub(const U16U32U64& minuend, const U16U32U64& op1, const U16U32U64& op2);
- U32U64 FPMulX(const U32U64& a, const U32U64& b);
- U16U32U64 FPNeg(const U16U32U64& a);
- U16U32U64 FPRecipEstimate(const U16U32U64& a);
- U16U32U64 FPRecipExponent(const U16U32U64& a);
- U16U32U64 FPRecipStepFused(const U16U32U64& a, const U16U32U64& b);
- U16U32U64 FPRoundInt(const U16U32U64& a, FP::RoundingMode rounding, bool exact);
- U16U32U64 FPRSqrtEstimate(const U16U32U64& a);
- U16U32U64 FPRSqrtStepFused(const U16U32U64& a, const U16U32U64& b);
- U32U64 FPSqrt(const U32U64& a);
- U32U64 FPSub(const U32U64& a, const U32U64& b);
- U16 FPDoubleToHalf(const U64& a, FP::RoundingMode rounding);
- U32 FPDoubleToSingle(const U64& a, FP::RoundingMode rounding);
- U64 FPHalfToDouble(const U16& a, FP::RoundingMode rounding);
- U32 FPHalfToSingle(const U16& a, FP::RoundingMode rounding);
- U16 FPSingleToHalf(const U32& a, FP::RoundingMode rounding);
- U64 FPSingleToDouble(const U32& a, FP::RoundingMode rounding);
- U16 FPToFixedS16(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U32 FPToFixedS32(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U64 FPToFixedS64(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U16 FPToFixedU16(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U32 FPToFixedU32(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U64 FPToFixedU64(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U32 FPSignedFixedToSingle(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U32 FPUnsignedFixedToSingle(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U64 FPSignedFixedToDouble(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U64 FPUnsignedFixedToDouble(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
-
- U128 FPVectorAbs(size_t esize, const U128& a);
- U128 FPVectorAdd(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorDiv(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorEqual(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorFromHalf(size_t esize, const U128& a, FP::RoundingMode rounding, bool fpcr_controlled = true);
- U128 FPVectorFromSignedFixed(size_t esize, const U128& a, size_t fbits, FP::RoundingMode rounding, bool fpcr_controlled = true);
- U128 FPVectorFromUnsignedFixed(size_t esize, const U128& a, size_t fbits, FP::RoundingMode rounding, bool fpcr_controlled = true);
- U128 FPVectorGreater(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorGreaterEqual(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorMax(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorMaxNumeric(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorMin(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorMinNumeric(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorMul(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorMulAdd(size_t esize, const U128& addend, const U128& op1, const U128& op2, bool fpcr_controlled = true);
- U128 FPVectorMulX(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorNeg(size_t esize, const U128& a);
- U128 FPVectorPairedAdd(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorPairedAddLower(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorRecipEstimate(size_t esize, const U128& a, bool fpcr_controlled = true);
- U128 FPVectorRecipStepFused(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorRoundInt(size_t esize, const U128& operand, FP::RoundingMode rounding, bool exact, bool fpcr_controlled = true);
- U128 FPVectorRSqrtEstimate(size_t esize, const U128& a, bool fpcr_controlled = true);
- U128 FPVectorRSqrtStepFused(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorSqrt(size_t esize, const U128& a, bool fpcr_controlled = true);
- U128 FPVectorSub(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorToHalf(size_t esize, const U128& a, FP::RoundingMode rounding, bool fpcr_controlled = true);
- U128 FPVectorToSignedFixed(size_t esize, const U128& a, size_t fbits, FP::RoundingMode rounding, bool fpcr_controlled = true);
- U128 FPVectorToUnsignedFixed(size_t esize, const U128& a, size_t fbits, FP::RoundingMode rounding, bool fpcr_controlled = true);
-
- void Breakpoint();
- void CallHostFunction(void (*fn)(void));
- void CallHostFunction(void (*fn)(u64), const U64& arg1);
- void CallHostFunction(void (*fn)(u64, u64), const U64& arg1, const U64& arg2);
- void CallHostFunction(void (*fn)(u64, u64, u64), const U64& arg1, const U64& arg2, const U64& arg3);
-
- void SetTerm(const Terminal& terminal);
-
- void SetInsertionPointBefore(IR::Inst* new_insertion_point) {
- insertion_point = IR::Block::iterator{*new_insertion_point};
- }
-
- void SetInsertionPointBefore(IR::Block::iterator new_insertion_point) {
- insertion_point = new_insertion_point;
- }
-
- void SetInsertionPointAfter(IR::Inst* new_insertion_point) {
- insertion_point = IR::Block::iterator{*new_insertion_point};
- ++insertion_point;
- }
-
- void SetInsertionPointAfter(IR::Block::iterator new_insertion_point) {
- insertion_point = new_insertion_point;
- ++insertion_point;
- }
-
-protected:
- IR::Block::iterator insertion_point;
-
- template<typename T = Value, typename... Args>
- T Inst(Opcode op, Args... args) {
- auto iter = block.PrependNewInst(insertion_point, op, {Value(args)...});
- return T(Value(&*iter));
- }
-};
-
-} // namespace Dynarmic::IR
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/location_descriptor.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/location_descriptor.h
deleted file mode 100644
index 48e5e32b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/location_descriptor.h
+++ /dev/null
@@ -1,64 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <functional>
-#include <string>
-
-#include <fmt/format.h>
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::IR {
-
-class LocationDescriptor {
-public:
- explicit LocationDescriptor(u64 value)
- : value(value) {}
-
- bool operator==(const LocationDescriptor& o) const {
- return value == o.Value();
- }
-
- bool operator!=(const LocationDescriptor& o) const {
- return !operator==(o);
- }
-
- u64 Value() const { return value; }
-
-private:
- u64 value;
-};
-
-std::string ToString(const LocationDescriptor& descriptor);
-
-inline bool operator<(const LocationDescriptor& x, const LocationDescriptor& y) noexcept {
- return x.Value() < y.Value();
-}
-
-} // namespace Dynarmic::IR
-
-namespace std {
-template<>
-struct less<Dynarmic::IR::LocationDescriptor> {
- bool operator()(const Dynarmic::IR::LocationDescriptor& x, const Dynarmic::IR::LocationDescriptor& y) const noexcept {
- return x < y;
- }
-};
-template<>
-struct hash<Dynarmic::IR::LocationDescriptor> {
- size_t operator()(const Dynarmic::IR::LocationDescriptor& x) const noexcept {
- return std::hash<u64>()(x.Value());
- }
-};
-} // namespace std
-
-template<>
-struct fmt::formatter<Dynarmic::IR::LocationDescriptor> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::IR::LocationDescriptor descriptor, FormatContext& ctx) const {
- return formatter<std::string>::format(ToString(descriptor), ctx);
- }
-};
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/microinstruction.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/microinstruction.h
deleted file mode 100644
index 26b6b899..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/microinstruction.h
+++ /dev/null
@@ -1,162 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/container/intrusive_list.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::IR {
-
-enum class Opcode;
-enum class Type;
-
-constexpr size_t max_arg_count = 4;
-
-/**
- * A representation of a microinstruction. A single ARM/Thumb instruction may be
- * converted into zero or more microinstructions.
- */
-class Inst final : public mcl::intrusive_list_node<Inst> {
-public:
- explicit Inst(Opcode op)
- : op(op) {}
-
- /// Determines whether or not this instruction performs an arithmetic shift.
- bool IsArithmeticShift() const;
- /// Determines whether or not this instruction performs a logical shift.
- bool IsLogicalShift() const;
- /// Determines whether or not this instruction performs a circular shift.
- bool IsCircularShift() const;
- /// Determines whether or not this instruction performs any kind of shift.
- bool IsShift() const;
-
- /// Determines whether or not this instruction is a form of barrier.
- bool IsBarrier() const;
-
- /// Determines whether or not this instruction performs a shared memory read.
- bool IsSharedMemoryRead() const;
- /// Determines whether or not this instruction performs a shared memory write.
- bool IsSharedMemoryWrite() const;
- /// Determines whether or not this instruction performs a shared memory read or write.
- bool IsSharedMemoryReadOrWrite() const;
- /// Determines whether or not this instruction performs an atomic memory read.
- bool IsExclusiveMemoryRead() const;
- /// Determines whether or not this instruction performs an atomic memory write.
- bool IsExclusiveMemoryWrite() const;
-
- /// Determines whether or not this instruction performs any kind of memory read.
- bool IsMemoryRead() const;
- /// Determines whether or not this instruction performs any kind of memory write.
- bool IsMemoryWrite() const;
- /// Determines whether or not this instruction performs any kind of memory access.
- bool IsMemoryReadOrWrite() const;
-
- /// Determines whether or not this instruction reads from the CPSR.
- bool ReadsFromCPSR() const;
- /// Determines whether or not this instruction writes to the CPSR.
- bool WritesToCPSR() const;
-
- /// Determines whether or not this instruction writes to a system register.
- bool WritesToSystemRegister() const;
-
- /// Determines whether or not this instruction reads from a core register.
- bool ReadsFromCoreRegister() const;
- /// Determines whether or not this instruction writes to a core register.
- bool WritesToCoreRegister() const;
-
- /// Determines whether or not this instruction reads from the FPCR.
- bool ReadsFromFPCR() const;
- /// Determines whether or not this instruction writes to the FPCR.
- bool WritesToFPCR() const;
-
- /// Determines whether or not this instruction reads from the FPSR.
- bool ReadsFromFPSR() const;
- /// Determines whether or not this instruction writes to the FPSR.
- bool WritesToFPSR() const;
-
- /// Determines whether or not this instruction reads from the FPSR cumulative exception bits.
- bool ReadsFromFPSRCumulativeExceptionBits() const;
- /// Determines whether or not this instruction writes to the FPSR cumulative exception bits.
- bool WritesToFPSRCumulativeExceptionBits() const;
- /// Determines whether or not this instruction both reads from and writes to the FPSR cumulative exception bits.
- bool ReadsFromAndWritesToFPSRCumulativeExceptionBits() const;
-
- /// Determines whether or not this instruction reads from the FPSR cumulative saturation bit.
- bool ReadsFromFPSRCumulativeSaturationBit() const;
- /// Determines whether or not this instruction writes to the FPSR cumulative saturation bit.
- bool WritesToFPSRCumulativeSaturationBit() const;
-
- /// Determines whether or not this instruction alters memory-exclusivity.
- bool AltersExclusiveState() const;
-
- /// Determines whether or not this instruction accesses a coprocessor.
- bool IsCoprocessorInstruction() const;
-
- /// Determines whether or not this instruction causes a CPU exception.
- bool CausesCPUException() const;
-
- /// Determines whether or not this instruction is a SetCheckBit operation.
- bool IsSetCheckBitOperation() const;
-
- /// Determines whether or not this instruction may have side-effects.
- bool MayHaveSideEffects() const;
-
- /// Determines whether or not this instruction is a pseduo-instruction.
- /// Pseudo-instructions depend on their parent instructions for their semantics.
- bool IsAPseudoOperation() const;
-
- /// Determines whether or not this instruction supports the GetNZCVFromOp pseudo-operation.
- bool MayGetNZCVFromOp() const;
-
- /// Determines if all arguments of this instruction are immediates.
- bool AreAllArgsImmediates() const;
-
- size_t UseCount() const { return use_count; }
- bool HasUses() const { return use_count > 0; }
-
- /// Determines if there is a pseudo-operation associated with this instruction.
- bool HasAssociatedPseudoOperation() const;
- /// Gets a pseudo-operation associated with this instruction.
- Inst* GetAssociatedPseudoOperation(Opcode opcode);
-
- /// Get the microop this microinstruction represents.
- Opcode GetOpcode() const { return op; }
- /// Get the type this instruction returns.
- Type GetType() const;
- /// Get the number of arguments this instruction has.
- size_t NumArgs() const;
-
- Value GetArg(size_t index) const;
- void SetArg(size_t index, Value value);
-
- void Invalidate();
- void ClearArgs();
-
- void ReplaceUsesWith(Value replacement);
-
- // IR name (i.e. instruction number in block). This is set in the naming pass. Treat 0 as an invalid name.
- // This is used for debugging and fastmem instruction identification.
- void SetName(unsigned value) { name = value; }
- unsigned GetName() const { return name; }
-
-private:
- void Use(const Value& value);
- void UndoUse(const Value& value);
-
- Opcode op;
- unsigned use_count = 0;
- unsigned name = 0;
- std::array<Value, max_arg_count> args;
-
- // Linked list of pseudooperations associated with this instruction.
- Inst* next_pseudoop = nullptr;
-};
-
-} // namespace Dynarmic::IR
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/opcodes.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/opcodes.h
deleted file mode 100644
index 404f4cdb..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/opcodes.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string>
-
-#include <fmt/format.h>
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::IR {
-
-enum class Type;
-
-/**
- * The Opcodes of our intermediate representation.
- * Type signatures for each opcode can be found in opcodes.inc
- */
-enum class Opcode {
-#define OPCODE(name, type, ...) name,
-#define A32OPC(name, type, ...) A32##name,
-#define A64OPC(name, type, ...) A64##name,
-#include "./opcodes.inc"
-#undef OPCODE
-#undef A32OPC
-#undef A64OPC
- NUM_OPCODE
-};
-
-constexpr size_t OpcodeCount = static_cast<size_t>(Opcode::NUM_OPCODE);
-
-/// Get return type of an opcode
-Type GetTypeOf(Opcode op);
-
-/// Get the number of arguments an opcode accepts
-size_t GetNumArgsOf(Opcode op);
-
-/// Get the required type of an argument of an opcode
-Type GetArgTypeOf(Opcode op, size_t arg_index);
-
-/// Get the name of an opcode.
-std::string GetNameOf(Opcode op);
-
-} // namespace Dynarmic::IR
-
-template<>
-struct fmt::formatter<Dynarmic::IR::Opcode> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::IR::Opcode op, FormatContext& ctx) const {
- return formatter<std::string>::format(Dynarmic::IR::GetNameOf(op), ctx);
- }
-};
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/opt/ir_matcher.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/opt/ir_matcher.h
deleted file mode 100644
index 5eb1a551..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/opt/ir_matcher.h
+++ /dev/null
@@ -1,127 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2020 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-#include <tuple>
-
-#include <mp/metafunction/apply.h>
-#include <mp/typelist/concat.h>
-#include <mp/typelist/drop.h>
-#include <mp/typelist/get.h>
-#include <mp/typelist/head.h>
-#include <mp/typelist/list.h>
-#include <mp/typelist/prepend.h>
-
-#include "dynarmic/ir/microinstruction.h"
-#include "dynarmic/ir/opcodes.h"
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::Optimization::IRMatcher {
-
-struct CaptureValue {
- using ReturnType = std::tuple<IR::Value>;
-
- static std::optional<ReturnType> Match(IR::Value value) {
- return std::tuple(value);
- }
-};
-
-struct CaptureInst {
- using ReturnType = std::tuple<IR::Inst*>;
-
- static std::optional<ReturnType> Match(IR::Value value) {
- if (value.IsImmediate())
- return std::nullopt;
- return std::tuple(value.GetInstRecursive());
- }
-};
-
-struct CaptureUImm {
- using ReturnType = std::tuple<u64>;
-
- static std::optional<ReturnType> Match(IR::Value value) {
- return std::tuple(value.GetImmediateAsU64());
- }
-};
-
-struct CaptureSImm {
- using ReturnType = std::tuple<s64>;
-
- static std::optional<ReturnType> Match(IR::Value value) {
- return std::tuple(value.GetImmediateAsS64());
- }
-};
-
-template<u64 Value>
-struct UImm {
- using ReturnType = std::tuple<>;
-
- static std::optional<std::tuple<>> Match(IR::Value value) {
- if (value.GetImmediateAsU64() == Value)
- return std::tuple();
- return std::nullopt;
- }
-};
-
-template<s64 Value>
-struct SImm {
- using ReturnType = std::tuple<>;
-
- static std::optional<std::tuple<>> Match(IR::Value value) {
- if (value.GetImmediateAsS64() == Value)
- return std::tuple();
- return std::nullopt;
- }
-};
-
-template<IR::Opcode Opcode, typename... Args>
-struct Inst {
-public:
- using ReturnType = mp::concat<std::tuple<>, typename Args::ReturnType...>;
-
- static std::optional<ReturnType> Match(const IR::Inst& inst) {
- if (inst.GetOpcode() != Opcode)
- return std::nullopt;
- if (inst.HasAssociatedPseudoOperation())
- return std::nullopt;
- return MatchArgs<0>(inst);
- }
-
- static std::optional<ReturnType> Match(IR::Value value) {
- if (value.IsImmediate())
- return std::nullopt;
- return Match(*value.GetInstRecursive());
- }
-
-private:
- template<size_t I>
- static auto MatchArgs(const IR::Inst& inst) -> std::optional<mp::apply<mp::concat, mp::prepend<mp::drop<I, mp::list<typename Args::ReturnType...>>, std::tuple<>>>> {
- if constexpr (I >= sizeof...(Args)) {
- return std::tuple();
- } else {
- using Arg = mp::get<I, mp::list<Args...>>;
-
- if (const auto arg = Arg::Match(inst.GetArg(I))) {
- if (const auto rest = MatchArgs<I + 1>(inst)) {
- return std::tuple_cat(*arg, *rest);
- }
- }
-
- return std::nullopt;
- }
- }
-};
-
-inline bool IsSameInst(std::tuple<IR::Inst*, IR::Inst*> t) {
- return std::get<0>(t) == std::get<1>(t);
-}
-
-inline bool IsSameInst(std::tuple<IR::Inst*, IR::Inst*, IR::Inst*> t) {
- return std::get<0>(t) == std::get<1>(t) && std::get<0>(t) == std::get<2>(t);
-}
-
-} // namespace Dynarmic::Optimization::IRMatcher
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/opt/passes.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/opt/passes.h
deleted file mode 100644
index 703145b5..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/opt/passes.h
+++ /dev/null
@@ -1,47 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::A32 {
-struct UserCallbacks;
-}
-
-namespace Dynarmic::A64 {
-struct UserCallbacks;
-struct UserConfig;
-} // namespace Dynarmic::A64
-
-namespace Dynarmic::IR {
-class Block;
-}
-
-namespace Dynarmic::Optimization {
-
-struct PolyfillOptions {
- bool sha256 = false;
- bool vector_multiply_widen = false;
-
- bool operator==(const PolyfillOptions&) const = default;
-};
-
-struct A32GetSetEliminationOptions {
- bool convert_nzc_to_nz = false;
- bool convert_nz_to_nzc = false;
-};
-
-void PolyfillPass(IR::Block& block, const PolyfillOptions& opt);
-void A32ConstantMemoryReads(IR::Block& block, A32::UserCallbacks* cb);
-void A32GetSetElimination(IR::Block& block, A32GetSetEliminationOptions opt);
-void A64CallbackConfigPass(IR::Block& block, const A64::UserConfig& conf);
-void A64GetSetElimination(IR::Block& block);
-void A64MergeInterpretBlocksPass(IR::Block& block, A64::UserCallbacks* cb);
-void ConstantPropagation(IR::Block& block);
-void DeadCodeElimination(IR::Block& block);
-void IdentityRemovalPass(IR::Block& block);
-void VerificationPass(const IR::Block& block);
-void NamingPass(IR::Block& block);
-
-} // namespace Dynarmic::Optimization
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/terminal.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/terminal.h
deleted file mode 100644
index d437ffd5..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/terminal.h
+++ /dev/null
@@ -1,131 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <boost/variant.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/ir/cond.h"
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace Dynarmic::IR {
-namespace Term {
-
-struct Invalid {};
-
-/**
- * This terminal instruction calls the interpreter, starting at `next`.
- * The interpreter must interpret exactly `num_instructions` instructions.
- */
-struct Interpret {
- explicit Interpret(const LocationDescriptor& next_)
- : next(next_) {}
- LocationDescriptor next; ///< Location at which interpretation starts.
- size_t num_instructions = 1;
-};
-
-/**
- * This terminal instruction returns control to the dispatcher.
- * The dispatcher will use the current cpu state to determine what comes next.
- */
-struct ReturnToDispatch {};
-
-/**
- * This terminal instruction jumps to the basic block described by `next` if we have enough
- * cycles remaining. If we do not have enough cycles remaining, we return to the
- * dispatcher, which will return control to the host.
- */
-struct LinkBlock {
- explicit LinkBlock(const LocationDescriptor& next_)
- : next(next_) {}
- LocationDescriptor next; ///< Location descriptor for next block.
-};
-
-/**
- * This terminal instruction jumps to the basic block described by `next` unconditionally.
- * This is an optimization and MUST only be emitted when this is guaranteed not to result
- * in hanging, even in the face of other optimizations. (In practice, this means that only
- * forward jumps to short-ish blocks would use this instruction.)
- * A backend that doesn't support this optimization may choose to implement this exactly
- * as LinkBlock.
- */
-struct LinkBlockFast {
- explicit LinkBlockFast(const LocationDescriptor& next_)
- : next(next_) {}
- LocationDescriptor next; ///< Location descriptor for next block.
-};
-
-/**
- * This terminal instruction checks the top of the Return Stack Buffer against the current
- * location descriptor. If RSB lookup fails, control is returned to the dispatcher.
- * This is an optimization for faster function calls. A backend that doesn't support
- * this optimization or doesn't have a RSB may choose to implement this exactly as
- * ReturnToDispatch.
- */
-struct PopRSBHint {};
-
-/**
- * This terminal instruction performs a lookup of the current location descriptor in the
- * fast dispatch lookup table. A backend that doesn't support this optimization may choose
- * to implement this exactly as ReturnToDispatch.
- */
-struct FastDispatchHint {};
-
-struct If;
-struct CheckBit;
-struct CheckHalt;
-/// A Terminal is the terminal instruction in a MicroBlock.
-using Terminal = boost::variant<
- Invalid,
- Interpret,
- ReturnToDispatch,
- LinkBlock,
- LinkBlockFast,
- PopRSBHint,
- FastDispatchHint,
- boost::recursive_wrapper<If>,
- boost::recursive_wrapper<CheckBit>,
- boost::recursive_wrapper<CheckHalt>>;
-
-/**
- * This terminal instruction conditionally executes one terminal or another depending
- * on the run-time state of the ARM flags.
- */
-struct If {
- If(Cond if_, Terminal then_, Terminal else_)
- : if_(if_), then_(std::move(then_)), else_(std::move(else_)) {}
- Cond if_;
- Terminal then_;
- Terminal else_;
-};
-
-/**
- * This terminal instruction conditionally executes one terminal or another depending
- * on the run-time state of the check bit.
- * then_ is executed if the check bit is non-zero, otherwise else_ is executed.
- */
-struct CheckBit {
- CheckBit(Terminal then_, Terminal else_)
- : then_(std::move(then_)), else_(std::move(else_)) {}
- Terminal then_;
- Terminal else_;
-};
-
-/**
- * This terminal instruction checks if a halt was requested. If it wasn't, else_ is
- * executed.
- */
-struct CheckHalt {
- explicit CheckHalt(Terminal else_)
- : else_(std::move(else_)) {}
- Terminal else_;
-};
-
-} // namespace Term
-
-using Term::Terminal;
-
-} // namespace Dynarmic::IR
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/type.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/type.h
deleted file mode 100644
index 65fe76dd..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/type.h
+++ /dev/null
@@ -1,60 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string>
-
-#include <fmt/format.h>
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::IR {
-
-/**
- * The intermediate representation is typed. These are the used by our IR.
- */
-enum class Type {
- Void = 0,
- A32Reg = 1 << 0,
- A32ExtReg = 1 << 1,
- A64Reg = 1 << 2,
- A64Vec = 1 << 3,
- Opaque = 1 << 4,
- U1 = 1 << 5,
- U8 = 1 << 6,
- U16 = 1 << 7,
- U32 = 1 << 8,
- U64 = 1 << 9,
- U128 = 1 << 10,
- CoprocInfo = 1 << 11,
- NZCVFlags = 1 << 12,
- Cond = 1 << 13,
- Table = 1 << 14,
- AccType = 1 << 15,
-};
-
-constexpr Type operator|(Type a, Type b) {
- return static_cast<Type>(static_cast<size_t>(a) | static_cast<size_t>(b));
-}
-
-constexpr Type operator&(Type a, Type b) {
- return static_cast<Type>(static_cast<size_t>(a) & static_cast<size_t>(b));
-}
-
-/// Get the name of a type.
-std::string GetNameOf(Type type);
-
-/// @returns true if t1 and t2 are compatible types
-bool AreTypesCompatible(Type t1, Type t2);
-
-} // namespace Dynarmic::IR
-
-template<>
-struct fmt::formatter<Dynarmic::IR::Type> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::IR::Type type, FormatContext& ctx) const {
- return formatter<std::string>::format(Dynarmic::IR::GetNameOf(type), ctx);
- }
-};
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/value.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/value.h
deleted file mode 100644
index 8f70110a..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/Headers/dynarmic/ir/value.h
+++ /dev/null
@@ -1,187 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <type_traits>
-
-#include <mcl/assert.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/ir/type.h"
-
-namespace Dynarmic::A32 {
-enum class ExtReg;
-enum class Reg;
-} // namespace Dynarmic::A32
-
-namespace Dynarmic::A64 {
-enum class Reg;
-enum class Vec;
-} // namespace Dynarmic::A64
-
-namespace Dynarmic::IR {
-
-class Inst;
-enum class AccType;
-enum class Cond;
-
-/**
- * A representation of a value in the IR.
- * A value may either be an immediate or the result of a microinstruction.
- */
-class Value {
-public:
- using CoprocessorInfo = std::array<u8, 8>;
-
- Value()
- : type(Type::Void) {}
- explicit Value(Inst* value);
- explicit Value(A32::Reg value);
- explicit Value(A32::ExtReg value);
- explicit Value(A64::Reg value);
- explicit Value(A64::Vec value);
- explicit Value(bool value);
- explicit Value(u8 value);
- explicit Value(u16 value);
- explicit Value(u32 value);
- explicit Value(u64 value);
- explicit Value(CoprocessorInfo value);
- explicit Value(Cond value);
- explicit Value(AccType value);
-
- static Value EmptyNZCVImmediateMarker();
-
- bool IsIdentity() const;
- bool IsEmpty() const;
- bool IsImmediate() const;
- Type GetType() const;
-
- Inst* GetInst() const;
- Inst* GetInstRecursive() const;
- A32::Reg GetA32RegRef() const;
- A32::ExtReg GetA32ExtRegRef() const;
- A64::Reg GetA64RegRef() const;
- A64::Vec GetA64VecRef() const;
- bool GetU1() const;
- u8 GetU8() const;
- u16 GetU16() const;
- u32 GetU32() const;
- u64 GetU64() const;
- CoprocessorInfo GetCoprocInfo() const;
- Cond GetCond() const;
- AccType GetAccType() const;
-
- /**
- * Retrieves the immediate of a Value instance as a signed 64-bit value.
- *
- * @pre The value contains either a U1, U8, U16, U32, or U64 value.
- * Breaking this precondition will cause an assertion to be invoked.
- */
- s64 GetImmediateAsS64() const;
-
- /**
- * Retrieves the immediate of a Value instance as an unsigned 64-bit value.
- *
- * @pre The value contains either a U1, U8, U16, U32, or U64 value.
- * Breaking this precondition will cause an assertion to be invoked.
- */
- u64 GetImmediateAsU64() const;
-
- /**
- * Determines whether or not the contained value matches the provided signed one.
- *
- * Note that this function will always return false if the contained
- * value is not a a constant value. In other words, if IsImmediate()
- * would return false on an instance, then so will this function.
- *
- * @param value The value to check against the contained value.
- */
- bool IsSignedImmediate(s64 value) const;
-
- /**
- * Determines whether or not the contained value matches the provided unsigned one.
- *
- * Note that this function will always return false if the contained
- * value is not a a constant value. In other words, if IsImmediate()
- * would return false on an instance, then so will this function.
- *
- * @param value The value to check against the contained value.
- */
- bool IsUnsignedImmediate(u64 value) const;
-
- /**
- * Determines whether or not the contained constant value has all bits set.
- *
- * @pre The value contains either a U1, U8, U16, U32, or U64 value.
- * Breaking this precondition will cause an assertion to be invoked.
- */
- bool HasAllBitsSet() const;
-
- /**
- * Whether or not the current value contains a representation of zero.
- *
- * Note that this function will always return false if the contained
- * value is not a a constant value. In other words, if IsImmediate()
- * would return false on an instance, then so will this function.
- */
- bool IsZero() const;
-
-private:
- Type type;
-
- union {
- Inst* inst; // type == Type::Opaque
- A32::Reg imm_a32regref;
- A32::ExtReg imm_a32extregref;
- A64::Reg imm_a64regref;
- A64::Vec imm_a64vecref;
- bool imm_u1;
- u8 imm_u8;
- u16 imm_u16;
- u32 imm_u32;
- u64 imm_u64;
- CoprocessorInfo imm_coproc;
- Cond imm_cond;
- AccType imm_acctype;
- } inner;
-};
-static_assert(sizeof(Value) <= 2 * sizeof(u64), "IR::Value should be kept small in size");
-
-template<Type type_>
-class TypedValue final : public Value {
-public:
- TypedValue() = default;
-
- template<Type other_type, typename = std::enable_if_t<(other_type & type_) != Type::Void>>
- /* implicit */ TypedValue(const TypedValue<other_type>& value)
- : Value(value) {
- ASSERT((value.GetType() & type_) != Type::Void);
- }
-
- explicit TypedValue(const Value& value)
- : Value(value) {
- ASSERT((value.GetType() & type_) != Type::Void);
- }
-
- explicit TypedValue(Inst* inst)
- : TypedValue(Value(inst)) {}
-};
-
-using U1 = TypedValue<Type::U1>;
-using U8 = TypedValue<Type::U8>;
-using U16 = TypedValue<Type::U16>;
-using U32 = TypedValue<Type::U32>;
-using U64 = TypedValue<Type::U64>;
-using U128 = TypedValue<Type::U128>;
-using U32U64 = TypedValue<Type::U32 | Type::U64>;
-using U16U32U64 = TypedValue<Type::U16 | Type::U32 | Type::U64>;
-using UAny = TypedValue<Type::U8 | Type::U16 | Type::U32 | Type::U64>;
-using UAnyU128 = TypedValue<Type::U8 | Type::U16 | Type::U32 | Type::U64 | Type::U128>;
-using NZCV = TypedValue<Type::NZCVFlags>;
-using Table = TypedValue<Type::Table>;
-
-} // namespace Dynarmic::IR
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/libdynarmic.a b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/libdynarmic.a
deleted file mode 100644
index e9827646..00000000
Binary files a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64-simulator/libdynarmic.a and /dev/null differ
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/arm64/address_space.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/arm64/address_space.h
index a5fe7513..835566bd 100644
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/arm64/address_space.h
+++ b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/arm64/address_space.h
@@ -43,6 +43,8 @@ public:
void ClearCache();
+ void DumpDisassembly() const;
+
protected:
virtual EmitConfig GetEmitConfig() = 0;
virtual void RegisterNewBasicBlock(const IR::Block& block, const EmittedBlockInfo& block_info) = 0;
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/arm64/emit_arm64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/arm64/emit_arm64.h
index 6ac62074..58ccb0e4 100644
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/arm64/emit_arm64.h
+++ b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/arm64/emit_arm64.h
@@ -132,7 +132,7 @@ struct EmitConfig {
bool only_detect_misalignment_via_page_table_on_page_boundary;
// Fastmem
- u64 fastmem_pointer;
+ std::optional<u64> fastmem_pointer;
bool recompile_on_fastmem_failure;
size_t fastmem_address_space_bits;
bool silently_mirror_fastmem;
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/arm64/fpsr_manager.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/arm64/fpsr_manager.h
index e003522d..9e5d68bf 100644
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/arm64/fpsr_manager.h
+++ b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/arm64/fpsr_manager.h
@@ -9,6 +9,7 @@
namespace oaknut {
struct CodeGenerator;
+struct WReg;
} // namespace oaknut
namespace Dynarmic::Backend::Arm64 {
@@ -21,6 +22,8 @@ public:
void Load();
void Overwrite() { fpsr_loaded = false; }
+ void GetFpsr(oaknut::WReg);
+
private:
oaknut::CodeGenerator& code;
size_t state_fpsr_offset;
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/arm64/reg_alloc.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/arm64/reg_alloc.h
index 3a2d5388..96801d45 100644
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/arm64/reg_alloc.h
+++ b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/arm64/reg_alloc.h
@@ -158,7 +158,7 @@ public:
using ArgumentInfo = std::array<Argument, IR::max_arg_count>;
explicit RegAlloc(oaknut::CodeGenerator& code, FpsrManager& fpsr_manager, std::vector<int> gpr_order, std::vector<int> fpr_order)
- : code{code}, fpsr_manager{fpsr_manager}, gpr_order{gpr_order}, fpr_order{fpr_order}, rand_gen{std::random_device{}()} {}
+ : code{code}, fpsr_manager{fpsr_manager}, gpr_order{gpr_order}, fpr_order{fpr_order} {}
ArgumentInfo GetArgumentInfo(IR::Inst* inst);
bool WasValueDefined(IR::Inst* inst) const;
@@ -333,7 +333,7 @@ private:
HostLocInfo flags;
std::array<HostLocInfo, SpillCount> spills;
- mutable std::mt19937 rand_gen;
+ mutable size_t alloc_candidate_index{};
tsl::robin_set<const IR::Inst*> defined_insts;
};
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/exception_handler.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/exception_handler.h
index 179433ba..ed5c41c7 100644
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/exception_handler.h
+++ b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/exception_handler.h
@@ -20,6 +20,10 @@ class BlockOfCode;
namespace oaknut {
class CodeBlock;
} // namespace oaknut
+#elif defined(MCL_ARCHITECTURE_RISCV)
+namespace Dynarmic::Backend::RV64 {
+class CodeBlock;
+} // namespace Dynarmic::Backend::RV64
#else
# error "Invalid architecture"
#endif
@@ -35,6 +39,9 @@ struct FakeCall {
struct FakeCall {
u64 call_pc;
};
+#elif defined(MCL_ARCHITECTURE_RISCV)
+struct FakeCall {
+};
#else
# error "Invalid architecture"
#endif
@@ -48,6 +55,8 @@ public:
void Register(X64::BlockOfCode& code);
#elif defined(MCL_ARCHITECTURE_ARM64)
void Register(oaknut::CodeBlock& mem, std::size_t mem_size);
+#elif defined(MCL_ARCHITECTURE_RISCV)
+ void Register(RV64::CodeBlock& mem, std::size_t mem_size);
#else
# error "Invalid architecture"
#endif
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/a32_address_space.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/a32_address_space.h
new file mode 100644
index 00000000..628f72c2
--- /dev/null
+++ b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/a32_address_space.h
@@ -0,0 +1,86 @@
+/* This file is part of the dynarmic project.
+ * Copyright (c) 2024 MerryMage
+ * SPDX-License-Identifier: 0BSD
+ */
+
+#pragma once
+
+#include <biscuit/assembler.hpp>
+#include <tsl/robin_map.h>
+
+#include "dynarmic/backend/riscv64/code_block.h"
+#include "dynarmic/backend/riscv64/emit_riscv64.h"
+#include "dynarmic/interface/A32/config.h"
+#include "dynarmic/interface/halt_reason.h"
+#include "dynarmic/ir/basic_block.h"
+#include "dynarmic/ir/location_descriptor.h"
+
+namespace Dynarmic::Backend::RV64 {
+
+struct A32JitState;
+
+class A32AddressSpace final {
+public:
+ explicit A32AddressSpace(const A32::UserConfig& conf);
+
+ IR::Block GenerateIR(IR::LocationDescriptor) const;
+
+ CodePtr Get(IR::LocationDescriptor descriptor);
+
+ CodePtr GetOrEmit(IR::LocationDescriptor descriptor);
+
+ void ClearCache();
+
+private:
+ friend class A32Core;
+
+ void EmitPrelude();
+
+ template<typename T>
+ T GetMemPtr() {
+ static_assert(std::is_pointer_v<T> || std::is_same_v<T, uptr> || std::is_same_v<T, sptr>);
+ return reinterpret_cast<T>(as.GetBufferPointer(0));
+ }
+
+ template<typename T>
+ T GetMemPtr() const {
+ static_assert(std::is_pointer_v<T> || std::is_same_v<T, uptr> || std::is_same_v<T, sptr>);
+ return reinterpret_cast<const T>(as.GetBufferPointer(0));
+ }
+
+ template<typename T>
+ T GetCursorPtr() {
+ static_assert(std::is_pointer_v<T> || std::is_same_v<T, uptr> || std::is_same_v<T, sptr>);
+ return reinterpret_cast<T>(as.GetCursorPointer());
+ }
+
+ template<typename T>
+ T GetCursorPtr() const {
+ static_assert(std::is_pointer_v<T> || std::is_same_v<T, uptr> || std::is_same_v<T, sptr>);
+ return reinterpret_cast<const T>(as.GetCursorPointer());
+ }
+
+ void SetCursorPtr(CodePtr ptr);
+
+ size_t GetRemainingSize();
+ EmittedBlockInfo Emit(IR::Block ir_block);
+ void Link(EmittedBlockInfo& block);
+
+ const A32::UserConfig conf;
+
+ CodeBlock cb;
+ biscuit::Assembler as;
+
+ tsl::robin_map<u64, CodePtr> block_entries;
+ tsl::robin_map<u64, EmittedBlockInfo> block_infos;
+
+ struct PreludeInfo {
+ CodePtr end_of_prelude;
+
+ using RunCodeFuncType = HaltReason (*)(CodePtr entry_point, A32JitState* context, volatile u32* halt_reason);
+ RunCodeFuncType run_code;
+ CodePtr return_from_run_code;
+ } prelude_info;
+};
+
+} // namespace Dynarmic::Backend::RV64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/a32_core.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/a32_core.h
new file mode 100644
index 00000000..b01d650d
--- /dev/null
+++ b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/a32_core.h
@@ -0,0 +1,24 @@
+/* This file is part of the dynarmic project.
+ * Copyright (c) 2024 MerryMage
+ * SPDX-License-Identifier: 0BSD
+ */
+
+#pragma once
+
+#include "dynarmic/backend/riscv64/a32_address_space.h"
+#include "dynarmic/backend/riscv64/a32_jitstate.h"
+
+namespace Dynarmic::Backend::RV64 {
+
+class A32Core final {
+public:
+ explicit A32Core(const A32::UserConfig&) {}
+
+ HaltReason Run(A32AddressSpace& process, A32JitState& thread_ctx, volatile u32* halt_reason) {
+ const auto location_descriptor = thread_ctx.GetLocationDescriptor();
+ const auto entry_point = process.GetOrEmit(location_descriptor);
+ return process.prelude_info.run_code(entry_point, &thread_ctx, halt_reason);
+ }
+};
+
+} // namespace Dynarmic::Backend::RV64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/a32_jitstate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/a32_jitstate.h
similarity index 88%
rename from Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/a32_jitstate.h
rename to Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/a32_jitstate.h
index 978bf84a..9bf68340 100644
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/a32_jitstate.h
+++ b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/a32_jitstate.h
@@ -1,5 +1,5 @@
/* This file is part of the dynarmic project.
- * Copyright (c) 2021 MerryMage
+ * Copyright (c) 2024 MerryMage
* SPDX-License-Identifier: 0BSD
*/
@@ -12,7 +12,7 @@
#include "dynarmic/frontend/A32/a32_location_descriptor.h"
#include "dynarmic/ir/location_descriptor.h"
-namespace Dynarmic::Backend::Arm64 {
+namespace Dynarmic::Backend::RV64 {
struct A32JitState {
u32 cpsr_nzcv = 0;
@@ -42,4 +42,4 @@ struct A32JitState {
}
};
-} // namespace Dynarmic::Backend::Arm64
+} // namespace Dynarmic::Backend::RV64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/abi.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/abi.h
new file mode 100644
index 00000000..d8157b00
--- /dev/null
+++ b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/abi.h
@@ -0,0 +1,20 @@
+/* This file is part of the dynarmic project.
+ * Copyright (c) 2024 MerryMage
+ * SPDX-License-Identifier: 0BSD
+ */
+
+#pragma once
+
+#include <biscuit/registers.hpp>
+
+namespace Dynarmic::Backend::RV64 {
+
+constexpr biscuit::GPR Xstate{27};
+constexpr biscuit::GPR Xhalt{26};
+
+constexpr biscuit::GPR Xscratch0{30}, Xscratch1{31};
+
+constexpr std::initializer_list<u32> GPR_ORDER{8, 9, 18, 19, 20, 21, 22, 23, 24, 25, 5, 6, 7, 28, 29, 10, 11, 12, 13, 14, 15, 16, 17};
+constexpr std::initializer_list<u32> FPR_ORDER{8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31};
+
+} // namespace Dynarmic::Backend::RV64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/code_block.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/code_block.h
new file mode 100644
index 00000000..6ac014a5
--- /dev/null
+++ b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/code_block.h
@@ -0,0 +1,42 @@
+/* This file is part of the dynarmic project.
+ * Copyright (c) 2024 MerryMage
+ * SPDX-License-Identifier: 0BSD
+ */
+
+#pragma once
+
+#include <cstdint>
+#include <new>
+
+#include <sys/mman.h>
+
+namespace Dynarmic::Backend::RV64 {
+
+class CodeBlock {
+public:
+ explicit CodeBlock(std::size_t size)
+ : memsize(size) {
+ mem = (u8*)mmap(nullptr, size, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_ANON | MAP_PRIVATE, -1, 0);
+
+ if (mem == nullptr)
+ throw std::bad_alloc{};
+ }
+
+ ~CodeBlock() {
+ if (mem == nullptr)
+ return;
+
+ munmap(mem, memsize);
+ }
+
+ template<typename T>
+ T ptr() const {
+ static_assert(std::is_pointer_v<T> || std::is_same_v<T, uptr> || std::is_same_v<T, sptr>);
+ return reinterpret_cast<T>(mem);
+ }
+
+protected:
+ u8* mem;
+ size_t memsize = 0;
+};
+} // namespace Dynarmic::Backend::RV64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/emit_context.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/emit_context.h
new file mode 100644
index 00000000..f6ea1b83
--- /dev/null
+++ b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/emit_context.h
@@ -0,0 +1,26 @@
+/* This file is part of the dynarmic project.
+ * Copyright (c) 2024 MerryMage
+ * SPDX-License-Identifier: 0BSD
+ */
+
+#pragma once
+
+#include "dynarmic/backend/riscv64/emit_riscv64.h"
+#include "dynarmic/backend/riscv64/reg_alloc.h"
+
+namespace Dynarmic::IR {
+class Block;
+} // namespace Dynarmic::IR
+
+namespace Dynarmic::Backend::RV64 {
+
+struct EmitConfig;
+
+struct EmitContext {
+ IR::Block& block;
+ RegAlloc& reg_alloc;
+ const EmitConfig& emit_conf;
+ EmittedBlockInfo& ebi;
+};
+
+} // namespace Dynarmic::Backend::RV64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/emit_riscv64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/emit_riscv64.h
new file mode 100644
index 00000000..5cfd0212
--- /dev/null
+++ b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/emit_riscv64.h
@@ -0,0 +1,58 @@
+/* This file is part of the dynarmic project.
+ * Copyright (c) 2024 MerryMage
+ * SPDX-License-Identifier: 0BSD
+ */
+
+#pragma once
+
+#include <vector>
+
+#include <biscuit/label.hpp>
+#include <mcl/stdint.hpp>
+
+namespace biscuit {
+class Assembler;
+} // namespace biscuit
+
+namespace Dynarmic::IR {
+class Block;
+class Inst;
+enum class Cond;
+enum class Opcode;
+} // namespace Dynarmic::IR
+
+namespace Dynarmic::Backend::RV64 {
+
+using CodePtr = std::byte*;
+
+enum class LinkTarget {
+ ReturnFromRunCode,
+};
+
+struct Relocation {
+ std::ptrdiff_t code_offset;
+ LinkTarget target;
+};
+
+struct EmittedBlockInfo {
+ CodePtr entry_point;
+ size_t size;
+ std::vector<Relocation> relocations;
+};
+
+struct EmitConfig {
+ bool enable_cycle_counting;
+ bool always_little_endian;
+};
+
+struct EmitContext;
+
+EmittedBlockInfo EmitRV64(biscuit::Assembler& as, IR::Block block, const EmitConfig& emit_conf);
+
+template<IR::Opcode op>
+void EmitIR(biscuit::Assembler& as, EmitContext& ctx, IR::Inst* inst);
+void EmitRelocation(biscuit::Assembler& as, EmitContext& ctx, LinkTarget link_target);
+void EmitA32Cond(biscuit::Assembler& as, EmitContext& ctx, IR::Cond cond, biscuit::Label* label);
+void EmitA32Terminal(biscuit::Assembler& as, EmitContext& ctx);
+
+} // namespace Dynarmic::Backend::RV64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/reg_alloc.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/reg_alloc.h
new file mode 100644
index 00000000..2e0756c8
--- /dev/null
+++ b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/reg_alloc.h
@@ -0,0 +1,188 @@
+/* This file is part of the dynarmic project.
+ * Copyright (c) 2024 MerryMage
+ * SPDX-License-Identifier: 0BSD
+ */
+
+#pragma once
+
+#include <array>
+#include <optional>
+#include <random>
+#include <utility>
+#include <vector>
+
+#include <biscuit/assembler.hpp>
+#include <biscuit/registers.hpp>
+#include <mcl/assert.hpp>
+#include <mcl/stdint.hpp>
+#include <mcl/type_traits/is_instance_of_template.hpp>
+#include <tsl/robin_set.h>
+
+#include "dynarmic/backend/riscv64/stack_layout.h"
+#include "dynarmic/ir/cond.h"
+#include "dynarmic/ir/microinstruction.h"
+#include "dynarmic/ir/value.h"
+
+namespace Dynarmic::Backend::RV64 {
+
+class RegAlloc;
+
+struct HostLoc {
+ enum class Kind {
+ Gpr,
+ Fpr,
+ Spill,
+ } kind;
+ u32 index;
+};
+
+struct Argument {
+public:
+ using copyable_reference = std::reference_wrapper<Argument>;
+
+ IR::Type GetType() const;
+ bool IsImmediate() const;
+
+ bool GetImmediateU1() const;
+ u8 GetImmediateU8() const;
+ u16 GetImmediateU16() const;
+ u32 GetImmediateU32() const;
+ u64 GetImmediateU64() const;
+ IR::Cond GetImmediateCond() const;
+ IR::AccType GetImmediateAccType() const;
+
+private:
+ friend class RegAlloc;
+ explicit Argument(RegAlloc& reg_alloc)
+ : reg_alloc{reg_alloc} {}
+
+ bool allocated = false;
+ RegAlloc& reg_alloc;
+ IR::Value value;
+};
+
+template<typename T>
+struct RAReg {
+public:
+ static constexpr HostLoc::Kind kind = std::is_base_of_v<biscuit::FPR, T>
+ ? HostLoc::Kind::Fpr
+ : HostLoc::Kind::Gpr;
+
+ operator T() const { return *reg; }
+
+ T operator*() const { return *reg; }
+
+ const T* operator->() const { return &*reg; }
+
+ ~RAReg();
+
+private:
+ friend class RegAlloc;
+ explicit RAReg(RegAlloc& reg_alloc, bool write, const IR::Value& value);
+
+ void Realize();
+
+ RegAlloc& reg_alloc;
+ bool write;
+ const IR::Value value;
+ std::optional<T> reg;
+};
+
+struct HostLocInfo final {
+ std::vector<const IR::Inst*> values;
+ size_t locked = 0;
+ bool realized = false;
+ size_t uses_this_inst = 0;
+ size_t accumulated_uses = 0;
+ size_t expected_uses = 0;
+
+ bool Contains(const IR::Inst*) const;
+ void SetupScratchLocation();
+ bool IsCompletelyEmpty() const;
+ void UpdateUses();
+};
+
+class RegAlloc {
+public:
+ using ArgumentInfo = std::array<Argument, IR::max_arg_count>;
+
+ explicit RegAlloc(biscuit::Assembler& as, std::vector<u32> gpr_order, std::vector<u32> fpr_order)
+ : as{as}, gpr_order{gpr_order}, fpr_order{fpr_order}, rand_gen{std::random_device{}()} {}
+
+ ArgumentInfo GetArgumentInfo(IR::Inst* inst);
+ bool IsValueLive(IR::Inst* inst) const;
+
+ auto ReadX(Argument& arg) { return RAReg<biscuit::GPR>{*this, false, arg.value}; }
+ auto ReadD(Argument& arg) { return RAReg<biscuit::FPR>{*this, false, arg.value}; }
+
+ auto WriteX(IR::Inst* inst) { return RAReg<biscuit::GPR>{*this, true, IR::Value{inst}}; }
+ auto WriteD(IR::Inst* inst) { return RAReg<biscuit::FPR>{*this, true, IR::Value{inst}}; }
+
+ void DefineAsExisting(IR::Inst* inst, Argument& arg);
+
+ void SpillAll();
+
+ template<typename... Ts>
+ static void Realize(Ts&... rs) {
+ static_assert((mcl::is_instance_of_template<RAReg, Ts>() && ...));
+ (rs.Realize(), ...);
+ }
+
+ void UpdateAllUses();
+ void AssertNoMoreUses() const;
+
+private:
+ template<typename>
+ friend struct RAReg;
+
+ template<HostLoc::Kind kind>
+ u32 GenerateImmediate(const IR::Value& value);
+ template<HostLoc::Kind kind>
+ u32 RealizeReadImpl(const IR::Value& value);
+ template<HostLoc::Kind kind>
+ u32 RealizeWriteImpl(const IR::Inst* value);
+
+ u32 AllocateRegister(const std::array<HostLocInfo, 32>& regs, const std::vector<u32>& order) const;
+ void SpillGpr(u32 index);
+ void SpillFpr(u32 index);
+ u32 FindFreeSpill() const;
+
+ std::optional<HostLoc> ValueLocation(const IR::Inst* value) const;
+ HostLocInfo& ValueInfo(HostLoc host_loc);
+ HostLocInfo& ValueInfo(const IR::Inst* value);
+
+ biscuit::Assembler& as;
+ std::vector<u32> gpr_order;
+ std::vector<u32> fpr_order;
+
+ std::array<HostLocInfo, 32> gprs;
+ std::array<HostLocInfo, 32> fprs;
+ std::array<HostLocInfo, SpillCount> spills;
+
+ mutable size_t alloc_candidate_index{};
+};
+
+template<typename T>
+RAReg<T>::RAReg(RegAlloc& reg_alloc, bool write, const IR::Value& value)
+ : reg_alloc{reg_alloc}, write{write}, value{value} {
+ if (!write && !value.IsImmediate()) {
+ reg_alloc.ValueInfo(value.GetInst()).locked++;
+ }
+}
+
+template<typename T>
+RAReg<T>::~RAReg() {
+ if (!value.IsImmediate()) {
+ reg_alloc.ValueInfo(value.GetInst()).locked--;
+ }
+ if (reg) {
+ reg_alloc.ValueInfo(HostLoc{kind, reg->Index()}).realized = false;
+ }
+}
+
+template<typename T>
+void RAReg<T>::Realize() {
+ reg = T{write ? reg_alloc.RealizeWriteImpl<kind>(value.GetInst()) : reg_alloc.RealizeReadImpl<kind>(value)};
+}
+
+} // namespace Dynarmic::Backend::RV64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/stack_layout.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/stack_layout.h
new file mode 100644
index 00000000..03c0e6f0
--- /dev/null
+++ b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/backend/riscv64/stack_layout.h
@@ -0,0 +1,30 @@
+/* This file is part of the dynarmic project.
+ * Copyright (c) 2024 MerryMage
+ * SPDX-License-Identifier: 0BSD
+ */
+
+#pragma once
+
+#include <array>
+
+#include <mcl/stdint.hpp>
+
+namespace Dynarmic::Backend::RV64 {
+
+constexpr size_t SpillCount = 64;
+
+struct alignas(16) StackLayout {
+ s64 cycles_remaining;
+ s64 cycles_to_run;
+
+ std::array<u64, SpillCount> spill;
+
+ u32 save_host_fpcr;
+ u32 save_host_fpsr;
+
+ bool check_bit;
+};
+
+static_assert(sizeof(StackLayout) % 16 == 0);
+
+} // namespace Dynarmic::Backend::RV64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/interface/A32/config.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/interface/A32/config.h
index a3c2aa15..360df06e 100644
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/interface/A32/config.h
+++ b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/interface/A32/config.h
@@ -182,7 +182,7 @@ struct UserConfig {
// This should point to the beginning of a 4GB address space which is in arranged just like
// what you wish for emulated memory to be. If the host page faults on an address, the JIT
// will fallback to calling the MemoryRead*/MemoryWrite* callbacks.
- void* fastmem_pointer = nullptr;
+ std::optional<uintptr_t> fastmem_pointer = std::nullopt;
/// Determines if instructions that pagefault should cause recompilation of that block
/// with fastmem disabled.
/// Recompiled code will use the page_table if this is available, otherwise memory
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/interface/A64/config.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/interface/A64/config.h
index b10c65bc..c8ed623e 100644
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/interface/A64/config.h
+++ b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/Headers/dynarmic/interface/A64/config.h
@@ -241,7 +241,7 @@ struct UserConfig {
/// address space which is in arranged just like what you wish for emulated memory to
/// be. If the host page faults on an address, the JIT will fallback to calling the
/// MemoryRead*/MemoryWrite* callbacks.
- void* fastmem_pointer = nullptr;
+ std::optional<uintptr_t> fastmem_pointer = std::nullopt;
/// Determines if instructions that pagefault should cause recompilation of that block
/// with fastmem disabled.
/// Recompiled code will use the page_table if this is available, otherwise memory
@@ -249,13 +249,13 @@ struct UserConfig {
bool recompile_on_fastmem_failure = true;
/// Declares how many valid address bits are there in virtual addresses.
/// Determines the size of fastmem arena. Valid values are between 12 and 64 inclusive.
- /// This is only used if fastmem_pointer is not nullptr.
+ /// This is only used if fastmem_pointer is set.
size_t fastmem_address_space_bits = 36;
/// Determines what happens if the guest accesses an entry that is off the end of the
/// fastmem arena. If true, Dynarmic will silently mirror fastmem's address space. If
/// false, accessing memory outside of fastmem bounds will result in a call to the
/// relevant memory callback.
- /// This is only used if fastmem_pointer is not nullptr.
+ /// This is only used if fastmem_pointer is set.
bool silently_mirror_fastmem = true;
/// Determines if we should use the above fastmem_pointer for exclusive reads and
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/libdynarmic.a b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/libdynarmic.a
index 3b044500..40d64e9d 100644
Binary files a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/libdynarmic.a and b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/ios-arm64/libdynarmic.a differ
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/a32_address_space.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/a32_address_space.h
deleted file mode 100644
index 3b9e9fb2..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/a32_address_space.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include "dynarmic/backend/arm64/address_space.h"
-#include "dynarmic/backend/block_range_information.h"
-#include "dynarmic/interface/A32/config.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct EmittedBlockInfo;
-
-class A32AddressSpace final : public AddressSpace {
-public:
- explicit A32AddressSpace(const A32::UserConfig& conf);
-
- IR::Block GenerateIR(IR::LocationDescriptor) const override;
-
- void InvalidateCacheRanges(const boost::icl::interval_set<u32>& ranges);
-
-protected:
- friend class A32Core;
-
- void EmitPrelude();
- EmitConfig GetEmitConfig() override;
- void RegisterNewBasicBlock(const IR::Block& block, const EmittedBlockInfo& block_info) override;
-
- const A32::UserConfig conf;
- BlockRangeInformation<u32> block_ranges;
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/a32_core.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/a32_core.h
deleted file mode 100644
index 86f6f284..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/a32_core.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include "dynarmic/backend/arm64/a32_address_space.h"
-#include "dynarmic/backend/arm64/a32_jitstate.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-class A32Core final {
-public:
- explicit A32Core(const A32::UserConfig&) {}
-
- HaltReason Run(A32AddressSpace& process, A32JitState& thread_ctx, volatile u32* halt_reason) {
- const auto location_descriptor = thread_ctx.GetLocationDescriptor();
- const auto entry_point = process.GetOrEmit(location_descriptor);
- return process.prelude_info.run_code(entry_point, &thread_ctx, halt_reason);
- }
-
- HaltReason Step(A32AddressSpace& process, A32JitState& thread_ctx, volatile u32* halt_reason) {
- const auto location_descriptor = A32::LocationDescriptor{thread_ctx.GetLocationDescriptor()}.SetSingleStepping(true);
- const auto entry_point = process.GetOrEmit(location_descriptor);
- return process.prelude_info.step_code(entry_point, &thread_ctx, halt_reason);
- }
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/a64_address_space.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/a64_address_space.h
deleted file mode 100644
index 86eae4dd..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/a64_address_space.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include "dynarmic/backend/arm64/address_space.h"
-#include "dynarmic/backend/block_range_information.h"
-#include "dynarmic/interface/A64/config.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct EmittedBlockInfo;
-
-class A64AddressSpace final : public AddressSpace {
-public:
- explicit A64AddressSpace(const A64::UserConfig& conf);
-
- IR::Block GenerateIR(IR::LocationDescriptor) const override;
-
- void InvalidateCacheRanges(const boost::icl::interval_set<u64>& ranges);
-
-protected:
- friend class A64Core;
-
- void EmitPrelude();
- EmitConfig GetEmitConfig() override;
- void RegisterNewBasicBlock(const IR::Block& block, const EmittedBlockInfo& block_info) override;
-
- const A64::UserConfig conf;
- BlockRangeInformation<u64> block_ranges;
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/a64_core.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/a64_core.h
deleted file mode 100644
index 24fbb66b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/a64_core.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include "dynarmic/backend/arm64/a64_address_space.h"
-#include "dynarmic/backend/arm64/a64_jitstate.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-class A64Core final {
-public:
- explicit A64Core(const A64::UserConfig&) {}
-
- HaltReason Run(A64AddressSpace& process, A64JitState& thread_ctx, volatile u32* halt_reason) {
- const auto location_descriptor = thread_ctx.GetLocationDescriptor();
- const auto entry_point = process.GetOrEmit(location_descriptor);
- return process.prelude_info.run_code(entry_point, &thread_ctx, halt_reason);
- }
-
- HaltReason Step(A64AddressSpace& process, A64JitState& thread_ctx, volatile u32* halt_reason) {
- const auto location_descriptor = A64::LocationDescriptor{thread_ctx.GetLocationDescriptor()}.SetSingleStepping(true);
- const auto entry_point = process.GetOrEmit(location_descriptor);
- return process.prelude_info.step_code(entry_point, &thread_ctx, halt_reason);
- }
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/a64_jitstate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/a64_jitstate.h
deleted file mode 100644
index 215e6987..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/a64_jitstate.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/A64/a64_location_descriptor.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct A64JitState {
- std::array<u64, 31> reg{};
- u64 sp = 0;
- u64 pc = 0;
-
- u32 cpsr_nzcv = 0;
-
- alignas(16) std::array<u64, 64> vec{};
-
- u32 exclusive_state = 0;
-
- u32 fpsr = 0;
- u32 fpcr = 0;
-
- IR::LocationDescriptor GetLocationDescriptor() const {
- const u64 fpcr_u64 = static_cast<u64>(fpcr & A64::LocationDescriptor::fpcr_mask) << A64::LocationDescriptor::fpcr_shift;
- const u64 pc_u64 = pc & A64::LocationDescriptor::pc_mask;
- return IR::LocationDescriptor{pc_u64 | fpcr_u64};
- }
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/abi.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/abi.h
deleted file mode 100644
index 609b06cd..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/abi.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <initializer_list>
-#include <stdexcept>
-#include <type_traits>
-
-#include <mcl/mp/metavalue/lift_value.hpp>
-#include <mcl/stdint.hpp>
-#include <oaknut/oaknut.hpp>
-
-#include "dynarmic/common/always_false.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-constexpr oaknut::XReg Xstate{28};
-constexpr oaknut::XReg Xhalt{27};
-constexpr oaknut::XReg Xticks{26};
-constexpr oaknut::XReg Xfastmem{25};
-constexpr oaknut::XReg Xpagetable{24};
-
-constexpr oaknut::XReg Xscratch0{16}, Xscratch1{17}, Xscratch2{30};
-constexpr oaknut::WReg Wscratch0{16}, Wscratch1{17}, Wscratch2{30};
-
-template<size_t bitsize>
-constexpr auto Rscratch0() {
- if constexpr (bitsize == 32) {
- return Wscratch0;
- } else if constexpr (bitsize == 64) {
- return Xscratch0;
- } else {
- static_assert(Common::always_false_v<mcl::mp::lift_value<bitsize>>);
- }
-}
-
-template<size_t bitsize>
-constexpr auto Rscratch1() {
- if constexpr (bitsize == 32) {
- return Wscratch1;
- } else if constexpr (bitsize == 64) {
- return Xscratch1;
- } else {
- static_assert(Common::always_false_v<mcl::mp::lift_value<bitsize>>);
- }
-}
-
-constexpr std::initializer_list<int> GPR_ORDER{19, 20, 21, 22, 23, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7, 8};
-constexpr std::initializer_list<int> FPR_ORDER{8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31};
-
-using RegisterList = u64;
-
-constexpr RegisterList ToRegList(oaknut::Reg reg) {
- if (reg.is_vector()) {
- return RegisterList{1} << (reg.index() + 32);
- }
-
- if (reg.index() == 31) {
- throw std::out_of_range("ZR not allowed in reg list");
- }
-
- if (reg.index() == -1) {
- return RegisterList{1} << 31;
- }
-
- return RegisterList{1} << reg.index();
-}
-
-constexpr RegisterList ABI_CALLEE_SAVE = 0x0000ff00'7ff80000;
-constexpr RegisterList ABI_CALLER_SAVE = 0xffffffff'4000ffff;
-
-void ABI_PushRegisters(oaknut::CodeGenerator& code, RegisterList rl, size_t stack_space);
-void ABI_PopRegisters(oaknut::CodeGenerator& code, RegisterList rl, size_t stack_space);
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/address_space.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/address_space.h
deleted file mode 100644
index a5fe7513..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/address_space.h
+++ /dev/null
@@ -1,136 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <map>
-#include <optional>
-
-#include <mcl/stdint.hpp>
-#include <oaknut/code_block.hpp>
-#include <oaknut/oaknut.hpp>
-#include <tsl/robin_map.h>
-#include <tsl/robin_set.h>
-
-#include "dynarmic/backend/arm64/emit_arm64.h"
-#include "dynarmic/backend/arm64/fastmem.h"
-#include "dynarmic/interface/halt_reason.h"
-#include "dynarmic/ir/basic_block.h"
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-class AddressSpace {
-public:
- explicit AddressSpace(size_t code_cache_size);
- virtual ~AddressSpace();
-
- virtual IR::Block GenerateIR(IR::LocationDescriptor) const = 0;
-
- CodePtr Get(IR::LocationDescriptor descriptor);
-
- // Returns "most likely" LocationDescriptor assocated with the emitted code at that location
- std::optional<IR::LocationDescriptor> ReverseGetLocation(CodePtr host_pc);
-
- // Returns "most likely" entry_point associated with the emitted code at that location
- CodePtr ReverseGetEntryPoint(CodePtr host_pc);
-
- CodePtr GetOrEmit(IR::LocationDescriptor descriptor);
-
- void InvalidateBasicBlocks(const tsl::robin_set<IR::LocationDescriptor>& descriptors);
-
- void ClearCache();
-
-protected:
- virtual EmitConfig GetEmitConfig() = 0;
- virtual void RegisterNewBasicBlock(const IR::Block& block, const EmittedBlockInfo& block_info) = 0;
-
- void ProtectCodeMemory() {
-#if defined(DYNARMIC_ENABLE_NO_EXECUTE_SUPPORT) || defined(__APPLE__) || defined(__OpenBSD__)
- mem.protect();
-#endif
- }
-
- void UnprotectCodeMemory() {
-#if defined(DYNARMIC_ENABLE_NO_EXECUTE_SUPPORT) || defined(__APPLE__) || defined(__OpenBSD__)
- mem.unprotect();
-#endif
- }
-
- size_t GetRemainingSize();
- EmittedBlockInfo Emit(IR::Block ir_block);
- void Link(EmittedBlockInfo& block);
- void LinkBlockLinks(const CodePtr entry_point, const CodePtr target_ptr, const std::vector<BlockRelocation>& block_relocations_list);
- void RelinkForDescriptor(IR::LocationDescriptor target_descriptor, CodePtr target_ptr);
-
- FakeCall FastmemCallback(u64 host_pc);
-
- const size_t code_cache_size;
- oaknut::CodeBlock mem;
- oaknut::CodeGenerator code;
-
- // A IR::LocationDescriptor will have one current CodePtr.
- // However, there can be multiple other CodePtrs which are older, previously invalidated blocks.
- tsl::robin_map<IR::LocationDescriptor, CodePtr> block_entries;
- std::map<CodePtr, IR::LocationDescriptor> reverse_block_entries;
- tsl::robin_map<CodePtr, EmittedBlockInfo> block_infos;
- tsl::robin_map<IR::LocationDescriptor, tsl::robin_set<CodePtr>> block_references;
-
- ExceptionHandler exception_handler;
- FastmemManager fastmem_manager;
-
- struct PreludeInfo {
- std::ptrdiff_t end_of_prelude;
-
- using RunCodeFuncType = HaltReason (*)(CodePtr entry_point, void* jit_state, volatile u32* halt_reason);
- RunCodeFuncType run_code;
- RunCodeFuncType step_code;
- void* return_to_dispatcher;
- void* return_from_run_code;
-
- void* read_memory_8;
- void* read_memory_16;
- void* read_memory_32;
- void* read_memory_64;
- void* read_memory_128;
- void* wrapped_read_memory_8;
- void* wrapped_read_memory_16;
- void* wrapped_read_memory_32;
- void* wrapped_read_memory_64;
- void* wrapped_read_memory_128;
- void* exclusive_read_memory_8;
- void* exclusive_read_memory_16;
- void* exclusive_read_memory_32;
- void* exclusive_read_memory_64;
- void* exclusive_read_memory_128;
- void* write_memory_8;
- void* write_memory_16;
- void* write_memory_32;
- void* write_memory_64;
- void* write_memory_128;
- void* wrapped_write_memory_8;
- void* wrapped_write_memory_16;
- void* wrapped_write_memory_32;
- void* wrapped_write_memory_64;
- void* wrapped_write_memory_128;
- void* exclusive_write_memory_8;
- void* exclusive_write_memory_16;
- void* exclusive_write_memory_32;
- void* exclusive_write_memory_64;
- void* exclusive_write_memory_128;
-
- void* call_svc;
- void* exception_raised;
- void* dc_raised;
- void* ic_raised;
- void* isb_raised;
-
- void* get_cntpct;
- void* add_ticks;
- void* get_ticks_remaining;
- } prelude_info;
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/devirtualize.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/devirtualize.h
deleted file mode 100644
index c433fd01..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/devirtualize.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/bit_cast.hpp>
-#include <mcl/stdint.hpp>
-#include <mcl/type_traits/function_info.hpp>
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct DevirtualizedCall {
- u64 fn_ptr;
- u64 this_ptr;
-};
-
-// https://rants.vastheman.com/2021/09/21/msvc/
-template<auto mfp>
-DevirtualizedCall DevirtualizeWindows(mcl::class_type<decltype(mfp)>* this_) {
- static_assert(sizeof(mfp) == 8);
- return DevirtualizedCall{mcl::bit_cast<u64>(mfp), reinterpret_cast<u64>(this_)};
-}
-
-// https://github.com/ARM-software/abi-aa/blob/main/cppabi64/cppabi64.rst#representation-of-pointer-to-member-function
-template<auto mfp>
-DevirtualizedCall DevirtualizeDefault(mcl::class_type<decltype(mfp)>* this_) {
- struct MemberFunctionPointer {
- // Address of non-virtual function or index into vtable.
- u64 ptr;
- // LSB is discriminator for if function is virtual. Other bits are this adjustment.
- u64 adj;
- } mfp_struct = mcl::bit_cast<MemberFunctionPointer>(mfp);
-
- static_assert(sizeof(MemberFunctionPointer) == 16);
- static_assert(sizeof(MemberFunctionPointer) == sizeof(mfp));
-
- u64 fn_ptr = mfp_struct.ptr;
- u64 this_ptr = mcl::bit_cast<u64>(this_) + (mfp_struct.adj >> 1);
- if (mfp_struct.adj & 1) {
- u64 vtable = mcl::bit_cast_pointee<u64>(this_ptr);
- fn_ptr = mcl::bit_cast_pointee<u64>(vtable + fn_ptr);
- }
- return DevirtualizedCall{fn_ptr, this_ptr};
-}
-
-template<auto mfp>
-DevirtualizedCall Devirtualize(mcl::class_type<decltype(mfp)>* this_) {
-#if defined(_WIN32) && defined(_MSC_VER)
- return DevirtualizeWindows<mfp>(this_);
-#else
- return DevirtualizeDefault<mfp>(this_);
-#endif
-}
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/emit_arm64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/emit_arm64.h
deleted file mode 100644
index 6ac62074..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/emit_arm64.h
+++ /dev/null
@@ -1,181 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <cstddef>
-#include <memory>
-#include <vector>
-
-#include <mcl/stdint.hpp>
-#include <tsl/robin_map.h>
-
-#include "dynarmic/backend/arm64/fastmem.h"
-#include "dynarmic/interface/A32/coprocessor.h"
-#include "dynarmic/interface/optimization_flags.h"
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace oaknut {
-struct CodeGenerator;
-struct Label;
-} // namespace oaknut
-
-namespace Dynarmic::FP {
-class FPCR;
-} // namespace Dynarmic::FP
-
-namespace Dynarmic::IR {
-class Block;
-class Inst;
-enum class Cond;
-enum class Opcode;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct EmitContext;
-
-using CodePtr = std::byte*;
-
-enum class LinkTarget {
- ReturnToDispatcher,
- ReturnFromRunCode,
- ReadMemory8,
- ReadMemory16,
- ReadMemory32,
- ReadMemory64,
- ReadMemory128,
- WrappedReadMemory8,
- WrappedReadMemory16,
- WrappedReadMemory32,
- WrappedReadMemory64,
- WrappedReadMemory128,
- ExclusiveReadMemory8,
- ExclusiveReadMemory16,
- ExclusiveReadMemory32,
- ExclusiveReadMemory64,
- ExclusiveReadMemory128,
- WriteMemory8,
- WriteMemory16,
- WriteMemory32,
- WriteMemory64,
- WriteMemory128,
- WrappedWriteMemory8,
- WrappedWriteMemory16,
- WrappedWriteMemory32,
- WrappedWriteMemory64,
- WrappedWriteMemory128,
- ExclusiveWriteMemory8,
- ExclusiveWriteMemory16,
- ExclusiveWriteMemory32,
- ExclusiveWriteMemory64,
- ExclusiveWriteMemory128,
- CallSVC,
- ExceptionRaised,
- InstructionSynchronizationBarrierRaised,
- InstructionCacheOperationRaised,
- DataCacheOperationRaised,
- GetCNTPCT,
- AddTicks,
- GetTicksRemaining,
-};
-
-struct Relocation {
- std::ptrdiff_t code_offset;
- LinkTarget target;
-};
-
-enum class BlockRelocationType {
- Branch,
- MoveToScratch1,
-};
-
-struct BlockRelocation {
- std::ptrdiff_t code_offset;
- BlockRelocationType type;
-};
-
-struct EmittedBlockInfo {
- CodePtr entry_point;
- size_t size;
- std::vector<Relocation> relocations;
- tsl::robin_map<IR::LocationDescriptor, std::vector<BlockRelocation>> block_relocations;
- tsl::robin_map<std::ptrdiff_t, FastmemPatchInfo> fastmem_patch_info;
-};
-
-struct EmitConfig {
- OptimizationFlag optimizations;
- bool HasOptimization(OptimizationFlag f) const { return (f & optimizations) != no_optimizations; }
-
- bool hook_isb;
-
- // System registers
- u64 cntfreq_el0;
- u32 ctr_el0;
- u32 dczid_el0;
- const u64* tpidrro_el0;
- u64* tpidr_el0;
-
- // Memory
- bool check_halt_on_memory_access;
-
- // Page table
- u64 page_table_pointer;
- size_t page_table_address_space_bits;
- int page_table_pointer_mask_bits;
- bool silently_mirror_page_table;
- bool absolute_offset_page_table;
- u8 detect_misaligned_access_via_page_table;
- bool only_detect_misalignment_via_page_table_on_page_boundary;
-
- // Fastmem
- u64 fastmem_pointer;
- bool recompile_on_fastmem_failure;
- size_t fastmem_address_space_bits;
- bool silently_mirror_fastmem;
-
- // Timing
- bool wall_clock_cntpct;
- bool enable_cycle_counting;
-
- // Endianness
- bool always_little_endian;
-
- // Frontend specific callbacks
- FP::FPCR (*descriptor_to_fpcr)(const IR::LocationDescriptor& descriptor);
- oaknut::Label (*emit_cond)(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Cond cond);
- void (*emit_condition_failed_terminal)(oaknut::CodeGenerator& code, EmitContext& ctx);
- void (*emit_terminal)(oaknut::CodeGenerator& code, EmitContext& ctx);
- void (*emit_check_memory_abort)(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst, oaknut::Label& end);
-
- // State offsets
- size_t state_nzcv_offset;
- size_t state_fpsr_offset;
- size_t state_exclusive_state_offset;
-
- // A32 specific
- std::array<std::shared_ptr<A32::Coprocessor>, 16> coprocessors{};
-
- // Debugging
- bool very_verbose_debugging_output;
-};
-
-EmittedBlockInfo EmitArm64(oaknut::CodeGenerator& code, IR::Block block, const EmitConfig& emit_conf, FastmemManager& fastmem_manager);
-
-template<IR::Opcode op>
-void EmitIR(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst);
-void EmitRelocation(oaknut::CodeGenerator& code, EmitContext& ctx, LinkTarget link_target);
-void EmitBlockLinkRelocation(oaknut::CodeGenerator& code, EmitContext& ctx, const IR::LocationDescriptor& descriptor, BlockRelocationType type);
-oaknut::Label EmitA32Cond(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Cond cond);
-oaknut::Label EmitA64Cond(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Cond cond);
-void EmitA32Terminal(oaknut::CodeGenerator& code, EmitContext& ctx);
-void EmitA64Terminal(oaknut::CodeGenerator& code, EmitContext& ctx);
-void EmitA32ConditionFailedTerminal(oaknut::CodeGenerator& code, EmitContext& ctx);
-void EmitA64ConditionFailedTerminal(oaknut::CodeGenerator& code, EmitContext& ctx);
-void EmitA32CheckMemoryAbort(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst, oaknut::Label& end);
-void EmitA64CheckMemoryAbort(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst, oaknut::Label& end);
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/emit_arm64_memory.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/emit_arm64_memory.h
deleted file mode 100644
index bfc6d71f..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/emit_arm64_memory.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#include <mcl/stdint.hpp>
-
-namespace oaknut {
-struct CodeGenerator;
-struct Label;
-} // namespace oaknut
-
-namespace Dynarmic::IR {
-enum class AccType;
-class Inst;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct EmitContext;
-enum class LinkTarget;
-
-template<size_t bitsize>
-void EmitReadMemory(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst);
-template<size_t bitsize>
-void EmitExclusiveReadMemory(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst);
-template<size_t bitsize>
-void EmitWriteMemory(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst);
-template<size_t bitsize>
-void EmitExclusiveWriteMemory(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst);
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/emit_context.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/emit_context.h
deleted file mode 100644
index 6bfc6f3c..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/emit_context.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <functional>
-#include <memory>
-#include <vector>
-
-#include <oaknut/oaknut.hpp>
-
-#include "dynarmic/backend/arm64/emit_arm64.h"
-#include "dynarmic/backend/arm64/reg_alloc.h"
-#include "dynarmic/common/fp/fpcr.h"
-#include "dynarmic/ir/basic_block.h"
-
-namespace Dynarmic::IR {
-class Block;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct EmitConfig;
-class FastmemManager;
-class FpsrManager;
-
-using SharedLabel = std::shared_ptr<oaknut::Label>;
-
-inline SharedLabel GenSharedLabel() {
- return std::make_shared<oaknut::Label>();
-}
-
-struct EmitContext {
- IR::Block& block;
- RegAlloc& reg_alloc;
- const EmitConfig& conf;
- EmittedBlockInfo& ebi;
- FpsrManager& fpsr;
- FastmemManager& fastmem;
-
- std::vector<std::function<void()>> deferred_emits;
-
- FP::FPCR FPCR(bool fpcr_controlled = true) const {
- const FP::FPCR fpcr = conf.descriptor_to_fpcr(block.Location());
- return fpcr_controlled ? fpcr : fpcr.ASIMDStandardValue();
- }
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/fastmem.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/fastmem.h
deleted file mode 100644
index 8ed686ae..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/fastmem.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstddef>
-#include <tuple>
-
-#include <mcl/hash/xmrx.hpp>
-#include <mcl/stdint.hpp>
-#include <tsl/robin_set.h>
-
-#include "dynarmic/backend/exception_handler.h"
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-using DoNotFastmemMarker = std::tuple<IR::LocationDescriptor, unsigned>;
-
-struct DoNotFastmemMarkerHash {
- size_t operator()(const DoNotFastmemMarker& value) const {
- return mcl::hash::xmrx(std::get<0>(value).Value() ^ static_cast<u64>(std::get<1>(value)));
- }
-};
-
-struct FastmemPatchInfo {
- DoNotFastmemMarker marker;
- FakeCall fc;
- bool recompile;
-};
-
-class FastmemManager {
-public:
- explicit FastmemManager(ExceptionHandler& eh)
- : exception_handler(eh) {}
-
- bool SupportsFastmem() const {
- return exception_handler.SupportsFastmem();
- }
-
- bool ShouldFastmem(DoNotFastmemMarker marker) const {
- return do_not_fastmem.count(marker) == 0;
- }
-
- void MarkDoNotFastmem(DoNotFastmemMarker marker) {
- do_not_fastmem.insert(marker);
- }
-
-private:
- ExceptionHandler& exception_handler;
- tsl::robin_set<DoNotFastmemMarker, DoNotFastmemMarkerHash> do_not_fastmem;
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/fpsr_manager.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/fpsr_manager.h
deleted file mode 100644
index e003522d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/fpsr_manager.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace oaknut {
-struct CodeGenerator;
-} // namespace oaknut
-
-namespace Dynarmic::Backend::Arm64 {
-
-class FpsrManager {
-public:
- explicit FpsrManager(oaknut::CodeGenerator& code, size_t state_fpsr_offset);
-
- void Spill();
- void Load();
- void Overwrite() { fpsr_loaded = false; }
-
-private:
- oaknut::CodeGenerator& code;
- size_t state_fpsr_offset;
- bool fpsr_loaded = false;
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/reg_alloc.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/reg_alloc.h
deleted file mode 100644
index 3a2d5388..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/reg_alloc.h
+++ /dev/null
@@ -1,376 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <optional>
-#include <random>
-#include <utility>
-#include <vector>
-
-#include <mcl/assert.hpp>
-#include <mcl/stdint.hpp>
-#include <mcl/type_traits/is_instance_of_template.hpp>
-#include <oaknut/oaknut.hpp>
-#include <tsl/robin_set.h>
-
-#include "dynarmic/backend/arm64/stack_layout.h"
-#include "dynarmic/ir/cond.h"
-#include "dynarmic/ir/microinstruction.h"
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-class FpsrManager;
-class RegAlloc;
-
-struct HostLoc final {
- enum class Kind {
- Gpr,
- Fpr,
- Flags,
- Spill,
- } kind;
- int index;
-};
-
-enum RWType {
- Void,
- Read,
- Write,
- ReadWrite,
-};
-
-struct Argument final {
-public:
- using copyable_reference = std::reference_wrapper<Argument>;
-
- IR::Type GetType() const;
- bool IsVoid() const { return GetType() == IR::Type::Void; }
- bool IsImmediate() const;
-
- bool GetImmediateU1() const;
- u8 GetImmediateU8() const;
- u16 GetImmediateU16() const;
- u32 GetImmediateU32() const;
- u64 GetImmediateU64() const;
- IR::Cond GetImmediateCond() const;
- IR::AccType GetImmediateAccType() const;
-
- // Only valid if not immediate
- HostLoc::Kind CurrentLocationKind() const;
- bool IsInGpr() const { return !IsImmediate() && CurrentLocationKind() == HostLoc::Kind::Gpr; }
- bool IsInFpr() const { return !IsImmediate() && CurrentLocationKind() == HostLoc::Kind::Fpr; }
-
-private:
- friend class RegAlloc;
- explicit Argument(RegAlloc& reg_alloc)
- : reg_alloc{reg_alloc} {}
-
- bool allocated = false;
- RegAlloc& reg_alloc;
- IR::Value value;
-};
-
-struct FlagsTag final {
-private:
- template<typename>
- friend struct RAReg;
-
- explicit FlagsTag(int) {}
- int index() const { return 0; }
-};
-
-template<typename T>
-struct RAReg final {
-public:
- static constexpr HostLoc::Kind kind = !std::is_same_v<FlagsTag, T>
- ? std::is_base_of_v<oaknut::VReg, T>
- ? HostLoc::Kind::Fpr
- : HostLoc::Kind::Gpr
- : HostLoc::Kind::Flags;
-
- operator T() const { return reg.value(); }
-
- operator oaknut::WRegWsp() const
- requires(std::is_same_v<T, oaknut::WReg>)
- {
- return reg.value();
- }
-
- operator oaknut::XRegSp() const
- requires(std::is_same_v<T, oaknut::XReg>)
- {
- return reg.value();
- }
-
- T operator*() const { return reg.value(); }
- const T* operator->() const { return &reg.value(); }
-
- ~RAReg();
- RAReg(RAReg&& other)
- : reg_alloc{other.reg_alloc}
- , rw{std::exchange(other.rw, RWType::Void)}
- , read_value{std::exchange(other.read_value, {})}
- , write_value{std::exchange(other.write_value, nullptr)}
- , reg{std::exchange(other.reg, std::nullopt)} {
- }
- RAReg& operator=(RAReg&&) = delete;
-
-private:
- friend class RegAlloc;
- explicit RAReg(RegAlloc& reg_alloc, RWType rw, const IR::Value& read_value, const IR::Inst* write_value);
-
- RAReg(const RAReg&) = delete;
- RAReg& operator=(const RAReg&) = delete;
-
- void Realize();
-
- RegAlloc& reg_alloc;
- RWType rw;
- IR::Value read_value;
- const IR::Inst* write_value;
- std::optional<T> reg;
-};
-
-struct HostLocInfo final {
- std::vector<const IR::Inst*> values;
- size_t locked = 0;
- bool realized = false;
- size_t uses_this_inst = 0;
- size_t accumulated_uses = 0;
- size_t expected_uses = 0;
-
- bool Contains(const IR::Inst*) const;
- void SetupScratchLocation();
- void SetupLocation(const IR::Inst*);
- bool IsCompletelyEmpty() const;
- bool MaybeAllocatable() const;
- bool IsOneRemainingUse() const;
- void UpdateUses();
-};
-
-class RegAlloc final {
-public:
- using ArgumentInfo = std::array<Argument, IR::max_arg_count>;
-
- explicit RegAlloc(oaknut::CodeGenerator& code, FpsrManager& fpsr_manager, std::vector<int> gpr_order, std::vector<int> fpr_order)
- : code{code}, fpsr_manager{fpsr_manager}, gpr_order{gpr_order}, fpr_order{fpr_order}, rand_gen{std::random_device{}()} {}
-
- ArgumentInfo GetArgumentInfo(IR::Inst* inst);
- bool WasValueDefined(IR::Inst* inst) const;
-
- auto ReadX(Argument& arg) { return RAReg<oaknut::XReg>{*this, RWType::Read, arg.value, nullptr}; }
- auto ReadW(Argument& arg) { return RAReg<oaknut::WReg>{*this, RWType::Read, arg.value, nullptr}; }
-
- auto ReadQ(Argument& arg) { return RAReg<oaknut::QReg>{*this, RWType::Read, arg.value, nullptr}; }
- auto ReadD(Argument& arg) { return RAReg<oaknut::DReg>{*this, RWType::Read, arg.value, nullptr}; }
- auto ReadS(Argument& arg) { return RAReg<oaknut::SReg>{*this, RWType::Read, arg.value, nullptr}; }
- auto ReadH(Argument& arg) { return RAReg<oaknut::HReg>{*this, RWType::Read, arg.value, nullptr}; }
- auto ReadB(Argument& arg) { return RAReg<oaknut::BReg>{*this, RWType::Read, arg.value, nullptr}; }
-
- template<size_t size>
- auto ReadReg(Argument& arg) {
- if constexpr (size == 64) {
- return ReadX(arg);
- } else if constexpr (size == 32) {
- return ReadW(arg);
- } else {
- ASSERT_FALSE("Invalid size to ReadReg {}", size);
- }
- }
-
- template<size_t size>
- auto ReadVec(Argument& arg) {
- if constexpr (size == 128) {
- return ReadQ(arg);
- } else if constexpr (size == 64) {
- return ReadD(arg);
- } else if constexpr (size == 32) {
- return ReadS(arg);
- } else if constexpr (size == 16) {
- return ReadH(arg);
- } else if constexpr (size == 8) {
- return ReadB(arg);
- } else {
- ASSERT_FALSE("Invalid size to ReadVec {}", size);
- }
- }
-
- auto WriteX(IR::Inst* inst) { return RAReg<oaknut::XReg>{*this, RWType::Write, {}, inst}; }
- auto WriteW(IR::Inst* inst) { return RAReg<oaknut::WReg>{*this, RWType::Write, {}, inst}; }
-
- auto WriteQ(IR::Inst* inst) { return RAReg<oaknut::QReg>{*this, RWType::Write, {}, inst}; }
- auto WriteD(IR::Inst* inst) { return RAReg<oaknut::DReg>{*this, RWType::Write, {}, inst}; }
- auto WriteS(IR::Inst* inst) { return RAReg<oaknut::SReg>{*this, RWType::Write, {}, inst}; }
- auto WriteH(IR::Inst* inst) { return RAReg<oaknut::HReg>{*this, RWType::Write, {}, inst}; }
- auto WriteB(IR::Inst* inst) { return RAReg<oaknut::BReg>{*this, RWType::Write, {}, inst}; }
-
- auto WriteFlags(IR::Inst* inst) { return RAReg<FlagsTag>{*this, RWType::Write, {}, inst}; }
-
- template<size_t size>
- auto WriteReg(IR::Inst* inst) {
- if constexpr (size == 64) {
- return WriteX(inst);
- } else if constexpr (size == 32) {
- return WriteW(inst);
- } else {
- ASSERT_FALSE("Invalid size to WriteReg {}", size);
- }
- }
-
- template<size_t size>
- auto WriteVec(IR::Inst* inst) {
- if constexpr (size == 128) {
- return WriteQ(inst);
- } else if constexpr (size == 64) {
- return WriteD(inst);
- } else if constexpr (size == 32) {
- return WriteS(inst);
- } else if constexpr (size == 16) {
- return WriteH(inst);
- } else if constexpr (size == 8) {
- return WriteB(inst);
- } else {
- ASSERT_FALSE("Invalid size to WriteVec {}", size);
- }
- }
-
- auto ReadWriteX(Argument& arg, const IR::Inst* inst) { return RAReg<oaknut::XReg>{*this, RWType::ReadWrite, arg.value, inst}; }
- auto ReadWriteW(Argument& arg, const IR::Inst* inst) { return RAReg<oaknut::WReg>{*this, RWType::ReadWrite, arg.value, inst}; }
-
- auto ReadWriteQ(Argument& arg, const IR::Inst* inst) { return RAReg<oaknut::QReg>{*this, RWType::ReadWrite, arg.value, inst}; }
- auto ReadWriteD(Argument& arg, const IR::Inst* inst) { return RAReg<oaknut::DReg>{*this, RWType::ReadWrite, arg.value, inst}; }
- auto ReadWriteS(Argument& arg, const IR::Inst* inst) { return RAReg<oaknut::SReg>{*this, RWType::ReadWrite, arg.value, inst}; }
- auto ReadWriteH(Argument& arg, const IR::Inst* inst) { return RAReg<oaknut::HReg>{*this, RWType::ReadWrite, arg.value, inst}; }
- auto ReadWriteB(Argument& arg, const IR::Inst* inst) { return RAReg<oaknut::BReg>{*this, RWType::ReadWrite, arg.value, inst}; }
-
- template<size_t size>
- auto ReadWriteReg(Argument& arg, const IR::Inst* inst) {
- if constexpr (size == 64) {
- return ReadWriteX(arg, inst);
- } else if constexpr (size == 32) {
- return ReadWriteW(arg, inst);
- } else {
- ASSERT_FALSE("Invalid size to ReadWriteReg {}", size);
- }
- }
-
- template<size_t size>
- auto ReadWriteVec(Argument& arg, const IR::Inst* inst) {
- if constexpr (size == 128) {
- return ReadWriteQ(arg, inst);
- } else if constexpr (size == 64) {
- return ReadWriteD(arg, inst);
- } else if constexpr (size == 32) {
- return ReadWriteS(arg, inst);
- } else if constexpr (size == 16) {
- return ReadWriteH(arg, inst);
- } else if constexpr (size == 8) {
- return ReadWriteB(arg, inst);
- } else {
- ASSERT_FALSE("Invalid size to ReadWriteVec {}", size);
- }
- }
-
- void PrepareForCall(std::optional<Argument::copyable_reference> arg0 = {}, std::optional<Argument::copyable_reference> arg1 = {}, std::optional<Argument::copyable_reference> arg2 = {}, std::optional<Argument::copyable_reference> arg3 = {});
-
- void DefineAsExisting(IR::Inst* inst, Argument& arg);
- void DefineAsRegister(IR::Inst* inst, oaknut::Reg reg);
-
- void ReadWriteFlags(Argument& read, IR::Inst* write);
- void SpillFlags();
- void SpillAll();
-
- template<typename... Ts>
- static void Realize(Ts&... rs) {
- static_assert((mcl::is_instance_of_template<RAReg, Ts>() && ...));
- (rs.Realize(), ...);
- }
-
- void UpdateAllUses();
- void AssertAllUnlocked() const;
- void AssertNoMoreUses() const;
-
- void EmitVerboseDebuggingOutput();
-
-private:
- friend struct Argument;
- template<typename>
- friend struct RAReg;
-
- template<HostLoc::Kind kind>
- int GenerateImmediate(const IR::Value& value);
- template<HostLoc::Kind kind>
- int RealizeReadImpl(const IR::Value& value);
- template<HostLoc::Kind kind>
- int RealizeWriteImpl(const IR::Inst* value);
- template<HostLoc::Kind kind>
- int RealizeReadWriteImpl(const IR::Value& read_value, const IR::Inst* write_value);
-
- int AllocateRegister(const std::array<HostLocInfo, 32>& regs, const std::vector<int>& order) const;
- void SpillGpr(int index);
- void SpillFpr(int index);
- int FindFreeSpill() const;
-
- void LoadCopyInto(const IR::Value& value, oaknut::XReg reg);
- void LoadCopyInto(const IR::Value& value, oaknut::QReg reg);
-
- std::optional<HostLoc> ValueLocation(const IR::Inst* value) const;
- HostLocInfo& ValueInfo(HostLoc host_loc);
- HostLocInfo& ValueInfo(const IR::Inst* value);
-
- oaknut::CodeGenerator& code;
- FpsrManager& fpsr_manager;
- std::vector<int> gpr_order;
- std::vector<int> fpr_order;
-
- std::array<HostLocInfo, 32> gprs;
- std::array<HostLocInfo, 32> fprs;
- HostLocInfo flags;
- std::array<HostLocInfo, SpillCount> spills;
-
- mutable std::mt19937 rand_gen;
-
- tsl::robin_set<const IR::Inst*> defined_insts;
-};
-
-template<typename T>
-RAReg<T>::RAReg(RegAlloc& reg_alloc, RWType rw, const IR::Value& read_value, const IR::Inst* write_value)
- : reg_alloc{reg_alloc}, rw{rw}, read_value{read_value}, write_value{write_value} {
- if (rw != RWType::Write && !read_value.IsImmediate()) {
- reg_alloc.ValueInfo(read_value.GetInst()).locked++;
- }
-}
-
-template<typename T>
-RAReg<T>::~RAReg() {
- if (rw != RWType::Write && !read_value.IsImmediate()) {
- reg_alloc.ValueInfo(read_value.GetInst()).locked--;
- }
- if (reg) {
- reg_alloc.ValueInfo(HostLoc{kind, reg->index()}).realized = false;
- }
-}
-
-template<typename T>
-void RAReg<T>::Realize() {
- switch (rw) {
- case RWType::Read:
- reg = T{reg_alloc.RealizeReadImpl<kind>(read_value)};
- break;
- case RWType::Write:
- reg = T{reg_alloc.RealizeWriteImpl<kind>(write_value)};
- break;
- case RWType::ReadWrite:
- reg = T{reg_alloc.RealizeReadWriteImpl<kind>(read_value, write_value)};
- break;
- default:
- ASSERT_FALSE("Invalid RWType");
- }
-}
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/stack_layout.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/stack_layout.h
deleted file mode 100644
index cf7f3259..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/stack_layout.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Backend::Arm64 {
-
-#ifdef _MSC_VER
-# pragma warning(push)
-# pragma warning(disable : 4324) // Structure was padded due to alignment specifier
-#endif
-
-constexpr size_t SpillCount = 64;
-
-struct alignas(16) RSBEntry {
- u64 target;
- u64 code_ptr;
-};
-
-constexpr size_t RSBCount = 8;
-constexpr u64 RSBIndexMask = (RSBCount - 1) * sizeof(RSBEntry);
-
-struct alignas(16) StackLayout {
- std::array<RSBEntry, RSBCount> rsb;
-
- std::array<std::array<u64, 2>, SpillCount> spill;
-
- u32 rsb_ptr;
-
- s64 cycles_to_run;
-
- u32 save_host_fpcr;
-
- bool check_bit;
-};
-
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-
-static_assert(sizeof(StackLayout) % 16 == 0);
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/verbose_debugging_output.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/verbose_debugging_output.h
deleted file mode 100644
index 73c66461..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/arm64/verbose_debugging_output.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2023 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/backend/arm64/stack_layout.h"
-
-namespace oaknut {
-struct CodeGenerator;
-struct Label;
-} // namespace oaknut
-
-namespace Dynarmic::IR {
-enum class Type;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct EmitContext;
-
-using Vector = std::array<u64, 2>;
-
-#ifdef _MSC_VER
-# pragma warning(push)
-# pragma warning(disable : 4324) // Structure was padded due to alignment specifier
-#endif
-
-enum class HostLocType {
- X,
- Q,
- Nzcv,
- Spill,
-};
-
-struct alignas(16) RegisterData {
- std::array<u64, 30> x;
- std::array<Vector, 32> q;
- u32 nzcv;
- decltype(StackLayout::spill)* spill;
- u32 fpsr;
-};
-
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-
-void EmitVerboseDebuggingOutput(oaknut::CodeGenerator& code, EmitContext& ctx);
-void PrintVerboseDebuggingOutputLine(RegisterData& reg_data, HostLocType reg_type, size_t reg_index, size_t inst_index, IR::Type inst_type);
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/block_range_information.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/block_range_information.h
deleted file mode 100644
index 3402b155..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/block_range_information.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <set>
-
-#include <boost/icl/interval_map.hpp>
-#include <boost/icl/interval_set.hpp>
-#include <tsl/robin_set.h>
-
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace Dynarmic::Backend {
-
-template<typename ProgramCounterType>
-class BlockRangeInformation {
-public:
- void AddRange(boost::icl::discrete_interval<ProgramCounterType> range, IR::LocationDescriptor location);
- void ClearCache();
- tsl::robin_set<IR::LocationDescriptor> InvalidateRanges(const boost::icl::interval_set<ProgramCounterType>& ranges);
-
-private:
- boost::icl::interval_map<ProgramCounterType, std::set<IR::LocationDescriptor>> block_ranges;
-};
-
-} // namespace Dynarmic::Backend
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/exception_handler.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/exception_handler.h
deleted file mode 100644
index 179433ba..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/exception_handler.h
+++ /dev/null
@@ -1,63 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2020 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <functional>
-#include <memory>
-#include <optional>
-
-#include <mcl/macro/architecture.hpp>
-#include <mcl/stdint.hpp>
-
-#if defined(MCL_ARCHITECTURE_X86_64)
-namespace Dynarmic::Backend::X64 {
-class BlockOfCode;
-} // namespace Dynarmic::Backend::X64
-#elif defined(MCL_ARCHITECTURE_ARM64)
-namespace oaknut {
-class CodeBlock;
-} // namespace oaknut
-#else
-# error "Invalid architecture"
-#endif
-
-namespace Dynarmic::Backend {
-
-#if defined(MCL_ARCHITECTURE_X86_64)
-struct FakeCall {
- u64 call_rip;
- u64 ret_rip;
-};
-#elif defined(MCL_ARCHITECTURE_ARM64)
-struct FakeCall {
- u64 call_pc;
-};
-#else
-# error "Invalid architecture"
-#endif
-
-class ExceptionHandler final {
-public:
- ExceptionHandler();
- ~ExceptionHandler();
-
-#if defined(MCL_ARCHITECTURE_X86_64)
- void Register(X64::BlockOfCode& code);
-#elif defined(MCL_ARCHITECTURE_ARM64)
- void Register(oaknut::CodeBlock& mem, std::size_t mem_size);
-#else
-# error "Invalid architecture"
-#endif
-
- bool SupportsFastmem() const noexcept;
- void SetFastmemCallback(std::function<FakeCall(u64)> cb);
-
-private:
- struct Impl;
- std::unique_ptr<Impl> impl;
-};
-
-} // namespace Dynarmic::Backend
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/a32_emit_x64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/a32_emit_x64.h
deleted file mode 100644
index 3706b30a..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/a32_emit_x64.h
+++ /dev/null
@@ -1,147 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <optional>
-#include <set>
-#include <tuple>
-
-#include <tsl/robin_map.h>
-
-#include "dynarmic/backend/block_range_information.h"
-#include "dynarmic/backend/x64/a32_jitstate.h"
-#include "dynarmic/backend/x64/emit_x64.h"
-#include "dynarmic/frontend/A32/a32_location_descriptor.h"
-#include "dynarmic/interface/A32/a32.h"
-#include "dynarmic/interface/A32/config.h"
-#include "dynarmic/ir/terminal.h"
-
-namespace Dynarmic::Backend::X64 {
-
-class RegAlloc;
-
-struct A32EmitContext final : public EmitContext {
- A32EmitContext(const A32::UserConfig& conf, RegAlloc& reg_alloc, IR::Block& block);
-
- A32::LocationDescriptor Location() const;
- A32::LocationDescriptor EndLocation() const;
- bool IsSingleStep() const;
- FP::FPCR FPCR(bool fpcr_controlled = true) const override;
-
- bool HasOptimization(OptimizationFlag flag) const override {
- return conf.HasOptimization(flag);
- }
-
- const A32::UserConfig& conf;
-};
-
-class A32EmitX64 final : public EmitX64 {
-public:
- A32EmitX64(BlockOfCode& code, A32::UserConfig conf, A32::Jit* jit_interface);
- ~A32EmitX64() override;
-
- /**
- * Emit host machine code for a basic block with intermediate representation `block`.
- * @note block is modified.
- */
- BlockDescriptor Emit(IR::Block& block);
-
- void ClearCache() override;
-
- void InvalidateCacheRanges(const boost::icl::interval_set<u32>& ranges);
-
-protected:
- const A32::UserConfig conf;
- A32::Jit* jit_interface;
- BlockRangeInformation<u32> block_ranges;
-
- void EmitCondPrelude(const A32EmitContext& ctx);
-
- struct FastDispatchEntry {
- u64 location_descriptor = 0xFFFF'FFFF'FFFF'FFFFull;
- const void* code_ptr = nullptr;
- };
- static_assert(sizeof(FastDispatchEntry) == 0x10);
- static constexpr u64 fast_dispatch_table_mask = 0xFFFF0;
- static constexpr size_t fast_dispatch_table_size = 0x10000;
- std::array<FastDispatchEntry, fast_dispatch_table_size> fast_dispatch_table;
- void ClearFastDispatchTable();
-
- void (*memory_read_128)() = nullptr; // Dummy
- void (*memory_write_128)() = nullptr; // Dummy
-
- std::map<std::tuple<bool, size_t, int, int>, void (*)()> read_fallbacks;
- std::map<std::tuple<bool, size_t, int, int>, void (*)()> write_fallbacks;
- std::map<std::tuple<bool, size_t, int, int>, void (*)()> exclusive_write_fallbacks;
- void GenFastmemFallbacks();
-
- const void* terminal_handler_pop_rsb_hint;
- const void* terminal_handler_fast_dispatch_hint = nullptr;
- FastDispatchEntry& (*fast_dispatch_table_lookup)(u64) = nullptr;
- void GenTerminalHandlers();
-
- // Microinstruction emitters
-#define OPCODE(...)
-#define A32OPC(name, type, ...) void EmitA32##name(A32EmitContext& ctx, IR::Inst* inst);
-#define A64OPC(...)
-#include "dynarmic/ir/opcodes.inc"
-#undef OPCODE
-#undef A32OPC
-#undef A64OPC
-
- // Helpers
- std::string LocationDescriptorToFriendlyName(const IR::LocationDescriptor&) const override;
-
- // Fastmem information
- using DoNotFastmemMarker = std::tuple<IR::LocationDescriptor, unsigned>;
- struct FastmemPatchInfo {
- u64 resume_rip;
- u64 callback;
- DoNotFastmemMarker marker;
- bool recompile;
- };
- tsl::robin_map<u64, FastmemPatchInfo> fastmem_patch_info;
- std::set<DoNotFastmemMarker> do_not_fastmem;
- std::optional<DoNotFastmemMarker> ShouldFastmem(A32EmitContext& ctx, IR::Inst* inst) const;
- FakeCall FastmemCallback(u64 rip);
-
- // Memory access helpers
- void EmitCheckMemoryAbort(A32EmitContext& ctx, IR::Inst* inst, Xbyak::Label* end = nullptr);
- template<std::size_t bitsize, auto callback>
- void EmitMemoryRead(A32EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitMemoryWrite(A32EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveReadMemory(A32EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveWriteMemory(A32EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveReadMemoryInline(A32EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveWriteMemoryInline(A32EmitContext& ctx, IR::Inst* inst);
-
- // Terminal instruction emitters
- void EmitSetUpperLocationDescriptor(IR::LocationDescriptor new_location, IR::LocationDescriptor old_location);
- void EmitTerminalImpl(IR::Term::Interpret terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::ReturnToDispatch terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::LinkBlock terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::LinkBlockFast terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::PopRSBHint terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::FastDispatchHint terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::If terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::CheckBit terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::CheckHalt terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
-
- // Patching
- void Unpatch(const IR::LocationDescriptor& target_desc) override;
- void EmitPatchJg(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) override;
- void EmitPatchJz(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) override;
- void EmitPatchJmp(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) override;
- void EmitPatchMovRcx(CodePtr target_code_ptr = nullptr) override;
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/a32_jitstate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/a32_jitstate.h
deleted file mode 100644
index cc13abf8..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/a32_jitstate.h
+++ /dev/null
@@ -1,97 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Backend::X64 {
-
-class BlockOfCode;
-
-#ifdef _MSC_VER
-# pragma warning(push)
-# pragma warning(disable : 4324) // Structure was padded due to alignment specifier
-#endif
-
-struct A32JitState {
- using ProgramCounterType = u32;
-
- A32JitState() { ResetRSB(); }
-
- std::array<u32, 16> Reg{}; // Current register file.
- // TODO: Mode-specific register sets unimplemented.
-
- u32 upper_location_descriptor = 0;
-
- u32 cpsr_ge = 0;
- u32 cpsr_q = 0;
- u32 cpsr_nzcv = 0;
- u32 cpsr_jaifm = 0;
- u32 Cpsr() const;
- void SetCpsr(u32 cpsr);
-
- alignas(16) std::array<u32, 64> ExtReg{}; // Extension registers.
-
- // For internal use (See: BlockOfCode::RunCode)
- u32 guest_MXCSR = 0x00001f80;
- u32 asimd_MXCSR = 0x00009fc0;
- volatile u32 halt_reason = 0;
-
- // Exclusive state
- u32 exclusive_state = 0;
-
- static constexpr size_t RSBSize = 8; // MUST be a power of 2.
- static constexpr size_t RSBPtrMask = RSBSize - 1;
- u32 rsb_ptr = 0;
- std::array<u64, RSBSize> rsb_location_descriptors;
- std::array<u64, RSBSize> rsb_codeptrs;
- void ResetRSB();
-
- u32 fpsr_exc = 0;
- u32 fpsr_qc = 0;
- u32 fpsr_nzcv = 0;
- u32 Fpscr() const;
- void SetFpscr(u32 FPSCR);
-
- u64 GetUniqueHash() const noexcept {
- return (static_cast<u64>(upper_location_descriptor) << 32) | (static_cast<u64>(Reg[15]));
- }
-
- void TransferJitState(const A32JitState& src, bool reset_rsb) {
- Reg = src.Reg;
- upper_location_descriptor = src.upper_location_descriptor;
- cpsr_ge = src.cpsr_ge;
- cpsr_q = src.cpsr_q;
- cpsr_nzcv = src.cpsr_nzcv;
- cpsr_jaifm = src.cpsr_jaifm;
- ExtReg = src.ExtReg;
- guest_MXCSR = src.guest_MXCSR;
- asimd_MXCSR = src.asimd_MXCSR;
- fpsr_exc = src.fpsr_exc;
- fpsr_qc = src.fpsr_qc;
- fpsr_nzcv = src.fpsr_nzcv;
-
- exclusive_state = 0;
-
- if (reset_rsb) {
- ResetRSB();
- } else {
- rsb_ptr = src.rsb_ptr;
- rsb_location_descriptors = src.rsb_location_descriptors;
- rsb_codeptrs = src.rsb_codeptrs;
- }
- }
-};
-
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-
-using CodePtr = const void*;
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/a64_emit_x64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/a64_emit_x64.h
deleted file mode 100644
index ed493155..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/a64_emit_x64.h
+++ /dev/null
@@ -1,144 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <map>
-#include <optional>
-#include <tuple>
-
-#include "dynarmic/backend/block_range_information.h"
-#include "dynarmic/backend/x64/a64_jitstate.h"
-#include "dynarmic/backend/x64/emit_x64.h"
-#include "dynarmic/frontend/A64/a64_location_descriptor.h"
-#include "dynarmic/interface/A64/a64.h"
-#include "dynarmic/interface/A64/config.h"
-#include "dynarmic/ir/terminal.h"
-
-namespace Dynarmic::Backend::X64 {
-
-class RegAlloc;
-
-struct A64EmitContext final : public EmitContext {
- A64EmitContext(const A64::UserConfig& conf, RegAlloc& reg_alloc, IR::Block& block);
-
- A64::LocationDescriptor Location() const;
- bool IsSingleStep() const;
- FP::FPCR FPCR(bool fpcr_controlled = true) const override;
-
- bool HasOptimization(OptimizationFlag flag) const override {
- return conf.HasOptimization(flag);
- }
-
- const A64::UserConfig& conf;
-};
-
-class A64EmitX64 final : public EmitX64 {
-public:
- A64EmitX64(BlockOfCode& code, A64::UserConfig conf, A64::Jit* jit_interface);
- ~A64EmitX64() override;
-
- /**
- * Emit host machine code for a basic block with intermediate representation `block`.
- * @note block is modified.
- */
- BlockDescriptor Emit(IR::Block& block);
-
- void ClearCache() override;
-
- void InvalidateCacheRanges(const boost::icl::interval_set<u64>& ranges);
-
-protected:
- const A64::UserConfig conf;
- A64::Jit* jit_interface;
- BlockRangeInformation<u64> block_ranges;
-
- struct FastDispatchEntry {
- u64 location_descriptor = 0xFFFF'FFFF'FFFF'FFFFull;
- const void* code_ptr = nullptr;
- };
- static_assert(sizeof(FastDispatchEntry) == 0x10);
- static constexpr u64 fast_dispatch_table_mask = 0xFFFFF0;
- static constexpr size_t fast_dispatch_table_size = 0x100000;
- std::array<FastDispatchEntry, fast_dispatch_table_size> fast_dispatch_table;
- void ClearFastDispatchTable();
-
- void (*memory_read_128)();
- void (*memory_write_128)();
- void (*memory_exclusive_write_128)();
- void GenMemory128Accessors();
-
- std::map<std::tuple<bool, size_t, int, int>, void (*)()> read_fallbacks;
- std::map<std::tuple<bool, size_t, int, int>, void (*)()> write_fallbacks;
- std::map<std::tuple<bool, size_t, int, int>, void (*)()> exclusive_write_fallbacks;
- void GenFastmemFallbacks();
-
- const void* terminal_handler_pop_rsb_hint;
- const void* terminal_handler_fast_dispatch_hint = nullptr;
- FastDispatchEntry& (*fast_dispatch_table_lookup)(u64) = nullptr;
- void GenTerminalHandlers();
-
- // Microinstruction emitters
- void EmitPushRSB(EmitContext& ctx, IR::Inst* inst);
-#define OPCODE(...)
-#define A32OPC(...)
-#define A64OPC(name, type, ...) void EmitA64##name(A64EmitContext& ctx, IR::Inst* inst);
-#include "dynarmic/ir/opcodes.inc"
-#undef OPCODE
-#undef A32OPC
-#undef A64OPC
-
- // Helpers
- std::string LocationDescriptorToFriendlyName(const IR::LocationDescriptor&) const override;
-
- // Fastmem information
- using DoNotFastmemMarker = std::tuple<IR::LocationDescriptor, unsigned>;
- struct FastmemPatchInfo {
- u64 resume_rip;
- u64 callback;
- DoNotFastmemMarker marker;
- bool recompile;
- };
- tsl::robin_map<u64, FastmemPatchInfo> fastmem_patch_info;
- std::set<DoNotFastmemMarker> do_not_fastmem;
- std::optional<DoNotFastmemMarker> ShouldFastmem(A64EmitContext& ctx, IR::Inst* inst) const;
- FakeCall FastmemCallback(u64 rip);
-
- // Memory access helpers
- void EmitCheckMemoryAbort(A64EmitContext& ctx, IR::Inst* inst, Xbyak::Label* end = nullptr);
- template<std::size_t bitsize, auto callback>
- void EmitMemoryRead(A64EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitMemoryWrite(A64EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveReadMemory(A64EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveWriteMemory(A64EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveReadMemoryInline(A64EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveWriteMemoryInline(A64EmitContext& ctx, IR::Inst* inst);
-
- // Terminal instruction emitters
- void EmitTerminalImpl(IR::Term::Interpret terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::ReturnToDispatch terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::LinkBlock terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::LinkBlockFast terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::PopRSBHint terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::FastDispatchHint terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::If terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::CheckBit terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::CheckHalt terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
-
- // Patching
- void Unpatch(const IR::LocationDescriptor& target_desc) override;
- void EmitPatchJg(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) override;
- void EmitPatchJz(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) override;
- void EmitPatchJmp(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) override;
- void EmitPatchMovRcx(CodePtr target_code_ptr = nullptr) override;
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/a64_jitstate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/a64_jitstate.h
deleted file mode 100644
index 0929e81e..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/a64_jitstate.h
+++ /dev/null
@@ -1,84 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/backend/x64/nzcv_util.h"
-#include "dynarmic/frontend/A64/a64_location_descriptor.h"
-
-namespace Dynarmic::Backend::X64 {
-
-class BlockOfCode;
-
-#ifdef _MSC_VER
-# pragma warning(push)
-# pragma warning(disable : 4324) // Structure was padded due to alignment specifier
-#endif
-
-struct A64JitState {
- using ProgramCounterType = u64;
-
- A64JitState() { ResetRSB(); }
-
- std::array<u64, 31> reg{};
- u64 sp = 0;
- u64 pc = 0;
-
- u32 cpsr_nzcv = 0;
-
- u32 GetPstate() const {
- return NZCV::FromX64(cpsr_nzcv);
- }
- void SetPstate(u32 new_pstate) {
- cpsr_nzcv = NZCV::ToX64(new_pstate);
- }
-
- alignas(16) std::array<u64, 64> vec{}; // Extension registers.
-
- // For internal use (See: BlockOfCode::RunCode)
- u32 guest_MXCSR = 0x00001f80;
- u32 asimd_MXCSR = 0x00009fc0;
- volatile u32 halt_reason = 0;
-
- // Exclusive state
- static constexpr u64 RESERVATION_GRANULE_MASK = 0xFFFF'FFFF'FFFF'FFF0ull;
- u8 exclusive_state = 0;
-
- static constexpr size_t RSBSize = 8; // MUST be a power of 2.
- static constexpr size_t RSBPtrMask = RSBSize - 1;
- u32 rsb_ptr = 0;
- std::array<u64, RSBSize> rsb_location_descriptors;
- std::array<u64, RSBSize> rsb_codeptrs;
- void ResetRSB() {
- rsb_location_descriptors.fill(0xFFFFFFFFFFFFFFFFull);
- rsb_codeptrs.fill(0);
- }
-
- u32 fpsr_exc = 0;
- u32 fpsr_qc = 0;
- u32 fpcr = 0;
- u32 GetFpcr() const;
- u32 GetFpsr() const;
- void SetFpcr(u32 value);
- void SetFpsr(u32 value);
-
- u64 GetUniqueHash() const noexcept {
- const u64 fpcr_u64 = static_cast<u64>(fpcr & A64::LocationDescriptor::fpcr_mask) << A64::LocationDescriptor::fpcr_shift;
- const u64 pc_u64 = pc & A64::LocationDescriptor::pc_mask;
- return pc_u64 | fpcr_u64;
- }
-};
-
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-
-using CodePtr = const void*;
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/abi.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/abi.h
deleted file mode 100644
index 4bddf51b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/abi.h
+++ /dev/null
@@ -1,132 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/backend/x64/hostloc.h"
-
-namespace Dynarmic::Backend::X64 {
-
-class BlockOfCode;
-
-#ifdef _WIN32
-
-constexpr HostLoc ABI_RETURN = HostLoc::RAX;
-
-constexpr size_t ABI_PARAM_COUNT = 4;
-
-constexpr HostLoc ABI_PARAM1 = HostLoc::RCX;
-constexpr HostLoc ABI_PARAM2 = HostLoc::RDX;
-constexpr HostLoc ABI_PARAM3 = HostLoc::R8;
-constexpr HostLoc ABI_PARAM4 = HostLoc::R9;
-
-constexpr std::array<HostLoc, 13> ABI_ALL_CALLER_SAVE = {
- HostLoc::RAX,
- HostLoc::RCX,
- HostLoc::RDX,
- HostLoc::R8,
- HostLoc::R9,
- HostLoc::R10,
- HostLoc::R11,
- HostLoc::XMM0,
- HostLoc::XMM1,
- HostLoc::XMM2,
- HostLoc::XMM3,
- HostLoc::XMM4,
- HostLoc::XMM5,
-};
-
-constexpr std::array<HostLoc, 18> ABI_ALL_CALLEE_SAVE = {
- HostLoc::RBX,
- HostLoc::RSI,
- HostLoc::RDI,
- HostLoc::RBP,
- HostLoc::R12,
- HostLoc::R13,
- HostLoc::R14,
- HostLoc::R15,
- HostLoc::XMM6,
- HostLoc::XMM7,
- HostLoc::XMM8,
- HostLoc::XMM9,
- HostLoc::XMM10,
- HostLoc::XMM11,
- HostLoc::XMM12,
- HostLoc::XMM13,
- HostLoc::XMM14,
- HostLoc::XMM15,
-};
-
-constexpr size_t ABI_SHADOW_SPACE = 32; // bytes
-
-#else
-
-constexpr HostLoc ABI_RETURN = HostLoc::RAX;
-constexpr HostLoc ABI_RETURN2 = HostLoc::RDX;
-
-constexpr size_t ABI_PARAM_COUNT = 6;
-
-constexpr HostLoc ABI_PARAM1 = HostLoc::RDI;
-constexpr HostLoc ABI_PARAM2 = HostLoc::RSI;
-constexpr HostLoc ABI_PARAM3 = HostLoc::RDX;
-constexpr HostLoc ABI_PARAM4 = HostLoc::RCX;
-constexpr HostLoc ABI_PARAM5 = HostLoc::R8;
-constexpr HostLoc ABI_PARAM6 = HostLoc::R9;
-
-constexpr std::array<HostLoc, 25> ABI_ALL_CALLER_SAVE = {
- HostLoc::RAX,
- HostLoc::RCX,
- HostLoc::RDX,
- HostLoc::RDI,
- HostLoc::RSI,
- HostLoc::R8,
- HostLoc::R9,
- HostLoc::R10,
- HostLoc::R11,
- HostLoc::XMM0,
- HostLoc::XMM1,
- HostLoc::XMM2,
- HostLoc::XMM3,
- HostLoc::XMM4,
- HostLoc::XMM5,
- HostLoc::XMM6,
- HostLoc::XMM7,
- HostLoc::XMM8,
- HostLoc::XMM9,
- HostLoc::XMM10,
- HostLoc::XMM11,
- HostLoc::XMM12,
- HostLoc::XMM13,
- HostLoc::XMM14,
- HostLoc::XMM15,
-};
-
-constexpr std::array<HostLoc, 6> ABI_ALL_CALLEE_SAVE = {
- HostLoc::RBX,
- HostLoc::RBP,
- HostLoc::R12,
- HostLoc::R13,
- HostLoc::R14,
- HostLoc::R15,
-};
-
-constexpr size_t ABI_SHADOW_SPACE = 0; // bytes
-
-#endif
-
-static_assert(ABI_ALL_CALLER_SAVE.size() + ABI_ALL_CALLEE_SAVE.size() == 31, "Invalid total number of registers");
-
-void ABI_PushCalleeSaveRegistersAndAdjustStack(BlockOfCode& code, size_t frame_size = 0);
-void ABI_PopCalleeSaveRegistersAndAdjustStack(BlockOfCode& code, size_t frame_size = 0);
-void ABI_PushCallerSaveRegistersAndAdjustStack(BlockOfCode& code, size_t frame_size = 0);
-void ABI_PopCallerSaveRegistersAndAdjustStack(BlockOfCode& code, size_t frame_size = 0);
-
-void ABI_PushCallerSaveRegistersAndAdjustStackExcept(BlockOfCode& code, HostLoc exception);
-void ABI_PopCallerSaveRegistersAndAdjustStackExcept(BlockOfCode& code, HostLoc exception);
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/block_of_code.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/block_of_code.h
deleted file mode 100644
index 3f7573af..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/block_of_code.h
+++ /dev/null
@@ -1,205 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <functional>
-#include <memory>
-#include <type_traits>
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-#include <xbyak/xbyak.h>
-#include <xbyak/xbyak_util.h>
-
-#include "dynarmic/backend/x64/abi.h"
-#include "dynarmic/backend/x64/callback.h"
-#include "dynarmic/backend/x64/constant_pool.h"
-#include "dynarmic/backend/x64/host_feature.h"
-#include "dynarmic/backend/x64/jitstate_info.h"
-#include "dynarmic/common/cast_util.h"
-#include "dynarmic/interface/halt_reason.h"
-#include "dynarmic/ir/cond.h"
-
-namespace Dynarmic::Backend::X64 {
-
-using CodePtr = const void*;
-
-struct RunCodeCallbacks {
- std::unique_ptr<Callback> LookupBlock;
- std::unique_ptr<Callback> AddTicks;
- std::unique_ptr<Callback> GetTicksRemaining;
- bool enable_cycle_counting;
-};
-
-class BlockOfCode final : public Xbyak::CodeGenerator {
-public:
- BlockOfCode(RunCodeCallbacks cb, JitStateInfo jsi, size_t total_code_size, std::function<void(BlockOfCode&)> rcp);
- BlockOfCode(const BlockOfCode&) = delete;
-
- /// Call when external emitters have finished emitting their preludes.
- void PreludeComplete();
-
- /// Change permissions to RW. This is required to support systems with W^X enforced.
- void EnableWriting();
- /// Change permissions to RX. This is required to support systems with W^X enforced.
- void DisableWriting();
-
- /// Clears this block of code and resets code pointer to beginning.
- void ClearCache();
- /// Calculates how much space is remaining to use.
- size_t SpaceRemaining() const;
- /// Ensure at least codesize bytes of code cache memory are committed at the current code_ptr.
- void EnsureMemoryCommitted(size_t codesize);
-
- /// Runs emulated code from code_ptr.
- HaltReason RunCode(void* jit_state, CodePtr code_ptr) const;
- /// Runs emulated code from code_ptr for a single cycle.
- HaltReason StepCode(void* jit_state, CodePtr code_ptr) const;
- /// Code emitter: Returns to dispatcher
- void ReturnFromRunCode(bool mxcsr_already_exited = false);
- /// Code emitter: Returns to dispatcher, forces return to host
- void ForceReturnFromRunCode(bool mxcsr_already_exited = false);
- /// Code emitter: Makes guest MXCSR the current MXCSR
- void SwitchMxcsrOnEntry();
- /// Code emitter: Makes saved host MXCSR the current MXCSR
- void SwitchMxcsrOnExit();
- /// Code emitter: Enter standard ASIMD MXCSR region
- void EnterStandardASIMD();
- /// Code emitter: Leave standard ASIMD MXCSR region
- void LeaveStandardASIMD();
- /// Code emitter: Updates cycles remaining my calling cb.AddTicks and cb.GetTicksRemaining
- /// @note this clobbers ABI caller-save registers
- void UpdateTicks();
- /// Code emitter: Performs a block lookup based on current state
- /// @note this clobbers ABI caller-save registers
- void LookupBlock();
-
- /// Code emitter: Load required flags for conditional cond from rax into host rflags
- void LoadRequiredFlagsForCondFromRax(IR::Cond cond);
-
- /// Code emitter: Calls the function
- template<typename FunctionPointer>
- void CallFunction(FunctionPointer fn) {
- static_assert(std::is_pointer_v<FunctionPointer> && std::is_function_v<std::remove_pointer_t<FunctionPointer>>,
- "Supplied type must be a pointer to a function");
-
- const u64 address = reinterpret_cast<u64>(fn);
- const u64 distance = address - (getCurr<u64>() + 5);
-
- if (distance >= 0x0000000080000000ULL && distance < 0xFFFFFFFF80000000ULL) {
- // Far call
- mov(rax, address);
- call(rax);
- } else {
- call(fn);
- }
- }
-
- /// Code emitter: Calls the lambda. Lambda must not have any captures.
- template<typename Lambda>
- void CallLambda(Lambda l) {
- CallFunction(Common::FptrCast(l));
- }
-
- void ZeroExtendFrom(size_t bitsize, Xbyak::Reg64 reg) {
- switch (bitsize) {
- case 8:
- movzx(reg.cvt32(), reg.cvt8());
- return;
- case 16:
- movzx(reg.cvt32(), reg.cvt16());
- return;
- case 32:
- mov(reg.cvt32(), reg.cvt32());
- return;
- case 64:
- return;
- default:
- UNREACHABLE();
- }
- }
-
- Xbyak::Address Const(const Xbyak::AddressFrame& frame, u64 lower, u64 upper = 0);
-
- template<size_t esize>
- Xbyak::Address BConst(const Xbyak::AddressFrame& frame, u64 value) {
- return Const(frame, mcl::bit::replicate_element<u64>(esize, value),
- mcl::bit::replicate_element<u64>(esize, value));
- }
-
- CodePtr GetCodeBegin() const;
- size_t GetTotalCodeSize() const;
-
- const void* GetReturnFromRunCodeAddress() const {
- return return_from_run_code[0];
- }
-
- const void* GetForceReturnFromRunCodeAddress() const {
- return return_from_run_code[FORCE_RETURN];
- }
-
- void int3() { db(0xCC); }
-
- /// Allocate memory of `size` bytes from the same block of memory the code is in.
- /// This is useful for objects that need to be placed close to or within code.
- /// The lifetime of this memory is the same as the code around it.
- void* AllocateFromCodeSpace(size_t size);
-
- void SetCodePtr(CodePtr code_ptr);
- void EnsurePatchLocationSize(CodePtr begin, size_t size);
-
- // ABI registers
-#ifdef _WIN32
- static const Xbyak::Reg64 ABI_RETURN;
- static const Xbyak::Reg64 ABI_PARAM1;
- static const Xbyak::Reg64 ABI_PARAM2;
- static const Xbyak::Reg64 ABI_PARAM3;
- static const Xbyak::Reg64 ABI_PARAM4;
- static const std::array<Xbyak::Reg64, ABI_PARAM_COUNT> ABI_PARAMS;
-#else
- static const Xbyak::Reg64 ABI_RETURN;
- static const Xbyak::Reg64 ABI_RETURN2;
- static const Xbyak::Reg64 ABI_PARAM1;
- static const Xbyak::Reg64 ABI_PARAM2;
- static const Xbyak::Reg64 ABI_PARAM3;
- static const Xbyak::Reg64 ABI_PARAM4;
- static const Xbyak::Reg64 ABI_PARAM5;
- static const Xbyak::Reg64 ABI_PARAM6;
- static const std::array<Xbyak::Reg64, ABI_PARAM_COUNT> ABI_PARAMS;
-#endif
-
- JitStateInfo GetJitStateInfo() const { return jsi; }
-
- bool HasHostFeature(HostFeature feature) const {
- return (host_features & feature) == feature;
- }
-
-private:
- RunCodeCallbacks cb;
- JitStateInfo jsi;
-
- bool prelude_complete = false;
- CodePtr code_begin = nullptr;
-
-#ifdef _WIN32
- size_t committed_size = 0;
-#endif
-
- ConstantPool constant_pool;
-
- using RunCodeFuncType = HaltReason (*)(void*, CodePtr);
- RunCodeFuncType run_code = nullptr;
- RunCodeFuncType step_code = nullptr;
- static constexpr size_t MXCSR_ALREADY_EXITED = 1 << 0;
- static constexpr size_t FORCE_RETURN = 1 << 1;
- std::array<const void*, 4> return_from_run_code;
- void GenRunCode(std::function<void(BlockOfCode&)> rcp);
-
- const HostFeature host_features;
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/callback.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/callback.h
deleted file mode 100644
index 716555da..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/callback.h
+++ /dev/null
@@ -1,63 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <functional>
-#include <vector>
-
-#include <mcl/stdint.hpp>
-#include <xbyak/xbyak.h>
-
-namespace Dynarmic::Backend::X64 {
-
-using RegList = std::vector<Xbyak::Reg64>;
-
-class BlockOfCode;
-
-class Callback {
-public:
- virtual ~Callback();
-
- void EmitCall(BlockOfCode& code) const {
- EmitCall(code, [](RegList) {});
- }
-
- virtual void EmitCall(BlockOfCode& code, std::function<void(RegList)> fn) const = 0;
- virtual void EmitCallWithReturnPointer(BlockOfCode& code, std::function<void(Xbyak::Reg64, RegList)> fn) const = 0;
-};
-
-class SimpleCallback final : public Callback {
-public:
- template<typename Function>
- SimpleCallback(Function fn)
- : fn(reinterpret_cast<void (*)()>(fn)) {}
-
- using Callback::EmitCall;
-
- void EmitCall(BlockOfCode& code, std::function<void(RegList)> fn) const override;
- void EmitCallWithReturnPointer(BlockOfCode& code, std::function<void(Xbyak::Reg64, RegList)> fn) const override;
-
-private:
- void (*fn)();
-};
-
-class ArgCallback final : public Callback {
-public:
- template<typename Function>
- ArgCallback(Function fn, u64 arg)
- : fn(reinterpret_cast<void (*)()>(fn)), arg(arg) {}
-
- using Callback::EmitCall;
-
- void EmitCall(BlockOfCode& code, std::function<void(RegList)> fn) const override;
- void EmitCallWithReturnPointer(BlockOfCode& code, std::function<void(Xbyak::Reg64, RegList)> fn) const override;
-
-private:
- void (*fn)();
- u64 arg;
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/constant_pool.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/constant_pool.h
deleted file mode 100644
index 2ab64215..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/constant_pool.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <bit>
-#include <cstddef>
-#include <span>
-#include <utility>
-
-#include <mcl/stdint.hpp>
-#include <tsl/robin_map.h>
-#include <xbyak/xbyak.h>
-
-namespace Dynarmic::Backend::X64 {
-
-class BlockOfCode;
-
-/// ConstantPool allocates a block of memory from BlockOfCode.
-/// It places constants into this block of memory, returning the address
-/// of the memory location where the constant is placed. If the constant
-/// already exists, its memory location is reused.
-class ConstantPool final {
-public:
- ConstantPool(BlockOfCode& code, size_t size);
-
- Xbyak::Address GetConstant(const Xbyak::AddressFrame& frame, u64 lower, u64 upper = 0);
-
-private:
- static constexpr size_t align_size = 16; // bytes
-
- using ConstantT = std::pair<u64, u64>;
- static_assert(sizeof(ConstantT) == align_size);
-
- struct ConstantHash {
- std::size_t operator()(const ConstantT& constant) const noexcept {
- return constant.first ^ std::rotl<u64>(constant.second, 1);
- }
- };
-
- tsl::robin_map<ConstantT, void*, ConstantHash> constant_info;
-
- BlockOfCode& code;
- std::span<ConstantT> pool;
- std::size_t insertion_point;
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/constants.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/constants.h
deleted file mode 100644
index f8173241..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/constants.h
+++ /dev/null
@@ -1,177 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/common/fp/rounding_mode.h"
-
-namespace Dynarmic::Backend::X64 {
-
-// Redefinition of _MM_CMP_* constants for use with the 'vcmp' instruction
-namespace Cmp {
-constexpr u8 Equal_OQ = 0; // Equal (Quiet, Ordered).
-constexpr u8 LessThan_OS = 1; // Less (Signaling, Ordered).
-constexpr u8 LessEqual_OS = 2; // Less/Equal (Signaling, Ordered).
-constexpr u8 Unordered_Q = 3; // Unordered (Quiet).
-constexpr u8 NotEqual_UQ = 4; // Not Equal (Quiet, Unordered).
-constexpr u8 NotLessThan_US = 5; // Not Less (Signaling, Unordered).
-constexpr u8 NotLessEqual_US = 6; // Not Less/Equal (Signaling, Unordered).
-constexpr u8 Ordered_Q = 7; // Ordered (Quiet).
-constexpr u8 Equal_UQ = 8; // Equal (Quiet, Unordered).
-constexpr u8 NotGreaterEqual_US = 9; // Not Greater/Equal (Signaling, Unordered).
-constexpr u8 NotGreaterThan_US = 10; // Not Greater (Signaling, Unordered).
-constexpr u8 False_OQ = 11; // False (Quiet, Ordered).
-constexpr u8 NotEqual_OQ = 12; // Not Equal (Quiet, Ordered).
-constexpr u8 GreaterEqual_OS = 13; // Greater/Equal (Signaling, Ordered).
-constexpr u8 GreaterThan_OS = 14; // Greater (Signaling, Ordered).
-constexpr u8 True_UQ = 15; // True (Quiet, Unordered).
-constexpr u8 Equal_OS = 16; // Equal (Signaling, Ordered).
-constexpr u8 LessThan_OQ = 17; // Less (Quiet, Ordered).
-constexpr u8 LessEqual_OQ = 18; // Less/Equal (Quiet, Ordered).
-constexpr u8 Unordered_S = 19; // Unordered (Signaling).
-constexpr u8 NotEqual_US = 20; // Not Equal (Signaling, Unordered).
-constexpr u8 NotLessThan_UQ = 21; // Not Less (Quiet, Unordered).
-constexpr u8 NotLessEqual_UQ = 22; // Not Less/Equal (Quiet, Unordered).
-constexpr u8 Ordered_S = 23; // Ordered (Signaling).
-constexpr u8 Equal_US = 24; // Equal (Signaling, Unordered).
-constexpr u8 NotGreaterEqual_UQ = 25; // Not Greater/Equal (Quiet, Unordered).
-constexpr u8 NotGreaterThan_UQ = 26; // Not Greater (Quiet, Unordered).
-constexpr u8 False_OS = 27; // False (Signaling, Ordered).
-constexpr u8 NotEqual_OS = 28; // Not Equal (Signaling, Ordered).
-constexpr u8 GreaterEqual_OQ = 29; // Greater/Equal (Quiet, Ordered).
-constexpr u8 GreaterThan_OQ = 30; // Greater (Quiet, Ordered).
-constexpr u8 True_US = 31; // True (Signaling, Unordered).
-} // namespace Cmp
-
-// Redefinition of _MM_CMPINT_* constants for use with the 'vpcmp' instruction
-namespace CmpInt {
-constexpr u8 Equal = 0x0;
-constexpr u8 LessThan = 0x1;
-constexpr u8 LessEqual = 0x2;
-constexpr u8 False = 0x3;
-constexpr u8 NotEqual = 0x4;
-constexpr u8 NotLessThan = 0x5;
-constexpr u8 GreaterEqual = 0x5;
-constexpr u8 NotLessEqual = 0x6;
-constexpr u8 GreaterThan = 0x6;
-constexpr u8 True = 0x7;
-} // namespace CmpInt
-
-// Used to generate ternary logic truth-tables for vpternlog
-// Use these to directly refer to terms and perform binary operations upon them
-// and the resulting value will be the ternary lookup table
-// ex:
-// (Tern::a | ~Tern::b) & Tern::c
-// = 0b10100010
-// = 0xa2
-// vpternlog a, b, c, 0xa2
-//
-// ~(Tern::a ^ Tern::b) & Tern::c
-// = 0b10000010
-// = 0x82
-// vpternlog a, b, c, 0x82
-namespace Tern {
-constexpr u8 a = 0b11110000;
-constexpr u8 b = 0b11001100;
-constexpr u8 c = 0b10101010;
-} // namespace Tern
-
-// For use as a bitmask with vfpclass instruction
-namespace FpClass {
-constexpr u8 QNaN = 0b00000001;
-constexpr u8 ZeroPos = 0b00000010;
-constexpr u8 ZeroNeg = 0b00000100;
-constexpr u8 InfPos = 0b00001000;
-constexpr u8 InfNeg = 0b00010000;
-constexpr u8 Denormal = 0b00100000;
-constexpr u8 Negative = 0b01000000; // Negative finite value
-constexpr u8 SNaN = 0b10000000;
-} // namespace FpClass
-
-// Opcodes for use with vfixupimm
-enum class FpFixup : u8 {
- Dest = 0b0000, // Preserve destination
- Norm_Src = 0b0001, // Source operand (Denormal as positive-zero)
- QNaN_Src = 0b0010, // QNaN with sign of source (Denormal as positive-zero)
- IndefNaN = 0b0011, // Indefinite QNaN (Negative QNaN with no payload on x86)
- NegInf = 0b0100, // -Infinity
- PosInf = 0b0101, // +Infinity
- Inf_Src = 0b0110, // Infinity with sign of source (Denormal as positive-zero)
- NegZero = 0b0111, // -0.0
- PosZero = 0b1000, // +0.0
- NegOne = 0b1001, // -1.0
- PosOne = 0b1010, // +1.0
- Half = 0b1011, // 0.5
- Ninety = 0b1100, // 90.0
- HalfPi = 0b1101, // PI/2
- PosMax = 0b1110, // +{FLT_MAX,DBL_MAX}
- NegMax = 0b1111, // -{FLT_MAX,DBL_MAX}
-};
-
-// Generates 32-bit LUT for vfixupimm instruction
-constexpr u32 FixupLUT(FpFixup src_qnan = FpFixup::Dest,
- FpFixup src_snan = FpFixup::Dest,
- FpFixup src_zero = FpFixup::Dest,
- FpFixup src_posone = FpFixup::Dest,
- FpFixup src_neginf = FpFixup::Dest,
- FpFixup src_posinf = FpFixup::Dest,
- FpFixup src_neg = FpFixup::Dest,
- FpFixup src_pos = FpFixup::Dest) {
- u32 fixup_lut = 0;
- fixup_lut = mcl::bit::set_bits<0, 3, u32>(fixup_lut, static_cast<u32>(src_qnan));
- fixup_lut = mcl::bit::set_bits<4, 7, u32>(fixup_lut, static_cast<u32>(src_snan));
- fixup_lut = mcl::bit::set_bits<8, 11, u32>(fixup_lut, static_cast<u32>(src_zero));
- fixup_lut = mcl::bit::set_bits<12, 15, u32>(fixup_lut, static_cast<u32>(src_posone));
- fixup_lut = mcl::bit::set_bits<16, 19, u32>(fixup_lut, static_cast<u32>(src_neginf));
- fixup_lut = mcl::bit::set_bits<20, 23, u32>(fixup_lut, static_cast<u32>(src_posinf));
- fixup_lut = mcl::bit::set_bits<24, 27, u32>(fixup_lut, static_cast<u32>(src_neg));
- fixup_lut = mcl::bit::set_bits<28, 31, u32>(fixup_lut, static_cast<u32>(src_pos));
- return fixup_lut;
-}
-
-// Opcodes for use with vrange* instructions
-enum class FpRangeSelect : u8 {
- Min = 0b00,
- Max = 0b01,
- AbsMin = 0b10, // Smaller absolute value
- AbsMax = 0b11, // Larger absolute value
-};
-
-enum class FpRangeSign : u8 {
- A = 0b00, // Copy sign of operand A
- Preserve = 0b01, // Leave sign as is
- Positive = 0b10, // Set Positive
- Negative = 0b11, // Set Negative
-};
-
-// Generates 8-bit immediate LUT for vrange instruction
-constexpr u8 FpRangeLUT(FpRangeSelect range_select, FpRangeSign range_sign) {
- u8 range_lut = 0;
- range_lut = mcl::bit::set_bits<0, 1, u8>(range_lut, static_cast<u8>(range_select));
- range_lut = mcl::bit::set_bits<2, 3, u8>(range_lut, static_cast<u8>(range_sign));
- return range_lut;
-}
-
-constexpr std::optional<int> ConvertRoundingModeToX64Immediate(FP::RoundingMode rounding_mode) {
- switch (rounding_mode) {
- case FP::RoundingMode::ToNearest_TieEven:
- return 0b00;
- case FP::RoundingMode::TowardsPlusInfinity:
- return 0b10;
- case FP::RoundingMode::TowardsMinusInfinity:
- return 0b01;
- case FP::RoundingMode::TowardsZero:
- return 0b11;
- default:
- return std::nullopt;
- }
-}
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/devirtualize.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/devirtualize.h
deleted file mode 100644
index 778536a3..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/devirtualize.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstring>
-#include <utility>
-
-#include <mcl/bit_cast.hpp>
-#include <mcl/stdint.hpp>
-#include <mcl/type_traits/function_info.hpp>
-
-#include "dynarmic/backend/x64/callback.h"
-
-namespace Dynarmic {
-namespace Backend::X64 {
-
-namespace impl {
-
-template<typename FunctionType, FunctionType mfp>
-struct ThunkBuilder;
-
-template<typename C, typename R, typename... Args, R (C::*mfp)(Args...)>
-struct ThunkBuilder<R (C::*)(Args...), mfp> {
- static R Thunk(C* this_, Args... args) {
- return (this_->*mfp)(std::forward<Args>(args)...);
- }
-};
-
-} // namespace impl
-
-template<auto mfp>
-ArgCallback DevirtualizeGeneric(mcl::class_type<decltype(mfp)>* this_) {
- return ArgCallback{&impl::ThunkBuilder<decltype(mfp), mfp>::Thunk, reinterpret_cast<u64>(this_)};
-}
-
-template<auto mfp>
-ArgCallback DevirtualizeWindows(mcl::class_type<decltype(mfp)>* this_) {
- static_assert(sizeof(mfp) == 8);
- return ArgCallback{mcl::bit_cast<u64>(mfp), reinterpret_cast<u64>(this_)};
-}
-
-template<auto mfp>
-ArgCallback DevirtualizeItanium(mcl::class_type<decltype(mfp)>* this_) {
- struct MemberFunctionPointer {
- /// For a non-virtual function, this is a simple function pointer.
- /// For a virtual function, it is (1 + virtual table offset in bytes).
- u64 ptr;
- /// The required adjustment to `this`, prior to the call.
- u64 adj;
- } mfp_struct = mcl::bit_cast<MemberFunctionPointer>(mfp);
-
- static_assert(sizeof(MemberFunctionPointer) == 16);
- static_assert(sizeof(MemberFunctionPointer) == sizeof(mfp));
-
- u64 fn_ptr = mfp_struct.ptr;
- u64 this_ptr = reinterpret_cast<u64>(this_) + mfp_struct.adj;
- if (mfp_struct.ptr & 1) {
- u64 vtable = mcl::bit_cast_pointee<u64>(this_ptr);
- fn_ptr = mcl::bit_cast_pointee<u64>(vtable + fn_ptr - 1);
- }
- return ArgCallback{fn_ptr, this_ptr};
-}
-
-template<auto mfp>
-ArgCallback Devirtualize(mcl::class_type<decltype(mfp)>* this_) {
-#if defined(__APPLE__) || defined(linux) || defined(__linux) || defined(__linux__)
- return DevirtualizeItanium<mfp>(this_);
-#elif defined(__MINGW64__)
- return DevirtualizeItanium<mfp>(this_);
-#elif defined(_WIN32)
- return DevirtualizeWindows<mfp>(this_);
-#else
- return DevirtualizeGeneric<mfp>(this_);
-#endif
-}
-
-} // namespace Backend::X64
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/emit_x64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/emit_x64.h
deleted file mode 100644
index 5a46f04e..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/emit_x64.h
+++ /dev/null
@@ -1,145 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <functional>
-#include <memory>
-#include <optional>
-#include <string>
-#include <type_traits>
-#include <vector>
-
-#include <mcl/bitsizeof.hpp>
-#include <tsl/robin_map.h>
-#include <tsl/robin_set.h>
-#include <xbyak/xbyak.h>
-#include <xbyak/xbyak_util.h>
-
-#include "dynarmic/backend/exception_handler.h"
-#include "dynarmic/backend/x64/reg_alloc.h"
-#include "dynarmic/common/fp/fpcr.h"
-#include "dynarmic/ir/location_descriptor.h"
-#include "dynarmic/ir/terminal.h"
-
-namespace Dynarmic::IR {
-class Block;
-class Inst;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic {
-enum class OptimizationFlag : u32;
-} // namespace Dynarmic
-
-namespace Dynarmic::Backend::X64 {
-
-class BlockOfCode;
-
-using A64FullVectorWidth = std::integral_constant<size_t, 128>;
-
-// Array alias that always sizes itself according to the given type T
-// relative to the size of a vector register. e.g. T = u32 would result
-// in a std::array<u32, 4>.
-template<typename T>
-using VectorArray = std::array<T, A64FullVectorWidth::value / mcl::bitsizeof<T>>;
-
-template<typename T>
-using HalfVectorArray = std::array<T, A64FullVectorWidth::value / mcl::bitsizeof<T> / 2>;
-
-struct EmitContext {
- EmitContext(RegAlloc& reg_alloc, IR::Block& block);
- virtual ~EmitContext();
-
- void EraseInstruction(IR::Inst* inst);
-
- virtual FP::FPCR FPCR(bool fpcr_controlled = true) const = 0;
-
- virtual bool HasOptimization(OptimizationFlag flag) const = 0;
-
- RegAlloc& reg_alloc;
- IR::Block& block;
-
- std::vector<std::function<void()>> deferred_emits;
-};
-
-using SharedLabel = std::shared_ptr<Xbyak::Label>;
-
-inline SharedLabel GenSharedLabel() {
- return std::make_shared<Xbyak::Label>();
-}
-
-class EmitX64 {
-public:
- struct BlockDescriptor {
- CodePtr entrypoint; // Entrypoint of emitted code
- size_t size; // Length in bytes of emitted code
- };
-
- explicit EmitX64(BlockOfCode& code);
- virtual ~EmitX64();
-
- /// Looks up an emitted host block in the cache.
- std::optional<BlockDescriptor> GetBasicBlock(IR::LocationDescriptor descriptor) const;
-
- /// Empties the entire cache.
- virtual void ClearCache();
-
- /// Invalidates a selection of basic blocks.
- void InvalidateBasicBlocks(const tsl::robin_set<IR::LocationDescriptor>& locations);
-
-protected:
- // Microinstruction emitters
-#define OPCODE(name, type, ...) void Emit##name(EmitContext& ctx, IR::Inst* inst);
-#define A32OPC(...)
-#define A64OPC(...)
-#include "dynarmic/ir/opcodes.inc"
-#undef OPCODE
-#undef A32OPC
-#undef A64OPC
-
- // Helpers
- virtual std::string LocationDescriptorToFriendlyName(const IR::LocationDescriptor&) const = 0;
- void EmitAddCycles(size_t cycles);
- Xbyak::Label EmitCond(IR::Cond cond);
- BlockDescriptor RegisterBlock(const IR::LocationDescriptor& location_descriptor, CodePtr entrypoint, size_t size);
- void PushRSBHelper(Xbyak::Reg64 loc_desc_reg, Xbyak::Reg64 index_reg, IR::LocationDescriptor target);
-
- void EmitVerboseDebuggingOutput(RegAlloc& reg_alloc);
-
- // Terminal instruction emitters
- void EmitTerminal(IR::Terminal terminal, IR::LocationDescriptor initial_location, bool is_single_step);
- virtual void EmitTerminalImpl(IR::Term::Interpret terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::ReturnToDispatch terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::LinkBlock terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::LinkBlockFast terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::PopRSBHint terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::FastDispatchHint terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::If terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::CheckBit terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::CheckHalt terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
-
- // Patching
- struct PatchInformation {
- std::vector<CodePtr> jg;
- std::vector<CodePtr> jz;
- std::vector<CodePtr> jmp;
- std::vector<CodePtr> mov_rcx;
- };
- void Patch(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr);
- virtual void Unpatch(const IR::LocationDescriptor& target_desc);
- virtual void EmitPatchJg(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) = 0;
- virtual void EmitPatchJz(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) = 0;
- virtual void EmitPatchJmp(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) = 0;
- virtual void EmitPatchMovRcx(CodePtr target_code_ptr = nullptr) = 0;
-
- // State
- BlockOfCode& code;
- ExceptionHandler exception_handler;
- tsl::robin_map<IR::LocationDescriptor, BlockDescriptor> block_descriptors;
- tsl::robin_map<IR::LocationDescriptor, PatchInformation> patch_information;
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/emit_x64_memory.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/emit_x64_memory.h
deleted file mode 100644
index c99980d6..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/emit_x64_memory.h
+++ /dev/null
@@ -1,388 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#include <mcl/bit_cast.hpp>
-#include <xbyak/xbyak.h>
-
-#include "dynarmic/backend/x64/a32_emit_x64.h"
-#include "dynarmic/backend/x64/a64_emit_x64.h"
-#include "dynarmic/backend/x64/exclusive_monitor_friend.h"
-#include "dynarmic/common/spin_lock_x64.h"
-#include "dynarmic/interface/exclusive_monitor.h"
-#include "dynarmic/ir/acc_type.h"
-
-namespace Dynarmic::Backend::X64 {
-
-namespace {
-
-using namespace Xbyak::util;
-
-constexpr size_t page_bits = 12;
-constexpr size_t page_size = 1 << page_bits;
-constexpr size_t page_mask = (1 << page_bits) - 1;
-
-template<typename EmitContext>
-void EmitDetectMisalignedVAddr(BlockOfCode& code, EmitContext& ctx, size_t bitsize, Xbyak::Label& abort, Xbyak::Reg64 vaddr, Xbyak::Reg64 tmp) {
- if (bitsize == 8 || (ctx.conf.detect_misaligned_access_via_page_table & bitsize) == 0) {
- return;
- }
-
- const u32 align_mask = [bitsize]() -> u32 {
- switch (bitsize) {
- case 16:
- return 0b1;
- case 32:
- return 0b11;
- case 64:
- return 0b111;
- case 128:
- return 0b1111;
- default:
- UNREACHABLE();
- }
- }();
-
- code.test(vaddr, align_mask);
-
- if (!ctx.conf.only_detect_misalignment_via_page_table_on_page_boundary) {
- code.jnz(abort, code.T_NEAR);
- return;
- }
-
- const u32 page_align_mask = static_cast<u32>(page_size - 1) & ~align_mask;
-
- SharedLabel detect_boundary = GenSharedLabel(), resume = GenSharedLabel();
-
- code.jnz(*detect_boundary, code.T_NEAR);
- code.L(*resume);
-
- ctx.deferred_emits.emplace_back([=, &code] {
- code.L(*detect_boundary);
- code.mov(tmp, vaddr);
- code.and_(tmp, page_align_mask);
- code.cmp(tmp, page_align_mask);
- code.jne(*resume, code.T_NEAR);
- // NOTE: We expect to fallthrough into abort code here.
- });
-}
-
-template<typename EmitContext>
-Xbyak::RegExp EmitVAddrLookup(BlockOfCode& code, EmitContext& ctx, size_t bitsize, Xbyak::Label& abort, Xbyak::Reg64 vaddr);
-
-template<>
-[[maybe_unused]] Xbyak::RegExp EmitVAddrLookup<A32EmitContext>(BlockOfCode& code, A32EmitContext& ctx, size_t bitsize, Xbyak::Label& abort, Xbyak::Reg64 vaddr) {
- const Xbyak::Reg64 page = ctx.reg_alloc.ScratchGpr();
- const Xbyak::Reg32 tmp = ctx.conf.absolute_offset_page_table ? page.cvt32() : ctx.reg_alloc.ScratchGpr().cvt32();
-
- EmitDetectMisalignedVAddr(code, ctx, bitsize, abort, vaddr, tmp.cvt64());
-
- // TODO: This code assumes vaddr has been zext from 32-bits to 64-bits.
-
- code.mov(tmp, vaddr.cvt32());
- code.shr(tmp, static_cast<int>(page_bits));
-
- code.mov(page, qword[r14 + tmp.cvt64() * sizeof(void*)]);
- if (ctx.conf.page_table_pointer_mask_bits == 0) {
- code.test(page, page);
- } else {
- code.and_(page, ~u32(0) << ctx.conf.page_table_pointer_mask_bits);
- }
- code.jz(abort, code.T_NEAR);
- if (ctx.conf.absolute_offset_page_table) {
- return page + vaddr;
- }
- code.mov(tmp, vaddr.cvt32());
- code.and_(tmp, static_cast<u32>(page_mask));
- return page + tmp.cvt64();
-}
-
-template<>
-[[maybe_unused]] Xbyak::RegExp EmitVAddrLookup<A64EmitContext>(BlockOfCode& code, A64EmitContext& ctx, size_t bitsize, Xbyak::Label& abort, Xbyak::Reg64 vaddr) {
- const size_t valid_page_index_bits = ctx.conf.page_table_address_space_bits - page_bits;
- const size_t unused_top_bits = 64 - ctx.conf.page_table_address_space_bits;
-
- const Xbyak::Reg64 page = ctx.reg_alloc.ScratchGpr();
- const Xbyak::Reg64 tmp = ctx.conf.absolute_offset_page_table ? page : ctx.reg_alloc.ScratchGpr();
-
- EmitDetectMisalignedVAddr(code, ctx, bitsize, abort, vaddr, tmp);
-
- if (unused_top_bits == 0) {
- code.mov(tmp, vaddr);
- code.shr(tmp, int(page_bits));
- } else if (ctx.conf.silently_mirror_page_table) {
- if (valid_page_index_bits >= 32) {
- if (code.HasHostFeature(HostFeature::BMI2)) {
- const Xbyak::Reg64 bit_count = ctx.reg_alloc.ScratchGpr();
- code.mov(bit_count, unused_top_bits);
- code.bzhi(tmp, vaddr, bit_count);
- code.shr(tmp, int(page_bits));
- ctx.reg_alloc.Release(bit_count);
- } else {
- code.mov(tmp, vaddr);
- code.shl(tmp, int(unused_top_bits));
- code.shr(tmp, int(unused_top_bits + page_bits));
- }
- } else {
- code.mov(tmp, vaddr);
- code.shr(tmp, int(page_bits));
- code.and_(tmp, u32((1 << valid_page_index_bits) - 1));
- }
- } else {
- ASSERT(valid_page_index_bits < 32);
- code.mov(tmp, vaddr);
- code.shr(tmp, int(page_bits));
- code.test(tmp, u32(-(1 << valid_page_index_bits)));
- code.jnz(abort, code.T_NEAR);
- }
- code.mov(page, qword[r14 + tmp * sizeof(void*)]);
- if (ctx.conf.page_table_pointer_mask_bits == 0) {
- code.test(page, page);
- } else {
- code.and_(page, ~u32(0) << ctx.conf.page_table_pointer_mask_bits);
- }
- code.jz(abort, code.T_NEAR);
- if (ctx.conf.absolute_offset_page_table) {
- return page + vaddr;
- }
- code.mov(tmp, vaddr);
- code.and_(tmp, static_cast<u32>(page_mask));
- return page + tmp;
-}
-
-template<typename EmitContext>
-Xbyak::RegExp EmitFastmemVAddr(BlockOfCode& code, EmitContext& ctx, Xbyak::Label& abort, Xbyak::Reg64 vaddr, bool& require_abort_handling, std::optional<Xbyak::Reg64> tmp = std::nullopt);
-
-template<>
-[[maybe_unused]] Xbyak::RegExp EmitFastmemVAddr<A32EmitContext>(BlockOfCode&, A32EmitContext&, Xbyak::Label&, Xbyak::Reg64 vaddr, bool&, std::optional<Xbyak::Reg64>) {
- return r13 + vaddr;
-}
-
-template<>
-[[maybe_unused]] Xbyak::RegExp EmitFastmemVAddr<A64EmitContext>(BlockOfCode& code, A64EmitContext& ctx, Xbyak::Label& abort, Xbyak::Reg64 vaddr, bool& require_abort_handling, std::optional<Xbyak::Reg64> tmp) {
- const size_t unused_top_bits = 64 - ctx.conf.fastmem_address_space_bits;
-
- if (unused_top_bits == 0) {
- return r13 + vaddr;
- } else if (ctx.conf.silently_mirror_fastmem) {
- if (!tmp) {
- tmp = ctx.reg_alloc.ScratchGpr();
- }
- if (unused_top_bits < 32) {
- code.mov(*tmp, vaddr);
- code.shl(*tmp, int(unused_top_bits));
- code.shr(*tmp, int(unused_top_bits));
- } else if (unused_top_bits == 32) {
- code.mov(tmp->cvt32(), vaddr.cvt32());
- } else {
- code.mov(tmp->cvt32(), vaddr.cvt32());
- code.and_(*tmp, u32((1 << ctx.conf.fastmem_address_space_bits) - 1));
- }
- return r13 + *tmp;
- } else {
- if (ctx.conf.fastmem_address_space_bits < 32) {
- code.test(vaddr, u32(-(1 << ctx.conf.fastmem_address_space_bits)));
- code.jnz(abort, code.T_NEAR);
- require_abort_handling = true;
- } else {
- // TODO: Consider having TEST as above but coalesce 64-bit constant in register allocator
- if (!tmp) {
- tmp = ctx.reg_alloc.ScratchGpr();
- }
- code.mov(*tmp, vaddr);
- code.shr(*tmp, int(ctx.conf.fastmem_address_space_bits));
- code.jnz(abort, code.T_NEAR);
- require_abort_handling = true;
- }
- return r13 + vaddr;
- }
-}
-
-template<std::size_t bitsize>
-const void* EmitReadMemoryMov(BlockOfCode& code, int value_idx, const Xbyak::RegExp& addr, bool ordered) {
- if (ordered) {
- if constexpr (bitsize != 128) {
- code.xor_(Xbyak::Reg32{value_idx}, Xbyak::Reg32{value_idx});
- } else {
- code.xor_(eax, eax);
- code.xor_(ebx, ebx);
- code.xor_(ecx, ecx);
- code.xor_(edx, edx);
- }
-
- const void* fastmem_location = code.getCurr();
- switch (bitsize) {
- case 8:
- code.lock();
- code.xadd(code.byte[addr], Xbyak::Reg32{value_idx}.cvt8());
- break;
- case 16:
- code.lock();
- code.xadd(word[addr], Xbyak::Reg16{value_idx});
- break;
- case 32:
- code.lock();
- code.xadd(dword[addr], Xbyak::Reg32{value_idx});
- break;
- case 64:
- code.lock();
- code.xadd(qword[addr], Xbyak::Reg64{value_idx});
- break;
- case 128:
- code.lock();
- code.cmpxchg16b(xword[addr]);
- if (code.HasHostFeature(HostFeature::SSE41)) {
- code.movq(Xbyak::Xmm{value_idx}, rax);
- code.pinsrq(Xbyak::Xmm{value_idx}, rdx, 1);
- } else {
- code.movq(Xbyak::Xmm{value_idx}, rax);
- code.movq(xmm0, rdx);
- code.punpcklqdq(Xbyak::Xmm{value_idx}, xmm0);
- }
- break;
- default:
- ASSERT_FALSE("Invalid bitsize");
- }
- return fastmem_location;
- }
-
- const void* fastmem_location = code.getCurr();
- switch (bitsize) {
- case 8:
- code.movzx(Xbyak::Reg32{value_idx}, code.byte[addr]);
- break;
- case 16:
- code.movzx(Xbyak::Reg32{value_idx}, word[addr]);
- break;
- case 32:
- code.mov(Xbyak::Reg32{value_idx}, dword[addr]);
- break;
- case 64:
- code.mov(Xbyak::Reg64{value_idx}, qword[addr]);
- break;
- case 128:
- code.movups(Xbyak::Xmm{value_idx}, xword[addr]);
- break;
- default:
- ASSERT_FALSE("Invalid bitsize");
- }
- return fastmem_location;
-}
-
-template<std::size_t bitsize>
-const void* EmitWriteMemoryMov(BlockOfCode& code, const Xbyak::RegExp& addr, int value_idx, bool ordered) {
- if (ordered) {
- if constexpr (bitsize == 128) {
- code.xor_(eax, eax);
- code.xor_(edx, edx);
- if (code.HasHostFeature(HostFeature::SSE41)) {
- code.movq(rbx, Xbyak::Xmm{value_idx});
- code.pextrq(rcx, Xbyak::Xmm{value_idx}, 1);
- } else {
- code.movaps(xmm0, Xbyak::Xmm{value_idx});
- code.movq(rbx, xmm0);
- code.punpckhqdq(xmm0, xmm0);
- code.movq(rcx, xmm0);
- }
- }
-
- const void* fastmem_location = code.getCurr();
- switch (bitsize) {
- case 8:
- code.xchg(code.byte[addr], Xbyak::Reg64{value_idx}.cvt8());
- break;
- case 16:
- code.xchg(word[addr], Xbyak::Reg16{value_idx});
- break;
- case 32:
- code.xchg(dword[addr], Xbyak::Reg32{value_idx});
- break;
- case 64:
- code.xchg(qword[addr], Xbyak::Reg64{value_idx});
- break;
- case 128: {
- Xbyak::Label loop;
- code.L(loop);
- code.lock();
- code.cmpxchg16b(xword[addr]);
- code.jnz(loop);
- break;
- }
- default:
- ASSERT_FALSE("Invalid bitsize");
- }
- return fastmem_location;
- }
-
- const void* fastmem_location = code.getCurr();
- switch (bitsize) {
- case 8:
- code.mov(code.byte[addr], Xbyak::Reg64{value_idx}.cvt8());
- break;
- case 16:
- code.mov(word[addr], Xbyak::Reg16{value_idx});
- break;
- case 32:
- code.mov(dword[addr], Xbyak::Reg32{value_idx});
- break;
- case 64:
- code.mov(qword[addr], Xbyak::Reg64{value_idx});
- break;
- case 128:
- code.movups(xword[addr], Xbyak::Xmm{value_idx});
- break;
- default:
- ASSERT_FALSE("Invalid bitsize");
- }
- return fastmem_location;
-}
-
-template<typename UserConfig>
-void EmitExclusiveLock(BlockOfCode& code, const UserConfig& conf, Xbyak::Reg64 pointer, Xbyak::Reg32 tmp) {
- if (conf.HasOptimization(OptimizationFlag::Unsafe_IgnoreGlobalMonitor)) {
- return;
- }
-
- code.mov(pointer, mcl::bit_cast<u64>(GetExclusiveMonitorLockPointer(conf.global_monitor)));
- EmitSpinLockLock(code, pointer, tmp);
-}
-
-template<typename UserConfig>
-void EmitExclusiveUnlock(BlockOfCode& code, const UserConfig& conf, Xbyak::Reg64 pointer, Xbyak::Reg32 tmp) {
- if (conf.HasOptimization(OptimizationFlag::Unsafe_IgnoreGlobalMonitor)) {
- return;
- }
-
- code.mov(pointer, mcl::bit_cast<u64>(GetExclusiveMonitorLockPointer(conf.global_monitor)));
- EmitSpinLockUnlock(code, pointer, tmp);
-}
-
-template<typename UserConfig>
-void EmitExclusiveTestAndClear(BlockOfCode& code, const UserConfig& conf, Xbyak::Reg64 vaddr, Xbyak::Reg64 pointer, Xbyak::Reg64 tmp) {
- if (conf.HasOptimization(OptimizationFlag::Unsafe_IgnoreGlobalMonitor)) {
- return;
- }
-
- code.mov(tmp, 0xDEAD'DEAD'DEAD'DEAD);
- const size_t processor_count = GetExclusiveMonitorProcessorCount(conf.global_monitor);
- for (size_t processor_index = 0; processor_index < processor_count; processor_index++) {
- if (processor_index == conf.processor_id) {
- continue;
- }
- Xbyak::Label ok;
- code.mov(pointer, mcl::bit_cast<u64>(GetExclusiveMonitorAddressPointer(conf.global_monitor, processor_index)));
- code.cmp(qword[pointer], vaddr);
- code.jne(ok);
- code.mov(qword[pointer], tmp);
- code.L(ok);
- }
-}
-
-inline bool IsOrdered(IR::AccType acctype) {
- return acctype == IR::AccType::ORDERED || acctype == IR::AccType::ORDEREDRW || acctype == IR::AccType::LIMITEDORDERED;
-}
-
-} // namespace
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/exclusive_monitor_friend.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/exclusive_monitor_friend.h
deleted file mode 100644
index 7f7fa242..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/exclusive_monitor_friend.h
+++ /dev/null
@@ -1,28 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include "dynarmic/interface/exclusive_monitor.h"
-
-namespace Dynarmic {
-
-inline volatile int* GetExclusiveMonitorLockPointer(ExclusiveMonitor* monitor) {
- return &monitor->lock.storage;
-}
-
-inline size_t GetExclusiveMonitorProcessorCount(ExclusiveMonitor* monitor) {
- return monitor->exclusive_addresses.size();
-}
-
-inline VAddr* GetExclusiveMonitorAddressPointer(ExclusiveMonitor* monitor, size_t index) {
- return monitor->exclusive_addresses.data() + index;
-}
-
-inline Vector* GetExclusiveMonitorValuePointer(ExclusiveMonitor* monitor, size_t index) {
- return monitor->exclusive_values.data() + index;
-}
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/host_feature.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/host_feature.h
deleted file mode 100644
index 8e3b14c7..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/host_feature.h
+++ /dev/null
@@ -1,66 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2021 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Backend::X64 {
-
-enum class HostFeature : u64 {
- SSSE3 = 1ULL << 0,
- SSE41 = 1ULL << 1,
- SSE42 = 1ULL << 2,
- AVX = 1ULL << 3,
- AVX2 = 1ULL << 4,
- AVX512F = 1ULL << 5,
- AVX512CD = 1ULL << 6,
- AVX512VL = 1ULL << 7,
- AVX512BW = 1ULL << 8,
- AVX512DQ = 1ULL << 9,
- AVX512BITALG = 1ULL << 10,
- AVX512VBMI = 1ULL << 11,
- PCLMULQDQ = 1ULL << 12,
- F16C = 1ULL << 13,
- FMA = 1ULL << 14,
- AES = 1ULL << 15,
- SHA = 1ULL << 16,
- POPCNT = 1ULL << 17,
- BMI1 = 1ULL << 18,
- BMI2 = 1ULL << 19,
- LZCNT = 1ULL << 20,
- GFNI = 1ULL << 21,
-
- // Zen-based BMI2
- FastBMI2 = 1ULL << 22,
-
- // Orthographic AVX512 features on 128 and 256 vectors
- AVX512_Ortho = AVX512F | AVX512VL,
-
- // Orthographic AVX512 features for both 32-bit and 64-bit floats
- AVX512_OrthoFloat = AVX512_Ortho | AVX512DQ,
-};
-
-constexpr HostFeature operator~(HostFeature f) {
- return static_cast<HostFeature>(~static_cast<u64>(f));
-}
-
-constexpr HostFeature operator|(HostFeature f1, HostFeature f2) {
- return static_cast<HostFeature>(static_cast<u64>(f1) | static_cast<u64>(f2));
-}
-
-constexpr HostFeature operator&(HostFeature f1, HostFeature f2) {
- return static_cast<HostFeature>(static_cast<u64>(f1) & static_cast<u64>(f2));
-}
-
-constexpr HostFeature operator|=(HostFeature& result, HostFeature f) {
- return result = (result | f);
-}
-
-constexpr HostFeature operator&=(HostFeature& result, HostFeature f) {
- return result = (result & f);
-}
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/hostloc.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/hostloc.h
deleted file mode 100644
index dbf526b7..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/hostloc.h
+++ /dev/null
@@ -1,147 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-#pragma once
-
-#include <mcl/assert.hpp>
-#include <mcl/stdint.hpp>
-#include <xbyak/xbyak.h>
-
-namespace Dynarmic::Backend::X64 {
-
-enum class HostLoc {
- // Ordering of the registers is intentional. See also: HostLocToX64.
- RAX,
- RCX,
- RDX,
- RBX,
- RSP,
- RBP,
- RSI,
- RDI,
- R8,
- R9,
- R10,
- R11,
- R12,
- R13,
- R14,
- R15,
- XMM0,
- XMM1,
- XMM2,
- XMM3,
- XMM4,
- XMM5,
- XMM6,
- XMM7,
- XMM8,
- XMM9,
- XMM10,
- XMM11,
- XMM12,
- XMM13,
- XMM14,
- XMM15,
- CF,
- PF,
- AF,
- ZF,
- SF,
- OF,
- FirstSpill,
-};
-
-constexpr size_t NonSpillHostLocCount = static_cast<size_t>(HostLoc::FirstSpill);
-
-inline bool HostLocIsGPR(HostLoc reg) {
- return reg >= HostLoc::RAX && reg <= HostLoc::R15;
-}
-
-inline bool HostLocIsXMM(HostLoc reg) {
- return reg >= HostLoc::XMM0 && reg <= HostLoc::XMM15;
-}
-
-inline bool HostLocIsRegister(HostLoc reg) {
- return HostLocIsGPR(reg) || HostLocIsXMM(reg);
-}
-
-inline bool HostLocIsFlag(HostLoc reg) {
- return reg >= HostLoc::CF && reg <= HostLoc::OF;
-}
-
-inline HostLoc HostLocRegIdx(int idx) {
- ASSERT(idx >= 0 && idx <= 15);
- return static_cast<HostLoc>(idx);
-}
-
-inline HostLoc HostLocXmmIdx(int idx) {
- ASSERT(idx >= 0 && idx <= 15);
- return static_cast<HostLoc>(static_cast<size_t>(HostLoc::XMM0) + idx);
-}
-
-inline HostLoc HostLocSpill(size_t i) {
- return static_cast<HostLoc>(static_cast<size_t>(HostLoc::FirstSpill) + i);
-}
-
-inline bool HostLocIsSpill(HostLoc reg) {
- return reg >= HostLoc::FirstSpill;
-}
-
-inline size_t HostLocBitWidth(HostLoc loc) {
- if (HostLocIsGPR(loc))
- return 64;
- if (HostLocIsXMM(loc))
- return 128;
- if (HostLocIsSpill(loc))
- return 128;
- if (HostLocIsFlag(loc))
- return 1;
- UNREACHABLE();
-}
-
-using HostLocList = std::initializer_list<HostLoc>;
-
-// RSP is preserved for function calls
-// R15 contains the JitState pointer
-const HostLocList any_gpr = {
- HostLoc::RAX,
- HostLoc::RBX,
- HostLoc::RCX,
- HostLoc::RDX,
- HostLoc::RSI,
- HostLoc::RDI,
- HostLoc::RBP,
- HostLoc::R8,
- HostLoc::R9,
- HostLoc::R10,
- HostLoc::R11,
- HostLoc::R12,
- HostLoc::R13,
- HostLoc::R14,
-};
-
-// XMM0 is reserved for use by instructions that implicitly use it as an argument
-const HostLocList any_xmm = {
- HostLoc::XMM1,
- HostLoc::XMM2,
- HostLoc::XMM3,
- HostLoc::XMM4,
- HostLoc::XMM5,
- HostLoc::XMM6,
- HostLoc::XMM7,
- HostLoc::XMM8,
- HostLoc::XMM9,
- HostLoc::XMM10,
- HostLoc::XMM11,
- HostLoc::XMM12,
- HostLoc::XMM13,
- HostLoc::XMM14,
- HostLoc::XMM15,
-};
-
-Xbyak::Reg64 HostLocToReg64(HostLoc loc);
-Xbyak::Xmm HostLocToXmm(HostLoc loc);
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/jitstate_info.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/jitstate_info.h
deleted file mode 100644
index 654b3f04..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/jitstate_info.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstddef>
-
-namespace Dynarmic::Backend::X64 {
-
-struct JitStateInfo {
- template<typename JitStateType>
- JitStateInfo(const JitStateType&)
- : offsetof_guest_MXCSR(offsetof(JitStateType, guest_MXCSR))
- , offsetof_asimd_MXCSR(offsetof(JitStateType, asimd_MXCSR))
- , offsetof_rsb_ptr(offsetof(JitStateType, rsb_ptr))
- , rsb_ptr_mask(JitStateType::RSBPtrMask)
- , offsetof_rsb_location_descriptors(offsetof(JitStateType, rsb_location_descriptors))
- , offsetof_rsb_codeptrs(offsetof(JitStateType, rsb_codeptrs))
- , offsetof_cpsr_nzcv(offsetof(JitStateType, cpsr_nzcv))
- , offsetof_fpsr_exc(offsetof(JitStateType, fpsr_exc))
- , offsetof_fpsr_qc(offsetof(JitStateType, fpsr_qc))
- , offsetof_halt_reason(offsetof(JitStateType, halt_reason)) {}
-
- const size_t offsetof_guest_MXCSR;
- const size_t offsetof_asimd_MXCSR;
- const size_t offsetof_rsb_ptr;
- const size_t rsb_ptr_mask;
- const size_t offsetof_rsb_location_descriptors;
- const size_t offsetof_rsb_codeptrs;
- const size_t offsetof_cpsr_nzcv;
- const size_t offsetof_fpsr_exc;
- const size_t offsetof_fpsr_qc;
- const size_t offsetof_halt_reason;
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/nzcv_util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/nzcv_util.h
deleted file mode 100644
index 3a70cf4f..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/nzcv_util.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Backend::X64::NZCV {
-
-constexpr u32 arm_mask = 0xF000'0000;
-constexpr u32 x64_mask = 0xC101;
-
-constexpr size_t x64_n_flag_bit = 15;
-constexpr size_t x64_z_flag_bit = 14;
-constexpr size_t x64_c_flag_bit = 8;
-constexpr size_t x64_v_flag_bit = 0;
-
-/// This is a constant used to create the x64 flags format from the ARM format.
-/// NZCV * multiplier: NZCV0NZCV000NZCV
-/// x64_flags format: NZ-----C-------V
-constexpr u32 to_x64_multiplier = 0x1081;
-
-/// This is a constant used to create the ARM format from the x64 flags format.
-constexpr u32 from_x64_multiplier = 0x1021'0000;
-
-inline u32 ToX64(u32 nzcv) {
- /* Naive implementation:
- u32 x64_flags = 0;
- x64_flags |= mcl::bit::get_bit<31>(cpsr) ? 1 << 15 : 0;
- x64_flags |= mcl::bit::get_bit<30>(cpsr) ? 1 << 14 : 0;
- x64_flags |= mcl::bit::get_bit<29>(cpsr) ? 1 << 8 : 0;
- x64_flags |= mcl::bit::get_bit<28>(cpsr) ? 1 : 0;
- return x64_flags;
- */
- return ((nzcv >> 28) * to_x64_multiplier) & x64_mask;
-}
-
-inline u32 FromX64(u32 x64_flags) {
- /* Naive implementation:
- u32 nzcv = 0;
- nzcv |= mcl::bit::get_bit<15>(x64_flags) ? 1 << 31 : 0;
- nzcv |= mcl::bit::get_bit<14>(x64_flags) ? 1 << 30 : 0;
- nzcv |= mcl::bit::get_bit<8>(x64_flags) ? 1 << 29 : 0;
- nzcv |= mcl::bit::get_bit<0>(x64_flags) ? 1 << 28 : 0;
- return nzcv;
- */
- return ((x64_flags & x64_mask) * from_x64_multiplier) & arm_mask;
-}
-
-} // namespace Dynarmic::Backend::X64::NZCV
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/oparg.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/oparg.h
deleted file mode 100644
index 70c60dfb..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/oparg.h
+++ /dev/null
@@ -1,79 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/assert.hpp>
-#include <xbyak/xbyak.h>
-
-namespace Dynarmic::Backend::X64 {
-
-struct OpArg {
- OpArg()
- : type(Type::Operand), inner_operand() {}
- /* implicit */ OpArg(const Xbyak::Address& address)
- : type(Type::Address), inner_address(address) {}
- /* implicit */ OpArg(const Xbyak::Reg& reg)
- : type(Type::Reg), inner_reg(reg) {}
-
- Xbyak::Operand& operator*() {
- switch (type) {
- case Type::Address:
- return inner_address;
- case Type::Operand:
- return inner_operand;
- case Type::Reg:
- return inner_reg;
- }
- UNREACHABLE();
- }
-
- void setBit(int bits) {
- switch (type) {
- case Type::Address:
- inner_address.setBit(bits);
- return;
- case Type::Operand:
- inner_operand.setBit(bits);
- return;
- case Type::Reg:
- switch (bits) {
- case 8:
- inner_reg = inner_reg.cvt8();
- return;
- case 16:
- inner_reg = inner_reg.cvt16();
- return;
- case 32:
- inner_reg = inner_reg.cvt32();
- return;
- case 64:
- inner_reg = inner_reg.cvt64();
- return;
- default:
- ASSERT_MSG(false, "Invalid bits");
- return;
- }
- }
- UNREACHABLE();
- }
-
-private:
- enum class Type {
- Operand,
- Address,
- Reg,
- };
-
- Type type;
-
- union {
- Xbyak::Operand inner_operand;
- Xbyak::Address inner_address;
- Xbyak::Reg inner_reg;
- };
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/perf_map.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/perf_map.h
deleted file mode 100644
index 7d739ae6..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/perf_map.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string_view>
-
-#include <mcl/bit_cast.hpp>
-
-namespace Dynarmic::Backend::X64 {
-
-namespace detail {
-void PerfMapRegister(const void* start, const void* end, std::string_view friendly_name);
-} // namespace detail
-
-template<typename T>
-void PerfMapRegister(T start, const void* end, std::string_view friendly_name) {
- detail::PerfMapRegister(mcl::bit_cast<const void*>(start), end, friendly_name);
-}
-
-void PerfMapClear();
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/reg_alloc.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/reg_alloc.h
deleted file mode 100644
index 19debf5f..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/reg_alloc.h
+++ /dev/null
@@ -1,188 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <functional>
-#include <optional>
-#include <utility>
-#include <vector>
-
-#include <mcl/stdint.hpp>
-#include <xbyak/xbyak.h>
-
-#include "dynarmic/backend/x64/block_of_code.h"
-#include "dynarmic/backend/x64/hostloc.h"
-#include "dynarmic/backend/x64/oparg.h"
-#include "dynarmic/ir/cond.h"
-#include "dynarmic/ir/microinstruction.h"
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::IR {
-enum class AccType;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic::Backend::X64 {
-
-class RegAlloc;
-
-struct HostLocInfo {
-public:
- bool IsLocked() const;
- bool IsEmpty() const;
- bool IsLastUse() const;
-
- void SetLastUse();
-
- void ReadLock();
- void WriteLock();
- void AddArgReference();
- void ReleaseOne();
- void ReleaseAll();
-
- bool ContainsValue(const IR::Inst* inst) const;
- size_t GetMaxBitWidth() const;
-
- void AddValue(IR::Inst* inst);
-
- void EmitVerboseDebuggingOutput(BlockOfCode& code, size_t host_loc_index) const;
-
-private:
- // Current instruction state
- size_t is_being_used_count = 0;
- bool is_scratch = false;
- bool is_set_last_use = false;
-
- // Block state
- size_t current_references = 0;
- size_t accumulated_uses = 0;
- size_t total_uses = 0;
-
- // Value state
- std::vector<IR::Inst*> values;
- size_t max_bit_width = 0;
-};
-
-struct Argument {
-public:
- using copyable_reference = std::reference_wrapper<Argument>;
-
- IR::Type GetType() const;
- bool IsImmediate() const;
- bool IsVoid() const;
-
- bool FitsInImmediateU32() const;
- bool FitsInImmediateS32() const;
-
- bool GetImmediateU1() const;
- u8 GetImmediateU8() const;
- u16 GetImmediateU16() const;
- u32 GetImmediateU32() const;
- u64 GetImmediateS32() const;
- u64 GetImmediateU64() const;
- IR::Cond GetImmediateCond() const;
- IR::AccType GetImmediateAccType() const;
-
- /// Is this value currently in a GPR?
- bool IsInGpr() const;
- /// Is this value currently in a XMM?
- bool IsInXmm() const;
- /// Is this value currently in memory?
- bool IsInMemory() const;
-
-private:
- friend class RegAlloc;
- explicit Argument(RegAlloc& reg_alloc)
- : reg_alloc(reg_alloc) {}
-
- bool allocated = false;
- RegAlloc& reg_alloc;
- IR::Value value;
-};
-
-class RegAlloc final {
-public:
- using ArgumentInfo = std::array<Argument, IR::max_arg_count>;
-
- explicit RegAlloc(BlockOfCode& code, std::vector<HostLoc> gpr_order, std::vector<HostLoc> xmm_order);
-
- ArgumentInfo GetArgumentInfo(IR::Inst* inst);
- void RegisterPseudoOperation(IR::Inst* inst);
- bool IsValueLive(IR::Inst* inst) const;
-
- Xbyak::Reg64 UseGpr(Argument& arg);
- Xbyak::Xmm UseXmm(Argument& arg);
- OpArg UseOpArg(Argument& arg);
- void Use(Argument& arg, HostLoc host_loc);
-
- Xbyak::Reg64 UseScratchGpr(Argument& arg);
- Xbyak::Xmm UseScratchXmm(Argument& arg);
- void UseScratch(Argument& arg, HostLoc host_loc);
-
- void DefineValue(IR::Inst* inst, const Xbyak::Reg& reg);
- void DefineValue(IR::Inst* inst, Argument& arg);
-
- void Release(const Xbyak::Reg& reg);
-
- Xbyak::Reg64 ScratchGpr();
- Xbyak::Reg64 ScratchGpr(HostLoc desired_location);
- Xbyak::Xmm ScratchXmm();
- Xbyak::Xmm ScratchXmm(HostLoc desired_location);
-
- void HostCall(IR::Inst* result_def = nullptr,
- std::optional<Argument::copyable_reference> arg0 = {},
- std::optional<Argument::copyable_reference> arg1 = {},
- std::optional<Argument::copyable_reference> arg2 = {},
- std::optional<Argument::copyable_reference> arg3 = {});
-
- // TODO: Values in host flags
-
- void AllocStackSpace(size_t stack_space);
- void ReleaseStackSpace(size_t stack_space);
-
- void EndOfAllocScope();
-
- void AssertNoMoreUses();
-
- void EmitVerboseDebuggingOutput();
-
-private:
- friend struct Argument;
-
- std::vector<HostLoc> gpr_order;
- std::vector<HostLoc> xmm_order;
-
- HostLoc SelectARegister(const std::vector<HostLoc>& desired_locations) const;
- std::optional<HostLoc> ValueLocation(const IR::Inst* value) const;
-
- HostLoc UseImpl(IR::Value use_value, const std::vector<HostLoc>& desired_locations);
- HostLoc UseScratchImpl(IR::Value use_value, const std::vector<HostLoc>& desired_locations);
- HostLoc ScratchImpl(const std::vector<HostLoc>& desired_locations);
- void DefineValueImpl(IR::Inst* def_inst, HostLoc host_loc);
- void DefineValueImpl(IR::Inst* def_inst, const IR::Value& use_inst);
-
- HostLoc LoadImmediate(IR::Value imm, HostLoc host_loc);
- void Move(HostLoc to, HostLoc from);
- void CopyToScratch(size_t bit_width, HostLoc to, HostLoc from);
- void Exchange(HostLoc a, HostLoc b);
- void MoveOutOfTheWay(HostLoc reg);
-
- void SpillRegister(HostLoc loc);
- HostLoc FindFreeSpill() const;
-
- std::vector<HostLocInfo> hostloc_info;
- HostLocInfo& LocInfo(HostLoc loc);
- const HostLocInfo& LocInfo(HostLoc loc) const;
-
- BlockOfCode& code;
- size_t reserved_stack_space = 0;
- void EmitMove(size_t bit_width, HostLoc to, HostLoc from);
- void EmitExchange(HostLoc a, HostLoc b);
-
- Xbyak::Address SpillToOpArg(HostLoc loc);
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/stack_layout.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/stack_layout.h
deleted file mode 100644
index 7e6799f1..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/stack_layout.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Backend::X64 {
-
-constexpr size_t SpillCount = 64;
-
-#ifdef _MSC_VER
-# pragma warning(push)
-# pragma warning(disable : 4324) // Structure was padded due to alignment specifier
-#endif
-
-struct alignas(16) StackLayout {
- s64 cycles_remaining;
- s64 cycles_to_run;
-
- std::array<std::array<u64, 2>, SpillCount> spill;
-
- u32 save_host_MXCSR;
-
- bool check_bit;
-};
-
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-
-static_assert(sizeof(StackLayout) % 16 == 0);
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/verbose_debugging_output.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/verbose_debugging_output.h
deleted file mode 100644
index 4eb2646d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/backend/x64/verbose_debugging_output.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2023 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/backend/x64/stack_layout.h"
-
-namespace Dynarmic::Backend::X64 {
-
-enum class HostLoc;
-using Vector = std::array<u64, 2>;
-
-#ifdef _MSC_VER
-# pragma warning(push)
-# pragma warning(disable : 4324) // Structure was padded due to alignment specifier
-#endif
-
-struct alignas(16) RegisterData {
- std::array<u64, 16> gprs;
- std::array<Vector, 16> xmms;
- decltype(StackLayout::spill)* spill;
- u32 mxcsr;
-};
-
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-
-void PrintVerboseDebuggingOutputLine(RegisterData& reg_data, HostLoc hostloc, size_t inst_index, size_t bitsize);
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/always_false.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/always_false.h
deleted file mode 100644
index b980fea0..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/always_false.h
+++ /dev/null
@@ -1,13 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2023 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::Common {
-
-template<typename T>
-inline constexpr bool always_false_v = false;
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/atomic.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/atomic.h
deleted file mode 100644
index 34042d38..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/atomic.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Atomic {
-
-inline u32 Load(volatile u32* ptr) {
-#ifdef _MSC_VER
- return _InterlockedOr(reinterpret_cast<volatile long*>(ptr), 0);
-#else
- return __atomic_load_n(ptr, __ATOMIC_SEQ_CST);
-#endif
-}
-
-inline void Or(volatile u32* ptr, u32 value) {
-#ifdef _MSC_VER
- _InterlockedOr(reinterpret_cast<volatile long*>(ptr), value);
-#else
- __atomic_or_fetch(ptr, value, __ATOMIC_SEQ_CST);
-#endif
-}
-
-inline void And(volatile u32* ptr, u32 value) {
-#ifdef _MSC_VER
- _InterlockedAnd(reinterpret_cast<volatile long*>(ptr), value);
-#else
- __atomic_and_fetch(ptr, value, __ATOMIC_SEQ_CST);
-#endif
-}
-
-inline void Barrier() {
-#ifdef _MSC_VER
- _ReadWriteBarrier();
-#else
- __atomic_thread_fence(__ATOMIC_SEQ_CST);
-#endif
-}
-
-} // namespace Dynarmic::Atomic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/cast_util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/cast_util.h
deleted file mode 100644
index 92c9a259..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/cast_util.h
+++ /dev/null
@@ -1,18 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/type_traits/function_info.hpp>
-
-namespace Dynarmic::Common {
-
-/// Cast a lambda into an equivalent function pointer.
-template<class Function>
-inline auto FptrCast(Function f) noexcept {
- return static_cast<mcl::equivalent_function_type<Function>*>(f);
-}
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/crypto/aes.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/crypto/aes.h
deleted file mode 100644
index fa6d5a81..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/crypto/aes.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Common::Crypto::AES {
-
-using State = std::array<u8, 16>;
-
-// Assumes the state has already been XORed by the round key.
-void DecryptSingleRound(State& out_state, const State& state);
-void EncryptSingleRound(State& out_state, const State& state);
-
-void MixColumns(State& out_state, const State& state);
-void InverseMixColumns(State& out_state, const State& state);
-
-} // namespace Dynarmic::Common::Crypto::AES
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/crypto/crc32.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/crypto/crc32.h
deleted file mode 100644
index 30942327..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/crypto/crc32.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Common::Crypto::CRC32 {
-
-/**
- * Computes a CRC32 value using Castagnoli polynomial (0x1EDC6F41).
- *
- * @param crc The initial CRC value
- * @param value The value to compute the CRC of.
- * @param length The length of the data to compute.
- *
- * @remark @p value is interpreted internally as an array of
- * unsigned char with @p length data.
- *
- * @return The computed CRC32 value.
- */
-u32 ComputeCRC32Castagnoli(u32 crc, u64 value, int length);
-
-/**
- * Computes a CRC32 value using the ISO polynomial (0x04C11DB7).
- *
- * @param crc The initial CRC value
- * @param value The value to compute the CRC of.
- * @param length The length of the data to compute.
- *
- * @remark @p value is interpreted internally as an array of
- * unsigned char with @p length data.
- *
- * @return The computed CRC32 value.
- */
-u32 ComputeCRC32ISO(u32 crc, u64 value, int length);
-
-} // namespace Dynarmic::Common::Crypto::CRC32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/crypto/sm4.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/crypto/sm4.h
deleted file mode 100644
index 417e9b92..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/crypto/sm4.h
+++ /dev/null
@@ -1,14 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Common::Crypto::SM4 {
-
-u8 AccessSubstitutionBox(u8 index);
-
-} // namespace Dynarmic::Common::Crypto::SM4
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/fpcr.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/fpcr.h
deleted file mode 100644
index 287f6d28..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/fpcr.h
+++ /dev/null
@@ -1,209 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-
-#include <mcl/assert.hpp>
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/common/fp/rounding_mode.h"
-
-namespace Dynarmic::FP {
-
-/**
- * Representation of the Floating-Point Control Register.
- */
-class FPCR final {
-public:
- FPCR() = default;
- FPCR(const FPCR&) = default;
- FPCR(FPCR&&) = default;
- explicit FPCR(u32 data)
- : value{data & mask} {}
-
- FPCR& operator=(const FPCR&) = default;
- FPCR& operator=(FPCR&&) = default;
- FPCR& operator=(u32 data) {
- value = data & mask;
- return *this;
- }
-
- /// Get alternate half-precision control flag.
- bool AHP() const {
- return mcl::bit::get_bit<26>(value);
- }
-
- /// Set alternate half-precision control flag.
- void AHP(bool ahp) {
- value = mcl::bit::set_bit<26>(value, ahp);
- }
-
- /// Get default NaN mode control bit.
- bool DN() const {
- return mcl::bit::get_bit<25>(value);
- }
-
- /// Set default NaN mode control bit.
- void DN(bool dn) {
- value = mcl::bit::set_bit<25>(value, dn);
- }
-
- /// Get flush-to-zero mode control bit.
- bool FZ() const {
- return mcl::bit::get_bit<24>(value);
- }
-
- /// Set flush-to-zero mode control bit.
- void FZ(bool fz) {
- value = mcl::bit::set_bit<24>(value, fz);
- }
-
- /// Get rounding mode control field.
- FP::RoundingMode RMode() const {
- return static_cast<FP::RoundingMode>(mcl::bit::get_bits<22, 23>(value));
- }
-
- /// Set rounding mode control field.
- void RMode(FP::RoundingMode rounding_mode) {
- ASSERT_MSG(static_cast<u32>(rounding_mode) <= 0b11, "FPCR: Invalid rounding mode");
- value = mcl::bit::set_bits<22, 23>(value, static_cast<u32>(rounding_mode));
- }
-
- /// Get the stride of a vector when executing AArch32 VFP instructions.
- /// This field has no function in AArch64 state.
- std::optional<size_t> Stride() const {
- switch (mcl::bit::get_bits<20, 21>(value)) {
- case 0b00:
- return 1;
- case 0b11:
- return 2;
- default:
- return std::nullopt;
- }
- }
-
- /// Set the stride of a vector when executing AArch32 VFP instructions.
- /// This field has no function in AArch64 state.
- void Stride(size_t stride) {
- ASSERT_MSG(stride >= 1 && stride <= 2, "FPCR: Invalid stride");
- value = mcl::bit::set_bits<20, 21>(value, stride == 1 ? 0b00u : 0b11u);
- }
-
- /// Get flush-to-zero (half-precision specific) mode control bit.
- bool FZ16() const {
- return mcl::bit::get_bit<19>(value);
- }
-
- /// Set flush-to-zero (half-precision specific) mode control bit.
- void FZ16(bool fz16) {
- value = mcl::bit::set_bit<19>(value, fz16);
- }
-
- /// Gets the length of a vector when executing AArch32 VFP instructions.
- /// This field has no function in AArch64 state.
- size_t Len() const {
- return mcl::bit::get_bits<16, 18>(value) + 1;
- }
-
- /// Sets the length of a vector when executing AArch32 VFP instructions.
- /// This field has no function in AArch64 state.
- void Len(size_t len) {
- ASSERT_MSG(len >= 1 && len <= 8, "FPCR: Invalid len");
- value = mcl::bit::set_bits<16, 18>(value, static_cast<u32>(len - 1));
- }
-
- /// Get input denormal exception trap enable flag.
- bool IDE() const {
- return mcl::bit::get_bit<15>(value);
- }
-
- /// Set input denormal exception trap enable flag.
- void IDE(bool ide) {
- value = mcl::bit::set_bit<15>(value, ide);
- }
-
- /// Get inexact exception trap enable flag.
- bool IXE() const {
- return mcl::bit::get_bit<12>(value);
- }
-
- /// Set inexact exception trap enable flag.
- void IXE(bool ixe) {
- value = mcl::bit::set_bit<12>(value, ixe);
- }
-
- /// Get underflow exception trap enable flag.
- bool UFE() const {
- return mcl::bit::get_bit<11>(value);
- }
-
- /// Set underflow exception trap enable flag.
- void UFE(bool ufe) {
- value = mcl::bit::set_bit<11>(value, ufe);
- }
-
- /// Get overflow exception trap enable flag.
- bool OFE() const {
- return mcl::bit::get_bit<10>(value);
- }
-
- /// Set overflow exception trap enable flag.
- void OFE(bool ofe) {
- value = mcl::bit::set_bit<10>(value, ofe);
- }
-
- /// Get division by zero exception trap enable flag.
- bool DZE() const {
- return mcl::bit::get_bit<9>(value);
- }
-
- /// Set division by zero exception trap enable flag.
- void DZE(bool dze) {
- value = mcl::bit::set_bit<9>(value, dze);
- }
-
- /// Get invalid operation exception trap enable flag.
- bool IOE() const {
- return mcl::bit::get_bit<8>(value);
- }
-
- /// Set invalid operation exception trap enable flag.
- void IOE(bool ioe) {
- value = mcl::bit::set_bit<8>(value, ioe);
- }
-
- /// Gets the underlying raw value within the FPCR.
- u32 Value() const {
- return value;
- }
-
- /// Gets the StandardFPSCRValue (A32 ASIMD).
- FPCR ASIMDStandardValue() const {
- FPCR stdvalue;
- stdvalue.AHP(AHP());
- stdvalue.FZ16(FZ16());
- stdvalue.FZ(true);
- stdvalue.DN(true);
- return stdvalue;
- }
-
-private:
- // Bits 0-7, 13-14, and 27-31 are reserved.
- static constexpr u32 mask = 0x07FF9F00;
- u32 value = 0;
-};
-
-inline bool operator==(FPCR lhs, FPCR rhs) {
- return lhs.Value() == rhs.Value();
-}
-
-inline bool operator!=(FPCR lhs, FPCR rhs) {
- return !operator==(lhs, rhs);
-}
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/fpsr.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/fpsr.h
deleted file mode 100644
index fba58ebb..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/fpsr.h
+++ /dev/null
@@ -1,160 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::FP {
-
-/**
- * Representation of the Floating-Point Status Register.
- */
-class FPSR final {
-public:
- FPSR() = default;
- FPSR(const FPSR&) = default;
- FPSR(FPSR&&) = default;
- explicit FPSR(u32 data)
- : value{data & mask} {}
-
- FPSR& operator=(const FPSR&) = default;
- FPSR& operator=(FPSR&&) = default;
- FPSR& operator=(u32 data) {
- value = data & mask;
- return *this;
- }
-
- /// Get negative condition flag
- bool N() const {
- return mcl::bit::get_bit<31>(value);
- }
-
- /// Set negative condition flag
- void N(bool N_) {
- value = mcl::bit::set_bit<31>(value, N_);
- }
-
- /// Get zero condition flag
- bool Z() const {
- return mcl::bit::get_bit<30>(value);
- }
-
- /// Set zero condition flag
- void Z(bool Z_) {
- value = mcl::bit::set_bit<30>(value, Z_);
- }
-
- /// Get carry condition flag
- bool C() const {
- return mcl::bit::get_bit<29>(value);
- }
-
- /// Set carry condition flag
- void C(bool C_) {
- value = mcl::bit::set_bit<29>(value, C_);
- }
-
- /// Get overflow condition flag
- bool V() const {
- return mcl::bit::get_bit<28>(value);
- }
-
- /// Set overflow condition flag
- void V(bool V_) {
- value = mcl::bit::set_bit<28>(value, V_);
- }
-
- /// Get cumulative saturation bit
- bool QC() const {
- return mcl::bit::get_bit<27>(value);
- }
-
- /// Set cumulative saturation bit
- void QC(bool QC_) {
- value = mcl::bit::set_bit<27>(value, QC_);
- }
-
- /// Get input denormal floating-point exception bit
- bool IDC() const {
- return mcl::bit::get_bit<7>(value);
- }
-
- /// Set input denormal floating-point exception bit
- void IDC(bool IDC_) {
- value = mcl::bit::set_bit<7>(value, IDC_);
- }
-
- /// Get inexact cumulative floating-point exception bit
- bool IXC() const {
- return mcl::bit::get_bit<4>(value);
- }
-
- /// Set inexact cumulative floating-point exception bit
- void IXC(bool IXC_) {
- value = mcl::bit::set_bit<4>(value, IXC_);
- }
-
- /// Get underflow cumulative floating-point exception bit
- bool UFC() const {
- return mcl::bit::get_bit<3>(value);
- }
-
- /// Set underflow cumulative floating-point exception bit
- void UFC(bool UFC_) {
- value = mcl::bit::set_bit<3>(value, UFC_);
- }
-
- /// Get overflow cumulative floating-point exception bit
- bool OFC() const {
- return mcl::bit::get_bit<2>(value);
- }
-
- /// Set overflow cumulative floating-point exception bit
- void OFC(bool OFC_) {
- value = mcl::bit::set_bit<2>(value, OFC_);
- }
-
- /// Get divide by zero cumulative floating-point exception bit
- bool DZC() const {
- return mcl::bit::get_bit<1>(value);
- }
-
- /// Set divide by zero cumulative floating-point exception bit
- void DZC(bool DZC_) {
- value = mcl::bit::set_bit<1>(value, DZC_);
- }
-
- /// Get invalid operation cumulative floating-point exception bit
- bool IOC() const {
- return mcl::bit::get_bit<0>(value);
- }
-
- /// Set invalid operation cumulative floating-point exception bit
- void IOC(bool IOC_) {
- value = mcl::bit::set_bit<0>(value, IOC_);
- }
-
- /// Gets the underlying raw value within the FPSR.
- u32 Value() const {
- return value;
- }
-
-private:
- // Bits 5-6 and 8-26 are reserved.
- static constexpr u32 mask = 0xF800009F;
- u32 value = 0;
-};
-
-inline bool operator==(FPSR lhs, FPSR rhs) {
- return lhs.Value() == rhs.Value();
-}
-
-inline bool operator!=(FPSR lhs, FPSR rhs) {
- return !operator==(lhs, rhs);
-}
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/fused.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/fused.h
deleted file mode 100644
index 0ffa2683..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/fused.h
+++ /dev/null
@@ -1,15 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-struct FPUnpacked;
-
-/// This function assumes all arguments have been normalized.
-FPUnpacked FusedMulAdd(FPUnpacked addend, FPUnpacked op1, FPUnpacked op2);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/info.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/info.h
deleted file mode 100644
index 8cc2d29d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/info.h
+++ /dev/null
@@ -1,138 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/bit/bit_count.hpp>
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::FP {
-
-template<typename FPT>
-struct FPInfo {};
-
-template<>
-struct FPInfo<u16> {
- static constexpr size_t total_width = 16;
- static constexpr size_t exponent_width = 5;
- static constexpr size_t explicit_mantissa_width = 10;
- static constexpr size_t mantissa_width = explicit_mantissa_width + 1;
-
- static constexpr u32 implicit_leading_bit = u32(1) << explicit_mantissa_width;
- static constexpr u32 sign_mask = 0x8000;
- static constexpr u32 exponent_mask = 0x7C00;
- static constexpr u32 mantissa_mask = 0x3FF;
- static constexpr u32 mantissa_msb = 0x200;
-
- static constexpr int exponent_min = -14;
- static constexpr int exponent_max = 15;
- static constexpr int exponent_bias = 15;
-
- static constexpr u16 Zero(bool sign) {
- return sign ? static_cast<u16>(sign_mask) : u16{0};
- }
-
- static constexpr u16 Infinity(bool sign) {
- return static_cast<u16>(exponent_mask | Zero(sign));
- }
-
- static constexpr u16 MaxNormal(bool sign) {
- return static_cast<u16>((exponent_mask - 1) | Zero(sign));
- }
-
- static constexpr u16 DefaultNaN() {
- return static_cast<u16>(exponent_mask | (u32(1) << (explicit_mantissa_width - 1)));
- }
-};
-
-template<>
-struct FPInfo<u32> {
- static constexpr size_t total_width = 32;
- static constexpr size_t exponent_width = 8;
- static constexpr size_t explicit_mantissa_width = 23;
- static constexpr size_t mantissa_width = explicit_mantissa_width + 1;
-
- static constexpr u32 implicit_leading_bit = u32(1) << explicit_mantissa_width;
- static constexpr u32 sign_mask = 0x80000000;
- static constexpr u32 exponent_mask = 0x7F800000;
- static constexpr u32 mantissa_mask = 0x007FFFFF;
- static constexpr u32 mantissa_msb = 0x00400000;
-
- static constexpr int exponent_min = -126;
- static constexpr int exponent_max = 127;
- static constexpr int exponent_bias = 127;
-
- static constexpr u32 Zero(bool sign) {
- return sign ? sign_mask : 0;
- }
-
- static constexpr u32 Infinity(bool sign) {
- return exponent_mask | Zero(sign);
- }
-
- static constexpr u32 MaxNormal(bool sign) {
- return (exponent_mask - 1) | Zero(sign);
- }
-
- static constexpr u32 DefaultNaN() {
- return exponent_mask | (u32(1) << (explicit_mantissa_width - 1));
- }
-};
-
-template<>
-struct FPInfo<u64> {
- static constexpr size_t total_width = 64;
- static constexpr size_t exponent_width = 11;
- static constexpr size_t explicit_mantissa_width = 52;
- static constexpr size_t mantissa_width = explicit_mantissa_width + 1;
-
- static constexpr u64 implicit_leading_bit = u64(1) << explicit_mantissa_width;
- static constexpr u64 sign_mask = 0x8000'0000'0000'0000;
- static constexpr u64 exponent_mask = 0x7FF0'0000'0000'0000;
- static constexpr u64 mantissa_mask = 0x000F'FFFF'FFFF'FFFF;
- static constexpr u64 mantissa_msb = 0x0008'0000'0000'0000;
-
- static constexpr int exponent_min = -1022;
- static constexpr int exponent_max = 1023;
- static constexpr int exponent_bias = 1023;
-
- static constexpr u64 Zero(bool sign) {
- return sign ? sign_mask : 0;
- }
-
- static constexpr u64 Infinity(bool sign) {
- return exponent_mask | Zero(sign);
- }
-
- static constexpr u64 MaxNormal(bool sign) {
- return (exponent_mask - 1) | Zero(sign);
- }
-
- static constexpr u64 DefaultNaN() {
- return exponent_mask | (u64(1) << (explicit_mantissa_width - 1));
- }
-};
-
-/// value = (sign ? -1 : +1) * 2^exponent * value
-/// @note We do not handle denormals. Denormals will static_assert.
-template<typename FPT, bool sign, int exponent, FPT value>
-constexpr FPT FPValue() {
- if constexpr (value == 0) {
- return FPInfo<FPT>::Zero(sign);
- }
-
- constexpr int point_position = static_cast<int>(FPInfo<FPT>::explicit_mantissa_width);
- constexpr int highest_bit = mcl::bit::highest_set_bit(value);
- constexpr int offset = point_position - highest_bit;
- constexpr int normalized_exponent = exponent - offset + point_position;
- static_assert(offset >= 0);
- static_assert(normalized_exponent >= FPInfo<FPT>::exponent_min && normalized_exponent <= FPInfo<FPT>::exponent_max);
-
- constexpr FPT mantissa = (value << offset) & FPInfo<FPT>::mantissa_mask;
- constexpr FPT biased_exponent = static_cast<FPT>(normalized_exponent + FPInfo<FPT>::exponent_bias);
- return FPT(FPInfo<FPT>::Zero(sign) | mantissa | (biased_exponent << FPInfo<FPT>::explicit_mantissa_width));
-}
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/mantissa_util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/mantissa_util.h
deleted file mode 100644
index 31be52f7..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/mantissa_util.h
+++ /dev/null
@@ -1,47 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/bitsizeof.hpp>
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::FP {
-
-enum class ResidualError {
- Zero,
- LessThanHalf,
- Half,
- GreaterThanHalf,
-};
-
-inline ResidualError ResidualErrorOnRightShift(u64 mantissa, int shift_amount) {
- if (shift_amount <= 0 || mantissa == 0) {
- return ResidualError::Zero;
- }
-
- if (shift_amount > static_cast<int>(mcl::bitsizeof<u64>)) {
- return mcl::bit::most_significant_bit(mantissa) ? ResidualError::GreaterThanHalf : ResidualError::LessThanHalf;
- }
-
- const size_t half_bit_position = static_cast<size_t>(shift_amount - 1);
- const u64 half = static_cast<u64>(1) << half_bit_position;
- const u64 error_mask = mcl::bit::ones<u64>(static_cast<size_t>(shift_amount));
- const u64 error = mantissa & error_mask;
-
- if (error == 0) {
- return ResidualError::Zero;
- }
- if (error < half) {
- return ResidualError::LessThanHalf;
- }
- if (error == half) {
- return ResidualError::Half;
- }
- return ResidualError::GreaterThanHalf;
-}
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op.h
deleted file mode 100644
index b30ff39c..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include "dynarmic/common/fp/op/FPCompare.h"
-#include "dynarmic/common/fp/op/FPConvert.h"
-#include "dynarmic/common/fp/op/FPMulAdd.h"
-#include "dynarmic/common/fp/op/FPRSqrtEstimate.h"
-#include "dynarmic/common/fp/op/FPRSqrtStepFused.h"
-#include "dynarmic/common/fp/op/FPRecipEstimate.h"
-#include "dynarmic/common/fp/op/FPRecipExponent.h"
-#include "dynarmic/common/fp/op/FPRecipStepFused.h"
-#include "dynarmic/common/fp/op/FPRoundInt.h"
-#include "dynarmic/common/fp/op/FPToFixed.h"
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPCompare.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPCompare.h
deleted file mode 100644
index e0d5ca03..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPCompare.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2019 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-template<typename FPT>
-bool FPCompareEQ(FPT lhs, FPT rhs, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPConvert.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPConvert.h
deleted file mode 100644
index 0fea22e4..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPConvert.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2019 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-enum class RoundingMode;
-
-template<typename FPT_TO, typename FPT_FROM>
-FPT_TO FPConvert(FPT_FROM op, FPCR fpcr, RoundingMode rounding_mode, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPMulAdd.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPMulAdd.h
deleted file mode 100644
index 8e0a16cd..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPMulAdd.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-template<typename FPT>
-FPT FPMulAdd(FPT addend, FPT op1, FPT op2, FPCR fpcr, FPSR& fpsr);
-
-template<typename FPT>
-FPT FPMulSub(FPT minuend, FPT op1, FPT op2, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPNeg.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPNeg.h
deleted file mode 100644
index 4f172a59..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPNeg.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include "dynarmic/common/fp/info.h"
-
-namespace Dynarmic::FP {
-
-template<typename FPT>
-constexpr FPT FPNeg(FPT op) {
- return op ^ FPInfo<FPT>::sign_mask;
-}
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPRSqrtEstimate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPRSqrtEstimate.h
deleted file mode 100644
index f51be1e8..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPRSqrtEstimate.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-template<typename FPT>
-FPT FPRSqrtEstimate(FPT op, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPRSqrtStepFused.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPRSqrtStepFused.h
deleted file mode 100644
index 384a7592..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPRSqrtStepFused.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-template<typename FPT>
-FPT FPRSqrtStepFused(FPT op1, FPT op2, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPRecipEstimate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPRecipEstimate.h
deleted file mode 100644
index eaf6fee5..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPRecipEstimate.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-template<typename FPT>
-FPT FPRecipEstimate(FPT op, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPRecipExponent.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPRecipExponent.h
deleted file mode 100644
index 63ff3530..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPRecipExponent.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2019 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-template<typename FPT>
-FPT FPRecipExponent(FPT op, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPRecipStepFused.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPRecipStepFused.h
deleted file mode 100644
index abe447b5..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPRecipStepFused.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-template<typename FPT>
-FPT FPRecipStepFused(FPT op1, FPT op2, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPRoundInt.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPRoundInt.h
deleted file mode 100644
index e326627c..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPRoundInt.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-enum class RoundingMode;
-
-template<typename FPT>
-u64 FPRoundInt(FPT op, FPCR fpcr, RoundingMode rounding, bool exact, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPToFixed.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPToFixed.h
deleted file mode 100644
index 53a95283..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/op/FPToFixed.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-enum class RoundingMode;
-
-template<typename FPT>
-u64 FPToFixed(size_t ibits, FPT op, size_t fbits, bool unsigned_, FPCR fpcr, RoundingMode rounding, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/process_exception.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/process_exception.h
deleted file mode 100644
index 436a9daa..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/process_exception.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-enum class FPExc {
- InvalidOp,
- DivideByZero,
- Overflow,
- Underflow,
- Inexact,
- InputDenorm,
-};
-
-void FPProcessException(FPExc exception, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/process_nan.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/process_nan.h
deleted file mode 100644
index 331b7943..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/process_nan.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-enum class FPType;
-
-template<typename FPT>
-FPT FPProcessNaN(FPType type, FPT op, FPCR fpcr, FPSR& fpsr);
-
-template<typename FPT>
-std::optional<FPT> FPProcessNaNs(FPType type1, FPType type2, FPT op1, FPT op2, FPCR fpcr, FPSR& fpsr);
-
-template<typename FPT>
-std::optional<FPT> FPProcessNaNs3(FPType type1, FPType type2, FPType type3, FPT op1, FPT op2, FPT op3, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/rounding_mode.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/rounding_mode.h
deleted file mode 100644
index fcf36f61..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/rounding_mode.h
+++ /dev/null
@@ -1,27 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-/// Ordering of first four values is important as they correspond to bits in FPCR.
-enum class RoundingMode {
- /// Round to nearest floating point. If there is a tie, round to nearest even digit in required position.
- ToNearest_TieEven,
- /// Round up towards positive infinity.
- TowardsPlusInfinity,
- /// Round downwards towards negative infinity.
- TowardsMinusInfinity,
- /// Truncate towards zero.
- TowardsZero,
- /// Round to nearest floating point. If there is a tie, round away from zero.
- ToNearest_TieAwayFromZero,
- /// Von Neumann rounding (as modified by Brent). Also known as sticky rounding.
- /// Set the least significant bit to 1 if the result is not exact.
- ToOdd,
-};
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/unpacked.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/unpacked.h
deleted file mode 100644
index 77f33d89..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/unpacked.h
+++ /dev/null
@@ -1,90 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <tuple>
-
-#include <mcl/bit/bit_count.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/common/fp/fpcr.h"
-
-namespace Dynarmic::FP {
-
-class FPSR;
-enum class RoundingMode;
-
-enum class FPType {
- Nonzero,
- Zero,
- Infinity,
- QNaN,
- SNaN,
-};
-
-constexpr size_t normalized_point_position = 62;
-
-/// value = (sign ? -1 : +1) * mantissa/(2^62) * 2^exponent
-/// 63rd bit of mantissa is always set (unless value is zero)
-struct FPUnpacked {
- bool sign;
- int exponent;
- u64 mantissa;
-};
-
-inline bool operator==(const FPUnpacked& a, const FPUnpacked& b) {
- return std::tie(a.sign, a.exponent, a.mantissa) == std::tie(b.sign, b.exponent, b.mantissa);
-}
-
-/// return value = (sign ? -1 : +1) * value * 2^exponent
-constexpr FPUnpacked ToNormalized(bool sign, int exponent, u64 value) {
- if (value == 0) {
- return {sign, 0, 0};
- }
-
- const int highest_bit = mcl::bit::highest_set_bit(value);
- const int offset = static_cast<int>(normalized_point_position) - highest_bit;
- value <<= offset;
- exponent -= offset - static_cast<int>(normalized_point_position);
- return {sign, exponent, value};
-}
-
-template<typename FPT>
-std::tuple<FPType, bool, FPUnpacked> FPUnpackBase(FPT op, FPCR fpcr, FPSR& fpsr);
-
-template<typename FPT>
-std::tuple<FPType, bool, FPUnpacked> FPUnpack(FPT op, FPCR fpcr, FPSR& fpsr) {
- fpcr.AHP(false);
- return FPUnpackBase(op, fpcr, fpsr);
-}
-
-template<typename FPT>
-std::tuple<FPType, bool, FPUnpacked> FPUnpackCV(FPT op, FPCR fpcr, FPSR& fpsr) {
- fpcr.FZ16(false);
- return FPUnpackBase(op, fpcr, fpsr);
-}
-
-template<typename FPT>
-FPT FPRoundBase(FPUnpacked op, FPCR fpcr, RoundingMode rounding, FPSR& fpsr);
-
-template<typename FPT>
-FPT FPRound(FPUnpacked op, FPCR fpcr, RoundingMode rounding, FPSR& fpsr) {
- fpcr.AHP(false);
- return FPRoundBase<FPT>(op, fpcr, rounding, fpsr);
-}
-
-template<typename FPT>
-FPT FPRoundCV(FPUnpacked op, FPCR fpcr, RoundingMode rounding, FPSR& fpsr) {
- fpcr.FZ16(false);
- return FPRoundBase<FPT>(op, fpcr, rounding, fpsr);
-}
-
-template<typename FPT>
-FPT FPRound(FPUnpacked op, FPCR fpcr, FPSR& fpsr) {
- return FPRound<FPT>(op, fpcr, fpcr.RMode(), fpsr);
-}
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/util.h
deleted file mode 100644
index fda34e3e..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/fp/util.h
+++ /dev/null
@@ -1,99 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-
-#include "dynarmic/common/fp/fpcr.h"
-#include "dynarmic/common/fp/info.h"
-
-namespace Dynarmic::FP {
-
-/// Is floating point value a zero?
-template<typename FPT>
-inline bool IsZero(FPT value, FPCR fpcr) {
- if (fpcr.FZ()) {
- return (value & FPInfo<FPT>::exponent_mask) == 0;
- }
- return (value & ~FPInfo<FPT>::sign_mask) == 0;
-}
-
-/// Is floating point value an infinity?
-template<typename FPT>
-constexpr bool IsInf(FPT value) {
- return (value & ~FPInfo<FPT>::sign_mask) == FPInfo<FPT>::Infinity(false);
-}
-
-/// Is floating point value a QNaN?
-template<typename FPT>
-constexpr bool IsQNaN(FPT value) {
- constexpr FPT qnan_bits = FPInfo<FPT>::exponent_mask | FPInfo<FPT>::mantissa_msb;
- return (value & qnan_bits) == qnan_bits;
-}
-
-/// Is floating point value a SNaN?
-template<typename FPT>
-constexpr bool IsSNaN(FPT value) {
- constexpr FPT qnan_bits = FPInfo<FPT>::exponent_mask | FPInfo<FPT>::mantissa_msb;
- constexpr FPT snan_bits = FPInfo<FPT>::exponent_mask;
- return (value & qnan_bits) == snan_bits && (value & FPInfo<FPT>::mantissa_mask) != 0;
-}
-
-/// Is floating point value a NaN?
-template<typename FPT>
-constexpr bool IsNaN(FPT value) {
- return IsQNaN(value) || IsSNaN(value);
-}
-
-/// Given a single argument, return the NaN value which would be returned by an ARM processor.
-/// If the argument isn't a NaN, returns std::nullopt.
-template<typename FPT>
-constexpr std::optional<FPT> ProcessNaNs(FPT a) {
- if (IsSNaN(a)) {
- return a | FPInfo<FPT>::mantissa_msb;
- } else if (IsQNaN(a)) {
- return a;
- }
- return std::nullopt;
-}
-
-/// Given a pair of arguments, return the NaN value which would be returned by an ARM processor.
-/// If neither argument is a NaN, returns std::nullopt.
-template<typename FPT>
-constexpr std::optional<FPT> ProcessNaNs(FPT a, FPT b) {
- if (IsSNaN(a)) {
- return a | FPInfo<FPT>::mantissa_msb;
- } else if (IsSNaN(b)) {
- return b | FPInfo<FPT>::mantissa_msb;
- } else if (IsQNaN(a)) {
- return a;
- } else if (IsQNaN(b)) {
- return b;
- }
- return std::nullopt;
-}
-
-/// Given three arguments, return the NaN value which would be returned by an ARM processor.
-/// If none of the arguments is a NaN, returns std::nullopt.
-template<typename FPT>
-constexpr std::optional<FPT> ProcessNaNs(FPT a, FPT b, FPT c) {
- if (IsSNaN(a)) {
- return a | FPInfo<FPT>::mantissa_msb;
- } else if (IsSNaN(b)) {
- return b | FPInfo<FPT>::mantissa_msb;
- } else if (IsSNaN(c)) {
- return c | FPInfo<FPT>::mantissa_msb;
- } else if (IsQNaN(a)) {
- return a;
- } else if (IsQNaN(b)) {
- return b;
- } else if (IsQNaN(c)) {
- return c;
- }
- return std::nullopt;
-}
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/llvm_disassemble.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/llvm_disassemble.h
deleted file mode 100644
index 56de791a..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/llvm_disassemble.h
+++ /dev/null
@@ -1,18 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Common {
-
-std::string DisassembleX64(const void* pos, const void* end);
-std::string DisassembleAArch32(bool is_thumb, u32 pc, const u8* instructions, size_t length);
-std::string DisassembleAArch64(u32 instruction, u64 pc = 0);
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/lut_from_list.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/lut_from_list.h
deleted file mode 100644
index ed9e3dc0..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/lut_from_list.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <initializer_list>
-#include <map>
-#include <type_traits>
-
-#include <mcl/mp/metafunction/apply.hpp>
-#include <mcl/mp/typelist/list.hpp>
-#include <mcl/type_traits/is_instance_of_template.hpp>
-
-#ifdef _MSC_VER
-# include <mcl/mp/typelist/head.hpp>
-#endif
-
-namespace Dynarmic::Common {
-
-template<typename Function, typename... Values>
-inline auto GenerateLookupTableFromList(Function f, mcl::mp::list<Values...>) {
-#ifdef _MSC_VER
- using PairT = std::invoke_result_t<Function, mcl::mp::head<mcl::mp::list<Values...>>>;
-#else
- using PairT = std::common_type_t<std::invoke_result_t<Function, Values>...>;
-#endif
- using MapT = mcl::mp::apply<std::map, PairT>;
-
- static_assert(mcl::is_instance_of_template_v<std::pair, PairT>);
-
- const std::initializer_list<PairT> pair_array{f(Values{})...};
- return MapT(pair_array.begin(), pair_array.end());
-}
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/math_util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/math_util.h
deleted file mode 100644
index 5c1f784c..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/math_util.h
+++ /dev/null
@@ -1,47 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <utility>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Common {
-
-/**
- * This function is a workaround for a bug in MSVC 19.12 where fold expressions
- * do not work when the /permissive- flag is enabled.
- */
-template<typename T, typename... Ts>
-constexpr T Sum(T first, Ts&&... rest) {
- if constexpr (sizeof...(rest) == 0) {
- return first;
- } else {
- return first + Sum(std::forward<Ts>(rest)...);
- }
-}
-
-/**
- * Input is a u0.9 fixed point number. Only values in [0.5, 1.0) are valid.
- * Output is a u0.8 fixed point number, with an implied 1 prefixed.
- * i.e.: The output is a value in [1.0, 2.0).
- *
- * @see RecipEstimate() within the ARMv8 architecture reference manual
- * for a general overview of the requirements of the algorithm.
- */
-u8 RecipEstimate(u64 a);
-
-/**
- * Input is a u0.9 fixed point number. Only values in [0.25, 1.0) are valid.
- * Output is a u0.8 fixed point number, with an implied 1 prefixed.
- * i.e.: The output is a value in [1.0, 2.0).
- *
- * @see RecipSqrtEstimate() within the ARMv8 architecture reference manual
- * for a general overview of the requirements of the algorithm.
- */
-u8 RecipSqrtEstimate(u64 a);
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/memory_pool.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/memory_pool.h
deleted file mode 100644
index 1cbdd909..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/memory_pool.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstddef>
-#include <vector>
-
-namespace Dynarmic::Common {
-
-class Pool {
-public:
- /**
- * @param object_size Byte-size of objects to construct
- * @param initial_pool_size Number of objects to have per slab
- */
- Pool(size_t object_size, size_t initial_pool_size);
- ~Pool();
-
- Pool(const Pool&) = delete;
- Pool(Pool&&) = delete;
-
- Pool& operator=(const Pool&) = delete;
- Pool& operator=(Pool&&) = delete;
-
- /// Returns a pointer to an `object_size`-bytes block of memory.
- void* Alloc();
-
-private:
- // Allocates a completely new memory slab.
- // Used when an entirely new slab is needed
- // due the current one running out of usable space.
- void AllocateNewSlab();
-
- size_t object_size;
- size_t slab_size;
- char* current_slab;
- char* current_ptr;
- size_t remaining;
- std::vector<char*> slabs;
-};
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/safe_ops.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/safe_ops.h
deleted file mode 100644
index aef31347..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/safe_ops.h
+++ /dev/null
@@ -1,115 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <type_traits>
-
-#include <mcl/bitsizeof.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/common/u128.h"
-
-namespace Dynarmic::Safe {
-
-template<typename T>
-T LogicalShiftLeft(T value, int shift_amount);
-template<typename T>
-T LogicalShiftRight(T value, int shift_amount);
-template<typename T>
-T ArithmeticShiftLeft(T value, int shift_amount);
-template<typename T>
-T ArithmeticShiftRight(T value, int shift_amount);
-
-template<typename T>
-T LogicalShiftLeft(T value, int shift_amount) {
- static_assert(std::is_integral_v<T>);
-
- if (shift_amount >= static_cast<int>(mcl::bitsizeof<T>)) {
- return 0;
- }
-
- if (shift_amount < 0) {
- return LogicalShiftRight(value, -shift_amount);
- }
-
- auto unsigned_value = static_cast<std::make_unsigned_t<T>>(value);
- return static_cast<T>(unsigned_value << shift_amount);
-}
-
-template<>
-inline u128 LogicalShiftLeft(u128 value, int shift_amount) {
- return value << shift_amount;
-}
-
-template<typename T>
-T LogicalShiftRight(T value, int shift_amount) {
- static_assert(std::is_integral_v<T>);
-
- if (shift_amount >= static_cast<int>(mcl::bitsizeof<T>)) {
- return 0;
- }
-
- if (shift_amount < 0) {
- return LogicalShiftLeft(value, -shift_amount);
- }
-
- auto unsigned_value = static_cast<std::make_unsigned_t<T>>(value);
- return static_cast<T>(unsigned_value >> shift_amount);
-}
-
-template<>
-inline u128 LogicalShiftRight(u128 value, int shift_amount) {
- return value >> shift_amount;
-}
-
-template<typename T>
-T LogicalShiftRightDouble(T top, T bottom, int shift_amount) {
- return LogicalShiftLeft(top, int(mcl::bitsizeof<T>) - shift_amount) | LogicalShiftRight(bottom, shift_amount);
-}
-
-template<typename T>
-T ArithmeticShiftLeft(T value, int shift_amount) {
- static_assert(std::is_integral_v<T>);
-
- if (shift_amount >= static_cast<int>(mcl::bitsizeof<T>)) {
- return 0;
- }
-
- if (shift_amount < 0) {
- return ArithmeticShiftRight(value, -shift_amount);
- }
-
- auto unsigned_value = static_cast<std::make_unsigned_t<T>>(value);
- return static_cast<T>(unsigned_value << shift_amount);
-}
-
-template<typename T>
-T ArithmeticShiftRight(T value, int shift_amount) {
- static_assert(std::is_integral_v<T>);
-
- if (shift_amount >= static_cast<int>(mcl::bitsizeof<T>)) {
- return mcl::bit::most_significant_bit(value) ? ~static_cast<T>(0) : 0;
- }
-
- if (shift_amount < 0) {
- return ArithmeticShiftLeft(value, -shift_amount);
- }
-
- auto signed_value = static_cast<std::make_signed_t<T>>(value);
- return static_cast<T>(signed_value >> shift_amount);
-}
-
-template<typename T>
-T ArithmeticShiftRightDouble(T top, T bottom, int shift_amount) {
- return ArithmeticShiftLeft(top, int(mcl::bitsizeof<T>) - shift_amount) | LogicalShiftRight(bottom, shift_amount);
-}
-
-template<typename T>
-T Negate(T value) {
- return static_cast<T>(~static_cast<std::uintmax_t>(value) + 1);
-}
-
-} // namespace Dynarmic::Safe
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/spin_lock.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/spin_lock.h
deleted file mode 100644
index f653704d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/spin_lock.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic {
-
-struct SpinLock {
- void Lock();
- void Unlock();
-
- volatile int storage = 0;
-};
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/spin_lock_arm64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/spin_lock_arm64.h
deleted file mode 100644
index c0a86bfe..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/spin_lock_arm64.h
+++ /dev/null
@@ -1,15 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <oaknut/oaknut.hpp>
-
-namespace Dynarmic {
-
-void EmitSpinLockLock(oaknut::CodeGenerator& code, oaknut::XReg ptr);
-void EmitSpinLockUnlock(oaknut::CodeGenerator& code, oaknut::XReg ptr);
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/spin_lock_x64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/spin_lock_x64.h
deleted file mode 100644
index df6a3d74..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/spin_lock_x64.h
+++ /dev/null
@@ -1,15 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <xbyak/xbyak.h>
-
-namespace Dynarmic {
-
-void EmitSpinLockLock(Xbyak::CodeGenerator& code, Xbyak::Reg64 ptr, Xbyak::Reg32 tmp);
-void EmitSpinLockUnlock(Xbyak::CodeGenerator& code, Xbyak::Reg64 ptr, Xbyak::Reg32 tmp);
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/string_util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/string_util.h
deleted file mode 100644
index 900b3aad..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/string_util.h
+++ /dev/null
@@ -1,15 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::Common {
-
-template<typename T>
-constexpr char SignToChar(T value) {
- return value >= 0 ? '+' : '-';
-}
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/u128.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/u128.h
deleted file mode 100644
index f6df1ae6..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/u128.h
+++ /dev/null
@@ -1,99 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <tuple>
-#include <type_traits>
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/bitsizeof.hpp>
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic {
-
-struct u128 {
- u128() = default;
- u128(const u128&) = default;
- u128(u128&&) = default;
- u128& operator=(const u128&) = default;
- u128& operator=(u128&&) = default;
-
- u128(u64 lower_, u64 upper_)
- : lower(lower_), upper(upper_) {}
-
- template<typename T>
- /* implicit */ u128(T value)
- : lower(value), upper(0) {
- static_assert(std::is_integral_v<T>);
- static_assert(mcl::bitsizeof<T> <= mcl::bitsizeof<u64>);
- }
-
- u64 lower = 0;
- u64 upper = 0;
-
- template<size_t bit_position>
- bool Bit() const {
- static_assert(bit_position < 128);
- if constexpr (bit_position < 64) {
- return mcl::bit::get_bit<bit_position>(lower);
- } else {
- return mcl::bit::get_bit<bit_position - 64>(upper);
- }
- }
-};
-
-static_assert(mcl::bitsizeof<u128> == 128);
-static_assert(std::is_standard_layout_v<u128>);
-static_assert(std::is_trivially_copyable_v<u128>);
-
-u128 Multiply64To128(u64 a, u64 b);
-
-inline u128 operator+(u128 a, u128 b) {
- u128 result;
- result.lower = a.lower + b.lower;
- result.upper = a.upper + b.upper + (a.lower > result.lower);
- return result;
-}
-
-inline u128 operator-(u128 a, u128 b) {
- u128 result;
- result.lower = a.lower - b.lower;
- result.upper = a.upper - b.upper - (a.lower < result.lower);
- return result;
-}
-
-inline bool operator<(u128 a, u128 b) {
- return std::tie(a.upper, a.lower) < std::tie(b.upper, b.lower);
-}
-
-inline bool operator>(u128 a, u128 b) {
- return operator<(b, a);
-}
-
-inline bool operator<=(u128 a, u128 b) {
- return !operator>(a, b);
-}
-
-inline bool operator>=(u128 a, u128 b) {
- return !operator<(a, b);
-}
-
-inline bool operator==(u128 a, u128 b) {
- return std::tie(a.upper, a.lower) == std::tie(b.upper, b.lower);
-}
-
-inline bool operator!=(u128 a, u128 b) {
- return !operator==(a, b);
-}
-
-u128 operator<<(u128 operand, int amount);
-u128 operator>>(u128 operand, int amount);
-
-/// LSB is a "sticky-bit".
-/// If a 1 is shifted off, the LSB would be set.
-u128 StickyLogicalShiftRight(u128 operand, int amount);
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/variant_util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/variant_util.h
deleted file mode 100644
index 4dd7f671..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/variant_util.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <boost/variant.hpp>
-
-namespace Dynarmic::Common {
-namespace detail {
-
-template<typename ReturnT, typename Lambda>
-struct VariantVisitor : boost::static_visitor<ReturnT>
- , Lambda {
- VariantVisitor(Lambda&& lambda)
- : Lambda(std::move(lambda)) {}
-
- using Lambda::operator();
-};
-
-} // namespace detail
-
-template<typename ReturnT, typename Variant, typename Lambda>
-inline ReturnT VisitVariant(Variant&& variant, Lambda&& lambda) {
- return boost::apply_visitor(detail::VariantVisitor<ReturnT, Lambda>(std::move(lambda)), variant);
-}
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/x64_disassemble.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/x64_disassemble.h
deleted file mode 100644
index 03c511bf..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/common/x64_disassemble.h
+++ /dev/null
@@ -1,21 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2021 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string>
-#include <vector>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Common {
-
-void DumpDisassembledX64(const void* ptr, size_t size);
-/**
- * Disassemble `size' bytes from `ptr' and return the disassembled lines as a vector
- * of strings.
- */
-std::vector<std::string> DisassembleX64(const void* ptr, size_t size);
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/FPSCR.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/FPSCR.h
deleted file mode 100644
index 28414e9f..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/FPSCR.h
+++ /dev/null
@@ -1,191 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/common/fp/rounding_mode.h"
-
-namespace Dynarmic::A32 {
-
-/**
- * Representation of the Floating-Point Status and Control Register.
- */
-class FPSCR final {
-public:
- FPSCR() = default;
- FPSCR(const FPSCR&) = default;
- FPSCR(FPSCR&&) = default;
- explicit FPSCR(u32 data)
- : value{data & mask} {}
-
- FPSCR& operator=(const FPSCR&) = default;
- FPSCR& operator=(FPSCR&&) = default;
- FPSCR& operator=(u32 data) {
- value = data & mask;
- return *this;
- }
-
- /// Negative condition flag.
- bool N() const {
- return mcl::bit::get_bit<31>(value);
- }
-
- /// Zero condition flag.
- bool Z() const {
- return mcl::bit::get_bit<30>(value);
- }
-
- /// Carry condition flag.
- bool C() const {
- return mcl::bit::get_bit<29>(value);
- }
-
- /// Overflow condition flag.
- bool V() const {
- return mcl::bit::get_bit<28>(value);
- }
-
- /// Cumulative saturation flag.
- bool QC() const {
- return mcl::bit::get_bit<27>(value);
- }
-
- /// Alternate half-precision control flag.
- bool AHP() const {
- return mcl::bit::get_bit<26>(value);
- }
-
- /// Default NaN mode control bit.
- bool DN() const {
- return mcl::bit::get_bit<25>(value);
- }
-
- /// Flush-to-zero mode control bit.
- bool FTZ() const {
- return mcl::bit::get_bit<24>(value);
- }
-
- /// Rounding mode control field.
- FP::RoundingMode RMode() const {
- return static_cast<FP::RoundingMode>(mcl::bit::get_bits<22, 23>(value));
- }
-
- /// Indicates the stride of a vector.
- std::optional<size_t> Stride() const {
- switch (mcl::bit::get_bits<20, 21>(value)) {
- case 0b00:
- return 1;
- case 0b11:
- return 2;
- default:
- return std::nullopt;
- }
- }
-
- /// Indicates the length of a vector.
- size_t Len() const {
- return mcl::bit::get_bits<16, 18>(value) + 1;
- }
-
- /// Input denormal exception trap enable flag.
- bool IDE() const {
- return mcl::bit::get_bit<15>(value);
- }
-
- /// Inexact exception trap enable flag.
- bool IXE() const {
- return mcl::bit::get_bit<12>(value);
- }
-
- /// Underflow exception trap enable flag.
- bool UFE() const {
- return mcl::bit::get_bit<11>(value);
- }
-
- /// Overflow exception trap enable flag.
- bool OFE() const {
- return mcl::bit::get_bit<10>(value);
- }
-
- /// Division by zero exception trap enable flag.
- bool DZE() const {
- return mcl::bit::get_bit<9>(value);
- }
-
- /// Invalid operation exception trap enable flag.
- bool IOE() const {
- return mcl::bit::get_bit<8>(value);
- }
-
- /// Input denormal cumulative exception bit.
- bool IDC() const {
- return mcl::bit::get_bit<7>(value);
- }
-
- /// Inexact cumulative exception bit.
- bool IXC() const {
- return mcl::bit::get_bit<4>(value);
- }
-
- /// Underflow cumulative exception bit.
- bool UFC() const {
- return mcl::bit::get_bit<3>(value);
- }
-
- /// Overflow cumulative exception bit.
- bool OFC() const {
- return mcl::bit::get_bit<2>(value);
- }
-
- /// Division by zero cumulative exception bit.
- bool DZC() const {
- return mcl::bit::get_bit<1>(value);
- }
-
- /// Invalid operation cumulative exception bit.
- bool IOC() const {
- return mcl::bit::get_bit<0>(value);
- }
-
- /**
- * Whether or not the FPSCR indicates RunFast mode.
- *
- * RunFast mode is enabled when:
- * - Flush-to-zero is enabled
- * - Default NaNs are enabled.
- * - All exception enable bits are cleared.
- */
- bool InRunFastMode() const {
- constexpr u32 runfast_mask = 0x03001F00;
- constexpr u32 expected = 0x03000000;
-
- return (value & runfast_mask) == expected;
- }
-
- /// Gets the underlying raw value within the FPSCR.
- u32 Value() const {
- return value;
- }
-
-private:
- // Bits 5-6, 13-14, and 19 are reserved.
- static constexpr u32 mask = 0xFFF79F9F;
- u32 value = 0;
-};
-
-inline bool operator==(FPSCR lhs, FPSCR rhs) {
- return lhs.Value() == rhs.Value();
-}
-
-inline bool operator!=(FPSCR lhs, FPSCR rhs) {
- return !operator==(lhs, rhs);
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/ITState.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/ITState.h
deleted file mode 100644
index ae69fa1e..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/ITState.h
+++ /dev/null
@@ -1,64 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2019 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/ir/cond.h"
-
-namespace Dynarmic::A32 {
-
-class ITState final {
-public:
- ITState() = default;
- explicit ITState(u8 data)
- : value(data) {}
-
- ITState& operator=(u8 data) {
- value = data;
- return *this;
- }
-
- IR::Cond Cond() const {
- if (value == 0b00000000) {
- return IR::Cond::AL;
- }
- return static_cast<IR::Cond>(mcl::bit::get_bits<4, 7>(value));
- }
-
- bool IsInITBlock() const {
- return mcl::bit::get_bits<0, 3>(value) != 0b0000;
- }
-
- bool IsLastInITBlock() const {
- return mcl::bit::get_bits<0, 3>(value) == 0b1000;
- }
-
- ITState Advance() const {
- if (mcl::bit::get_bits<0, 2>(value) == 0b000) {
- return ITState{0b00000000};
- }
- return ITState{mcl::bit::set_bits<0, 4>(value, static_cast<u8>(mcl::bit::get_bits<0, 4>(value) << 1))};
- }
-
- u8 Value() const {
- return value;
- }
-
-private:
- u8 value = 0;
-};
-
-inline bool operator==(ITState lhs, ITState rhs) {
- return lhs.Value() == rhs.Value();
-}
-
-inline bool operator!=(ITState lhs, ITState rhs) {
- return !operator==(lhs, rhs);
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/PSR.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/PSR.h
deleted file mode 100644
index 9af78eaa..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/PSR.h
+++ /dev/null
@@ -1,224 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/A32/ITState.h"
-
-namespace Dynarmic::A32 {
-
-/**
- * Program Status Register
- *
- * | Bit(s) | Description |
- * |:-------:|:----------------------------------------------|
- * | N | Negative |
- * | Z | Zero |
- * | C | Carry |
- * | V | Overflow |
- * | Q | Sticky overflow for DSP-oriented instructions |
- * | IT[1:0] | Lower two bits of the If-Then execution state |
- * | J | Jazelle bit |
- * | GE | Greater-than or Equal |
- * | IT[7:2] | Upper six bits of the If-Then execution state |
- * | E | Endian (0 is little endian, 1 is big endian) |
- * | A | Imprecise data abort (disables them when set) |
- * | I | IRQ interrupts (disabled when set) |
- * | F | FIQ interrupts (disabled when set) |
- * | T | Thumb bit |
- * | M | Current processor mode |
- */
-class PSR final {
-public:
- /// Valid processor modes that may be indicated.
- enum class Mode : u32 {
- User = 0b10000,
- FIQ = 0b10001,
- IRQ = 0b10010,
- Supervisor = 0b10011,
- Monitor = 0b10110,
- Abort = 0b10111,
- Hypervisor = 0b11010,
- Undefined = 0b11011,
- System = 0b11111
- };
-
- /// Instruction sets that may be signified through a PSR.
- enum class InstructionSet {
- ARM,
- Jazelle,
- Thumb,
- ThumbEE
- };
-
- PSR() = default;
- explicit PSR(u32 data)
- : value{data & mask} {}
-
- PSR& operator=(u32 data) {
- value = data & mask;
- return *this;
- }
-
- bool N() const {
- return mcl::bit::get_bit<31>(value);
- }
- void N(bool set) {
- value = mcl::bit::set_bit<31>(value, set);
- }
-
- bool Z() const {
- return mcl::bit::get_bit<30>(value);
- }
- void Z(bool set) {
- value = mcl::bit::set_bit<30>(value, set);
- }
-
- bool C() const {
- return mcl::bit::get_bit<29>(value);
- }
- void C(bool set) {
- value = mcl::bit::set_bit<29>(value, set);
- }
-
- bool V() const {
- return mcl::bit::get_bit<28>(value);
- }
- void V(bool set) {
- value = mcl::bit::set_bit<28>(value, set);
- }
-
- bool Q() const {
- return mcl::bit::get_bit<27>(value);
- }
- void Q(bool set) {
- value = mcl::bit::set_bit<27>(value, set);
- }
-
- bool J() const {
- return mcl::bit::get_bit<24>(value);
- }
- void J(bool set) {
- value = mcl::bit::set_bit<24>(value, set);
- }
-
- u32 GE() const {
- return mcl::bit::get_bits<16, 19>(value);
- }
- void GE(u32 data) {
- value = mcl::bit::set_bits<16, 19>(value, data);
- }
-
- ITState IT() const {
- return ITState{static_cast<u8>((value & 0x6000000) >> 25 | (value & 0xFC00) >> 8)};
- }
- void IT(ITState it_state) {
- const u32 data = it_state.Value();
- value = (value & ~0x000FC00) | (data & 0b11111100) << 8;
- value = (value & ~0x6000000) | (data & 0b00000011) << 25;
- }
-
- bool E() const {
- return mcl::bit::get_bit<9>(value);
- }
- void E(bool set) {
- value = mcl::bit::set_bit<9>(value, set);
- }
-
- bool A() const {
- return mcl::bit::get_bit<8>(value);
- }
- void A(bool set) {
- value = mcl::bit::set_bit<8>(value, set);
- }
-
- bool I() const {
- return mcl::bit::get_bit<7>(value);
- }
- void I(bool set) {
- value = mcl::bit::set_bit<7>(value, set);
- }
-
- bool F() const {
- return mcl::bit::get_bit<6>(value);
- }
- void F(bool set) {
- value = mcl::bit::set_bit<6>(value, set);
- }
-
- bool T() const {
- return mcl::bit::get_bit<5>(value);
- }
- void T(bool set) {
- value = mcl::bit::set_bit<5>(value, set);
- }
-
- Mode M() const {
- return static_cast<Mode>(mcl::bit::get_bits<0, 4>(value));
- }
- void M(Mode mode) {
- value = mcl::bit::set_bits<0, 4>(value, static_cast<u32>(mode));
- }
-
- u32 Value() const {
- return value;
- }
-
- InstructionSet CurrentInstructionSet() const {
- const bool j_bit = J();
- const bool t_bit = T();
-
- if (j_bit && t_bit)
- return InstructionSet::ThumbEE;
-
- if (t_bit)
- return InstructionSet::Thumb;
-
- if (j_bit)
- return InstructionSet::Jazelle;
-
- return InstructionSet::ARM;
- }
-
- void CurrentInstructionSet(InstructionSet instruction_set) {
- switch (instruction_set) {
- case InstructionSet::ARM:
- T(false);
- J(false);
- break;
- case InstructionSet::Jazelle:
- T(false);
- J(true);
- break;
- case InstructionSet::Thumb:
- T(true);
- J(false);
- break;
- case InstructionSet::ThumbEE:
- T(true);
- J(true);
- break;
- }
- }
-
-private:
- // Bits 20-23 are reserved and should be zero.
- static constexpr u32 mask = 0xFF0FFFFF;
-
- u32 value = 0;
-};
-
-inline bool operator==(PSR lhs, PSR rhs) {
- return lhs.Value() == rhs.Value();
-}
-
-inline bool operator!=(PSR lhs, PSR rhs) {
- return !operator==(lhs, rhs);
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/a32_ir_emitter.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/a32_ir_emitter.h
deleted file mode 100644
index 9fde4f87..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/a32_ir_emitter.h
+++ /dev/null
@@ -1,116 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <utility>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/A32/a32_location_descriptor.h"
-#include "dynarmic/ir/ir_emitter.h"
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::A32 {
-
-enum class ArchVersion;
-enum class CoprocReg;
-enum class Exception;
-enum class ExtReg;
-enum class Reg;
-
-/**
- * Convenience class to construct a basic block of the intermediate representation.
- * `block` is the resulting block.
- * The user of this class updates `current_location` as appropriate.
- */
-class IREmitter : public IR::IREmitter {
-public:
- IREmitter(IR::Block& block, LocationDescriptor descriptor, ArchVersion arch_version)
- : IR::IREmitter(block), current_location(descriptor), arch_version(arch_version) {}
-
- LocationDescriptor current_location;
-
- size_t ArchVersion() const;
-
- u32 PC() const;
- u32 AlignPC(size_t alignment) const;
-
- IR::U32 GetRegister(Reg source_reg);
- IR::U32U64 GetExtendedRegister(ExtReg source_reg);
- IR::U128 GetVector(ExtReg source_reg);
- void SetRegister(Reg dest_reg, const IR::U32& value);
- void SetExtendedRegister(ExtReg dest_reg, const IR::U32U64& value);
- void SetVector(ExtReg dest_reg, const IR::U128& value);
-
- void ALUWritePC(const IR::U32& value);
- void BranchWritePC(const IR::U32& value);
- void BXWritePC(const IR::U32& value);
- void LoadWritePC(const IR::U32& value);
- void UpdateUpperLocationDescriptor();
-
- void CallSupervisor(const IR::U32& value);
- void ExceptionRaised(Exception exception);
-
- IR::U32 GetCpsr();
- void SetCpsr(const IR::U32& value);
- void SetCpsrNZCV(const IR::NZCV& value);
- void SetCpsrNZCVRaw(const IR::U32& value);
- void SetCpsrNZCVQ(const IR::U32& value);
- void SetCheckBit(const IR::U1& value);
- IR::U1 GetOverflowFrom(const IR::Value& value);
- IR::U1 GetCFlag();
- void OrQFlag(const IR::U1& value);
- IR::U32 GetGEFlags();
- void SetGEFlags(const IR::U32& value);
- void SetGEFlagsCompressed(const IR::U32& value);
-
- IR::NZCV NZFrom(const IR::Value& value);
- void SetCpsrNZ(const IR::NZCV& nz);
- void SetCpsrNZC(const IR::NZCV& nz, const IR::U1& c);
-
- void DataSynchronizationBarrier();
- void DataMemoryBarrier();
- void InstructionSynchronizationBarrier();
-
- IR::U32 GetFpscr();
- void SetFpscr(const IR::U32& new_fpscr);
- IR::U32 GetFpscrNZCV();
- void SetFpscrNZCV(const IR::NZCV& new_fpscr_nzcv);
-
- void ClearExclusive();
- IR::UAny ReadMemory(size_t bitsize, const IR::U32& vaddr, IR::AccType acc_type);
- IR::U8 ReadMemory8(const IR::U32& vaddr, IR::AccType acc_type);
- IR::U16 ReadMemory16(const IR::U32& vaddr, IR::AccType acc_type);
- IR::U32 ReadMemory32(const IR::U32& vaddr, IR::AccType acc_type);
- IR::U64 ReadMemory64(const IR::U32& vaddr, IR::AccType acc_type);
- IR::U8 ExclusiveReadMemory8(const IR::U32& vaddr, IR::AccType acc_type);
- IR::U16 ExclusiveReadMemory16(const IR::U32& vaddr, IR::AccType acc_type);
- IR::U32 ExclusiveReadMemory32(const IR::U32& vaddr, IR::AccType acc_type);
- std::pair<IR::U32, IR::U32> ExclusiveReadMemory64(const IR::U32& vaddr, IR::AccType acc_type);
- void WriteMemory(size_t bitsize, const IR::U32& vaddr, const IR::UAny& value, IR::AccType acc_type);
- void WriteMemory8(const IR::U32& vaddr, const IR::U8& value, IR::AccType acc_type);
- void WriteMemory16(const IR::U32& vaddr, const IR::U16& value, IR::AccType acc_type);
- void WriteMemory32(const IR::U32& vaddr, const IR::U32& value, IR::AccType acc_type);
- void WriteMemory64(const IR::U32& vaddr, const IR::U64& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory8(const IR::U32& vaddr, const IR::U8& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory16(const IR::U32& vaddr, const IR::U16& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory32(const IR::U32& vaddr, const IR::U32& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory64(const IR::U32& vaddr, const IR::U32& value_lo, const IR::U32& value_hi, IR::AccType acc_type);
-
- void CoprocInternalOperation(size_t coproc_no, bool two, size_t opc1, CoprocReg CRd, CoprocReg CRn, CoprocReg CRm, size_t opc2);
- void CoprocSendOneWord(size_t coproc_no, bool two, size_t opc1, CoprocReg CRn, CoprocReg CRm, size_t opc2, const IR::U32& word);
- void CoprocSendTwoWords(size_t coproc_no, bool two, size_t opc, CoprocReg CRm, const IR::U32& word1, const IR::U32& word2);
- IR::U32 CoprocGetOneWord(size_t coproc_no, bool two, size_t opc1, CoprocReg CRn, CoprocReg CRm, size_t opc2);
- IR::U64 CoprocGetTwoWords(size_t coproc_no, bool two, size_t opc, CoprocReg CRm);
- void CoprocLoadWords(size_t coproc_no, bool two, bool long_transfer, CoprocReg CRd, const IR::U32& address, bool has_option, u8 option);
- void CoprocStoreWords(size_t coproc_no, bool two, bool long_transfer, CoprocReg CRd, const IR::U32& address, bool has_option, u8 option);
-
-private:
- enum ArchVersion arch_version;
- IR::U64 ImmCurrentLocationDescriptor();
-};
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/a32_location_descriptor.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/a32_location_descriptor.h
deleted file mode 100644
index c53e75d4..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/a32_location_descriptor.h
+++ /dev/null
@@ -1,162 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <functional>
-#include <string>
-#include <tuple>
-
-#include <fmt/format.h>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/A32/FPSCR.h"
-#include "dynarmic/frontend/A32/ITState.h"
-#include "dynarmic/frontend/A32/PSR.h"
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace Dynarmic::A32 {
-
-/**
- * LocationDescriptor describes the location of a basic block.
- * The location is not solely based on the PC because other flags influence the way
- * instructions should be translated. The CPSR.T flag is most notable since it
- * tells us if the processor is in Thumb or Arm mode.
- */
-class LocationDescriptor {
-public:
- // Indicates bits that should be preserved within descriptors.
- static constexpr u32 CPSR_MODE_MASK = 0x0600FE20;
- static constexpr u32 FPSCR_MODE_MASK = 0x07F70000;
-
- LocationDescriptor(u32 arm_pc, PSR cpsr, FPSCR fpscr, bool single_stepping = false)
- : arm_pc(arm_pc)
- , cpsr(cpsr.Value() & CPSR_MODE_MASK)
- , fpscr(fpscr.Value() & FPSCR_MODE_MASK)
- , single_stepping(single_stepping) {}
-
- explicit LocationDescriptor(const IR::LocationDescriptor& o) {
- arm_pc = static_cast<u32>(o.Value());
- cpsr.T((o.Value() >> 32) & 1);
- cpsr.E((o.Value() >> 32) & 2);
- fpscr = (o.Value() >> 32) & FPSCR_MODE_MASK;
- cpsr.IT(ITState{static_cast<u8>(o.Value() >> 40)});
- single_stepping = (o.Value() >> 32) & 4;
- }
-
- u32 PC() const { return arm_pc; }
- bool TFlag() const { return cpsr.T(); }
- bool EFlag() const { return cpsr.E(); }
- ITState IT() const { return cpsr.IT(); }
-
- A32::PSR CPSR() const { return cpsr; }
- A32::FPSCR FPSCR() const { return fpscr; }
-
- bool SingleStepping() const { return single_stepping; }
-
- bool operator==(const LocationDescriptor& o) const {
- return std::tie(arm_pc, cpsr, fpscr, single_stepping) == std::tie(o.arm_pc, o.cpsr, o.fpscr, o.single_stepping);
- }
-
- bool operator!=(const LocationDescriptor& o) const {
- return !operator==(o);
- }
-
- LocationDescriptor SetPC(u32 new_arm_pc) const {
- return LocationDescriptor(new_arm_pc, cpsr, fpscr, single_stepping);
- }
-
- LocationDescriptor AdvancePC(int amount) const {
- return LocationDescriptor(static_cast<u32>(arm_pc + amount), cpsr, fpscr, single_stepping);
- }
-
- LocationDescriptor SetTFlag(bool new_tflag) const {
- PSR new_cpsr = cpsr;
- new_cpsr.T(new_tflag);
-
- return LocationDescriptor(arm_pc, new_cpsr, fpscr, single_stepping);
- }
-
- LocationDescriptor SetEFlag(bool new_eflag) const {
- PSR new_cpsr = cpsr;
- new_cpsr.E(new_eflag);
-
- return LocationDescriptor(arm_pc, new_cpsr, fpscr, single_stepping);
- }
-
- LocationDescriptor SetFPSCR(u32 new_fpscr) const {
- return LocationDescriptor(arm_pc, cpsr, A32::FPSCR{new_fpscr & FPSCR_MODE_MASK}, single_stepping);
- }
-
- LocationDescriptor SetIT(ITState new_it) const {
- PSR new_cpsr = cpsr;
- new_cpsr.IT(new_it);
-
- return LocationDescriptor(arm_pc, new_cpsr, fpscr, single_stepping);
- }
-
- LocationDescriptor AdvanceIT() const {
- return SetIT(IT().Advance());
- }
-
- LocationDescriptor SetSingleStepping(bool new_single_stepping) const {
- return LocationDescriptor(arm_pc, cpsr, fpscr, new_single_stepping);
- }
-
- u64 UniqueHash() const noexcept {
- // This value MUST BE UNIQUE.
- // This calculation has to match up with EmitX64::EmitTerminalPopRSBHint
- const u64 pc_u64 = arm_pc;
- const u64 fpscr_u64 = fpscr.Value();
- const u64 t_u64 = cpsr.T() ? 1 : 0;
- const u64 e_u64 = cpsr.E() ? 2 : 0;
- const u64 single_stepping_u64 = single_stepping ? 4 : 0;
- const u64 it_u64 = u64(cpsr.IT().Value()) << 8;
- const u64 upper = (fpscr_u64 | t_u64 | e_u64 | single_stepping_u64 | it_u64) << 32;
- return pc_u64 | upper;
- }
-
- operator IR::LocationDescriptor() const {
- return IR::LocationDescriptor{UniqueHash()};
- }
-
-private:
- u32 arm_pc; ///< Current program counter value.
- PSR cpsr; ///< Current program status register.
- A32::FPSCR fpscr; ///< Floating point status control register.
- bool single_stepping;
-};
-
-/**
- * Provides a string representation of a LocationDescriptor.
- *
- * @param descriptor The descriptor to get a string representation of
- */
-std::string ToString(const LocationDescriptor& descriptor);
-
-} // namespace Dynarmic::A32
-
-namespace std {
-template<>
-struct less<Dynarmic::A32::LocationDescriptor> {
- bool operator()(const Dynarmic::A32::LocationDescriptor& x, const Dynarmic::A32::LocationDescriptor& y) const noexcept {
- return x.UniqueHash() < y.UniqueHash();
- }
-};
-template<>
-struct hash<Dynarmic::A32::LocationDescriptor> {
- size_t operator()(const Dynarmic::A32::LocationDescriptor& x) const noexcept {
- return std::hash<u64>()(x.UniqueHash());
- }
-};
-} // namespace std
-
-template<>
-struct fmt::formatter<Dynarmic::A32::LocationDescriptor> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::A32::LocationDescriptor descriptor, FormatContext& ctx) const {
- return formatter<std::string>::format(Dynarmic::A32::ToString(descriptor), ctx);
- }
-};
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/a32_types.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/a32_types.h
deleted file mode 100644
index 6f56bea5..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/a32_types.h
+++ /dev/null
@@ -1,177 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string>
-#include <utility>
-
-#include <fmt/format.h>
-#include <mcl/assert.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/interface/A32/coprocessor_util.h"
-#include "dynarmic/ir/cond.h"
-
-namespace Dynarmic::A32 {
-
-using Cond = IR::Cond;
-
-enum class Reg {
- R0,
- R1,
- R2,
- R3,
- R4,
- R5,
- R6,
- R7,
- R8,
- R9,
- R10,
- R11,
- R12,
- R13,
- R14,
- R15,
- SP = R13,
- LR = R14,
- PC = R15,
- INVALID_REG = 99
-};
-
-enum class ExtReg {
- // clang-format off
- S0, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14, S15, S16, S17, S18, S19, S20, S21, S22, S23, S24, S25, S26, S27, S28, S29, S30, S31,
- D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23, D24, D25, D26, D27, D28, D29, D30, D31,
- Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10, Q11, Q12, Q13, Q14, Q15
- // clang-format on
-};
-
-using RegList = u16;
-
-enum class ShiftType {
- LSL,
- LSR,
- ASR,
- ROR ///< RRX falls under this too
-};
-
-enum class SignExtendRotation {
- ROR_0, ///< ROR #0 or omitted
- ROR_8, ///< ROR #8
- ROR_16, ///< ROR #16
- ROR_24 ///< ROR #24
-};
-
-const char* CondToString(Cond cond, bool explicit_al = false);
-const char* RegToString(Reg reg);
-const char* ExtRegToString(ExtReg reg);
-const char* CoprocRegToString(CoprocReg reg);
-std::string RegListToString(RegList reg_list);
-
-constexpr bool IsSingleExtReg(ExtReg reg) {
- return reg >= ExtReg::S0 && reg <= ExtReg::S31;
-}
-
-constexpr bool IsDoubleExtReg(ExtReg reg) {
- return reg >= ExtReg::D0 && reg <= ExtReg::D31;
-}
-
-constexpr bool IsQuadExtReg(ExtReg reg) {
- return reg >= ExtReg::Q0 && reg <= ExtReg::Q15;
-}
-
-inline size_t RegNumber(Reg reg) {
- ASSERT(reg != Reg::INVALID_REG);
- return static_cast<size_t>(reg);
-}
-
-inline size_t RegNumber(ExtReg reg) {
- if (IsSingleExtReg(reg)) {
- return static_cast<size_t>(reg) - static_cast<size_t>(ExtReg::S0);
- }
-
- if (IsDoubleExtReg(reg)) {
- return static_cast<size_t>(reg) - static_cast<size_t>(ExtReg::D0);
- }
-
- if (IsQuadExtReg(reg)) {
- return static_cast<size_t>(reg) - static_cast<size_t>(ExtReg::Q0);
- }
-
- ASSERT_FALSE("Invalid extended register");
-}
-
-inline Reg operator+(Reg reg, size_t number) {
- const size_t new_reg = RegNumber(reg) + number;
- ASSERT(new_reg <= 15);
-
- return static_cast<Reg>(new_reg);
-}
-
-inline ExtReg operator+(ExtReg reg, size_t number) {
- const auto new_reg = static_cast<ExtReg>(static_cast<size_t>(reg) + number);
-
- ASSERT((IsSingleExtReg(reg) && IsSingleExtReg(new_reg))
- || (IsDoubleExtReg(reg) && IsDoubleExtReg(new_reg))
- || (IsQuadExtReg(reg) && IsQuadExtReg(new_reg)));
-
- return new_reg;
-}
-
-inline ExtReg ToExtRegQ(size_t base, bool bit) {
- return ExtReg::Q0 + ((base >> 1) + (bit ? 8 : 0));
-}
-
-inline ExtReg ToExtRegD(size_t base, bool bit) {
- return ExtReg::D0 + (base + (bit ? 16 : 0));
-}
-
-inline ExtReg ToExtRegS(size_t base, bool bit) {
- return ExtReg::S0 + ((base << 1) + (bit ? 1 : 0));
-}
-
-inline ExtReg ToExtReg(bool sz, size_t base, bool bit) {
- return sz ? ToExtRegD(base, bit) : ToExtRegS(base, bit);
-}
-
-inline ExtReg ToVector(bool Q, size_t base, bool bit) {
- return Q ? ToExtRegQ(base, bit) : ToExtRegD(base, bit);
-}
-
-} // namespace Dynarmic::A32
-
-template<>
-struct fmt::formatter<Dynarmic::A32::Reg> : fmt::formatter<const char*> {
- template<typename FormatContext>
- auto format(Dynarmic::A32::Reg reg, FormatContext& ctx) const {
- return formatter<const char*>::format(Dynarmic::A32::RegToString(reg), ctx);
- }
-};
-
-template<>
-struct fmt::formatter<Dynarmic::A32::ExtReg> : fmt::formatter<const char*> {
- template<typename FormatContext>
- auto format(Dynarmic::A32::ExtReg reg, FormatContext& ctx) const {
- return formatter<const char*>::format(Dynarmic::A32::ExtRegToString(reg), ctx);
- }
-};
-
-template<>
-struct fmt::formatter<Dynarmic::A32::CoprocReg> : fmt::formatter<const char*> {
- template<typename FormatContext>
- auto format(Dynarmic::A32::CoprocReg reg, FormatContext& ctx) const {
- return formatter<const char*>::format(Dynarmic::A32::CoprocRegToString(reg), ctx);
- }
-};
-
-template<>
-struct fmt::formatter<Dynarmic::A32::RegList> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::A32::RegList reg_list, FormatContext& ctx) const {
- return formatter<std::string>::format(Dynarmic::A32::RegListToString(reg_list), ctx);
- }
-};
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/arm.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/arm.h
deleted file mode 100644
index 16ae52e1..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/arm.h
+++ /dev/null
@@ -1,74 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- *
- * Original version of table by Lioncash.
- */
-
-#pragma once
-
-#include <algorithm>
-#include <functional>
-#include <optional>
-#include <vector>
-
-#include <mcl/bit/bit_count.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/decoder/decoder_detail.h"
-#include "dynarmic/frontend/decoder/matcher.h"
-
-namespace Dynarmic::A32 {
-
-template<typename Visitor>
-using ArmMatcher = Decoder::Matcher<Visitor, u32>;
-
-template<typename Visitor>
-using ArmDecodeTable = std::array<std::vector<ArmMatcher<Visitor>>, 0x1000>;
-
-namespace detail {
-inline size_t ToFastLookupIndexArm(u32 instruction) {
- return ((instruction >> 4) & 0x00F) | ((instruction >> 16) & 0xFF0);
-}
-} // namespace detail
-
-template<typename V>
-ArmDecodeTable<V> GetArmDecodeTable() {
- std::vector<ArmMatcher<V>> list = {
-
-#define INST(fn, name, bitstring) DYNARMIC_DECODER_GET_MATCHER(ArmMatcher, fn, name, Decoder::detail::StringToArray<32>(bitstring)),
-#include "./arm.inc"
-#undef INST
-
- };
-
- // If a matcher has more bits in its mask it is more specific, so it should come first.
- std::stable_sort(list.begin(), list.end(), [](const auto& matcher1, const auto& matcher2) {
- return mcl::bit::count_ones(matcher1.GetMask()) > mcl::bit::count_ones(matcher2.GetMask());
- });
-
- ArmDecodeTable<V> table{};
- for (size_t i = 0; i < table.size(); ++i) {
- for (auto matcher : list) {
- const auto expect = detail::ToFastLookupIndexArm(matcher.GetExpected());
- const auto mask = detail::ToFastLookupIndexArm(matcher.GetMask());
- if ((i & mask) == expect) {
- table[i].push_back(matcher);
- }
- }
- }
- return table;
-}
-
-template<typename V>
-std::optional<std::reference_wrapper<const ArmMatcher<V>>> DecodeArm(u32 instruction) {
- static const auto table = GetArmDecodeTable<V>();
-
- const auto matches_instruction = [instruction](const auto& matcher) { return matcher.Matches(instruction); };
-
- const auto& subtable = table[detail::ToFastLookupIndexArm(instruction)];
- auto iter = std::find_if(subtable.begin(), subtable.end(), matches_instruction);
- return iter != subtable.end() ? std::optional<std::reference_wrapper<const ArmMatcher<V>>>(*iter) : std::nullopt;
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/asimd.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/asimd.h
deleted file mode 100644
index cfcd28c6..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/asimd.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2020 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <algorithm>
-#include <functional>
-#include <optional>
-#include <set>
-#include <vector>
-
-#include <mcl/bit/bit_count.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/decoder/decoder_detail.h"
-#include "dynarmic/frontend/decoder/matcher.h"
-
-namespace Dynarmic::A32 {
-
-template<typename Visitor>
-using ASIMDMatcher = Decoder::Matcher<Visitor, u32>;
-
-template<typename V>
-std::vector<ASIMDMatcher<V>> GetASIMDDecodeTable() {
- std::vector<ASIMDMatcher<V>> table = {
-
-#define INST(fn, name, bitstring) DYNARMIC_DECODER_GET_MATCHER(ASIMDMatcher, fn, name, Decoder::detail::StringToArray<32>(bitstring)),
-#include "./asimd.inc"
-#undef INST
-
- };
-
- // Exceptions to the rule of thumb.
- const std::set<std::string> comes_first{
- "VBIC, VMOV, VMVN, VORR (immediate)",
- "VEXT",
- "VTBL",
- "VTBX",
- "VDUP (scalar)",
- };
- const std::set<std::string> comes_last{
- "VMLA (scalar)",
- "VMLAL (scalar)",
- "VQDMLAL/VQDMLSL (scalar)",
- "VMUL (scalar)",
- "VMULL (scalar)",
- "VQDMULL (scalar)",
- "VQDMULH (scalar)",
- "VQRDMULH (scalar)",
- };
- const auto sort_begin = std::stable_partition(table.begin(), table.end(), [&](const auto& matcher) {
- return comes_first.count(matcher.GetName()) > 0;
- });
- const auto sort_end = std::stable_partition(table.begin(), table.end(), [&](const auto& matcher) {
- return comes_last.count(matcher.GetName()) == 0;
- });
-
- // If a matcher has more bits in its mask it is more specific, so it should come first.
- std::stable_sort(sort_begin, sort_end, [](const auto& matcher1, const auto& matcher2) {
- return mcl::bit::count_ones(matcher1.GetMask()) > mcl::bit::count_ones(matcher2.GetMask());
- });
-
- return table;
-}
-
-template<typename V>
-std::optional<std::reference_wrapper<const ASIMDMatcher<V>>> DecodeASIMD(u32 instruction) {
- static const auto table = GetASIMDDecodeTable<V>();
-
- const auto matches_instruction = [instruction](const auto& matcher) { return matcher.Matches(instruction); };
-
- auto iter = std::find_if(table.begin(), table.end(), matches_instruction);
- return iter != table.end() ? std::optional<std::reference_wrapper<const ASIMDMatcher<V>>>(*iter) : std::nullopt;
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/thumb16.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/thumb16.h
deleted file mode 100644
index 6a4275f7..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/thumb16.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <algorithm>
-#include <functional>
-#include <optional>
-#include <vector>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/decoder/decoder_detail.h"
-#include "dynarmic/frontend/decoder/matcher.h"
-
-namespace Dynarmic::A32 {
-
-template<typename Visitor>
-using Thumb16Matcher = Decoder::Matcher<Visitor, u16>;
-
-template<typename V>
-std::optional<std::reference_wrapper<const Thumb16Matcher<V>>> DecodeThumb16(u16 instruction) {
- static const std::vector<Thumb16Matcher<V>> table = {
-
-#define INST(fn, name, bitstring) DYNARMIC_DECODER_GET_MATCHER(Thumb16Matcher, fn, name, Decoder::detail::StringToArray<16>(bitstring)),
-#include "./thumb16.inc"
-#undef INST
-
- };
-
- const auto matches_instruction = [instruction](const auto& matcher) { return matcher.Matches(instruction); };
-
- auto iter = std::find_if(table.begin(), table.end(), matches_instruction);
- return iter != table.end() ? std::optional<std::reference_wrapper<const Thumb16Matcher<V>>>(*iter) : std::nullopt;
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/thumb32.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/thumb32.h
deleted file mode 100644
index f3f4b3b9..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/thumb32.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <algorithm>
-#include <optional>
-#include <vector>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/decoder/decoder_detail.h"
-#include "dynarmic/frontend/decoder/matcher.h"
-
-namespace Dynarmic::A32 {
-
-template<typename Visitor>
-using Thumb32Matcher = Decoder::Matcher<Visitor, u32>;
-
-template<typename V>
-std::optional<std::reference_wrapper<const Thumb32Matcher<V>>> DecodeThumb32(u32 instruction) {
- static const std::vector<Thumb32Matcher<V>> table = {
-
-#define INST(fn, name, bitstring) DYNARMIC_DECODER_GET_MATCHER(Thumb32Matcher, fn, name, Decoder::detail::StringToArray<32>(bitstring)),
-#include "./thumb32.inc"
-#undef INST
-
- };
-
- const auto matches_instruction = [instruction](const auto& matcher) { return matcher.Matches(instruction); };
-
- auto iter = std::find_if(table.begin(), table.end(), matches_instruction);
- return iter != table.end() ? std::optional<std::reference_wrapper<const Thumb32Matcher<V>>>(*iter) : std::nullopt;
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/vfp.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/vfp.h
deleted file mode 100644
index f79a859b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/decoder/vfp.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2032 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <algorithm>
-#include <functional>
-#include <optional>
-#include <vector>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/decoder/decoder_detail.h"
-#include "dynarmic/frontend/decoder/matcher.h"
-
-namespace Dynarmic::A32 {
-
-template<typename Visitor>
-using VFPMatcher = Decoder::Matcher<Visitor, u32>;
-
-template<typename V>
-std::optional<std::reference_wrapper<const VFPMatcher<V>>> DecodeVFP(u32 instruction) {
- using Table = std::vector<VFPMatcher<V>>;
-
- static const struct Tables {
- Table unconditional;
- Table conditional;
- } tables = [] {
- Table list = {
-
-#define INST(fn, name, bitstring) DYNARMIC_DECODER_GET_MATCHER(VFPMatcher, fn, name, Decoder::detail::StringToArray<32>(bitstring)),
-#include "./vfp.inc"
-#undef INST
-
- };
-
- const auto division = std::stable_partition(list.begin(), list.end(), [&](const auto& matcher) {
- return (matcher.GetMask() & 0xF0000000) == 0xF0000000;
- });
-
- return Tables{
- Table{list.begin(), division},
- Table{division, list.end()},
- };
- }();
-
- const bool is_unconditional = (instruction & 0xF0000000) == 0xF0000000;
- const Table& table = is_unconditional ? tables.unconditional : tables.conditional;
-
- const auto matches_instruction = [instruction](const auto& matcher) { return matcher.Matches(instruction); };
-
- auto iter = std::find_if(table.begin(), table.end(), matches_instruction);
- return iter != table.end() ? std::optional<std::reference_wrapper<const VFPMatcher<V>>>(*iter) : std::nullopt;
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/disassembler/disassembler.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/disassembler/disassembler.h
deleted file mode 100644
index 6a61afde..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/disassembler/disassembler.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::A32 {
-
-std::string DisassembleArm(u32 instruction);
-std::string DisassembleThumb16(u16 instruction);
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/translate/a32_translate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/translate/a32_translate.h
deleted file mode 100644
index 0f2c3a12..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/translate/a32_translate.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/interface/A32/arch_version.h"
-
-namespace Dynarmic::IR {
-class Block;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic::A32 {
-
-class LocationDescriptor;
-struct TranslateCallbacks;
-
-struct TranslationOptions {
- ArchVersion arch_version;
-
- /// This changes what IR we emit when we translate an unpredictable instruction.
- /// If this is false, the ExceptionRaised IR instruction is emitted.
- /// If this is true, we define some behaviour for some instructions.
- bool define_unpredictable_behaviour = false;
-
- /// This changes what IR we emit when we translate a hint instruction.
- /// If this is false, we treat the instruction as a NOP.
- /// If this is true, we emit an ExceptionRaised instruction.
- bool hook_hint_instructions = true;
-};
-
-/**
- * This function translates instructions in memory into our intermediate representation.
- * @param descriptor The starting location of the basic block. Includes information like PC, Thumb state, &c.
- * @param tcb The callbacks we should use to read emulated memory.
- * @param options Configures how certain instructions are translated.
- * @return A translated basic block in the intermediate representation.
- */
-IR::Block Translate(LocationDescriptor descriptor, TranslateCallbacks* tcb, const TranslationOptions& options);
-
-/**
- * This function translates a single provided instruction into our intermediate representation.
- * @param block The block to append the IR for the instruction to.
- * @param descriptor The location of the instruction. Includes information like PC, Thumb state, &c.
- * @param instruction The instruction to translate.
- * @return The translated instruction translated to the intermediate representation.
- */
-bool TranslateSingleInstruction(IR::Block& block, LocationDescriptor descriptor, u32 instruction);
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/translate/conditional_state.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/translate/conditional_state.h
deleted file mode 100644
index 18c8b1cc..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/translate/conditional_state.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2020 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::IR {
-enum class Cond;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic::A32 {
-
-class IREmitter;
-struct TranslatorVisitor;
-
-enum class ConditionalState {
- /// We haven't met any conditional instructions yet.
- None,
- /// Current instruction is a conditional. This marks the end of this basic block.
- Break,
- /// This basic block is made up solely of conditional instructions.
- Translating,
- /// This basic block is made up of conditional instructions followed by unconditional instructions.
- Trailing,
-};
-
-bool CondCanContinue(ConditionalState cond_state, const A32::IREmitter& ir);
-bool IsConditionPassed(TranslatorVisitor& v, IR::Cond cond);
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/translate/impl/a32_translate_impl.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/translate/impl/a32_translate_impl.h
deleted file mode 100644
index 44ac2450..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/translate/impl/a32_translate_impl.h
+++ /dev/null
@@ -1,982 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/assert.hpp>
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/bit/rotate.hpp>
-
-#include "dynarmic/frontend/A32/a32_ir_emitter.h"
-#include "dynarmic/frontend/A32/a32_location_descriptor.h"
-#include "dynarmic/frontend/A32/a32_types.h"
-#include "dynarmic/frontend/A32/translate/a32_translate.h"
-#include "dynarmic/frontend/A32/translate/conditional_state.h"
-#include "dynarmic/frontend/imm.h"
-
-namespace Dynarmic::A32 {
-
-enum class Exception;
-
-struct TranslatorVisitor final {
- using instruction_return_type = bool;
-
- explicit TranslatorVisitor(IR::Block& block, LocationDescriptor descriptor, const TranslationOptions& options)
- : ir(block, descriptor, options.arch_version), options(options) {}
-
- A32::IREmitter ir;
- ConditionalState cond_state = ConditionalState::None;
- TranslationOptions options;
-
- size_t current_instruction_size;
-
- bool ArmConditionPassed(Cond cond);
- bool ThumbConditionPassed();
- bool VFPConditionPassed(Cond cond);
-
- bool InterpretThisInstruction();
- bool UnpredictableInstruction();
- bool UndefinedInstruction();
- bool DecodeError();
- bool RaiseException(Exception exception);
-
- struct ImmAndCarry {
- u32 imm32;
- IR::U1 carry;
- };
-
- ImmAndCarry ArmExpandImm_C(int rotate, Imm<8> imm8, IR::U1 carry_in) {
- u32 imm32 = imm8.ZeroExtend();
- auto carry_out = carry_in;
- if (rotate) {
- imm32 = mcl::bit::rotate_right<u32>(imm8.ZeroExtend(), rotate * 2);
- carry_out = ir.Imm1(mcl::bit::get_bit<31>(imm32));
- }
- return {imm32, carry_out};
- }
-
- u32 ArmExpandImm(int rotate, Imm<8> imm8) {
- return ArmExpandImm_C(rotate, imm8, ir.Imm1(0)).imm32;
- }
-
- ImmAndCarry ThumbExpandImm_C(Imm<1> i, Imm<3> imm3, Imm<8> imm8, IR::U1 carry_in) {
- const Imm<12> imm12 = concatenate(i, imm3, imm8);
- if (imm12.Bits<10, 11>() == 0) {
- const u32 imm32 = [&] {
- const u32 imm8 = imm12.Bits<0, 7>();
- switch (imm12.Bits<8, 9>()) {
- case 0b00:
- return imm8;
- case 0b01:
- return mcl::bit::replicate_element<u16, u32>(imm8);
- case 0b10:
- return mcl::bit::replicate_element<u16, u32>(imm8 << 8);
- case 0b11:
- return mcl::bit::replicate_element<u8, u32>(imm8);
- }
- UNREACHABLE();
- }();
- return {imm32, carry_in};
- }
- const u32 imm32 = mcl::bit::rotate_right<u32>((1 << 7) | imm12.Bits<0, 6>(), imm12.Bits<7, 11>());
- return {imm32, ir.Imm1(mcl::bit::get_bit<31>(imm32))};
- }
-
- u32 ThumbExpandImm(Imm<1> i, Imm<3> imm3, Imm<8> imm8) {
- return ThumbExpandImm_C(i, imm3, imm8, ir.Imm1(0)).imm32;
- }
-
- // Creates an immediate of the given value
- IR::UAny I(size_t bitsize, u64 value);
-
- IR::ResultAndCarry<IR::U32> EmitImmShift(IR::U32 value, ShiftType type, Imm<3> imm3, Imm<2> imm2, IR::U1 carry_in);
- IR::ResultAndCarry<IR::U32> EmitImmShift(IR::U32 value, ShiftType type, Imm<5> imm5, IR::U1 carry_in);
- IR::ResultAndCarry<IR::U32> EmitRegShift(IR::U32 value, ShiftType type, IR::U8 amount, IR::U1 carry_in);
- template<typename FnT>
- bool EmitVfpVectorOperation(bool sz, ExtReg d, ExtReg n, ExtReg m, const FnT& fn);
- template<typename FnT>
- bool EmitVfpVectorOperation(bool sz, ExtReg d, ExtReg m, const FnT& fn);
-
- // Barrier instructions
- bool arm_DMB(Imm<4> option);
- bool arm_DSB(Imm<4> option);
- bool arm_ISB(Imm<4> option);
-
- // Branch instructions
- bool arm_B(Cond cond, Imm<24> imm24);
- bool arm_BL(Cond cond, Imm<24> imm24);
- bool arm_BLX_imm(bool H, Imm<24> imm24);
- bool arm_BLX_reg(Cond cond, Reg m);
- bool arm_BX(Cond cond, Reg m);
- bool arm_BXJ(Cond cond, Reg m);
-
- // Coprocessor instructions
- bool arm_CDP(Cond cond, size_t opc1, CoprocReg CRn, CoprocReg CRd, size_t coproc_no, size_t opc2, CoprocReg CRm);
- bool arm_LDC(Cond cond, bool p, bool u, bool d, bool w, Reg n, CoprocReg CRd, size_t coproc_no, Imm<8> imm8);
- bool arm_MCR(Cond cond, size_t opc1, CoprocReg CRn, Reg t, size_t coproc_no, size_t opc2, CoprocReg CRm);
- bool arm_MCRR(Cond cond, Reg t2, Reg t, size_t coproc_no, size_t opc, CoprocReg CRm);
- bool arm_MRC(Cond cond, size_t opc1, CoprocReg CRn, Reg t, size_t coproc_no, size_t opc2, CoprocReg CRm);
- bool arm_MRRC(Cond cond, Reg t2, Reg t, size_t coproc_no, size_t opc, CoprocReg CRm);
- bool arm_STC(Cond cond, bool p, bool u, bool d, bool w, Reg n, CoprocReg CRd, size_t coproc_no, Imm<8> imm8);
-
- // CRC32 instructions
- bool arm_CRC32(Cond cond, Imm<2> sz, Reg n, Reg d, Reg m);
- bool arm_CRC32C(Cond cond, Imm<2> sz, Reg n, Reg d, Reg m);
-
- // Data processing instructions
- bool arm_ADC_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_ADC_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_ADC_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_ADD_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_ADD_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_ADD_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_AND_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_AND_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_AND_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_BIC_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_BIC_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_BIC_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_CMN_imm(Cond cond, Reg n, int rotate, Imm<8> imm8);
- bool arm_CMN_reg(Cond cond, Reg n, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_CMN_rsr(Cond cond, Reg n, Reg s, ShiftType shift, Reg m);
- bool arm_CMP_imm(Cond cond, Reg n, int rotate, Imm<8> imm8);
- bool arm_CMP_reg(Cond cond, Reg n, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_CMP_rsr(Cond cond, Reg n, Reg s, ShiftType shift, Reg m);
- bool arm_EOR_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_EOR_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_EOR_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_MOV_imm(Cond cond, bool S, Reg d, int rotate, Imm<8> imm8);
- bool arm_MOV_reg(Cond cond, bool S, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_MOV_rsr(Cond cond, bool S, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_MVN_imm(Cond cond, bool S, Reg d, int rotate, Imm<8> imm8);
- bool arm_MVN_reg(Cond cond, bool S, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_MVN_rsr(Cond cond, bool S, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_ORR_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_ORR_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_ORR_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_RSB_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_RSB_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_RSB_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_RSC_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_RSC_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_RSC_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_SBC_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_SBC_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_SBC_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_SUB_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_SUB_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_SUB_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_TEQ_imm(Cond cond, Reg n, int rotate, Imm<8> imm8);
- bool arm_TEQ_reg(Cond cond, Reg n, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_TEQ_rsr(Cond cond, Reg n, Reg s, ShiftType shift, Reg m);
- bool arm_TST_imm(Cond cond, Reg n, int rotate, Imm<8> imm8);
- bool arm_TST_reg(Cond cond, Reg n, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_TST_rsr(Cond cond, Reg n, Reg s, ShiftType shift, Reg m);
-
- // Exception generating instructions
- bool arm_BKPT(Cond cond, Imm<12> imm12, Imm<4> imm4);
- bool arm_SVC(Cond cond, Imm<24> imm24);
- bool arm_UDF();
-
- // Extension instructions
- bool arm_SXTAB(Cond cond, Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_SXTAB16(Cond cond, Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_SXTAH(Cond cond, Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_SXTB(Cond cond, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_SXTB16(Cond cond, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_SXTH(Cond cond, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_UXTAB(Cond cond, Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_UXTAB16(Cond cond, Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_UXTAH(Cond cond, Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_UXTB(Cond cond, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_UXTB16(Cond cond, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_UXTH(Cond cond, Reg d, SignExtendRotation rotate, Reg m);
-
- // Hint instructions
- bool arm_PLD_imm(bool add, bool R, Reg n, Imm<12> imm12);
- bool arm_PLD_reg(bool add, bool R, Reg n, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_SEV();
- bool arm_SEVL();
- bool arm_WFE();
- bool arm_WFI();
- bool arm_YIELD();
-
- // Load/Store
- bool arm_LDRBT();
- bool arm_LDRHT();
- bool arm_LDRSBT();
- bool arm_LDRSHT();
- bool arm_LDRT();
- bool arm_STRBT();
- bool arm_STRHT();
- bool arm_STRT();
- bool arm_LDR_lit(Cond cond, bool U, Reg t, Imm<12> imm12);
- bool arm_LDR_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg d, Imm<12> imm12);
- bool arm_LDR_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_LDRB_lit(Cond cond, bool U, Reg t, Imm<12> imm12);
- bool arm_LDRB_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<12> imm12);
- bool arm_LDRB_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_LDRD_lit(Cond cond, bool U, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRD_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRD_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg d, Reg m);
- bool arm_LDRH_lit(Cond cond, bool P, bool U, bool W, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRH_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRH_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg d, Reg m);
- bool arm_LDRSB_lit(Cond cond, bool U, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRSB_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRSB_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Reg m);
- bool arm_LDRSH_lit(Cond cond, bool U, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRSH_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRSH_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Reg m);
- bool arm_STR_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<12> imm12);
- bool arm_STR_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_STRB_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<12> imm12);
- bool arm_STRB_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_STRD_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_STRD_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Reg m);
- bool arm_STRH_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_STRH_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Reg m);
-
- // Load/Store multiple instructions
- bool arm_LDM(Cond cond, bool W, Reg n, RegList list);
- bool arm_LDMDA(Cond cond, bool W, Reg n, RegList list);
- bool arm_LDMDB(Cond cond, bool W, Reg n, RegList list);
- bool arm_LDMIB(Cond cond, bool W, Reg n, RegList list);
- bool arm_LDM_usr();
- bool arm_LDM_eret();
- bool arm_STM(Cond cond, bool W, Reg n, RegList list);
- bool arm_STMDA(Cond cond, bool W, Reg n, RegList list);
- bool arm_STMDB(Cond cond, bool W, Reg n, RegList list);
- bool arm_STMIB(Cond cond, bool W, Reg n, RegList list);
- bool arm_STM_usr();
-
- // Miscellaneous instructions
- bool arm_BFC(Cond cond, Imm<5> msb, Reg d, Imm<5> lsb);
- bool arm_BFI(Cond cond, Imm<5> msb, Reg d, Imm<5> lsb, Reg n);
- bool arm_CLZ(Cond cond, Reg d, Reg m);
- bool arm_MOVT(Cond cond, Imm<4> imm4, Reg d, Imm<12> imm12);
- bool arm_MOVW(Cond cond, Imm<4> imm4, Reg d, Imm<12> imm12);
- bool arm_NOP() { return true; }
- bool arm_RBIT(Cond cond, Reg d, Reg m);
- bool arm_SBFX(Cond cond, Imm<5> widthm1, Reg d, Imm<5> lsb, Reg n);
- bool arm_SEL(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UBFX(Cond cond, Imm<5> widthm1, Reg d, Imm<5> lsb, Reg n);
-
- // Unsigned sum of absolute difference functions
- bool arm_USAD8(Cond cond, Reg d, Reg m, Reg n);
- bool arm_USADA8(Cond cond, Reg d, Reg a, Reg m, Reg n);
-
- // Packing instructions
- bool arm_PKHBT(Cond cond, Reg n, Reg d, Imm<5> imm5, Reg m);
- bool arm_PKHTB(Cond cond, Reg n, Reg d, Imm<5> imm5, Reg m);
-
- // Reversal instructions
- bool arm_REV(Cond cond, Reg d, Reg m);
- bool arm_REV16(Cond cond, Reg d, Reg m);
- bool arm_REVSH(Cond cond, Reg d, Reg m);
-
- // Saturation instructions
- bool arm_SSAT(Cond cond, Imm<5> sat_imm, Reg d, Imm<5> imm5, bool sh, Reg n);
- bool arm_SSAT16(Cond cond, Imm<4> sat_imm, Reg d, Reg n);
- bool arm_USAT(Cond cond, Imm<5> sat_imm, Reg d, Imm<5> imm5, bool sh, Reg n);
- bool arm_USAT16(Cond cond, Imm<4> sat_imm, Reg d, Reg n);
-
- // Divide instructions
- bool arm_SDIV(Cond cond, Reg d, Reg m, Reg n);
- bool arm_UDIV(Cond cond, Reg d, Reg m, Reg n);
-
- // Multiply (Normal) instructions
- bool arm_MLA(Cond cond, bool S, Reg d, Reg a, Reg m, Reg n);
- bool arm_MLS(Cond cond, Reg d, Reg a, Reg m, Reg n);
- bool arm_MUL(Cond cond, bool S, Reg d, Reg m, Reg n);
-
- // Multiply (Long) instructions
- bool arm_SMLAL(Cond cond, bool S, Reg dHi, Reg dLo, Reg m, Reg n);
- bool arm_SMULL(Cond cond, bool S, Reg dHi, Reg dLo, Reg m, Reg n);
- bool arm_UMAAL(Cond cond, Reg dHi, Reg dLo, Reg m, Reg n);
- bool arm_UMLAL(Cond cond, bool S, Reg dHi, Reg dLo, Reg m, Reg n);
- bool arm_UMULL(Cond cond, bool S, Reg dHi, Reg dLo, Reg m, Reg n);
-
- // Multiply (Halfword) instructions
- bool arm_SMLALxy(Cond cond, Reg dHi, Reg dLo, Reg m, bool M, bool N, Reg n);
- bool arm_SMLAxy(Cond cond, Reg d, Reg a, Reg m, bool M, bool N, Reg n);
- bool arm_SMULxy(Cond cond, Reg d, Reg m, bool M, bool N, Reg n);
-
- // Multiply (word by halfword) instructions
- bool arm_SMLAWy(Cond cond, Reg d, Reg a, Reg m, bool M, Reg n);
- bool arm_SMULWy(Cond cond, Reg d, Reg m, bool M, Reg n);
-
- // Multiply (Most significant word) instructions
- bool arm_SMMLA(Cond cond, Reg d, Reg a, Reg m, bool R, Reg n);
- bool arm_SMMLS(Cond cond, Reg d, Reg a, Reg m, bool R, Reg n);
- bool arm_SMMUL(Cond cond, Reg d, Reg m, bool R, Reg n);
-
- // Multiply (Dual) instructions
- bool arm_SMLAD(Cond cond, Reg d, Reg a, Reg m, bool M, Reg n);
- bool arm_SMLALD(Cond cond, Reg dHi, Reg dLo, Reg m, bool M, Reg n);
- bool arm_SMLSD(Cond cond, Reg d, Reg a, Reg m, bool M, Reg n);
- bool arm_SMLSLD(Cond cond, Reg dHi, Reg dLo, Reg m, bool M, Reg n);
- bool arm_SMUAD(Cond cond, Reg d, Reg m, bool M, Reg n);
- bool arm_SMUSD(Cond cond, Reg d, Reg m, bool M, Reg n);
-
- // Parallel Add/Subtract (Modulo arithmetic) instructions
- bool arm_SADD8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SADD16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SASX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SSAX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SSUB8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SSUB16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UADD8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UADD16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UASX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_USAX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_USUB8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_USUB16(Cond cond, Reg n, Reg d, Reg m);
-
- // Parallel Add/Subtract (Saturating) instructions
- bool arm_QADD8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QADD16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QASX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QSAX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QSUB8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QSUB16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UQADD8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UQADD16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UQASX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UQSAX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UQSUB8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UQSUB16(Cond cond, Reg n, Reg d, Reg m);
-
- // Parallel Add/Subtract (Halving) instructions
- bool arm_SHADD8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SHADD16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SHASX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SHSAX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SHSUB8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SHSUB16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UHADD8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UHADD16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UHASX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UHSAX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UHSUB8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UHSUB16(Cond cond, Reg n, Reg d, Reg m);
-
- // Saturated Add/Subtract instructions
- bool arm_QADD(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QSUB(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QDADD(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QDSUB(Cond cond, Reg n, Reg d, Reg m);
-
- // Synchronization Primitive instructions
- bool arm_CLREX();
- bool arm_SWP(Cond cond, Reg n, Reg t, Reg t2);
- bool arm_SWPB(Cond cond, Reg n, Reg t, Reg t2);
- bool arm_STL(Cond cond, Reg n, Reg t);
- bool arm_STLEX(Cond cond, Reg n, Reg d, Reg t);
- bool arm_STREX(Cond cond, Reg n, Reg d, Reg t);
- bool arm_LDA(Cond cond, Reg n, Reg t);
- bool arm_LDAEX(Cond cond, Reg n, Reg t);
- bool arm_LDREX(Cond cond, Reg n, Reg t);
- bool arm_STLEXD(Cond cond, Reg n, Reg d, Reg t);
- bool arm_STREXD(Cond cond, Reg n, Reg d, Reg t);
- bool arm_LDAEXD(Cond cond, Reg n, Reg t);
- bool arm_LDREXD(Cond cond, Reg n, Reg t);
- bool arm_STLB(Cond cond, Reg n, Reg t);
- bool arm_STLEXB(Cond cond, Reg n, Reg d, Reg t);
- bool arm_STREXB(Cond cond, Reg n, Reg d, Reg t);
- bool arm_LDAB(Cond cond, Reg n, Reg t);
- bool arm_LDAEXB(Cond cond, Reg n, Reg t);
- bool arm_LDREXB(Cond cond, Reg n, Reg t);
- bool arm_STLH(Cond cond, Reg n, Reg t);
- bool arm_STLEXH(Cond cond, Reg n, Reg d, Reg t);
- bool arm_STREXH(Cond cond, Reg n, Reg d, Reg t);
- bool arm_LDAH(Cond cond, Reg n, Reg t);
- bool arm_LDAEXH(Cond cond, Reg n, Reg t);
- bool arm_LDREXH(Cond cond, Reg n, Reg t);
-
- // Status register access instructions
- bool arm_CPS();
- bool arm_MRS(Cond cond, Reg d);
- bool arm_MSR_imm(Cond cond, unsigned mask, int rotate, Imm<8> imm8);
- bool arm_MSR_reg(Cond cond, unsigned mask, Reg n);
- bool arm_RFE();
- bool arm_SETEND(bool E);
- bool arm_SRS();
-
- // thumb16
- bool thumb16_LSL_imm(Imm<5> imm5, Reg m, Reg d);
- bool thumb16_LSR_imm(Imm<5> imm5, Reg m, Reg d);
- bool thumb16_ASR_imm(Imm<5> imm5, Reg m, Reg d);
- bool thumb16_ADD_reg_t1(Reg m, Reg n, Reg d);
- bool thumb16_SUB_reg(Reg m, Reg n, Reg d);
- bool thumb16_ADD_imm_t1(Imm<3> imm3, Reg n, Reg d);
- bool thumb16_SUB_imm_t1(Imm<3> imm3, Reg n, Reg d);
- bool thumb16_MOV_imm(Reg d, Imm<8> imm8);
- bool thumb16_CMP_imm(Reg n, Imm<8> imm8);
- bool thumb16_ADD_imm_t2(Reg d_n, Imm<8> imm8);
- bool thumb16_SUB_imm_t2(Reg d_n, Imm<8> imm8);
- bool thumb16_AND_reg(Reg m, Reg d_n);
- bool thumb16_EOR_reg(Reg m, Reg d_n);
- bool thumb16_LSL_reg(Reg m, Reg d_n);
- bool thumb16_LSR_reg(Reg m, Reg d_n);
- bool thumb16_ASR_reg(Reg m, Reg d_n);
- bool thumb16_ADC_reg(Reg m, Reg d_n);
- bool thumb16_SBC_reg(Reg m, Reg d_n);
- bool thumb16_ROR_reg(Reg m, Reg d_n);
- bool thumb16_TST_reg(Reg m, Reg n);
- bool thumb16_RSB_imm(Reg n, Reg d);
- bool thumb16_CMP_reg_t1(Reg m, Reg n);
- bool thumb16_CMN_reg(Reg m, Reg n);
- bool thumb16_ORR_reg(Reg m, Reg d_n);
- bool thumb16_MUL_reg(Reg n, Reg d_m);
- bool thumb16_BIC_reg(Reg m, Reg d_n);
- bool thumb16_MVN_reg(Reg m, Reg d);
- bool thumb16_ADD_reg_t2(bool d_n_hi, Reg m, Reg d_n_lo);
- bool thumb16_CMP_reg_t2(bool n_hi, Reg m, Reg n_lo);
- bool thumb16_MOV_reg(bool d_hi, Reg m, Reg d_lo);
- bool thumb16_LDR_literal(Reg t, Imm<8> imm8);
- bool thumb16_STR_reg(Reg m, Reg n, Reg t);
- bool thumb16_STRH_reg(Reg m, Reg n, Reg t);
- bool thumb16_STRB_reg(Reg m, Reg n, Reg t);
- bool thumb16_LDRSB_reg(Reg m, Reg n, Reg t);
- bool thumb16_LDR_reg(Reg m, Reg n, Reg t);
- bool thumb16_LDRH_reg(Reg m, Reg n, Reg t);
- bool thumb16_LDRB_reg(Reg m, Reg n, Reg t);
- bool thumb16_LDRSH_reg(Reg m, Reg n, Reg t);
- bool thumb16_STR_imm_t1(Imm<5> imm5, Reg n, Reg t);
- bool thumb16_LDR_imm_t1(Imm<5> imm5, Reg n, Reg t);
- bool thumb16_STRB_imm(Imm<5> imm5, Reg n, Reg t);
- bool thumb16_LDRB_imm(Imm<5> imm5, Reg n, Reg t);
- bool thumb16_STRH_imm(Imm<5> imm5, Reg n, Reg t);
- bool thumb16_LDRH_imm(Imm<5> imm5, Reg n, Reg t);
- bool thumb16_STR_imm_t2(Reg t, Imm<8> imm8);
- bool thumb16_LDR_imm_t2(Reg t, Imm<8> imm8);
- bool thumb16_ADR(Reg d, Imm<8> imm8);
- bool thumb16_ADD_sp_t1(Reg d, Imm<8> imm8);
- bool thumb16_ADD_sp_t2(Imm<7> imm7);
- bool thumb16_SUB_sp(Imm<7> imm7);
- bool thumb16_SEV();
- bool thumb16_SEVL();
- bool thumb16_WFE();
- bool thumb16_WFI();
- bool thumb16_YIELD();
- bool thumb16_NOP();
- bool thumb16_IT(Imm<8> imm8);
- bool thumb16_SXTH(Reg m, Reg d);
- bool thumb16_SXTB(Reg m, Reg d);
- bool thumb16_UXTH(Reg m, Reg d);
- bool thumb16_UXTB(Reg m, Reg d);
- bool thumb16_PUSH(bool M, RegList reg_list);
- bool thumb16_POP(bool P, RegList reg_list);
- bool thumb16_SETEND(bool E);
- bool thumb16_CPS(bool, bool, bool, bool);
- bool thumb16_REV(Reg m, Reg d);
- bool thumb16_REV16(Reg m, Reg d);
- bool thumb16_REVSH(Reg m, Reg d);
- bool thumb16_BKPT(Imm<8> imm8);
- bool thumb16_STMIA(Reg n, RegList reg_list);
- bool thumb16_LDMIA(Reg n, RegList reg_list);
- bool thumb16_CBZ_CBNZ(bool nonzero, Imm<1> i, Imm<5> imm5, Reg n);
- bool thumb16_UDF();
- bool thumb16_BX(Reg m);
- bool thumb16_BLX_reg(Reg m);
- bool thumb16_SVC(Imm<8> imm8);
- bool thumb16_B_t1(Cond cond, Imm<8> imm8);
- bool thumb16_B_t2(Imm<11> imm11);
-
- // thumb32 load/store multiple instructions
- bool thumb32_LDMDB(bool W, Reg n, Imm<16> reg_list);
- bool thumb32_LDMIA(bool W, Reg n, Imm<16> reg_list);
- bool thumb32_POP(Imm<16> reg_list);
- bool thumb32_PUSH(Imm<15> reg_list);
- bool thumb32_STMIA(bool W, Reg n, Imm<15> reg_list);
- bool thumb32_STMDB(bool W, Reg n, Imm<15> reg_list);
-
- // thumb32 load/store dual, load/store exclusive, table branch instructions
- bool thumb32_LDA(Reg n, Reg t);
- bool thumb32_LDRD_imm_1(bool U, Reg n, Reg t, Reg t2, Imm<8> imm8);
- bool thumb32_LDRD_imm_2(bool U, bool W, Reg n, Reg t, Reg t2, Imm<8> imm8);
- bool thumb32_LDRD_lit_1(bool U, Reg t, Reg t2, Imm<8> imm8);
- bool thumb32_LDRD_lit_2(bool U, bool W, Reg t, Reg t2, Imm<8> imm8);
- bool thumb32_STRD_imm_1(bool U, Reg n, Reg t, Reg t2, Imm<8> imm8);
- bool thumb32_STRD_imm_2(bool U, bool W, Reg n, Reg t, Reg t2, Imm<8> imm8);
- bool thumb32_LDREX(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_LDREXD(Reg n, Reg t, Reg t2);
- bool thumb32_LDREXB(Reg n, Reg t);
- bool thumb32_LDREXH(Reg n, Reg t);
- bool thumb32_STL(Reg n, Reg t);
- bool thumb32_STREX(Reg n, Reg t, Reg d, Imm<8> imm8);
- bool thumb32_STREXB(Reg n, Reg t, Reg d);
- bool thumb32_STREXD(Reg n, Reg t, Reg t2, Reg d);
- bool thumb32_STREXH(Reg n, Reg t, Reg d);
- bool thumb32_TBB(Reg n, Reg m);
- bool thumb32_TBH(Reg n, Reg m);
-
- // thumb32 data processing (shifted register) instructions
- bool thumb32_TST_reg(Reg n, Imm<3> imm3, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_AND_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_BIC_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_MOV_reg(bool S, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_ORR_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_MVN_reg(bool S, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_ORN_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_TEQ_reg(Reg n, Imm<3> imm3, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_EOR_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_PKH(Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, Imm<1> tb, Reg m);
- bool thumb32_CMN_reg(Reg n, Imm<3> imm3, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_ADD_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_ADC_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_SBC_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_CMP_reg(Reg n, Imm<3> imm3, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_SUB_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_RSB_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
-
- // thumb32 data processing (modified immediate) instructions
- bool thumb32_TST_imm(Imm<1> i, Reg n, Imm<3> imm3, Imm<8> imm8);
- bool thumb32_AND_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_BIC_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_MOV_imm(Imm<1> i, bool S, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_ORR_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_MVN_imm(Imm<1> i, bool S, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_ORN_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_TEQ_imm(Imm<1> i, Reg n, Imm<3> imm3, Imm<8> imm8);
- bool thumb32_EOR_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_CMN_imm(Imm<1> i, Reg n, Imm<3> imm3, Imm<8> imm8);
- bool thumb32_ADD_imm_1(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_ADC_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_SBC_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_CMP_imm(Imm<1> i, Reg n, Imm<3> imm3, Imm<8> imm8);
- bool thumb32_SUB_imm_1(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_RSB_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
-
- // thumb32 data processing (plain binary immediate) instructions.
- bool thumb32_ADR_t2(Imm<1> imm1, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_ADR_t3(Imm<1> imm1, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_ADD_imm_2(Imm<1> imm1, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_BFC(Imm<3> imm3, Reg d, Imm<2> imm2, Imm<5> msb);
- bool thumb32_BFI(Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, Imm<5> msb);
- bool thumb32_MOVT(Imm<1> imm1, Imm<4> imm4, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_MOVW_imm(Imm<1> imm1, Imm<4> imm4, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_SBFX(Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, Imm<5> widthm1);
- bool thumb32_SSAT(bool sh, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, Imm<5> sat_imm);
- bool thumb32_SSAT16(Reg n, Reg d, Imm<4> sat_imm);
- bool thumb32_SUB_imm_2(Imm<1> imm1, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_UBFX(Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, Imm<5> widthm1);
- bool thumb32_USAT(bool sh, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, Imm<5> sat_imm);
- bool thumb32_USAT16(Reg n, Reg d, Imm<4> sat_imm);
-
- // thumb32 miscellaneous control instructions
- bool thumb32_BXJ(Reg m);
- bool thumb32_CLREX();
- bool thumb32_DMB(Imm<4> option);
- bool thumb32_DSB(Imm<4> option);
- bool thumb32_ISB(Imm<4> option);
- bool thumb32_NOP();
- bool thumb32_SEV();
- bool thumb32_SEVL();
- bool thumb32_UDF();
- bool thumb32_WFE();
- bool thumb32_WFI();
- bool thumb32_YIELD();
- bool thumb32_MSR_reg(bool R, Reg n, Imm<4> mask);
- bool thumb32_MRS_reg(bool R, Reg d);
-
- // thumb32 branch instructions
- bool thumb32_BL_imm(Imm<1> S, Imm<10> hi, Imm<1> j1, Imm<1> j2, Imm<11> lo);
- bool thumb32_BLX_imm(Imm<1> S, Imm<10> hi, Imm<1> j1, Imm<1> j2, Imm<11> lo);
- bool thumb32_B(Imm<1> S, Imm<10> hi, Imm<1> j1, Imm<1> j2, Imm<11> lo);
- bool thumb32_B_cond(Imm<1> S, Cond cond, Imm<6> hi, Imm<1> j1, Imm<1> j2, Imm<11> lo);
-
- // thumb32 store single data item instructions
- bool thumb32_STRB_imm_1(Reg n, Reg t, bool P, bool U, Imm<8> imm8);
- bool thumb32_STRB_imm_2(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_STRB_imm_3(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_STRBT(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_STRB(Reg n, Reg t, Imm<2> imm2, Reg m);
- bool thumb32_STRH_imm_1(Reg n, Reg t, bool P, bool U, Imm<8> imm8);
- bool thumb32_STRH_imm_2(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_STRH_imm_3(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_STRHT(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_STRH(Reg n, Reg t, Imm<2> imm2, Reg m);
- bool thumb32_STR_imm_1(Reg n, Reg t, bool P, bool U, Imm<8> imm8);
- bool thumb32_STR_imm_2(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_STR_imm_3(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_STRT(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_STR_reg(Reg n, Reg t, Imm<2> imm2, Reg m);
-
- // thumb32 load byte and memory hints
- bool thumb32_PLD_lit(bool U, Imm<12> imm12);
- bool thumb32_PLD_imm8(bool W, Reg n, Imm<8> imm8);
- bool thumb32_PLD_imm12(bool W, Reg n, Imm<12> imm12);
- bool thumb32_PLD_reg(bool W, Reg n, Imm<2> imm2, Reg m);
- bool thumb32_PLI_lit(bool U, Imm<12> imm12);
- bool thumb32_PLI_imm8(Reg n, Imm<8> imm8);
- bool thumb32_PLI_imm12(Reg n, Imm<12> imm12);
- bool thumb32_PLI_reg(Reg n, Imm<2> imm2, Reg m);
- bool thumb32_LDRB_lit(bool U, Reg t, Imm<12> imm12);
- bool thumb32_LDRB_reg(Reg n, Reg t, Imm<2> imm2, Reg m);
- bool thumb32_LDRB_imm8(Reg n, Reg t, bool P, bool U, bool W, Imm<8> imm8);
- bool thumb32_LDRB_imm12(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_LDRBT(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_LDRSB_lit(bool U, Reg t, Imm<12> imm12);
- bool thumb32_LDRSB_reg(Reg n, Reg t, Imm<2> imm2, Reg m);
- bool thumb32_LDRSB_imm8(Reg n, Reg t, bool P, bool U, bool W, Imm<8> imm8);
- bool thumb32_LDRSB_imm12(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_LDRSBT(Reg n, Reg t, Imm<8> imm8);
-
- // thumb32 load halfword instructions
- bool thumb32_LDRH_lit(bool U, Reg t, Imm<12> imm12);
- bool thumb32_LDRH_reg(Reg n, Reg t, Imm<2> imm2, Reg m);
- bool thumb32_LDRH_imm8(Reg n, Reg t, bool P, bool U, bool W, Imm<8> imm8);
- bool thumb32_LDRH_imm12(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_LDRHT(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_LDRSH_lit(bool U, Reg t, Imm<12> imm12);
- bool thumb32_LDRSH_reg(Reg n, Reg t, Imm<2> imm2, Reg m);
- bool thumb32_LDRSH_imm8(Reg n, Reg t, bool P, bool U, bool W, Imm<8> imm8);
- bool thumb32_LDRSH_imm12(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_LDRSHT(Reg n, Reg t, Imm<8> imm8);
-
- // thumb32 load word instructions
- bool thumb32_LDR_lit(bool U, Reg t, Imm<12> imm12);
- bool thumb32_LDR_reg(Reg n, Reg t, Imm<2> imm2, Reg m);
- bool thumb32_LDR_imm8(Reg n, Reg t, bool P, bool U, bool W, Imm<8> imm8);
- bool thumb32_LDR_imm12(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_LDRT(Reg n, Reg t, Imm<8> imm8);
-
- // thumb32 data processing (register) instructions
- bool thumb32_ASR_reg(bool S, Reg m, Reg d, Reg s);
- bool thumb32_LSL_reg(bool S, Reg m, Reg d, Reg s);
- bool thumb32_LSR_reg(bool S, Reg m, Reg d, Reg s);
- bool thumb32_ROR_reg(bool S, Reg m, Reg d, Reg s);
- bool thumb32_SXTB(Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_SXTB16(Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_SXTAB(Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_SXTAB16(Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_SXTH(Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_SXTAH(Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_UXTB(Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_UXTB16(Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_UXTAB(Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_UXTAB16(Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_UXTH(Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_UXTAH(Reg n, Reg d, SignExtendRotation rotate, Reg m);
-
- // thumb32 long multiply, long multiply accumulate, and divide instructions
- bool thumb32_SDIV(Reg n, Reg d, Reg m);
- bool thumb32_SMLAL(Reg n, Reg dLo, Reg dHi, Reg m);
- bool thumb32_SMLALD(Reg n, Reg dLo, Reg dHi, bool M, Reg m);
- bool thumb32_SMLALXY(Reg n, Reg dLo, Reg dHi, bool N, bool M, Reg m);
- bool thumb32_SMLSLD(Reg n, Reg dLo, Reg dHi, bool M, Reg m);
- bool thumb32_SMULL(Reg n, Reg dLo, Reg dHi, Reg m);
- bool thumb32_UDIV(Reg n, Reg d, Reg m);
- bool thumb32_UMAAL(Reg n, Reg dLo, Reg dHi, Reg m);
- bool thumb32_UMLAL(Reg n, Reg dLo, Reg dHi, Reg m);
- bool thumb32_UMULL(Reg n, Reg dLo, Reg dHi, Reg m);
-
- // thumb32 miscellaneous instructions
- bool thumb32_CLZ(Reg n, Reg d, Reg m);
- bool thumb32_QADD(Reg n, Reg d, Reg m);
- bool thumb32_QDADD(Reg n, Reg d, Reg m);
- bool thumb32_QDSUB(Reg n, Reg d, Reg m);
- bool thumb32_QSUB(Reg n, Reg d, Reg m);
- bool thumb32_RBIT(Reg n, Reg d, Reg m);
- bool thumb32_REV(Reg n, Reg d, Reg m);
- bool thumb32_REV16(Reg n, Reg d, Reg m);
- bool thumb32_REVSH(Reg n, Reg d, Reg m);
- bool thumb32_SEL(Reg n, Reg d, Reg m);
-
- // thumb32 multiply instructions
- bool thumb32_MLA(Reg n, Reg a, Reg d, Reg m);
- bool thumb32_MLS(Reg n, Reg a, Reg d, Reg m);
- bool thumb32_MUL(Reg n, Reg d, Reg m);
- bool thumb32_SMLAD(Reg n, Reg a, Reg d, bool X, Reg m);
- bool thumb32_SMLAXY(Reg n, Reg a, Reg d, bool N, bool M, Reg m);
- bool thumb32_SMLAWY(Reg n, Reg a, Reg d, bool M, Reg m);
- bool thumb32_SMLSD(Reg n, Reg a, Reg d, bool X, Reg m);
- bool thumb32_SMMLA(Reg n, Reg a, Reg d, bool R, Reg m);
- bool thumb32_SMMLS(Reg n, Reg a, Reg d, bool R, Reg m);
- bool thumb32_SMMUL(Reg n, Reg d, bool R, Reg m);
- bool thumb32_SMUAD(Reg n, Reg d, bool M, Reg m);
- bool thumb32_SMUSD(Reg n, Reg d, bool M, Reg m);
- bool thumb32_SMULXY(Reg n, Reg d, bool N, bool M, Reg m);
- bool thumb32_SMULWY(Reg n, Reg d, bool M, Reg m);
- bool thumb32_USAD8(Reg n, Reg d, Reg m);
- bool thumb32_USADA8(Reg n, Reg a, Reg d, Reg m);
-
- // thumb32 parallel add/sub instructions
- bool thumb32_SADD8(Reg n, Reg d, Reg m);
- bool thumb32_SADD16(Reg n, Reg d, Reg m);
- bool thumb32_SASX(Reg n, Reg d, Reg m);
- bool thumb32_SSAX(Reg n, Reg d, Reg m);
- bool thumb32_SSUB8(Reg n, Reg d, Reg m);
- bool thumb32_SSUB16(Reg n, Reg d, Reg m);
- bool thumb32_UADD8(Reg n, Reg d, Reg m);
- bool thumb32_UADD16(Reg n, Reg d, Reg m);
- bool thumb32_UASX(Reg n, Reg d, Reg m);
- bool thumb32_USAX(Reg n, Reg d, Reg m);
- bool thumb32_USUB8(Reg n, Reg d, Reg m);
- bool thumb32_USUB16(Reg n, Reg d, Reg m);
-
- bool thumb32_QADD8(Reg n, Reg d, Reg m);
- bool thumb32_QADD16(Reg n, Reg d, Reg m);
- bool thumb32_QASX(Reg n, Reg d, Reg m);
- bool thumb32_QSAX(Reg n, Reg d, Reg m);
- bool thumb32_QSUB8(Reg n, Reg d, Reg m);
- bool thumb32_QSUB16(Reg n, Reg d, Reg m);
- bool thumb32_UQADD8(Reg n, Reg d, Reg m);
- bool thumb32_UQADD16(Reg n, Reg d, Reg m);
- bool thumb32_UQASX(Reg n, Reg d, Reg m);
- bool thumb32_UQSAX(Reg n, Reg d, Reg m);
- bool thumb32_UQSUB8(Reg n, Reg d, Reg m);
- bool thumb32_UQSUB16(Reg n, Reg d, Reg m);
-
- bool thumb32_SHADD8(Reg n, Reg d, Reg m);
- bool thumb32_SHADD16(Reg n, Reg d, Reg m);
- bool thumb32_SHASX(Reg n, Reg d, Reg m);
- bool thumb32_SHSAX(Reg n, Reg d, Reg m);
- bool thumb32_SHSUB8(Reg n, Reg d, Reg m);
- bool thumb32_SHSUB16(Reg n, Reg d, Reg m);
- bool thumb32_UHADD8(Reg n, Reg d, Reg m);
- bool thumb32_UHADD16(Reg n, Reg d, Reg m);
- bool thumb32_UHASX(Reg n, Reg d, Reg m);
- bool thumb32_UHSAX(Reg n, Reg d, Reg m);
- bool thumb32_UHSUB8(Reg n, Reg d, Reg m);
- bool thumb32_UHSUB16(Reg n, Reg d, Reg m);
-
- // thumb32 coprocessor insturctions
- bool thumb32_MCRR(bool two, Reg t2, Reg t, size_t coproc_no, size_t opc, CoprocReg CRm);
- bool thumb32_MRRC(bool two, Reg t2, Reg t, size_t coproc_no, size_t opc, CoprocReg CRm);
- bool thumb32_STC(bool two, bool p, bool u, bool d, bool w, Reg n, CoprocReg CRd, size_t coproc_no, Imm<8> imm8);
- bool thumb32_LDC(bool two, bool p, bool u, bool d, bool w, Reg n, CoprocReg CRd, size_t coproc_no, Imm<8> imm8);
- bool thumb32_CDP(bool two, size_t opc1, CoprocReg CRn, CoprocReg CRd, size_t coproc_no, size_t opc2, CoprocReg CRm);
- bool thumb32_MCR(bool two, size_t opc1, CoprocReg CRn, Reg t, size_t coproc_no, size_t opc2, CoprocReg CRm);
- bool thumb32_MRC(bool two, size_t opc1, CoprocReg CRn, Reg t, size_t coproc_no, size_t opc2, CoprocReg CRm);
-
- // Floating-point three-register data processing instructions
- bool vfp_VADD(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VSUB(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VMUL(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VMLA(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VMLS(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VNMUL(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VNMLA(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VNMLS(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VDIV(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VFNMS(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VFNMA(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VFMA(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VFMS(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VSEL(bool D, Imm<2> cc, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VMAXNM(bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VMINNM(bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
-
- // Floating-point move instructions
- bool vfp_VMOV_u32_f64(Cond cond, size_t Vd, Reg t, bool D);
- bool vfp_VMOV_f64_u32(Cond cond, size_t Vn, Reg t, bool N);
- bool vfp_VMOV_u32_f32(Cond cond, size_t Vn, Reg t, bool N);
- bool vfp_VMOV_f32_u32(Cond cond, size_t Vn, Reg t, bool N);
- bool vfp_VMOV_2u32_2f32(Cond cond, Reg t2, Reg t, bool M, size_t Vm);
- bool vfp_VMOV_2f32_2u32(Cond cond, Reg t2, Reg t, bool M, size_t Vm);
- bool vfp_VMOV_2u32_f64(Cond cond, Reg t2, Reg t, bool M, size_t Vm);
- bool vfp_VMOV_f64_2u32(Cond cond, Reg t2, Reg t, bool M, size_t Vm);
- bool vfp_VMOV_from_i32(Cond cond, Imm<1> i, size_t Vd, Reg t, bool D);
- bool vfp_VMOV_from_i16(Cond cond, Imm<1> i1, size_t Vd, Reg t, bool D, Imm<1> i2);
- bool vfp_VMOV_from_i8(Cond cond, Imm<1> i1, size_t Vd, Reg t, bool D, Imm<2> i2);
- bool vfp_VMOV_to_i32(Cond cond, Imm<1> i, size_t Vn, Reg t, bool N);
- bool vfp_VMOV_to_i16(Cond cond, bool U, Imm<1> i1, size_t Vn, Reg t, bool N, Imm<1> i2);
- bool vfp_VMOV_to_i8(Cond cond, bool U, Imm<1> i1, size_t Vn, Reg t, bool N, Imm<2> i2);
- bool vfp_VDUP(Cond cond, Imm<1> B, bool Q, size_t Vd, Reg t, bool D, Imm<1> E);
- bool vfp_VMOV_imm(Cond cond, bool D, Imm<4> imm4H, size_t Vd, bool sz, Imm<4> imm4L);
- bool vfp_VMOV_reg(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
-
- // Floating-point misc instructions
- bool vfp_VABS(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VNEG(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VSQRT(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VCVTB(Cond cond, bool D, bool op, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VCVTT(Cond cond, bool D, bool op, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VCMP(Cond cond, bool D, size_t Vd, bool sz, bool E, bool M, size_t Vm);
- bool vfp_VCMP_zero(Cond cond, bool D, size_t Vd, bool sz, bool E);
- bool vfp_VRINTR(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VRINTZ(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VRINTX(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VCVT_f_to_f(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VCVT_from_int(Cond cond, bool D, size_t Vd, bool sz, bool is_signed, bool M, size_t Vm);
- bool vfp_VCVT_from_fixed(Cond cond, bool D, bool U, size_t Vd, bool sz, bool sx, Imm<1> i, Imm<4> imm4);
- bool vfp_VCVT_to_u32(Cond cond, bool D, size_t Vd, bool sz, bool round_towards_zero, bool M, size_t Vm);
- bool vfp_VCVT_to_s32(Cond cond, bool D, size_t Vd, bool sz, bool round_towards_zero, bool M, size_t Vm);
- bool vfp_VCVT_to_fixed(Cond cond, bool D, bool U, size_t Vd, bool sz, bool sx, Imm<1> i, Imm<4> imm4);
- bool vfp_VRINT_rm(bool D, size_t rm, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VCVT_rm(bool D, size_t rm, size_t Vd, bool sz, bool U, bool M, size_t Vm);
-
- // Floating-point system register access
- bool vfp_VMSR(Cond cond, Reg t);
- bool vfp_VMRS(Cond cond, Reg t);
-
- // Floating-point load-store instructions
- bool vfp_VLDR(Cond cond, bool U, bool D, Reg n, size_t Vd, bool sz, Imm<8> imm8);
- bool vfp_VSTR(Cond cond, bool U, bool D, Reg n, size_t Vd, bool sz, Imm<8> imm8);
- bool vfp_VPOP(Cond cond, bool D, size_t Vd, bool sz, Imm<8> imm8);
- bool vfp_VPUSH(Cond cond, bool D, size_t Vd, bool sz, Imm<8> imm8);
- bool vfp_VSTM_a1(Cond cond, bool p, bool u, bool D, bool w, Reg n, size_t Vd, Imm<8> imm8);
- bool vfp_VSTM_a2(Cond cond, bool p, bool u, bool D, bool w, Reg n, size_t Vd, Imm<8> imm8);
- bool vfp_VLDM_a1(Cond cond, bool p, bool u, bool D, bool w, Reg n, size_t Vd, Imm<8> imm8);
- bool vfp_VLDM_a2(Cond cond, bool p, bool u, bool D, bool w, Reg n, size_t Vd, Imm<8> imm8);
-
- // Advanced SIMD one register, modified immediate
- bool asimd_VMOV_imm(Imm<1> a, bool D, Imm<1> b, Imm<1> c, Imm<1> d, size_t Vd, Imm<4> cmode, bool Q, bool op, Imm<1> e, Imm<1> f, Imm<1> g, Imm<1> h);
-
- // Advanced SIMD three register with same length
- bool asimd_VHADD(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VQADD(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VRHADD(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VAND_reg(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VBIC_reg(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VORR_reg(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VORN_reg(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VEOR_reg(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VBSL(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VBIT(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VBIF(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VHSUB(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VQSUB(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VCGT_reg(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VCGE_reg(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VABD(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VABA(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VADD_int(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VSUB_int(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VSHL_reg(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VQSHL_reg(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VRSHL(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMAX(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, bool op, size_t Vm);
- bool asimd_VTST(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VCEQ_reg(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMLA(bool op, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMUL(bool P, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VPMAX_int(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, bool op, size_t Vm);
- bool v8_VMAXNM(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool v8_VMINNM(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VQDMULH(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VQRDMULH(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VPADD(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VFMA(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VFMS(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VADD_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VSUB_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VPADD_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VABD_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMLA_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMLS_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMUL_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VCEQ_reg_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VCGE_reg_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VCGT_reg_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VACGE(bool D, bool op, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMAX_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMIN_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VPMAX_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VPMIN_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VRECPS(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VRSQRTS(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool v8_SHA256H(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool v8_SHA256H2(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool v8_SHA256SU1(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
-
- // Advanced SIMD three registers with different lengths
- bool asimd_VADDL(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool op, bool N, bool M, size_t Vm);
- bool asimd_VSUBL(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool op, bool N, bool M, size_t Vm);
- bool asimd_VABAL(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool M, size_t Vm);
- bool asimd_VABDL(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool M, size_t Vm);
- bool asimd_VMLAL(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool op, bool N, bool M, size_t Vm);
- bool asimd_VMULL(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool P, bool N, bool M, size_t Vm);
-
- // Advanced SIMD two registers and a scalar
- bool asimd_VMLA_scalar(bool Q, bool D, size_t sz, size_t Vn, size_t Vd, bool op, bool F, bool N, bool M, size_t Vm);
- bool asimd_VMLAL_scalar(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool op, bool N, bool M, size_t Vm);
- bool asimd_VMUL_scalar(bool Q, bool D, size_t sz, size_t Vn, size_t Vd, bool F, bool N, bool M, size_t Vm);
- bool asimd_VMULL_scalar(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool M, size_t Vm);
- bool asimd_VQDMULL_scalar(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool M, size_t Vm);
- bool asimd_VQDMULH_scalar(bool Q, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool M, size_t Vm);
- bool asimd_VQRDMULH_scalar(bool Q, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool M, size_t Vm);
-
- // Two registers and a shift amount
- bool asimd_SHR(bool U, bool D, size_t imm6, size_t Vd, bool L, bool Q, bool M, size_t Vm);
- bool asimd_SRA(bool U, bool D, size_t imm6, size_t Vd, bool L, bool Q, bool M, size_t Vm);
- bool asimd_VRSHR(bool U, bool D, size_t imm6, size_t Vd, bool L, bool Q, bool M, size_t Vm);
- bool asimd_VRSRA(bool U, bool D, size_t imm6, size_t Vd, bool L, bool Q, bool M, size_t Vm);
- bool asimd_VSRI(bool D, size_t imm6, size_t Vd, bool L, bool Q, bool M, size_t Vm);
- bool asimd_VSHL(bool D, size_t imm6, size_t Vd, bool L, bool Q, bool M, size_t Vm);
- bool asimd_VSLI(bool D, size_t imm6, size_t Vd, bool L, bool Q, bool M, size_t Vm);
- bool asimd_VQSHL(bool U, bool D, size_t imm6, size_t Vd, bool op, bool L, bool Q, bool M, size_t Vm);
- bool asimd_VSHRN(bool D, size_t imm6, size_t Vd, bool M, size_t Vm);
- bool asimd_VRSHRN(bool D, size_t imm6, size_t Vd, bool M, size_t Vm);
- bool asimd_VQSHRUN(bool D, size_t imm6, size_t Vd, bool M, size_t Vm);
- bool asimd_VQRSHRUN(bool D, size_t imm6, size_t Vd, bool M, size_t Vm);
- bool asimd_VQSHRN(bool U, bool D, size_t imm6, size_t Vd, bool M, size_t Vm);
- bool asimd_VQRSHRN(bool U, bool D, size_t imm6, size_t Vd, bool M, size_t Vm);
- bool asimd_VSHLL(bool U, bool D, size_t imm6, size_t Vd, bool M, size_t Vm);
- bool asimd_VCVT_fixed(bool U, bool D, size_t imm6, size_t Vd, bool to_fixed, bool Q, bool M, size_t Vm);
-
- // Advanced SIMD two register, miscellaneous
- bool asimd_VREV(bool D, size_t sz, size_t Vd, size_t op, bool Q, bool M, size_t Vm);
- bool asimd_VPADDL(bool D, size_t sz, size_t Vd, bool op, bool Q, bool M, size_t Vm);
- bool v8_AESD(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool v8_AESE(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool v8_AESIMC(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool v8_AESMC(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool v8_SHA256SU0(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool asimd_VCLS(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VCLZ(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VCNT(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VMVN_reg(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VPADAL(bool D, size_t sz, size_t Vd, bool op, bool Q, bool M, size_t Vm);
- bool asimd_VQABS(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VQNEG(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VCGT_zero(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VCGE_zero(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VCEQ_zero(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VCLE_zero(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VCLT_zero(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VABS(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VNEG(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VSWP(bool D, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VTRN(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VUZP(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VZIP(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VMOVN(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool asimd_VQMOVUN(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool asimd_VQMOVN(bool D, size_t sz, size_t Vd, bool op, bool M, size_t Vm);
- bool asimd_VSHLL_max(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool v8_VRINTN(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool v8_VRINTX(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool v8_VRINTA(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool v8_VRINTZ(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool v8_VRINTM(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool v8_VRINTP(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VCVT_half(bool D, size_t sz, size_t Vd, bool op, bool M, size_t Vm);
- bool v8_VCVTA(bool D, size_t sz, size_t Vd, bool op, bool Q, bool M, size_t Vm);
- bool v8_VCVTN(bool D, size_t sz, size_t Vd, bool op, bool Q, bool M, size_t Vm);
- bool v8_VCVTP(bool D, size_t sz, size_t Vd, bool op, bool Q, bool M, size_t Vm);
- bool v8_VCVTM(bool D, size_t sz, size_t Vd, bool op, bool Q, bool M, size_t Vm);
- bool asimd_VRECPE(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VRSQRTE(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VCVT_integer(bool D, size_t sz, size_t Vd, bool op, bool U, bool Q, bool M, size_t Vm);
-
- // Advanced SIMD miscellaneous
- bool asimd_VEXT(bool D, size_t Vn, size_t Vd, Imm<4> imm4, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VTBL(bool D, size_t Vn, size_t Vd, size_t len, bool N, bool M, size_t Vm);
- bool asimd_VTBX(bool D, size_t Vn, size_t Vd, size_t len, bool N, bool M, size_t Vm);
- bool asimd_VDUP_scalar(bool D, Imm<4> imm4, size_t Vd, bool Q, bool M, size_t Vm);
-
- // Advanced SIMD load/store structures
- bool v8_VST_multiple(bool D, Reg n, size_t Vd, Imm<4> type, size_t sz, size_t align, Reg m);
- bool v8_VLD_multiple(bool D, Reg n, size_t Vd, Imm<4> type, size_t sz, size_t align, Reg m);
- bool v8_VLD_all_lanes(bool D, Reg n, size_t Vd, size_t nn, size_t sz, bool T, bool a, Reg m);
- bool v8_VST_single(bool D, Reg n, size_t Vd, size_t sz, size_t nn, size_t index_align, Reg m);
- bool v8_VLD_single(bool D, Reg n, size_t Vd, size_t sz, size_t nn, size_t index_align, Reg m);
-};
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/translate/translate_callbacks.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/translate/translate_callbacks.h
deleted file mode 100644
index e0ad48ea..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A32/translate/translate_callbacks.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2021 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-#pragma once
-
-#include <cstdint>
-#include <optional>
-
-namespace Dynarmic::A32 {
-
-using VAddr = std::uint32_t;
-
-class IREmitter;
-
-struct TranslateCallbacks {
- // All reads through this callback are 4-byte aligned.
- // Memory must be interpreted as little endian.
- virtual std::optional<std::uint32_t> MemoryReadCode(VAddr vaddr) = 0;
-
- // This function is called before the instruction at pc is read.
- // IR code can be emitted by the callee prior to instruction handling.
- // By returning false the callee precludes the translation of the instruction;
- // in such case the callee is responsible for setting the terminal.
- virtual bool PreCodeReadHook(bool is_thumb, VAddr pc, A32::IREmitter& ir) = 0;
-
- // This function is called before the instruction at pc is interpreted.
- // IR code can be emitted by the callee prior to translation of the instruction.
- virtual void PreCodeTranslationHook(bool is_thumb, VAddr pc, A32::IREmitter& ir) = 0;
-
- // How many ticks should this instruction take to execute?
- virtual std::uint64_t GetTicksForCode(bool is_thumb, VAddr vaddr, std::uint32_t instruction) = 0;
-};
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A64/a64_ir_emitter.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A64/a64_ir_emitter.h
deleted file mode 100644
index 7fc8bea7..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A64/a64_ir_emitter.h
+++ /dev/null
@@ -1,102 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/A64/a64_location_descriptor.h"
-#include "dynarmic/frontend/A64/a64_types.h"
-#include "dynarmic/interface/A64/config.h"
-#include "dynarmic/ir/ir_emitter.h"
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::A64 {
-
-/**
- * Convenience class to construct a basic block of the intermediate representation.
- * `block` is the resulting block.
- * The user of this class updates `current_location` as appropriate.
- */
-class IREmitter : public IR::IREmitter {
-public:
- explicit IREmitter(IR::Block& block)
- : IR::IREmitter(block) {}
- explicit IREmitter(IR::Block& block, LocationDescriptor descriptor)
- : IR::IREmitter(block), current_location(descriptor) {}
-
- std::optional<LocationDescriptor> current_location;
-
- u64 PC() const;
- u64 AlignPC(size_t alignment) const;
-
- void SetCheckBit(const IR::U1& value);
- IR::U1 GetCFlag();
- IR::U32 GetNZCVRaw();
- void SetNZCVRaw(IR::U32 value);
- void SetNZCV(const IR::NZCV& nzcv);
-
- void CallSupervisor(u32 imm);
- void ExceptionRaised(Exception exception);
- void DataCacheOperationRaised(DataCacheOperation op, const IR::U64& value);
- void InstructionCacheOperationRaised(InstructionCacheOperation op, const IR::U64& value);
- void DataSynchronizationBarrier();
- void DataMemoryBarrier();
- void InstructionSynchronizationBarrier();
- IR::U32 GetCNTFRQ();
- IR::U64 GetCNTPCT(); // TODO: Ensure sub-basic-block cycle counts are updated before this.
- IR::U32 GetCTR();
- IR::U32 GetDCZID();
- IR::U64 GetTPIDR();
- IR::U64 GetTPIDRRO();
- void SetTPIDR(const IR::U64& value);
-
- void ClearExclusive();
- IR::U8 ReadMemory8(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U16 ReadMemory16(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U32 ReadMemory32(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U64 ReadMemory64(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U128 ReadMemory128(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U8 ExclusiveReadMemory8(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U16 ExclusiveReadMemory16(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U32 ExclusiveReadMemory32(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U64 ExclusiveReadMemory64(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U128 ExclusiveReadMemory128(const IR::U64& vaddr, IR::AccType acc_type);
- void WriteMemory8(const IR::U64& vaddr, const IR::U8& value, IR::AccType acc_type);
- void WriteMemory16(const IR::U64& vaddr, const IR::U16& value, IR::AccType acc_type);
- void WriteMemory32(const IR::U64& vaddr, const IR::U32& value, IR::AccType acc_type);
- void WriteMemory64(const IR::U64& vaddr, const IR::U64& value, IR::AccType acc_type);
- void WriteMemory128(const IR::U64& vaddr, const IR::U128& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory8(const IR::U64& vaddr, const IR::U8& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory16(const IR::U64& vaddr, const IR::U16& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory32(const IR::U64& vaddr, const IR::U32& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory64(const IR::U64& vaddr, const IR::U64& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory128(const IR::U64& vaddr, const IR::U128& value, IR::AccType acc_type);
-
- IR::U32 GetW(Reg source_reg);
- IR::U64 GetX(Reg source_reg);
- IR::U128 GetS(Vec source_vec);
- IR::U128 GetD(Vec source_vec);
- IR::U128 GetQ(Vec source_vec);
- IR::U64 GetSP();
- IR::U32 GetFPCR();
- IR::U32 GetFPSR();
- void SetW(Reg dest_reg, const IR::U32& value);
- void SetX(Reg dest_reg, const IR::U64& value);
- void SetS(Vec dest_vec, const IR::U128& value);
- void SetD(Vec dest_vec, const IR::U128& value);
- void SetQ(Vec dest_vec, const IR::U128& value);
- void SetSP(const IR::U64& value);
- void SetFPCR(const IR::U32& value);
- void SetFPSR(const IR::U32& value);
- void SetPC(const IR::U64& value);
-
-private:
- IR::U64 ImmCurrentLocationDescriptor();
-};
-
-} // namespace Dynarmic::A64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A64/a64_location_descriptor.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A64/a64_location_descriptor.h
deleted file mode 100644
index 122bebbc..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A64/a64_location_descriptor.h
+++ /dev/null
@@ -1,115 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <functional>
-#include <string>
-#include <tuple>
-
-#include <fmt/format.h>
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/common/fp/fpcr.h"
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace Dynarmic::A64 {
-
-/**
- * LocationDescriptor describes the location of a basic block.
- * The location is not solely based on the PC because other flags influence the way
- * instructions should be translated.
- */
-class LocationDescriptor {
-public:
- static constexpr size_t pc_bit_count = 56;
- static constexpr u64 pc_mask = mcl::bit::ones<u64>(pc_bit_count);
- static constexpr u32 fpcr_mask = 0x07C8'0000;
- static constexpr size_t fpcr_shift = 37;
- static constexpr size_t single_stepping_bit = 57;
- static_assert((pc_mask & (u64(fpcr_mask) << fpcr_shift) & (u64(1) << single_stepping_bit)) == 0);
-
- LocationDescriptor(u64 pc, FP::FPCR fpcr, bool single_stepping = false)
- : pc(pc & pc_mask), fpcr(fpcr.Value() & fpcr_mask), single_stepping(single_stepping) {}
-
- explicit LocationDescriptor(const IR::LocationDescriptor& o)
- : pc(o.Value() & pc_mask)
- , fpcr((o.Value() >> fpcr_shift) & fpcr_mask)
- , single_stepping(mcl::bit::get_bit<single_stepping_bit>(o.Value())) {}
-
- u64 PC() const { return mcl::bit::sign_extend<pc_bit_count>(pc); }
- FP::FPCR FPCR() const { return fpcr; }
- bool SingleStepping() const { return single_stepping; }
-
- bool operator==(const LocationDescriptor& o) const {
- return std::tie(pc, fpcr, single_stepping) == std::tie(o.pc, o.fpcr, o.single_stepping);
- }
-
- bool operator!=(const LocationDescriptor& o) const {
- return !operator==(o);
- }
-
- LocationDescriptor SetPC(u64 new_pc) const {
- return LocationDescriptor(new_pc, fpcr, single_stepping);
- }
-
- LocationDescriptor AdvancePC(int amount) const {
- return LocationDescriptor(static_cast<u64>(pc + amount), fpcr, single_stepping);
- }
-
- LocationDescriptor SetSingleStepping(bool new_single_stepping) const {
- return LocationDescriptor(pc, fpcr, new_single_stepping);
- }
-
- u64 UniqueHash() const noexcept {
- // This value MUST BE UNIQUE.
- // This calculation has to match up with EmitTerminalPopRSBHint
- const u64 fpcr_u64 = static_cast<u64>(fpcr.Value()) << fpcr_shift;
- const u64 single_stepping_u64 = static_cast<u64>(single_stepping) << single_stepping_bit;
- return pc | fpcr_u64 | single_stepping_u64;
- }
-
- operator IR::LocationDescriptor() const {
- return IR::LocationDescriptor{UniqueHash()};
- }
-
-private:
- u64 pc; ///< Current program counter value.
- FP::FPCR fpcr; ///< Floating point control register.
- bool single_stepping;
-};
-
-/**
- * Provides a string representation of a LocationDescriptor.
- *
- * @param descriptor The descriptor to get a string representation of
- */
-std::string ToString(const LocationDescriptor& descriptor);
-
-} // namespace Dynarmic::A64
-
-namespace std {
-template<>
-struct less<Dynarmic::A64::LocationDescriptor> {
- bool operator()(const Dynarmic::A64::LocationDescriptor& x, const Dynarmic::A64::LocationDescriptor& y) const noexcept {
- return x.UniqueHash() < y.UniqueHash();
- }
-};
-template<>
-struct hash<Dynarmic::A64::LocationDescriptor> {
- size_t operator()(const Dynarmic::A64::LocationDescriptor& x) const noexcept {
- return std::hash<u64>()(x.UniqueHash());
- }
-};
-} // namespace std
-
-template<>
-struct fmt::formatter<Dynarmic::A64::LocationDescriptor> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::A64::LocationDescriptor descriptor, FormatContext& ctx) const {
- return formatter<std::string>::format(Dynarmic::A64::ToString(descriptor), ctx);
- }
-};
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A64/a64_types.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A64/a64_types.h
deleted file mode 100644
index 6bc7a245..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A64/a64_types.h
+++ /dev/null
@@ -1,142 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string>
-
-#include <fmt/format.h>
-#include <mcl/assert.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/ir/cond.h"
-
-namespace Dynarmic::A64 {
-
-using Cond = IR::Cond;
-
-enum class Reg {
- R0,
- R1,
- R2,
- R3,
- R4,
- R5,
- R6,
- R7,
- R8,
- R9,
- R10,
- R11,
- R12,
- R13,
- R14,
- R15,
- R16,
- R17,
- R18,
- R19,
- R20,
- R21,
- R22,
- R23,
- R24,
- R25,
- R26,
- R27,
- R28,
- R29,
- R30,
- R31,
- LR = R30,
- SP = R31,
- ZR = R31,
-};
-
-enum class Vec {
- V0,
- V1,
- V2,
- V3,
- V4,
- V5,
- V6,
- V7,
- V8,
- V9,
- V10,
- V11,
- V12,
- V13,
- V14,
- V15,
- V16,
- V17,
- V18,
- V19,
- V20,
- V21,
- V22,
- V23,
- V24,
- V25,
- V26,
- V27,
- V28,
- V29,
- V30,
- V31,
-};
-
-enum class ShiftType {
- LSL,
- LSR,
- ASR,
- ROR,
-};
-
-const char* CondToString(Cond cond);
-std::string RegToString(Reg reg);
-std::string VecToString(Vec vec);
-
-constexpr size_t RegNumber(Reg reg) {
- return static_cast<size_t>(reg);
-}
-
-constexpr size_t VecNumber(Vec vec) {
- return static_cast<size_t>(vec);
-}
-
-inline Reg operator+(Reg reg, size_t number) {
- const size_t new_reg = RegNumber(reg) + number;
- ASSERT(new_reg <= 31);
-
- return static_cast<Reg>(new_reg);
-}
-
-inline Vec operator+(Vec vec, size_t number) {
- const size_t new_vec = VecNumber(vec) + number;
- ASSERT(new_vec <= 31);
-
- return static_cast<Vec>(new_vec);
-}
-
-} // namespace Dynarmic::A64
-
-template<>
-struct fmt::formatter<Dynarmic::A64::Reg> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::A64::Reg reg, FormatContext& ctx) const {
- return formatter<std::string>::format(Dynarmic::A64::RegToString(reg), ctx);
- }
-};
-
-template<>
-struct fmt::formatter<Dynarmic::A64::Vec> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::A64::Vec vec, FormatContext& ctx) const {
- return formatter<std::string>::format(Dynarmic::A64::VecToString(vec), ctx);
- }
-};
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A64/decoder/a64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A64/decoder/a64.h
deleted file mode 100644
index d6f447e5..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A64/decoder/a64.h
+++ /dev/null
@@ -1,83 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <algorithm>
-#include <functional>
-#include <optional>
-#include <set>
-#include <string>
-#include <vector>
-
-#include <mcl/bit/bit_count.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/decoder/decoder_detail.h"
-#include "dynarmic/frontend/decoder/matcher.h"
-
-namespace Dynarmic::A64 {
-
-template<typename Visitor>
-using Matcher = Decoder::Matcher<Visitor, u32>;
-
-template<typename Visitor>
-using DecodeTable = std::array<std::vector<Matcher<Visitor>>, 0x1000>;
-
-namespace detail {
-inline size_t ToFastLookupIndex(u32 instruction) {
- return ((instruction >> 10) & 0x00F) | ((instruction >> 18) & 0xFF0);
-}
-} // namespace detail
-
-template<typename V>
-DecodeTable<V> GetDecodeTable() {
- std::vector<Matcher<V>> list = {
-#define INST(fn, name, bitstring) DYNARMIC_DECODER_GET_MATCHER(Matcher, fn, name, Decoder::detail::StringToArray<32>(bitstring)),
-#include "./a64.inc"
-#undef INST
- };
-
- std::stable_sort(list.begin(), list.end(), [](const auto& matcher1, const auto& matcher2) {
- // If a matcher has more bits in its mask it is more specific, so it should come first.
- return mcl::bit::count_ones(matcher1.GetMask()) > mcl::bit::count_ones(matcher2.GetMask());
- });
-
- // Exceptions to the above rule of thumb.
- const std::set<std::string> comes_first{
- "MOVI, MVNI, ORR, BIC (vector, immediate)",
- "FMOV (vector, immediate)",
- "Unallocated SIMD modified immediate",
- };
-
- std::stable_partition(list.begin(), list.end(), [&](const auto& matcher) {
- return comes_first.count(matcher.GetName()) > 0;
- });
-
- DecodeTable<V> table{};
- for (size_t i = 0; i < table.size(); ++i) {
- for (auto matcher : list) {
- const auto expect = detail::ToFastLookupIndex(matcher.GetExpected());
- const auto mask = detail::ToFastLookupIndex(matcher.GetMask());
- if ((i & mask) == expect) {
- table[i].push_back(matcher);
- }
- }
- }
- return table;
-}
-
-template<typename V>
-std::optional<std::reference_wrapper<const Matcher<V>>> Decode(u32 instruction) {
- static const auto table = GetDecodeTable<V>();
-
- const auto matches_instruction = [instruction](const auto& matcher) { return matcher.Matches(instruction); };
-
- const auto& subtable = table[detail::ToFastLookupIndex(instruction)];
- auto iter = std::find_if(subtable.begin(), subtable.end(), matches_instruction);
- return iter != subtable.end() ? std::optional<std::reference_wrapper<const Matcher<V>>>(*iter) : std::nullopt;
-}
-
-} // namespace Dynarmic::A64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A64/translate/a64_translate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A64/translate/a64_translate.h
deleted file mode 100644
index 2f62ac6e..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A64/translate/a64_translate.h
+++ /dev/null
@@ -1,59 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-#pragma once
-
-#include <functional>
-#include <optional>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic {
-
-namespace IR {
-class Block;
-} // namespace IR
-
-namespace A64 {
-
-class LocationDescriptor;
-
-using MemoryReadCodeFuncType = std::function<std::optional<u32>(u64 vaddr)>;
-
-struct TranslationOptions {
- /// This changes what IR we emit when we translate an unpredictable instruction.
- /// If this is false, the ExceptionRaised IR instruction is emitted.
- /// If this is true, we define some behaviour for some instructions.
- bool define_unpredictable_behaviour = false;
-
- /// This tells the translator a wall clock will be used, thus allowing it
- /// to avoid writting certain unnecessary code only needed for cycle timers.
- bool wall_clock_cntpct = false;
-
- /// This changes what IR we emit when we translate a hint instruction.
- /// If this is false, we treat the instruction as a NOP.
- /// If this is true, we emit an ExceptionRaised instruction.
- bool hook_hint_instructions = true;
-};
-
-/**
- * This function translates instructions in memory into our intermediate representation.
- * @param descriptor The starting location of the basic block. Includes information like PC, FPCR state, &c.
- * @param memory_read_code The function we should use to read emulated memory.
- * @param options Configures how certain instructions are translated.
- * @return A translated basic block in the intermediate representation.
- */
-IR::Block Translate(LocationDescriptor descriptor, MemoryReadCodeFuncType memory_read_code, TranslationOptions options);
-
-/**
- * This function translates a single provided instruction into our intermediate representation.
- * @param block The block to append the IR for the instruction to.
- * @param descriptor The location of the instruction. Includes information like PC, FPCR state, &c.
- * @param instruction The instruction to translate.
- * @return The translated instruction translated to the intermediate representation.
- */
-bool TranslateSingleInstruction(IR::Block& block, LocationDescriptor descriptor, u32 instruction);
-
-} // namespace A64
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A64/translate/impl/impl.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A64/translate/impl/impl.h
deleted file mode 100644
index 86bc534d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/A64/translate/impl/impl.h
+++ /dev/null
@@ -1,1084 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-
-#include "dynarmic/frontend/A64/a64_ir_emitter.h"
-#include "dynarmic/frontend/A64/a64_location_descriptor.h"
-#include "dynarmic/frontend/A64/a64_types.h"
-#include "dynarmic/frontend/A64/translate/a64_translate.h"
-#include "dynarmic/frontend/imm.h"
-
-namespace Dynarmic::A64 {
-
-struct TranslatorVisitor final {
- using instruction_return_type = bool;
-
- explicit TranslatorVisitor(IR::Block& block, LocationDescriptor descriptor, TranslationOptions options)
- : ir(block, descriptor), options(std::move(options)) {}
-
- A64::IREmitter ir;
- TranslationOptions options;
-
- bool InterpretThisInstruction();
- bool UnpredictableInstruction();
- bool DecodeError();
- bool ReservedValue();
- bool UnallocatedEncoding();
- bool RaiseException(Exception exception);
-
- struct BitMasks {
- u64 wmask, tmask;
- };
-
- static std::optional<BitMasks> DecodeBitMasks(bool immN, Imm<6> imms, Imm<6> immr, bool immediate);
-
- IR::UAny I(size_t bitsize, u64 value);
- IR::UAny X(size_t bitsize, Reg reg);
- void X(size_t bitsize, Reg reg, IR::U32U64 value);
- IR::U32U64 SP(size_t bitsize);
- void SP(size_t bitsize, IR::U32U64 value);
-
- IR::U128 V(size_t bitsize, Vec vec);
- void V(size_t bitsize, Vec vec, IR::U128 value);
-
- IR::UAnyU128 V_scalar(size_t bitsize, Vec vec);
- void V_scalar(size_t bitsize, Vec vec, IR::UAnyU128 value);
-
- IR::U128 Vpart(size_t bitsize, Vec vec, size_t part);
- void Vpart(size_t bitsize, Vec vec, size_t part, IR::U128 value);
-
- IR::UAny Vpart_scalar(size_t bitsize, Vec vec, size_t part);
- void Vpart_scalar(size_t bitsize, Vec vec, size_t part, IR::UAny value);
-
- IR::UAnyU128 Mem(IR::U64 address, size_t size, IR::AccType acctype);
- void Mem(IR::U64 address, size_t size, IR::AccType acctype, IR::UAnyU128 value);
- IR::UAnyU128 ExclusiveMem(IR::U64 address, size_t size, IR::AccType acctype);
- IR::U32 ExclusiveMem(IR::U64 address, size_t size, IR::AccType acctype, IR::UAnyU128 value);
-
- IR::U32U64 SignExtend(IR::UAny value, size_t to_size);
- IR::U32U64 ZeroExtend(IR::UAny value, size_t to_size);
- IR::U32U64 ShiftReg(size_t bitsize, Reg reg, Imm<2> shift, IR::U8 amount);
- IR::U32U64 ExtendReg(size_t bitsize, Reg reg, Imm<3> option, u8 shift);
-
- // Data processing - Immediate - PC relative addressing
- bool ADR(Imm<2> immlo, Imm<19> immhi, Reg Rd);
- bool ADRP(Imm<2> immlo, Imm<19> immhi, Reg Rd);
-
- // Data processing - Immediate - Add/Sub (with tag)
- bool ADDG(Imm<6> offset_imm, Imm<4> tag_offset, Reg Rn, Reg Rd);
- bool SUBG(Imm<6> offset_imm, Imm<4> tag_offset, Reg Rn, Reg Rd);
-
- // Data processing - Immediate - Add/Sub
- bool ADD_imm(bool sf, Imm<2> shift, Imm<12> imm12, Reg Rn, Reg Rd);
- bool ADDS_imm(bool sf, Imm<2> shift, Imm<12> imm12, Reg Rn, Reg Rd);
- bool SUB_imm(bool sf, Imm<2> shift, Imm<12> imm12, Reg Rn, Reg Rd);
- bool SUBS_imm(bool sf, Imm<2> shift, Imm<12> imm12, Reg Rn, Reg Rd);
-
- // Data processing - Immediate - Logical
- bool AND_imm(bool sf, bool N, Imm<6> immr, Imm<6> imms, Reg Rn, Reg Rd);
- bool ORR_imm(bool sf, bool N, Imm<6> immr, Imm<6> imms, Reg Rn, Reg Rd);
- bool EOR_imm(bool sf, bool N, Imm<6> immr, Imm<6> imms, Reg Rn, Reg Rd);
- bool ANDS_imm(bool sf, bool N, Imm<6> immr, Imm<6> imms, Reg Rn, Reg Rd);
-
- // Data processing - Immediate - Move Wide
- bool MOVN(bool sf, Imm<2> hw, Imm<16> imm16, Reg Rd);
- bool MOVZ(bool sf, Imm<2> hw, Imm<16> imm16, Reg Rd);
- bool MOVK(bool sf, Imm<2> hw, Imm<16> imm16, Reg Rd);
-
- // Data processing - Immediate - Bitfield
- bool SBFM(bool sf, bool N, Imm<6> immr, Imm<6> imms, Reg Rn, Reg Rd);
- bool BFM(bool sf, bool N, Imm<6> immr, Imm<6> imms, Reg Rn, Reg Rd);
- bool UBFM(bool sf, bool N, Imm<6> immr, Imm<6> imms, Reg Rn, Reg Rd);
- bool ASR_1(Imm<5> immr, Reg Rn, Reg Rd);
- bool ASR_2(Imm<6> immr, Reg Rn, Reg Rd);
- bool SXTB_1(Reg Rn, Reg Rd);
- bool SXTB_2(Reg Rn, Reg Rd);
- bool SXTH_1(Reg Rn, Reg Rd);
- bool SXTH_2(Reg Rn, Reg Rd);
- bool SXTW(Reg Rn, Reg Rd);
-
- // Data processing - Immediate - Extract
- bool EXTR(bool sf, bool N, Reg Rm, Imm<6> imms, Reg Rn, Reg Rd);
-
- // Conditional branch
- bool B_cond(Imm<19> imm19, Cond cond);
-
- // Exception generation
- bool SVC(Imm<16> imm16);
- bool HVC(Imm<16> imm16);
- bool SMC(Imm<16> imm16);
- bool BRK(Imm<16> imm16);
- bool HLT(Imm<16> imm16);
- bool DCPS1(Imm<16> imm16);
- bool DCPS2(Imm<16> imm16);
- bool DCPS3(Imm<16> imm16);
-
- // System
- bool MSR_imm(Imm<3> op1, Imm<4> CRm, Imm<3> op2);
- bool HINT(Imm<4> CRm, Imm<3> op2);
- bool NOP();
- bool YIELD();
- bool WFE();
- bool WFI();
- bool SEV();
- bool SEVL();
- bool XPAC_1(bool D, Reg Rd);
- bool XPAC_2();
- bool PACIA_1(bool Z, Reg Rn, Reg Rd);
- bool PACIA_2();
- bool PACIB_1(bool Z, Reg Rn, Reg Rd);
- bool PACIB_2();
- bool AUTIA_1(bool Z, Reg Rn, Reg Rd);
- bool AUTIA_2();
- bool AUTIB_1(bool Z, Reg Rn, Reg Rd);
- bool AUTIB_2();
- bool BTI(Imm<2> upper_op2);
- bool ESB();
- bool PSB();
- bool TSB();
- bool CSDB();
- bool CLREX(Imm<4> CRm);
- bool DSB(Imm<4> CRm);
- bool SSBB();
- bool PSSBB();
- bool DMB(Imm<4> CRm);
- bool ISB(Imm<4> CRm);
- bool SYS(Imm<3> op1, Imm<4> CRn, Imm<4> CRm, Imm<3> op2, Reg Rt);
- bool SB();
- bool MSR_reg(Imm<1> o0, Imm<3> op1, Imm<4> CRn, Imm<4> CRm, Imm<3> op2, Reg Rt);
- bool SYSL(Imm<3> op1, Imm<4> CRn, Imm<4> CRm, Imm<3> op2, Reg Rt);
- bool MRS(Imm<1> o0, Imm<3> op1, Imm<4> CRn, Imm<4> CRm, Imm<3> op2, Reg Rt);
-
- // System - Flag manipulation instructions
- bool CFINV();
- bool RMIF(Imm<6> lsb, Reg Rn, Imm<4> mask);
- bool SETF8(Reg Rn);
- bool SETF16(Reg Rn);
-
- // System - Flag format instructions
- bool XAFlag();
- bool AXFlag();
-
- // SYS: Data Cache
- bool DC_IVAC(Reg Rt);
- bool DC_ISW(Reg Rt);
- bool DC_CSW(Reg Rt);
- bool DC_CISW(Reg Rt);
- bool DC_ZVA(Reg Rt);
- bool DC_CVAC(Reg Rt);
- bool DC_CVAU(Reg Rt);
- bool DC_CVAP(Reg Rt);
- bool DC_CIVAC(Reg Rt);
-
- // SYS: Instruction Cache
- bool IC_IALLU();
- bool IC_IALLUIS();
- bool IC_IVAU(Reg Rt);
-
- // Unconditional branch (Register)
- bool BR(Reg Rn);
- bool BRA(bool Z, bool M, Reg Rn, Reg Rm);
- bool BLR(Reg Rn);
- bool BLRA(bool Z, bool M, Reg Rn, Reg Rm);
- bool RET(Reg Rn);
- bool RETA(bool M);
- bool ERET();
- bool ERETA(bool M);
- bool DRPS();
-
- // Unconditional branch (immediate)
- bool B_uncond(Imm<26> imm26);
- bool BL(Imm<26> imm26);
-
- // Compare and branch (immediate)
- bool CBZ(bool sf, Imm<19> imm19, Reg Rt);
- bool CBNZ(bool sf, Imm<19> imm19, Reg Rt);
- bool TBZ(Imm<1> b5, Imm<5> b40, Imm<14> imm14, Reg Rt);
- bool TBNZ(Imm<1> b5, Imm<5> b40, Imm<14> imm14, Reg Rt);
-
- // Loads and stores - Advanced SIMD Load/Store multiple structures
- bool STx_mult_1(bool Q, Imm<4> opcode, Imm<2> size, Reg Rn, Vec Vt);
- bool STx_mult_2(bool Q, Reg Rm, Imm<4> opcode, Imm<2> size, Reg Rn, Vec Vt);
- bool LDx_mult_1(bool Q, Imm<4> opcode, Imm<2> size, Reg Rn, Vec Vt);
- bool LDx_mult_2(bool Q, Reg Rm, Imm<4> opcode, Imm<2> size, Reg Rn, Vec Vt);
-
- // Loads and stores - Advanced SIMD Load/Store single structures
- bool ST1_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool ST1_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool ST3_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool ST3_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool ST2_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool ST2_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool ST4_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool ST4_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD1_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD1_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD3_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD3_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD1R_1(bool Q, Imm<2> size, Reg Rn, Vec Vt);
- bool LD1R_2(bool Q, Reg Rm, Imm<2> size, Reg Rn, Vec Vt);
- bool LD3R_1(bool Q, Imm<2> size, Reg Rn, Vec Vt);
- bool LD3R_2(bool Q, Reg Rm, Imm<2> size, Reg Rn, Vec Vt);
- bool LD2_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD2_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD4_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD4_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD2R_1(bool Q, Imm<2> size, Reg Rn, Vec Vt);
- bool LD2R_2(bool Q, Reg Rm, Imm<2> size, Reg Rn, Vec Vt);
- bool LD4R_1(bool Q, Imm<2> size, Reg Rn, Vec Vt);
- bool LD4R_2(bool Q, Reg Rm, Imm<2> size, Reg Rn, Vec Vt);
-
- // Loads and stores - Load/Store Exclusive
- bool STXR(Imm<2> size, Reg Rs, Reg Rn, Reg Rt);
- bool STLXR(Imm<2> size, Reg Rs, Reg Rn, Reg Rt);
- bool STXP(Imm<1> size, Reg Rs, Reg Rt2, Reg Rn, Reg Rt);
- bool STLXP(Imm<1> size, Reg Rs, Reg Rt2, Reg Rn, Reg Rt);
- bool LDXR(Imm<2> size, Reg Rn, Reg Rt);
- bool LDAXR(Imm<2> size, Reg Rn, Reg Rt);
- bool LDXP(Imm<1> size, Reg Rt2, Reg Rn, Reg Rt);
- bool LDAXP(Imm<1> size, Reg Rt2, Reg Rn, Reg Rt);
- bool STLLR(Imm<2> size, Reg Rn, Reg Rt);
- bool STLR(Imm<2> size, Reg Rn, Reg Rt);
- bool LDLAR(Imm<2> size, Reg Rn, Reg Rt);
- bool LDAR(Imm<2> size, Reg Rn, Reg Rt);
- bool CASP(bool sz, bool L, Reg Rs, bool o0, Reg Rn, Reg Rt);
- bool CASB(bool L, Reg Rs, bool o0, Reg Rn, Reg Rt);
- bool CASH(bool L, Reg Rs, bool o0, Reg Rn, Reg Rt);
- bool CAS(bool sz, bool L, Reg Rs, bool o0, Reg Rn, Reg Rt);
-
- // Loads and stores - Load register (literal)
- bool LDR_lit_gen(bool opc_0, Imm<19> imm19, Reg Rt);
- bool LDR_lit_fpsimd(Imm<2> opc, Imm<19> imm19, Vec Vt);
- bool LDRSW_lit(Imm<19> imm19, Reg Rt);
- bool PRFM_lit(Imm<19> imm19, Imm<5> prfop);
-
- // Loads and stores - Load/Store no-allocate pair
- bool STNP_LDNP_gen(Imm<1> upper_opc, Imm<1> L, Imm<7> imm7, Reg Rt2, Reg Rn, Reg Rt);
- bool STNP_LDNP_fpsimd(Imm<2> opc, Imm<1> L, Imm<7> imm7, Vec Vt2, Reg Rn, Vec Vt);
-
- // Loads and stores - Load/Store register pair
- bool STP_LDP_gen(Imm<2> opc, bool not_postindex, bool wback, Imm<1> L, Imm<7> imm7, Reg Rt2, Reg Rn, Reg Rt);
- bool STP_LDP_fpsimd(Imm<2> opc, bool not_postindex, bool wback, Imm<1> L, Imm<7> imm7, Vec Vt2, Reg Rn, Vec Vt);
- bool STGP_1(Imm<7> offset_imm, Reg Rt2, Reg Rn, Reg Rt);
- bool STGP_2(Imm<7> offset_imm, Reg Rt2, Reg Rn, Reg Rt);
- bool STGP_3(Imm<7> offset_imm, Reg Rt2, Reg Rn, Reg Rt);
-
- // Loads and stores - Load/Store register (immediate)
- bool STRx_LDRx_imm_1(Imm<2> size, Imm<2> opc, Imm<9> imm9, bool not_postindex, Reg Rn, Reg Rt);
- bool STRx_LDRx_imm_2(Imm<2> size, Imm<2> opc, Imm<12> imm12, Reg Rn, Reg Rt);
- bool STURx_LDURx(Imm<2> size, Imm<2> opc, Imm<9> imm9, Reg Rn, Reg Rt);
- bool PRFM_imm(Imm<12> imm12, Reg Rn, Reg Rt);
- bool PRFM_unscaled_imm(Imm<9> imm9, Reg Rn, Reg Rt);
- bool STR_imm_fpsimd_1(Imm<2> size, Imm<1> opc_1, Imm<9> imm9, bool not_postindex, Reg Rn, Vec Vt);
- bool STR_imm_fpsimd_2(Imm<2> size, Imm<1> opc_1, Imm<12> imm12, Reg Rn, Vec Vt);
- bool LDR_imm_fpsimd_1(Imm<2> size, Imm<1> opc_1, Imm<9> imm9, bool not_postindex, Reg Rn, Vec Vt);
- bool LDR_imm_fpsimd_2(Imm<2> size, Imm<1> opc_1, Imm<12> imm12, Reg Rn, Vec Vt);
- bool STUR_fpsimd(Imm<2> size, Imm<1> opc_1, Imm<9> imm9, Reg Rn, Vec Vt);
- bool LDUR_fpsimd(Imm<2> size, Imm<1> opc_1, Imm<9> imm9, Reg Rn, Vec Vt);
-
- // Loads and stores - Load/Store register (unprivileged)
- bool STTRB(Imm<9> imm9, Reg Rn, Reg Rt);
- bool LDTRB(Imm<9> imm9, Reg Rn, Reg Rt);
- bool LDTRSB(Imm<2> opc, Imm<9> imm9, Reg Rn, Reg Rt);
- bool STTRH(Imm<9> imm9, Reg Rn, Reg Rt);
- bool LDTRH(Imm<9> imm9, Reg Rn, Reg Rt);
- bool LDTRSH(Imm<2> opc, Imm<9> imm9, Reg Rn, Reg Rt);
- bool STTR(Imm<2> size, Imm<9> imm9, Reg Rn, Reg Rt);
- bool LDTR(Imm<2> size, Imm<9> imm9, Reg Rn, Reg Rt);
- bool LDTRSW(Imm<9> imm9, Reg Rn, Reg Rt);
-
- // Loads and stores - Atomic memory options
- bool LDADDB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDCLRB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDEORB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSETB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSMAXB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSMINB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDUMAXB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDUMINB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool SWPB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDAPRB(Reg Rn, Reg Rt);
- bool LDADDH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDCLRH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDEORH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSETH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSMAXH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSMINH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDUMAXH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDUMINH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool SWPH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDAPRH(Reg Rn, Reg Rt);
- bool LDADD(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDCLR(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDEOR(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSET(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSMAX(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSMIN(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDUMAX(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDUMIN(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool SWP(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDAPR(Reg Rn, Reg Rt);
-
- // Loads and stores - Load/Store register (register offset)
- bool STRx_reg(Imm<2> size, Imm<1> opc_1, Reg Rm, Imm<3> option, bool S, Reg Rn, Reg Rt);
- bool LDRx_reg(Imm<2> size, Imm<1> opc_1, Reg Rm, Imm<3> option, bool S, Reg Rn, Reg Rt);
- bool STR_reg_fpsimd(Imm<2> size, Imm<1> opc_1, Reg Rm, Imm<3> option, bool S, Reg Rn, Vec Vt);
- bool LDR_reg_fpsimd(Imm<2> size, Imm<1> opc_1, Reg Rm, Imm<3> option, bool S, Reg Rn, Vec Vt);
-
- // Loads and stores - Load/Store memory tags
- bool STG_1(Imm<9> imm9, Reg Rn);
- bool STG_2(Imm<9> imm9, Reg Rn);
- bool STG_3(Imm<9> imm9, Reg Rn);
- bool LDG(Imm<9> offset_imm, Reg Rn, Reg Rt);
- bool STZG_1(Imm<9> offset_imm, Reg Rn);
- bool STZG_2(Imm<9> offset_imm, Reg Rn);
- bool STZG_3(Imm<9> offset_imm, Reg Rn);
- bool ST2G_1(Imm<9> offset_imm, Reg Rn);
- bool ST2G_2(Imm<9> offset_imm, Reg Rn);
- bool ST2G_3(Imm<9> offset_imm, Reg Rn);
- bool STGV(Reg Rn, Reg Rt);
- bool STZ2G_1(Imm<9> offset_imm, Reg Rn);
- bool STZ2G_2(Imm<9> offset_imm, Reg Rn);
- bool STZ2G_3(Imm<9> offset_imm, Reg Rn);
- bool LDGV(Reg Rn, Reg Rt);
-
- // Loads and stores - Load/Store register (pointer authentication)
- bool LDRA(bool M, bool S, Imm<9> imm9, bool W, Reg Rn, Reg Rt);
-
- // Data Processing - Register - 2 source
- bool UDIV(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool SDIV(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool LSLV(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool LSRV(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool ASRV(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool RORV(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool CRC32(bool sf, Reg Rm, Imm<2> sz, Reg Rn, Reg Rd);
- bool CRC32C(bool sf, Reg Rm, Imm<2> sz, Reg Rn, Reg Rd);
- bool PACGA(Reg Rm, Reg Rn, Reg Rd);
- bool SUBP(Reg Rm, Reg Rn, Reg Rd);
- bool IRG(Reg Rm, Reg Rn, Reg Rd);
- bool GMI(Reg Rm, Reg Rn, Reg Rd);
- bool SUBPS(Reg Rm, Reg Rn, Reg Rd);
-
- // Data Processing - Register - 1 source
- bool RBIT_int(bool sf, Reg Rn, Reg Rd);
- bool REV16_int(bool sf, Reg Rn, Reg Rd);
- bool REV(bool sf, bool opc_0, Reg Rn, Reg Rd);
- bool CLZ_int(bool sf, Reg Rn, Reg Rd);
- bool CLS_int(bool sf, Reg Rn, Reg Rd);
- bool REV32_int(Reg Rn, Reg Rd);
- bool PACDA(bool Z, Reg Rn, Reg Rd);
- bool PACDB(bool Z, Reg Rn, Reg Rd);
- bool AUTDA(bool Z, Reg Rn, Reg Rd);
- bool AUTDB(bool Z, Reg Rn, Reg Rd);
-
- // Data Processing - Register - Logical (shifted register)
- bool AND_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool BIC_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool ORR_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool ORN_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool EOR_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool EON(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool ANDS_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool BICS(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
-
- // Data Processing - Register - Add/Sub (shifted register)
- bool ADD_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool ADDS_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool SUB_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool SUBS_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
-
- // Data Processing - Register - Add/Sub (shifted register)
- bool ADD_ext(bool sf, Reg Rm, Imm<3> option, Imm<3> imm3, Reg Rn, Reg Rd);
- bool ADDS_ext(bool sf, Reg Rm, Imm<3> option, Imm<3> imm3, Reg Rn, Reg Rd);
- bool SUB_ext(bool sf, Reg Rm, Imm<3> option, Imm<3> imm3, Reg Rn, Reg Rd);
- bool SUBS_ext(bool sf, Reg Rm, Imm<3> option, Imm<3> imm3, Reg Rn, Reg Rd);
-
- // Data Processing - Register - Add/Sub (with carry)
- bool ADC(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool ADCS(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool SBC(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool SBCS(bool sf, Reg Rm, Reg Rn, Reg Rd);
-
- // Data Processing - Register - Conditional compare
- bool CCMN_reg(bool sf, Reg Rm, Cond cond, Reg Rn, Imm<4> nzcv);
- bool CCMP_reg(bool sf, Reg Rm, Cond cond, Reg Rn, Imm<4> nzcv);
- bool CCMN_imm(bool sf, Imm<5> imm5, Cond cond, Reg Rn, Imm<4> nzcv);
- bool CCMP_imm(bool sf, Imm<5> imm5, Cond cond, Reg Rn, Imm<4> nzcv);
-
- // Data Processing - Register - Conditional select
- bool CSEL(bool sf, Reg Rm, Cond cond, Reg Rn, Reg Rd);
- bool CSINC(bool sf, Reg Rm, Cond cond, Reg Rn, Reg Rd);
- bool CSINV(bool sf, Reg Rm, Cond cond, Reg Rn, Reg Rd);
- bool CSNEG(bool sf, Reg Rm, Cond cond, Reg Rn, Reg Rd);
-
- // Data Processing - Register - 3 source
- bool MADD(bool sf, Reg Rm, Reg Ra, Reg Rn, Reg Rd);
- bool MSUB(bool sf, Reg Rm, Reg Ra, Reg Rn, Reg Rd);
- bool SMADDL(Reg Rm, Reg Ra, Reg Rn, Reg Rd);
- bool SMSUBL(Reg Rm, Reg Ra, Reg Rn, Reg Rd);
- bool SMULH(Reg Rm, Reg Rn, Reg Rd);
- bool UMADDL(Reg Rm, Reg Ra, Reg Rn, Reg Rd);
- bool UMSUBL(Reg Rm, Reg Ra, Reg Rn, Reg Rd);
- bool UMULH(Reg Rm, Reg Rn, Reg Rd);
-
- // Data Processing - FP and SIMD - AES
- bool AESE(Vec Vn, Vec Vd);
- bool AESD(Vec Vn, Vec Vd);
- bool AESMC(Vec Vn, Vec Vd);
- bool AESIMC(Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SHA
- bool SHA1C(Vec Vm, Vec Vn, Vec Vd);
- bool SHA1P(Vec Vm, Vec Vn, Vec Vd);
- bool SHA1M(Vec Vm, Vec Vn, Vec Vd);
- bool SHA1SU0(Vec Vm, Vec Vn, Vec Vd);
- bool SHA256H(Vec Vm, Vec Vn, Vec Vd);
- bool SHA256H2(Vec Vm, Vec Vn, Vec Vd);
- bool SHA256SU1(Vec Vm, Vec Vn, Vec Vd);
- bool SHA1H(Vec Vn, Vec Vd);
- bool SHA1SU1(Vec Vn, Vec Vd);
- bool SHA256SU0(Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Scalar copy
- bool DUP_elt_1(Imm<5> imm5, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Scalar three
- bool FMULX_vec_1(Vec Vm, Vec Vn, Vec Vd);
- bool FMULX_vec_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FCMEQ_reg_1(Vec Vm, Vec Vn, Vec Vd);
- bool FCMEQ_reg_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FRECPS_1(Vec Vm, Vec Vn, Vec Vd);
- bool FRECPS_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FRSQRTS_1(Vec Vm, Vec Vn, Vec Vd);
- bool FRSQRTS_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FCMGE_reg_1(Vec Vm, Vec Vn, Vec Vd);
- bool FCMGE_reg_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FACGE_1(Vec Vm, Vec Vn, Vec Vd);
- bool FACGE_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FABD_1(Vec Vm, Vec Vn, Vec Vd);
- bool FABD_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FCMGT_reg_1(Vec Vm, Vec Vn, Vec Vd);
- bool FCMGT_reg_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FACGT_1(Vec Vm, Vec Vn, Vec Vd);
- bool FACGT_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Two register misc FP16
- bool FCVTNS_1(Vec Vn, Vec Vd);
- bool FCVTMS_1(Vec Vn, Vec Vd);
- bool FCVTAS_1(Vec Vn, Vec Vd);
- bool SCVTF_int_1(Vec Vn, Vec Vd);
- bool FCMGT_zero_1(Vec Vn, Vec Vd);
- bool FCMEQ_zero_1(Vec Vn, Vec Vd);
- bool FCMLT_1(Vec Vn, Vec Vd);
- bool FCVTPS_1(Vec Vn, Vec Vd);
- bool FCVTZS_int_1(Vec Vn, Vec Vd);
- bool FRECPE_1(Vec Vn, Vec Vd);
- bool FRECPX_1(Vec Vn, Vec Vd);
- bool FCVTNU_1(Vec Vn, Vec Vd);
- bool FCVTMU_1(Vec Vn, Vec Vd);
- bool FCVTAU_1(Vec Vn, Vec Vd);
- bool UCVTF_int_1(Vec Vn, Vec Vd);
- bool FCMGE_zero_1(Vec Vn, Vec Vd);
- bool FCMLE_1(Vec Vn, Vec Vd);
- bool FCVTPU_1(Vec Vn, Vec Vd);
- bool FCVTZU_int_1(Vec Vn, Vec Vd);
- bool FRSQRTE_1(Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Two register misc
- bool FCVTNS_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTMS_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTAS_2(bool sz, Vec Vn, Vec Vd);
- bool SCVTF_int_2(bool sz, Vec Vn, Vec Vd);
- bool FCMGT_zero_2(bool sz, Vec Vn, Vec Vd);
- bool FCMEQ_zero_2(bool sz, Vec Vn, Vec Vd);
- bool FCMLT_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTPS_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTZS_int_2(bool sz, Vec Vn, Vec Vd);
- bool FRECPE_2(bool sz, Vec Vn, Vec Vd);
- bool FRECPX_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTNU_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTMU_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTAU_2(bool sz, Vec Vn, Vec Vd);
- bool UCVTF_int_2(bool sz, Vec Vn, Vec Vd);
- bool FCMGE_zero_2(bool sz, Vec Vn, Vec Vd);
- bool FCMLE_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTPU_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTZU_int_2(bool sz, Vec Vn, Vec Vd);
- bool FRSQRTE_2(bool sz, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Scalar two register misc FP16
- bool FCVTNS_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTMS_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTAS_3(bool Q, Vec Vn, Vec Vd);
- bool SCVTF_int_3(bool Q, Vec Vn, Vec Vd);
- bool FCMGT_zero_3(bool Q, Vec Vn, Vec Vd);
- bool FCMEQ_zero_3(bool Q, Vec Vn, Vec Vd);
- bool FCMLT_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTPS_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTZS_int_3(bool Q, Vec Vn, Vec Vd);
- bool FRECPE_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTNU_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTMU_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTAU_3(bool Q, Vec Vn, Vec Vd);
- bool UCVTF_int_3(bool Q, Vec Vn, Vec Vd);
- bool FCMGE_zero_3(bool Q, Vec Vn, Vec Vd);
- bool FCMLE_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTPU_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTZU_int_3(bool Q, Vec Vn, Vec Vd);
- bool FRSQRTE_3(bool Q, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Scalar two register misc
- bool FCVTNS_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTMS_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTAS_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool SCVTF_int_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCMGT_zero_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCMEQ_zero_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCMLT_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTPS_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTZS_int_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRECPE_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTNU_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTMU_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTAU_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool UCVTF_int_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCMGE_zero_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCMLE_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTPU_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTZU_int_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRSQRTE_4(bool Q, bool sz, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Scalar three same extra
- bool SQRDMLAH_vec_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQRDMLAH_vec_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQRDMLSH_vec_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQRDMLSH_vec_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Scalar two-register misc
- bool SUQADD_1(Imm<2> size, Vec Vn, Vec Vd);
- bool SQABS_1(Imm<2> size, Vec Vn, Vec Vd);
- bool CMGT_zero_1(Imm<2> size, Vec Vn, Vec Vd);
- bool CMEQ_zero_1(Imm<2> size, Vec Vn, Vec Vd);
- bool CMLT_1(Imm<2> size, Vec Vn, Vec Vd);
- bool ABS_1(Imm<2> size, Vec Vn, Vec Vd);
- bool SQXTN_1(Imm<2> size, Vec Vn, Vec Vd);
- bool USQADD_1(Imm<2> size, Vec Vn, Vec Vd);
- bool SQNEG_1(Imm<2> size, Vec Vn, Vec Vd);
- bool CMGE_zero_1(Imm<2> size, Vec Vn, Vec Vd);
- bool CMLE_1(Imm<2> size, Vec Vn, Vec Vd);
- bool NEG_1(Imm<2> size, Vec Vn, Vec Vd);
- bool SQXTUN_1(Imm<2> size, Vec Vn, Vec Vd);
- bool UQXTN_1(Imm<2> size, Vec Vn, Vec Vd);
- bool FCVTXN_1(bool sz, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Scalar pairwise
- bool ADDP_pair(Imm<2> size, Vec Vn, Vec Vd);
- bool FMAXNMP_pair_1(Vec Vn, Vec Vd);
- bool FMAXNMP_pair_2(bool sz, Vec Vn, Vec Vd);
- bool FADDP_pair_1(Vec Vn, Vec Vd);
- bool FADDP_pair_2(bool sz, Vec Vn, Vec Vd);
- bool FMAXP_pair_1(Vec Vn, Vec Vd);
- bool FMAXP_pair_2(bool sz, Vec Vn, Vec Vd);
- bool FMINNMP_pair_1(Vec Vn, Vec Vd);
- bool FMINNMP_pair_2(bool sz, Vec Vn, Vec Vd);
- bool FMINP_pair_1(Vec Vn, Vec Vd);
- bool FMINP_pair_2(bool sz, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Scalar three different
- bool SQDMLAL_vec_1(Imm<2> size, Reg Rm, Reg Rn, Vec Vd);
- bool SQDMLSL_vec_1(Imm<2> size, Reg Rm, Reg Rn, Vec Vd);
- bool SQDMULL_vec_1(Imm<2> size, Reg Rm, Reg Rn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Scalar three same
- bool SQADD_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQSUB_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMGT_reg_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMGE_reg_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SSHL_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQSHL_reg_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SRSHL_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQRSHL_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool ADD_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMTST_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQDMULH_vec_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQADD_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQSUB_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMHI_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMHS_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool USHL_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQSHL_reg_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool URSHL_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQRSHL_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SUB_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMEQ_reg_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQRDMULH_vec_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Scalar shift by immediate
- bool SSHR_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SSRA_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SRSHR_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SRSRA_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SHL_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHL_imm_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHRN_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQRSHRN_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SCVTF_fix_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool FCVTZS_fix_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool USHR_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool USRA_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool URSHR_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool URSRA_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SRI_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SLI_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHLU_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UQSHL_imm_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHRUN_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQRSHRUN_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UQSHRN_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UQRSHRN_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UCVTF_fix_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool FCVTZU_fix_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Scalar x indexed element
- bool SQDMLAL_elt_1(Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQDMLSL_elt_1(Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQDMULL_elt_1(Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQDMULH_elt_1(Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQRDMULH_elt_1(Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLA_elt_1(Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLA_elt_2(bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLS_elt_1(Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLS_elt_2(bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMUL_elt_1(Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMUL_elt_2(bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQRDMLAH_elt_1(Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQRDMLSH_elt_1(Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMULX_elt_1(Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMULX_elt_2(bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Table Lookup
- bool TBL(bool Q, Vec Vm, Imm<2> len, size_t Vn, Vec Vd);
- bool TBX(bool Q, Vec Vm, Imm<2> len, size_t Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Permute
- bool UZP1(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool TRN1(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool ZIP1(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UZP2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool TRN2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool ZIP2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Extract
- bool EXT(bool Q, Vec Vm, Imm<4> imm4, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Copy
- bool DUP_elt_2(bool Q, Imm<5> imm5, Vec Vn, Vec Vd);
- bool DUP_gen(bool Q, Imm<5> imm5, Reg Rn, Vec Vd);
- bool SMOV(bool Q, Imm<5> imm5, Vec Vn, Reg Rd);
- bool UMOV(bool Q, Imm<5> imm5, Vec Vn, Reg Rd);
- bool INS_gen(Imm<5> imm5, Reg Rn, Vec Vd);
- bool INS_elt(Imm<5> imm5, Imm<4> imm4, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Three same
- bool FMULX_vec_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FCMEQ_reg_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FRECPS_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FRSQRTS_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FCMGE_reg_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FACGE_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FABD_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FCMGT_reg_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FACGT_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMAXNM_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMLA_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FADD_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMAX_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMINNM_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMLS_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FSUB_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMIN_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMAXNMP_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FADDP_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMUL_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMAXP_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FDIV_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMINNMP_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMINP_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Three same extra
- bool SDOT_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UDOT_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool FCMLA_vec(bool Q, Imm<2> size, Vec Vm, Imm<2> rot, Vec Vn, Vec Vd);
- bool FCADD_vec(bool Q, Imm<2> size, Vec Vm, Imm<1> rot, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Two register misc
- bool REV64_asimd(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool REV16_asimd(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SADDLP(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CLS_asimd(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CNT(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SADALP(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool XTN(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool FCVTN(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTL(bool Q, bool sz, Vec Vn, Vec Vd);
- bool URECPE(bool Q, bool sz, Vec Vn, Vec Vd);
- bool REV32_asimd(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool UADDLP(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CLZ_asimd(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool UADALP(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SHLL(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool NOT(bool Q, Vec Vn, Vec Vd);
- bool RBIT_asimd(bool Q, Vec Vn, Vec Vd);
- bool URSQRTE(bool Q, bool sz, Vec Vn, Vec Vd);
- bool SUQADD_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SQABS_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CMGT_zero_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CMEQ_zero_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CMLT_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool ABS_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SQXTN_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool USQADD_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SQNEG_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CMGE_zero_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CMLE_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool NEG_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SQXTUN_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool UQXTN_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool FCVTXN_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINTN_1(bool Q, Vec Vn, Vec Vd);
- bool FRINTN_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINTM_1(bool Q, Vec Vn, Vec Vd);
- bool FRINTM_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FABS_1(bool Q, Vec Vn, Vec Vd);
- bool FABS_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINTP_1(bool Q, Vec Vn, Vec Vd);
- bool FRINTP_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINTZ_1(bool Q, Vec Vn, Vec Vd);
- bool FRINTZ_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINTA_1(bool Q, Vec Vn, Vec Vd);
- bool FRINTA_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINTX_1(bool Q, Vec Vn, Vec Vd);
- bool FRINTX_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FNEG_1(bool Q, Vec Vn, Vec Vd);
- bool FNEG_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINTI_1(bool Q, Vec Vn, Vec Vd);
- bool FRINTI_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FSQRT_1(bool Q, Vec Vn, Vec Vd);
- bool FSQRT_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINT32X_1(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINT64X_1(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINT32Z_1(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINT64Z_1(bool Q, bool sz, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD across lanes
- bool SADDLV(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SMAXV(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SMINV(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool ADDV(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool FMAXNMV_1(bool Q, Vec Vn, Vec Vd);
- bool FMAXNMV_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FMAXV_1(bool Q, Vec Vn, Vec Vd);
- bool FMAXV_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FMINNMV_1(bool Q, Vec Vn, Vec Vd);
- bool FMINNMV_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FMINV_1(bool Q, Vec Vn, Vec Vd);
- bool FMINV_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool UADDLV(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool UMAXV(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool UMINV(bool Q, Imm<2> size, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD three different
- bool SADDL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SADDW(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SSUBL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SSUBW(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool ADDHN(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SABAL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SUBHN(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SABDL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SMLAL_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SMLSL_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SMULL_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool PMULL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UADDL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UADDW(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool USUBL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool USUBW(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool RADDHN(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UABAL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool RSUBHN(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UABDL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UMLAL_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UMLSL_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UMULL_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQDMLAL_vec_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQDMLSL_vec_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQDMULL_vec_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD three same
- bool SHADD(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SRHADD(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SHSUB(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SMAX(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SMIN(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SABD(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SABA(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool MLA_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool MUL_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SMAXP(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SMINP(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool ADDP_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool FMLAL_vec_1(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMLAL_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool AND_asimd(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool BIC_asimd_reg(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMLSL_vec_1(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMLSL_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool ORR_asimd_reg(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool ORN_asimd(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool UHADD(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool URHADD(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UHSUB(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UMAX(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UMIN(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UABD(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UABA(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool MLS_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool PMUL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UMAXP(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UMINP(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool EOR_asimd(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool BSL(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool BIT(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool BIF(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMAXNM_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMLA_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FADD_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMAX_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMINNM_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMLS_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FSUB_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMIN_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMAXNMP_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FADDP_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMUL_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMAXP_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FDIV_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMINNMP_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMINP_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMULX_vec_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FCMEQ_reg_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FRECPS_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FRSQRTS_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FCMGE_reg_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FACGE_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FABD_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FCMGT_reg_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FACGT_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool SQADD_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQSUB_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMGT_reg_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMGE_reg_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SSHL_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQSHL_reg_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SRSHL_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQRSHL_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool ADD_vector(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMTST_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQDMULH_vec_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQADD_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQSUB_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMHI_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMHS_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool USHL_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQSHL_reg_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool URSHL_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQRSHL_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SUB_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMEQ_reg_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQRDMULH_vec_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD modified immediate
- bool MOVI(bool Q, bool op, Imm<1> a, Imm<1> b, Imm<1> c, Imm<4> cmode, Imm<1> d, Imm<1> e, Imm<1> f, Imm<1> g, Imm<1> h, Vec Vd);
- bool FMOV_2(bool Q, bool op, Imm<1> a, Imm<1> b, Imm<1> c, Imm<1> d, Imm<1> e, Imm<1> f, Imm<1> g, Imm<1> h, Vec Vd);
- bool FMOV_3(bool Q, Imm<1> a, Imm<1> b, Imm<1> c, Imm<1> d, Imm<1> e, Imm<1> f, Imm<1> g, Imm<1> h, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Shift by immediate
- bool SSHR_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SSRA_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SRSHR_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SRSRA_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SHL_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHL_imm_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SHRN(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool RSHRN(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHRN_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQRSHRN_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SSHLL(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SCVTF_fix_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool FCVTZS_fix_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool USHR_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool USRA_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool URSHR_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool URSRA_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SRI_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SLI_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHLU_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UQSHL_imm_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHRUN_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQRSHRUN_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UQSHRN_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UQRSHRN_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool USHLL(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UCVTF_fix_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool FCVTZU_fix_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD vector x indexed element
- bool SMLAL_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQDMLAL_elt_2(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SMLSL_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQDMLSL_elt_2(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool MUL_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SMULL_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vm, Imm<1> H, Vec Vn, Vec Vd);
- bool SQDMULL_elt_2(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQDMULH_elt_2(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQRDMULH_elt_2(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SDOT_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLA_elt_3(bool Q, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLA_elt_4(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLS_elt_3(bool Q, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLS_elt_4(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMUL_elt_3(bool Q, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMUL_elt_4(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLAL_elt_1(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLAL_elt_2(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLSL_elt_1(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLSL_elt_2(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool MLA_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool UMLAL_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool MLS_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool UMLSL_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool UMULL_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQRDMLAH_elt_2(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool UDOT_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQRDMLSH_elt_2(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMULX_elt_3(bool Q, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMULX_elt_4(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FCMLA_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<2> rot, Imm<1> H, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Cryptographic three register
- bool SM3TT1A(Vec Vm, Imm<2> imm2, Vec Vn, Vec Vd);
- bool SM3TT1B(Vec Vm, Imm<2> imm2, Vec Vn, Vec Vd);
- bool SM3TT2A(Vec Vm, Imm<2> imm2, Vec Vn, Vec Vd);
- bool SM3TT2B(Vec Vm, Imm<2> imm2, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SHA512 three register
- bool SHA512H(Vec Vm, Vec Vn, Vec Vd);
- bool SHA512H2(Vec Vm, Vec Vn, Vec Vd);
- bool SHA512SU1(Vec Vm, Vec Vn, Vec Vd);
- bool RAX1(Vec Vm, Vec Vn, Vec Vd);
- bool XAR(Vec Vm, Imm<6> imm6, Vec Vn, Vec Vd);
- bool SM3PARTW1(Vec Vm, Vec Vn, Vec Vd);
- bool SM3PARTW2(Vec Vm, Vec Vn, Vec Vd);
- bool SM4EKEY(Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Cryptographic four register
- bool EOR3(Vec Vm, Vec Va, Vec Vn, Vec Vd);
- bool BCAX(Vec Vm, Vec Va, Vec Vn, Vec Vd);
- bool SM3SS1(Vec Vm, Vec Va, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SHA512 two register
- bool SHA512SU0(Vec Vn, Vec Vd);
- bool SM4E(Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Conversion between floating point and fixed point
- bool SCVTF_float_fix(bool sf, Imm<2> type, Imm<6> scale, Reg Rn, Vec Vd);
- bool UCVTF_float_fix(bool sf, Imm<2> type, Imm<6> scale, Reg Rn, Vec Vd);
- bool FCVTZS_float_fix(bool sf, Imm<2> type, Imm<6> scale, Vec Vn, Reg Rd);
- bool FCVTZU_float_fix(bool sf, Imm<2> type, Imm<6> scale, Vec Vn, Reg Rd);
-
- // Data Processing - FP and SIMD - Conversion between floating point and integer
- bool FCVTNS_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FCVTNU_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool SCVTF_float_int(bool sf, Imm<2> type, Reg Rn, Vec Vd);
- bool UCVTF_float_int(bool sf, Imm<2> type, Reg Rn, Vec Vd);
- bool FCVTAS_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FCVTAU_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FMOV_float_gen(bool sf, Imm<2> type, Imm<1> rmode_0, Imm<1> opc_0, size_t n, size_t d);
- bool FCVTPS_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FCVTPU_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FCVTMS_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FCVTMU_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FCVTZS_float_int(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FCVTZU_float_int(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FJCVTZS(Vec Vn, Reg Rd);
-
- // Data Processing - FP and SIMD - Floating point data processing
- bool FMOV_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FABS_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FNEG_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FSQRT_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FCVT_float(Imm<2> type, Imm<2> opc, Vec Vn, Vec Vd);
- bool FRINTN_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINTP_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINTM_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINTZ_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINTA_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINTX_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINTI_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINT32X_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINT64X_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINT32Z_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINT64Z_float(Imm<2> type, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Floating point compare
- bool FCMP_float(Imm<2> type, Vec Vm, Vec Vn, bool cmp_with_zero);
- bool FCMPE_float(Imm<2> type, Vec Vm, Vec Vn, bool cmp_with_zero);
-
- // Data Processing - FP and SIMD - Floating point immediate
- bool FMOV_float_imm(Imm<2> type, Imm<8> imm8, Vec Vd);
-
- // Data Processing - FP and SIMD - Floating point conditional compare
- bool FCCMP_float(Imm<2> type, Vec Vm, Cond cond, Vec Vn, Imm<4> nzcv);
- bool FCCMPE_float(Imm<2> type, Vec Vm, Cond cond, Vec Vn, Imm<4> nzcv);
-
- // Data Processing - FP and SIMD - Floating point data processing two register
- bool FMUL_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FDIV_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FADD_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FSUB_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FMAX_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FMIN_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FMAXNM_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FMINNM_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FNMUL_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Floating point conditional select
- bool FCSEL_float(Imm<2> type, Vec Vm, Cond cond, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Floating point data processing three register
- bool FMADD_float(Imm<2> type, Vec Vm, Vec Va, Vec Vn, Vec Vd);
- bool FMSUB_float(Imm<2> type, Vec Vm, Vec Va, Vec Vn, Vec Vd);
- bool FNMADD_float(Imm<2> type, Vec Vm, Vec Va, Vec Vn, Vec Vd);
- bool FNMSUB_float(Imm<2> type, Vec Vm, Vec Va, Vec Vn, Vec Vd);
-};
-
-inline std::optional<size_t> FPGetDataSize(Imm<2> type) {
- switch (type.ZeroExtend()) {
- case 0b00:
- return 32;
- case 0b01:
- return 64;
- case 0b11:
- return 16;
- }
- return std::nullopt;
-}
-
-} // namespace Dynarmic::A64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/decoder/decoder_detail.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/decoder/decoder_detail.h
deleted file mode 100644
index cf7d0e64..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/decoder/decoder_detail.h
+++ /dev/null
@@ -1,190 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <algorithm>
-#include <array>
-#include <tuple>
-
-#include <mcl/assert.hpp>
-#include <mcl/bitsizeof.hpp>
-#include <mcl/type_traits/function_info.hpp>
-
-namespace Dynarmic::Decoder {
-namespace detail {
-
-template<size_t N>
-inline consteval std::array<char, N> StringToArray(const char (&str)[N + 1]) {
- std::array<char, N> result{};
- for (size_t i = 0; i < N; i++) {
- result[i] = str[i];
- }
- return result;
-}
-
-/**
- * Helper functions for the decoders.
- *
- * @tparam MatcherT The type of the Matcher to use.
- */
-template<class MatcherT>
-struct detail {
- using opcode_type = typename MatcherT::opcode_type;
- using visitor_type = typename MatcherT::visitor_type;
-
- static constexpr size_t opcode_bitsize = mcl::bitsizeof<opcode_type>;
-
- /**
- * Generates the mask and the expected value after masking from a given bitstring.
- * A '0' in a bitstring indicates that a zero must be present at that bit position.
- * A '1' in a bitstring indicates that a one must be present at that bit position.
- */
-#ifdef __clang__
- static constexpr auto GetMaskAndExpect(std::array<char, opcode_bitsize> bitstring) {
-#else
- static consteval auto GetMaskAndExpect(std::array<char, opcode_bitsize> bitstring) {
-#endif
- const auto one = static_cast<opcode_type>(1);
- opcode_type mask = 0, expect = 0;
- for (size_t i = 0; i < opcode_bitsize; i++) {
- const size_t bit_position = opcode_bitsize - i - 1;
- switch (bitstring[i]) {
- case '0':
- mask |= one << bit_position;
- break;
- case '1':
- expect |= one << bit_position;
- mask |= one << bit_position;
- break;
- default:
- // Ignore
- break;
- }
- }
- return std::make_tuple(mask, expect);
- }
-
- /**
- * Generates the masks and shifts for each argument.
- * A '-' in a bitstring indicates that we don't care about that value.
- * An argument is specified by a continuous string of the same character.
- */
- template<size_t N>
- static consteval auto GetArgInfo(std::array<char, opcode_bitsize> bitstring) {
- std::array<opcode_type, N> masks = {};
- std::array<size_t, N> shifts = {};
- size_t arg_index = 0;
- char ch = 0;
-
- for (size_t i = 0; i < opcode_bitsize; i++) {
- if (bitstring[i] == '0' || bitstring[i] == '1' || bitstring[i] == '-') {
- if (ch != 0) {
- ch = 0;
- arg_index++;
- }
- } else {
- if (ch == 0) {
- ch = bitstring[i];
- } else if (ch != bitstring[i]) {
- ch = bitstring[i];
- arg_index++;
- }
-
- if constexpr (N > 0) {
- const size_t bit_position = opcode_bitsize - i - 1;
-
- if (arg_index >= N)
- throw std::out_of_range("Unexpected field");
-
- masks[arg_index] |= static_cast<opcode_type>(1) << bit_position;
- shifts[arg_index] = bit_position;
- } else {
- throw std::out_of_range("Unexpected field");
- }
- }
- }
-
-#if !defined(DYNARMIC_IGNORE_ASSERTS) && !defined(__ANDROID__)
- // Avoids a MSVC ICE, and avoids Android NDK issue.
- ASSERT(std::all_of(masks.begin(), masks.end(), [](auto m) { return m != 0; }));
-#endif
-
- return std::make_tuple(masks, shifts);
- }
-
- /**
- * This struct's Make member function generates a lambda which decodes an instruction based on
- * the provided arg_masks and arg_shifts. The Visitor member function to call is provided as a
- * template argument.
- */
- template<typename FnT>
- struct VisitorCaller;
-
-#ifdef _MSC_VER
-# pragma warning(push)
-# pragma warning(disable : 4800) // forcing value to bool 'true' or 'false' (performance warning)
-#endif
- template<typename Visitor, typename... Args, typename CallRetT>
- struct VisitorCaller<CallRetT (Visitor::*)(Args...)> {
- template<size_t... iota>
- static auto Make(std::integer_sequence<size_t, iota...>,
- CallRetT (Visitor::*const fn)(Args...),
- const std::array<opcode_type, sizeof...(iota)> arg_masks,
- const std::array<size_t, sizeof...(iota)> arg_shifts) {
- static_assert(std::is_same_v<visitor_type, Visitor>, "Member function is not from Matcher's Visitor");
- return [fn, arg_masks, arg_shifts](Visitor& v, opcode_type instruction) {
- (void)instruction;
- (void)arg_masks;
- (void)arg_shifts;
- return (v.*fn)(static_cast<Args>((instruction & arg_masks[iota]) >> arg_shifts[iota])...);
- };
- }
- };
-
- template<typename Visitor, typename... Args, typename CallRetT>
- struct VisitorCaller<CallRetT (Visitor::*)(Args...) const> {
- template<size_t... iota>
- static auto Make(std::integer_sequence<size_t, iota...>,
- CallRetT (Visitor::*const fn)(Args...) const,
- const std::array<opcode_type, sizeof...(iota)> arg_masks,
- const std::array<size_t, sizeof...(iota)> arg_shifts) {
- static_assert(std::is_same_v<visitor_type, const Visitor>, "Member function is not from Matcher's Visitor");
- return [fn, arg_masks, arg_shifts](const Visitor& v, opcode_type instruction) {
- (void)instruction;
- (void)arg_masks;
- (void)arg_shifts;
- return (v.*fn)(static_cast<Args>((instruction & arg_masks[iota]) >> arg_shifts[iota])...);
- };
- }
- };
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-
- /**
- * Creates a matcher that can match and parse instructions based on bitstring.
- * See also: GetMaskAndExpect and GetArgInfo for format of bitstring.
- */
- template<auto bitstring, typename FnT>
- static auto GetMatcher(FnT fn, const char* const name) {
- constexpr size_t args_count = mcl::parameter_count_v<FnT>;
-
- constexpr auto mask = std::get<0>(GetMaskAndExpect(bitstring));
- constexpr auto expect = std::get<1>(GetMaskAndExpect(bitstring));
- constexpr auto arg_masks = std::get<0>(GetArgInfo<args_count>(bitstring));
- constexpr auto arg_shifts = std::get<1>(GetArgInfo<args_count>(bitstring));
-
- using Iota = std::make_index_sequence<args_count>;
-
- const auto proxy_fn = VisitorCaller<FnT>::Make(Iota(), fn, arg_masks, arg_shifts);
- return MatcherT(name, mask, expect, proxy_fn);
- }
-};
-
-#define DYNARMIC_DECODER_GET_MATCHER(MatcherT, fn, name, bitstring) Decoder::detail::detail<MatcherT<V>>::template GetMatcher<bitstring>(&V::fn, name)
-
-} // namespace detail
-} // namespace Dynarmic::Decoder
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/decoder/matcher.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/decoder/matcher.h
deleted file mode 100644
index adf9556d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/decoder/matcher.h
+++ /dev/null
@@ -1,76 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <functional>
-
-#include <mcl/assert.hpp>
-
-namespace Dynarmic::Decoder {
-
-/**
- * Generic instruction handling construct.
- *
- * @tparam Visitor An arbitrary visitor type that will be passed through
- * to the function being handled. This type must be the
- * type of the first parameter in a handler function.
- *
- * @tparam OpcodeType Type representing an opcode. This must be the
- * type of the second parameter in a handler function.
- */
-template<typename Visitor, typename OpcodeType>
-class Matcher {
-public:
- using opcode_type = OpcodeType;
- using visitor_type = Visitor;
- using handler_return_type = typename Visitor::instruction_return_type;
- using handler_function = std::function<handler_return_type(Visitor&, opcode_type)>;
-
- Matcher(const char* const name, opcode_type mask, opcode_type expected, handler_function func)
- : name{name}, mask{mask}, expected{expected}, fn{std::move(func)} {}
-
- /// Gets the name of this type of instruction.
- const char* GetName() const {
- return name;
- }
-
- /// Gets the mask for this instruction.
- opcode_type GetMask() const {
- return mask;
- }
-
- /// Gets the expected value after masking for this instruction.
- opcode_type GetExpected() const {
- return expected;
- }
-
- /**
- * Tests to see if the given instruction is the instruction this matcher represents.
- * @param instruction The instruction to test
- * @returns true if the given instruction matches.
- */
- bool Matches(opcode_type instruction) const {
- return (instruction & mask) == expected;
- }
-
- /**
- * Calls the corresponding instruction handler on visitor for this type of instruction.
- * @param v The visitor to use
- * @param instruction The instruction to decode.
- */
- handler_return_type call(Visitor& v, opcode_type instruction) const {
- ASSERT(Matches(instruction));
- return fn(v, instruction);
- }
-
-private:
- const char* name;
- opcode_type mask;
- opcode_type expected;
- handler_function fn;
-};
-
-} // namespace Dynarmic::Decoder
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/imm.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/imm.h
deleted file mode 100644
index 7d86abbb..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/frontend/imm.h
+++ /dev/null
@@ -1,168 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <type_traits>
-
-#include <mcl/assert.hpp>
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/bitsizeof.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/common/math_util.h"
-
-namespace Dynarmic {
-
-/**
- * Imm represents an immediate value in an AArch32/AArch64 instruction.
- * Imm is used during translation as a typesafe way of passing around immediates of fixed sizes.
- */
-template<size_t bit_size_>
-class Imm {
-public:
- static constexpr size_t bit_size = bit_size_;
-
- explicit Imm(u32 value)
- : value(value) {
- ASSERT_MSG((mcl::bit::get_bits<0, bit_size - 1>(value) == value), "More bits in value than expected");
- }
-
- template<typename T = u32>
- T ZeroExtend() const {
- static_assert(mcl::bitsizeof<T> >= bit_size);
- return static_cast<T>(value);
- }
-
- template<typename T = s32>
- T SignExtend() const {
- static_assert(mcl::bitsizeof<T> >= bit_size);
- return static_cast<T>(mcl::bit::sign_extend<bit_size, std::make_unsigned_t<T>>(value));
- }
-
- template<size_t bit>
- bool Bit() const {
- static_assert(bit < bit_size);
- return mcl::bit::get_bit<bit>(value);
- }
-
- template<size_t begin_bit, size_t end_bit, typename T = u32>
- T Bits() const {
- static_assert(begin_bit <= end_bit && end_bit < bit_size);
- static_assert(mcl::bitsizeof<T> >= end_bit - begin_bit + 1);
- return static_cast<T>(mcl::bit::get_bits<begin_bit, end_bit>(value));
- }
-
- bool operator==(Imm other) const {
- return value == other.value;
- }
-
- bool operator!=(Imm other) const {
- return !operator==(other);
- }
-
- bool operator<(Imm other) const {
- return value < other.value;
- }
-
- bool operator<=(Imm other) const {
- return value <= other.value;
- }
-
- bool operator>(Imm other) const {
- return value > other.value;
- }
-
- bool operator>=(Imm other) const {
- return value >= other.value;
- }
-
-private:
- static_assert(bit_size != 0, "Cannot have a zero-sized immediate");
- static_assert(bit_size <= 32, "Cannot have an immediate larger than the instruction size");
-
- u32 value;
-};
-
-template<size_t bit_size>
-bool operator==(u32 a, Imm<bit_size> b) {
- return Imm<bit_size>{a} == b;
-}
-
-template<size_t bit_size>
-bool operator==(Imm<bit_size> a, u32 b) {
- return Imm<bit_size>{b} == a;
-}
-
-template<size_t bit_size>
-bool operator!=(u32 a, Imm<bit_size> b) {
- return !operator==(a, b);
-}
-
-template<size_t bit_size>
-bool operator!=(Imm<bit_size> a, u32 b) {
- return !operator==(a, b);
-}
-
-template<size_t bit_size>
-bool operator<(u32 a, Imm<bit_size> b) {
- return Imm<bit_size>{a} < b;
-}
-
-template<size_t bit_size>
-bool operator<(Imm<bit_size> a, u32 b) {
- return a < Imm<bit_size>{b};
-}
-
-template<size_t bit_size>
-bool operator<=(u32 a, Imm<bit_size> b) {
- return !operator<(b, a);
-}
-
-template<size_t bit_size>
-bool operator<=(Imm<bit_size> a, u32 b) {
- return !operator<(b, a);
-}
-
-template<size_t bit_size>
-bool operator>(u32 a, Imm<bit_size> b) {
- return operator<(b, a);
-}
-
-template<size_t bit_size>
-bool operator>(Imm<bit_size> a, u32 b) {
- return operator<(b, a);
-}
-
-template<size_t bit_size>
-bool operator>=(u32 a, Imm<bit_size> b) {
- return !operator<(a, b);
-}
-
-template<size_t bit_size>
-bool operator>=(Imm<bit_size> a, u32 b) {
- return !operator<(a, b);
-}
-
-/**
- * Concatenate immediates together.
- * Left to right corresponds to most significant imm to least significant imm.
- * This is equivalent to a:b:...:z in ASL.
- */
-template<size_t first_bit_size, size_t... rest_bit_sizes>
-auto concatenate(Imm<first_bit_size> first, Imm<rest_bit_sizes>... rest) {
- if constexpr (sizeof...(rest) == 0) {
- return first;
- } else {
- const auto concat_rest = concatenate(rest...);
- const u32 value = (first.ZeroExtend() << concat_rest.bit_size) | concat_rest.ZeroExtend();
- return Imm<Common::Sum(first_bit_size, rest_bit_sizes...)>{value};
- }
-}
-
-/// Expands an Advanced SIMD modified immediate.
-u64 AdvSIMDExpandImm(bool op, Imm<4> cmode, Imm<8> imm8);
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A32/a32.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A32/a32.h
deleted file mode 100644
index e1c5b40f..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A32/a32.h
+++ /dev/null
@@ -1,109 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstddef>
-#include <cstdint>
-#include <memory>
-#include <string>
-#include <vector>
-
-#include "dynarmic/interface/A32/config.h"
-#include "dynarmic/interface/halt_reason.h"
-
-namespace Dynarmic {
-namespace A32 {
-
-class Jit final {
-public:
- explicit Jit(UserConfig conf);
- ~Jit();
-
- /**
- * Runs the emulated CPU.
- * Cannot be recursively called.
- */
- HaltReason Run();
-
- /**
- * Steps the emulated CPU.
- * Cannot be recursively called.
- */
- HaltReason Step();
-
- /**
- * Clears the code cache of all compiled code.
- * Can be called at any time. Halts execution if called within a callback.
- */
- void ClearCache();
-
- /**
- * Invalidate the code cache at a range of addresses.
- * @param start_address The starting address of the range to invalidate.
- * @param length The length (in bytes) of the range to invalidate.
- */
- void InvalidateCacheRange(std::uint32_t start_address, std::size_t length);
-
- /**
- * Reset CPU state to state at startup. Does not clear code cache.
- * Cannot be called from a callback.
- */
- void Reset();
-
- /**
- * Stops execution in Jit::Run.
- */
- void HaltExecution(HaltReason hr = HaltReason::UserDefined1);
-
- /**
- * Clears a halt reason from flags.
- * Warning: Only use this if you're sure this won't introduce races.
- */
- void ClearHalt(HaltReason hr = HaltReason::UserDefined1);
-
- /// View and modify registers.
- std::array<std::uint32_t, 16>& Regs();
- const std::array<std::uint32_t, 16>& Regs() const;
- std::array<std::uint32_t, 64>& ExtRegs();
- const std::array<std::uint32_t, 64>& ExtRegs() const;
-
- /// View and modify CPSR.
- std::uint32_t Cpsr() const;
- void SetCpsr(std::uint32_t value);
-
- /// View and modify FPSCR.
- std::uint32_t Fpscr() const;
- void SetFpscr(std::uint32_t value);
-
- /// Clears exclusive state for this core.
- void ClearExclusiveState();
-
- /**
- * Returns true if Jit::Run was called but hasn't returned yet.
- * i.e.: We're in a callback.
- */
- bool IsExecuting() const {
- return is_executing;
- }
-
- /// Debugging: Dump a disassembly all compiled code to the console.
- void DumpDisassembly() const;
-
- /**
- * Disassemble the instructions following the current pc and return
- * the resulting instructions as a vector of their string representations.
- */
- std::vector<std::string> Disassemble() const;
-
-private:
- bool is_executing = false;
-
- struct Impl;
- std::unique_ptr<Impl> impl;
-};
-
-} // namespace A32
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A32/arch_version.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A32/arch_version.h
deleted file mode 100644
index 240e40ee..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A32/arch_version.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2020 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic {
-namespace A32 {
-
-enum class ArchVersion {
- v3,
- v4,
- v4T,
- v5TE,
- v6K,
- v6T2,
- v7,
- v8,
-};
-
-} // namespace A32
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A32/config.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A32/config.h
deleted file mode 100644
index a3c2aa15..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A32/config.h
+++ /dev/null
@@ -1,246 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <cstddef>
-#include <cstdint>
-#include <memory>
-#include <optional>
-
-#include "dynarmic/frontend/A32/translate/translate_callbacks.h"
-#include "dynarmic/interface/A32/arch_version.h"
-#include "dynarmic/interface/optimization_flags.h"
-
-namespace Dynarmic {
-class ExclusiveMonitor;
-} // namespace Dynarmic
-
-namespace Dynarmic {
-namespace A32 {
-
-using VAddr = std::uint32_t;
-
-class Coprocessor;
-
-enum class Exception {
- /// An UndefinedFault occured due to executing instruction with an unallocated encoding
- UndefinedInstruction,
- /// An unpredictable instruction is to be executed. Implementation-defined behaviour should now happen.
- /// This behaviour is up to the user of this library to define.
- UnpredictableInstruction,
- /// A decode error occurred when decoding this instruction. This should never happen.
- DecodeError,
- /// A SEV instruction was executed. The event register of all PEs should be set. (Hint instruction.)
- SendEvent,
- /// A SEVL instruction was executed. The event register of the current PE should be set. (Hint instruction.)
- SendEventLocal,
- /// A WFI instruction was executed. You may now enter a low-power state. (Hint instruction.)
- WaitForInterrupt,
- /// A WFE instruction was executed. You may now enter a low-power state if the event register is clear. (Hint instruction.)
- WaitForEvent,
- /// A YIELD instruction was executed. (Hint instruction.)
- Yield,
- /// A BKPT instruction was executed.
- Breakpoint,
- /// A PLD instruction was executed. (Hint instruction.)
- PreloadData,
- /// A PLDW instruction was executed. (Hint instruction.)
- PreloadDataWithIntentToWrite,
- /// A PLI instruction was executed. (Hint instruction.)
- PreloadInstruction,
- /// Attempted to execute a code block at an address for which MemoryReadCode returned std::nullopt.
- /// (Intended to be used to emulate memory protection faults.)
- NoExecuteFault,
-};
-
-/// These function pointers may be inserted into compiled code.
-struct UserCallbacks : public TranslateCallbacks {
- virtual ~UserCallbacks() = default;
-
- // All reads through this callback are 4-byte aligned.
- // Memory must be interpreted as little endian.
- std::optional<std::uint32_t> MemoryReadCode(VAddr vaddr) override { return MemoryRead32(vaddr); }
-
- // This function is called before the instruction at pc is read.
- // IR code can be emitted by the callee prior to instruction handling.
- // By returning true the callee precludes the translation of the instruction;
- // in such case the callee is responsible for setting the terminal.
- bool PreCodeReadHook(bool /*is_thumb*/, VAddr /*pc*/, A32::IREmitter& /*ir*/) override { return true; }
-
- // Thus function is called before the instruction at pc is interpreted.
- // IR code can be emitted by the callee prior to translation of the instruction.
- void PreCodeTranslationHook(bool /*is_thumb*/, VAddr /*pc*/, A32::IREmitter& /*ir*/) override {}
-
- // Reads through these callbacks may not be aligned.
- // Memory must be interpreted as if ENDIANSTATE == 0, endianness will be corrected by the JIT.
- virtual std::uint8_t MemoryRead8(VAddr vaddr) = 0;
- virtual std::uint16_t MemoryRead16(VAddr vaddr) = 0;
- virtual std::uint32_t MemoryRead32(VAddr vaddr) = 0;
- virtual std::uint64_t MemoryRead64(VAddr vaddr) = 0;
-
- // Writes through these callbacks may not be aligned.
- virtual void MemoryWrite8(VAddr vaddr, std::uint8_t value) = 0;
- virtual void MemoryWrite16(VAddr vaddr, std::uint16_t value) = 0;
- virtual void MemoryWrite32(VAddr vaddr, std::uint32_t value) = 0;
- virtual void MemoryWrite64(VAddr vaddr, std::uint64_t value) = 0;
-
- // Writes through these callbacks may not be aligned.
- virtual bool MemoryWriteExclusive8(VAddr /*vaddr*/, std::uint8_t /*value*/, std::uint8_t /*expected*/) { return false; }
- virtual bool MemoryWriteExclusive16(VAddr /*vaddr*/, std::uint16_t /*value*/, std::uint16_t /*expected*/) { return false; }
- virtual bool MemoryWriteExclusive32(VAddr /*vaddr*/, std::uint32_t /*value*/, std::uint32_t /*expected*/) { return false; }
- virtual bool MemoryWriteExclusive64(VAddr /*vaddr*/, std::uint64_t /*value*/, std::uint64_t /*expected*/) { return false; }
-
- // If this callback returns true, the JIT will assume MemoryRead* callbacks will always
- // return the same value at any point in time for this vaddr. The JIT may use this information
- // in optimizations.
- // A conservative implementation that always returns false is safe.
- virtual bool IsReadOnlyMemory(VAddr /*vaddr*/) { return false; }
-
- /// The interpreter must execute exactly num_instructions starting from PC.
- virtual void InterpreterFallback(VAddr pc, size_t num_instructions) = 0;
-
- // This callback is called whenever a SVC instruction is executed.
- virtual void CallSVC(std::uint32_t swi) = 0;
-
- virtual void ExceptionRaised(VAddr pc, Exception exception) = 0;
-
- virtual void InstructionSynchronizationBarrierRaised() {}
-
- // Timing-related callbacks
- // ticks ticks have passed
- virtual void AddTicks(std::uint64_t ticks) = 0;
- // How many more ticks am I allowed to execute?
- virtual std::uint64_t GetTicksRemaining() = 0;
- // How many ticks should this instruction take to execute?
- std::uint64_t GetTicksForCode(bool /*is_thumb*/, VAddr /*vaddr*/, std::uint32_t /*instruction*/) override { return 1; }
-};
-
-struct UserConfig {
- UserCallbacks* callbacks;
-
- size_t processor_id = 0;
- ExclusiveMonitor* global_monitor = nullptr;
-
- /// Select the architecture version to use.
- /// There are minor behavioural differences between versions.
- ArchVersion arch_version = ArchVersion::v8;
-
- /// This selects other optimizations than can't otherwise be disabled by setting other
- /// configuration options. This includes:
- /// - IR optimizations
- /// - Block linking optimizations
- /// - RSB optimizations
- /// This is intended to be used for debugging.
- OptimizationFlag optimizations = all_safe_optimizations;
-
- bool HasOptimization(OptimizationFlag f) const {
- if (!unsafe_optimizations) {
- f &= all_safe_optimizations;
- }
- return (f & optimizations) != no_optimizations;
- }
-
- /// This enables unsafe optimizations that reduce emulation accuracy in favour of speed.
- /// For safety, in order to enable unsafe optimizations you have to set BOTH this flag
- /// AND the appropriate flag bits above.
- /// The prefered and tested mode for this library is with unsafe optimizations disabled.
- bool unsafe_optimizations = false;
-
- // Page Table
- // The page table is used for faster memory access. If an entry in the table is nullptr,
- // the JIT will fallback to calling the MemoryRead*/MemoryWrite* callbacks.
- static constexpr std::size_t PAGE_BITS = 12;
- static constexpr std::size_t NUM_PAGE_TABLE_ENTRIES = 1 << (32 - PAGE_BITS);
- std::array<std::uint8_t*, NUM_PAGE_TABLE_ENTRIES>* page_table = nullptr;
- /// Determines if the pointer in the page_table shall be offseted locally or globally.
- /// 'false' will access page_table[addr >> bits][addr & mask]
- /// 'true' will access page_table[addr >> bits][addr]
- /// Note: page_table[addr >> bits] will still be checked to verify active pages.
- /// So there might be wrongly faulted pages which maps to nullptr.
- /// This can be avoided by carefully allocating the memory region.
- bool absolute_offset_page_table = false;
- /// Masks out the first N bits in host pointers from the page table.
- /// The intention behind this is to allow users of Dynarmic to pack attributes in the
- /// same integer and update the pointer attribute pair atomically.
- /// If the configured value is 3, all pointers will be forcefully aligned to 8 bytes.
- int page_table_pointer_mask_bits = 0;
- /// Determines if we should detect memory accesses via page_table that straddle are
- /// misaligned. Accesses that straddle page boundaries will fallback to the relevant
- /// memory callback.
- /// This value should be the required access sizes this applies to ORed together.
- /// To detect any access, use: 8 | 16 | 32 | 64.
- std::uint8_t detect_misaligned_access_via_page_table = 0;
- /// Determines if the above option only triggers when the misalignment straddles a
- /// page boundary.
- bool only_detect_misalignment_via_page_table_on_page_boundary = false;
-
- // Fastmem Pointer
- // This should point to the beginning of a 4GB address space which is in arranged just like
- // what you wish for emulated memory to be. If the host page faults on an address, the JIT
- // will fallback to calling the MemoryRead*/MemoryWrite* callbacks.
- void* fastmem_pointer = nullptr;
- /// Determines if instructions that pagefault should cause recompilation of that block
- /// with fastmem disabled.
- /// Recompiled code will use the page_table if this is available, otherwise memory
- /// accesses will hit the memory callbacks.
- bool recompile_on_fastmem_failure = true;
-
- /// Determines if we should use the above fastmem_pointer for exclusive reads and
- /// writes. On x64, dynarmic currently relies on x64 cmpxchg semantics which may not
- /// provide fully accurate emulation.
- bool fastmem_exclusive_access = false;
- /// Determines if exclusive access instructions that pagefault should cause
- /// recompilation of that block with fastmem disabled. Recompiled code will use memory
- /// callbacks.
- bool recompile_on_exclusive_fastmem_failure = true;
-
- // Coprocessors
- std::array<std::shared_ptr<Coprocessor>, 16> coprocessors{};
-
- /// When set to true, UserCallbacks::InstructionSynchronizationBarrierRaised will be
- /// called when an ISB instruction is executed.
- /// When set to false, ISB will be treated as a NOP instruction.
- bool hook_isb = false;
-
- /// Hint instructions would cause ExceptionRaised to be called with the appropriate
- /// argument.
- bool hook_hint_instructions = false;
-
- /// This option relates to translation. Generally when we run into an unpredictable
- /// instruction the ExceptionRaised callback is called. If this is true, we define
- /// definite behaviour for some unpredictable instructions.
- bool define_unpredictable_behaviour = false;
-
- /// HACK:
- /// This tells the translator a wall clock will be used, thus allowing it
- /// to avoid writting certain unnecessary code only needed for cycle timers.
- bool wall_clock_cntpct = false;
-
- /// This allows accurately emulating protection fault handlers. If true, we check
- /// for exit after every data memory access by the emulated program.
- bool check_halt_on_memory_access = false;
-
- /// This option allows you to disable cycle counting. If this is set to false,
- /// AddTicks and GetTicksRemaining are never called, and no cycle counting is done.
- bool enable_cycle_counting = true;
-
- /// This option relates to the CPSR.E flag. Enabling this option disables modification
- /// of CPSR.E by the emulated program, forcing it to 0.
- /// NOTE: Calling Jit::SetCpsr with CPSR.E=1 while this option is enabled may result
- /// in unusual behavior.
- bool always_little_endian = false;
-
- // Minimum size is about 8MiB. Maximum size is about 128MiB (arm64 host) or 2GiB (x64 host).
- // Maximum size is limited by the maximum length of a x86_64 / arm64 jump.
- size_t code_cache_size = 128 * 1024 * 1024; // bytes
-
- /// Internal use only
- bool very_verbose_debugging_output = false;
-};
-
-} // namespace A32
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A32/coprocessor.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A32/coprocessor.h
deleted file mode 100644
index 7ee2e96e..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A32/coprocessor.h
+++ /dev/null
@@ -1,110 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstdint>
-#include <optional>
-#include <variant>
-
-#include "dynarmic/interface/A32/coprocessor_util.h"
-
-namespace Dynarmic {
-namespace A32 {
-
-class Jit;
-
-class Coprocessor {
-public:
- virtual ~Coprocessor() = default;
-
- struct Callback {
- /**
- * @param jit CPU state
- * @param user_arg Set to Callback::user_arg at runtime
- * @param arg0 Purpose of this argument depends on type of callback.
- * @param arg1 Purpose of this argument depends on type of callback.
- * @return Purpose of return value depends on type of callback.
- */
- std::uint64_t (*function)(void* user_arg, std::uint32_t arg0, std::uint32_t arg1);
- /// If std::nullopt, function will be called with a user_arg parameter containing garbage.
- std::optional<void*> user_arg;
- };
-
- /**
- * std::monostate: coprocessor exception will be compiled
- * Callback: a call to the Callback will be compiled
- * std::uint32_t*: a write/read to that memory address will be compiled
- */
- using CallbackOrAccessOneWord = std::variant<std::monostate, Callback, std::uint32_t*>;
-
- /**
- * std::monostate: coprocessor exception will be compiled
- * Callback: a call to the Callback will be compiled
- * std::array<std::uint32_t*, 2>: a write/read to those memory addresses will be compiled
- */
- using CallbackOrAccessTwoWords = std::variant<std::monostate, Callback, std::array<std::uint32_t*, 2>>;
-
- /**
- * Called when compiling CDP or CDP2 for this coprocessor.
- * A return value of std::nullopt will cause a coprocessor exception to be compiled.
- * arg0, arg1 and return value of callback are ignored.
- */
- virtual std::optional<Callback> CompileInternalOperation(bool two, unsigned opc1, CoprocReg CRd, CoprocReg CRn, CoprocReg CRm, unsigned opc2) = 0;
-
- /**
- * Called when compiling MCR or MCR2 for this coprocessor.
- * A return value of std::monostate will cause a coprocessor exception to be compiled.
- * arg0 of the callback will contain the word sent to the coprocessor.
- * arg1 and return value of the callback are ignored.
- */
- virtual CallbackOrAccessOneWord CompileSendOneWord(bool two, unsigned opc1, CoprocReg CRn, CoprocReg CRm, unsigned opc2) = 0;
-
- /**
- * Called when compiling MCRR or MCRR2 for this coprocessor.
- * A return value of std::monostate will cause a coprocessor exception to be compiled.
- * arg0 and arg1 of the callback will contain the words sent to the coprocessor.
- * The return value of the callback is ignored.
- */
- virtual CallbackOrAccessTwoWords CompileSendTwoWords(bool two, unsigned opc, CoprocReg CRm) = 0;
-
- /**
- * Called when compiling MRC or MRC2 for this coprocessor.
- * A return value of std::monostate will cause a coprocessor exception to be compiled.
- * The return value of the callback should contain word from coprocessor.
- * The low word of the return value will be stored in Rt.
- * arg0 and arg1 of the callback are ignored.
- */
- virtual CallbackOrAccessOneWord CompileGetOneWord(bool two, unsigned opc1, CoprocReg CRn, CoprocReg CRm, unsigned opc2) = 0;
-
- /**
- * Called when compiling MRRC or MRRC2 for this coprocessor.
- * A return value of std::monostate will cause a coprocessor exception to be compiled.
- * The return value of the callback should contain words from coprocessor.
- * The low word of the return value will be stored in Rt.
- * The high word of the return value will be stored in Rt2.
- * arg0 and arg1 of the callback are ignored.
- */
- virtual CallbackOrAccessTwoWords CompileGetTwoWords(bool two, unsigned opc, CoprocReg CRm) = 0;
-
- /**
- * Called when compiling LDC or LDC2 for this coprocessor.
- * A return value of std::nullopt will cause a coprocessor exception to be compiled.
- * arg0 of the callback will contain the start address.
- * arg1 and return value of the callback are ignored.
- */
- virtual std::optional<Callback> CompileLoadWords(bool two, bool long_transfer, CoprocReg CRd, std::optional<std::uint8_t> option) = 0;
-
- /**
- * Called when compiling STC or STC2 for this coprocessor.
- * A return value of std::nullopt will cause a coprocessor exception to be compiled.
- * arg0 of the callback will contain the start address.
- * arg1 and return value of the callback are ignored.
- */
- virtual std::optional<Callback> CompileStoreWords(bool two, bool long_transfer, CoprocReg CRd, std::optional<std::uint8_t> option) = 0;
-};
-
-} // namespace A32
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A32/coprocessor_util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A32/coprocessor_util.h
deleted file mode 100644
index ed695d17..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A32/coprocessor_util.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic {
-namespace A32 {
-
-enum class CoprocReg {
- C0,
- C1,
- C2,
- C3,
- C4,
- C5,
- C6,
- C7,
- C8,
- C9,
- C10,
- C11,
- C12,
- C13,
- C14,
- C15
-};
-
-} // namespace A32
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A32/disassembler.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A32/disassembler.h
deleted file mode 100644
index 54058bf5..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A32/disassembler.h
+++ /dev/null
@@ -1,18 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstdint>
-#include <string>
-
-namespace Dynarmic {
-namespace A32 {
-
-std::string DisassembleArm(std::uint32_t instruction);
-std::string DisassembleThumb16(std::uint16_t instruction);
-
-} // namespace A32
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A64/a64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A64/a64.h
deleted file mode 100644
index a150da84..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A64/a64.h
+++ /dev/null
@@ -1,137 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <cstddef>
-#include <cstdint>
-#include <memory>
-#include <string>
-#include <vector>
-
-#include "dynarmic/interface/A64/config.h"
-#include "dynarmic/interface/halt_reason.h"
-
-namespace Dynarmic {
-namespace A64 {
-
-class Jit final {
-public:
- explicit Jit(UserConfig conf);
- ~Jit();
-
- /**
- * Runs the emulated CPU.
- * Cannot be recursively called.
- */
- HaltReason Run();
-
- /**
- * Step the emulated CPU for one instruction.
- * Cannot be recursively called.
- */
- HaltReason Step();
-
- /**
- * Clears the code cache of all compiled code.
- * Can be called at any time. Halts execution if called within a callback.
- */
- void ClearCache();
-
- /**
- * Invalidate the code cache at a range of addresses.
- * @param start_address The starting address of the range to invalidate.
- * @param length The length (in bytes) of the range to invalidate.
- */
- void InvalidateCacheRange(std::uint64_t start_address, std::size_t length);
-
- /**
- * Reset CPU state to state at startup. Does not clear code cache.
- * Cannot be called from a callback.
- */
- void Reset();
-
- /**
- * Stops execution in Jit::Run.
- */
- void HaltExecution(HaltReason hr = HaltReason::UserDefined1);
-
- /**
- * Clears a halt reason from flags.
- * Warning: Only use this if you're sure this won't introduce races.
- */
- void ClearHalt(HaltReason hr = HaltReason::UserDefined1);
-
- /// Read Stack Pointer
- std::uint64_t GetSP() const;
- /// Modify Stack Pointer
- void SetSP(std::uint64_t value);
-
- /// Read Program Counter
- std::uint64_t GetPC() const;
- /// Modify Program Counter
- void SetPC(std::uint64_t value);
-
- /// Read general-purpose register.
- std::uint64_t GetRegister(std::size_t index) const;
- /// Modify general-purpose register.
- void SetRegister(size_t index, std::uint64_t value);
-
- /// Read all general-purpose registers.
- std::array<std::uint64_t, 31> GetRegisters() const;
- /// Modify all general-purpose registers.
- void SetRegisters(const std::array<std::uint64_t, 31>& value);
-
- /// Read floating point and SIMD register.
- Vector GetVector(std::size_t index) const;
- /// Modify floating point and SIMD register.
- void SetVector(std::size_t index, Vector value);
-
- /// Read all floating point and SIMD registers.
- std::array<Vector, 32> GetVectors() const;
- /// Modify all floating point and SIMD registers.
- void SetVectors(const std::array<Vector, 32>& value);
-
- /// View FPCR.
- std::uint32_t GetFpcr() const;
- /// Modify FPCR.
- void SetFpcr(std::uint32_t value);
-
- /// View FPSR.
- std::uint32_t GetFpsr() const;
- /// Modify FPSR.
- void SetFpsr(std::uint32_t value);
-
- /// View PSTATE
- std::uint32_t GetPstate() const;
- /// Modify PSTATE
- void SetPstate(std::uint32_t value);
-
- /// Clears exclusive state for this core.
- void ClearExclusiveState();
-
- /**
- * Returns true if Jit::Run was called but hasn't returned yet.
- * i.e.: We're in a callback.
- */
- bool IsExecuting() const;
-
- /// Debugging: Dump a disassembly all of compiled code to the console.
- void DumpDisassembly() const;
-
- /*
- * Disassemble the instructions following the current pc and return
- * the resulting instructions as a vector of their string representations.
- */
- std::vector<std::string> Disassemble() const;
-
-private:
- struct Impl;
- std::unique_ptr<Impl> impl;
-};
-
-} // namespace A64
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A64/config.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A64/config.h
deleted file mode 100644
index b10c65bc..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/A64/config.h
+++ /dev/null
@@ -1,297 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <cstddef>
-#include <cstdint>
-#include <memory>
-#include <optional>
-
-#include "dynarmic/interface/optimization_flags.h"
-
-namespace Dynarmic {
-class ExclusiveMonitor;
-} // namespace Dynarmic
-
-namespace Dynarmic {
-namespace A64 {
-
-using VAddr = std::uint64_t;
-
-using Vector = std::array<std::uint64_t, 2>;
-static_assert(sizeof(Vector) == sizeof(std::uint64_t) * 2, "Vector must be 128 bits in size");
-
-enum class Exception {
- /// An UndefinedFault occured due to executing instruction with an unallocated encoding
- UnallocatedEncoding,
- /// An UndefinedFault occured due to executing instruction containing a reserved value
- ReservedValue,
- /// An unpredictable instruction is to be executed. Implementation-defined behaviour should now happen.
- /// This behaviour is up to the user of this library to define.
- /// Note: Constraints on unpredictable behaviour are specified in the ARMv8 ARM.
- UnpredictableInstruction,
- /// A WFI instruction was executed. You may now enter a low-power state. (Hint instruction.)
- WaitForInterrupt,
- /// A WFE instruction was executed. You may now enter a low-power state if the event register is clear. (Hint instruction.)
- WaitForEvent,
- /// A SEV instruction was executed. The event register of all PEs should be set. (Hint instruction.)
- SendEvent,
- /// A SEVL instruction was executed. The event register of the current PE should be set. (Hint instruction.)
- SendEventLocal,
- /// A YIELD instruction was executed. (Hint instruction.)
- Yield,
- /// A BRK instruction was executed. (Hint instruction.)
- Breakpoint,
- /// Attempted to execute a code block at an address for which MemoryReadCode returned std::nullopt.
- /// (Intended to be used to emulate memory protection faults.)
- NoExecuteFault,
-};
-
-enum class DataCacheOperation {
- /// DC CISW
- CleanAndInvalidateBySetWay,
- /// DC CIVAC
- CleanAndInvalidateByVAToPoC,
- /// DC CSW
- CleanBySetWay,
- /// DC CVAC
- CleanByVAToPoC,
- /// DC CVAU
- CleanByVAToPoU,
- /// DC CVAP
- CleanByVAToPoP,
- /// DC ISW
- InvalidateBySetWay,
- /// DC IVAC
- InvalidateByVAToPoC,
- /// DC ZVA
- ZeroByVA,
-};
-
-enum class InstructionCacheOperation {
- /// IC IVAU
- InvalidateByVAToPoU,
- /// IC IALLU
- InvalidateAllToPoU,
- /// IC IALLUIS
- InvalidateAllToPoUInnerSharable
-};
-
-struct UserCallbacks {
- virtual ~UserCallbacks() = default;
-
- // All reads through this callback are 4-byte aligned.
- // Memory must be interpreted as little endian.
- virtual std::optional<std::uint32_t> MemoryReadCode(VAddr vaddr) { return MemoryRead32(vaddr); }
-
- // Reads through these callbacks may not be aligned.
- virtual std::uint8_t MemoryRead8(VAddr vaddr) = 0;
- virtual std::uint16_t MemoryRead16(VAddr vaddr) = 0;
- virtual std::uint32_t MemoryRead32(VAddr vaddr) = 0;
- virtual std::uint64_t MemoryRead64(VAddr vaddr) = 0;
- virtual Vector MemoryRead128(VAddr vaddr) = 0;
-
- // Writes through these callbacks may not be aligned.
- virtual void MemoryWrite8(VAddr vaddr, std::uint8_t value) = 0;
- virtual void MemoryWrite16(VAddr vaddr, std::uint16_t value) = 0;
- virtual void MemoryWrite32(VAddr vaddr, std::uint32_t value) = 0;
- virtual void MemoryWrite64(VAddr vaddr, std::uint64_t value) = 0;
- virtual void MemoryWrite128(VAddr vaddr, Vector value) = 0;
-
- // Writes through these callbacks may not be aligned.
- virtual bool MemoryWriteExclusive8(VAddr /*vaddr*/, std::uint8_t /*value*/, std::uint8_t /*expected*/) { return false; }
- virtual bool MemoryWriteExclusive16(VAddr /*vaddr*/, std::uint16_t /*value*/, std::uint16_t /*expected*/) { return false; }
- virtual bool MemoryWriteExclusive32(VAddr /*vaddr*/, std::uint32_t /*value*/, std::uint32_t /*expected*/) { return false; }
- virtual bool MemoryWriteExclusive64(VAddr /*vaddr*/, std::uint64_t /*value*/, std::uint64_t /*expected*/) { return false; }
- virtual bool MemoryWriteExclusive128(VAddr /*vaddr*/, Vector /*value*/, Vector /*expected*/) { return false; }
-
- // If this callback returns true, the JIT will assume MemoryRead* callbacks will always
- // return the same value at any point in time for this vaddr. The JIT may use this information
- // in optimizations.
- // A conservative implementation that always returns false is safe.
- virtual bool IsReadOnlyMemory(VAddr /*vaddr*/) { return false; }
-
- /// The interpreter must execute exactly num_instructions starting from PC.
- virtual void InterpreterFallback(VAddr pc, size_t num_instructions) = 0;
-
- // This callback is called whenever a SVC instruction is executed.
- virtual void CallSVC(std::uint32_t swi) = 0;
-
- virtual void ExceptionRaised(VAddr pc, Exception exception) = 0;
- virtual void DataCacheOperationRaised(DataCacheOperation /*op*/, VAddr /*value*/) {}
- virtual void InstructionCacheOperationRaised(InstructionCacheOperation /*op*/, VAddr /*value*/) {}
- virtual void InstructionSynchronizationBarrierRaised() {}
-
- // Timing-related callbacks
- // ticks ticks have passed
- virtual void AddTicks(std::uint64_t ticks) = 0;
- // How many more ticks am I allowed to execute?
- virtual std::uint64_t GetTicksRemaining() = 0;
- // Get value in the emulated counter-timer physical count register.
- virtual std::uint64_t GetCNTPCT() = 0;
-};
-
-struct UserConfig {
- UserCallbacks* callbacks;
-
- size_t processor_id = 0;
- ExclusiveMonitor* global_monitor = nullptr;
-
- /// This selects other optimizations than can't otherwise be disabled by setting other
- /// configuration options. This includes:
- /// - IR optimizations
- /// - Block linking optimizations
- /// - RSB optimizations
- /// This is intended to be used for debugging.
- OptimizationFlag optimizations = all_safe_optimizations;
-
- bool HasOptimization(OptimizationFlag f) const {
- if (!unsafe_optimizations) {
- f &= all_safe_optimizations;
- }
- return (f & optimizations) != no_optimizations;
- }
-
- /// This enables unsafe optimizations that reduce emulation accuracy in favour of speed.
- /// For safety, in order to enable unsafe optimizations you have to set BOTH this flag
- /// AND the appropriate flag bits above.
- /// The prefered and tested mode for this library is with unsafe optimizations disabled.
- bool unsafe_optimizations = false;
-
- /// When set to true, UserCallbacks::DataCacheOperationRaised will be called when any
- /// data cache instruction is executed. Notably DC ZVA will not implicitly do anything.
- /// When set to false, UserCallbacks::DataCacheOperationRaised will never be called.
- /// Executing DC ZVA in this mode will result in zeros being written to memory.
- bool hook_data_cache_operations = false;
-
- /// When set to true, UserCallbacks::InstructionSynchronizationBarrierRaised will be
- /// called when an ISB instruction is executed.
- /// When set to false, ISB will be treated as a NOP instruction.
- bool hook_isb = false;
-
- /// When set to true, UserCallbacks::ExceptionRaised will be called when any hint
- /// instruction is executed.
- bool hook_hint_instructions = false;
-
- /// Counter-timer frequency register. The value of the register is not interpreted by
- /// dynarmic.
- std::uint32_t cntfrq_el0 = 600000000;
-
- /// CTR_EL0<27:24> is log2 of the cache writeback granule in words.
- /// CTR_EL0<23:20> is log2 of the exclusives reservation granule in words.
- /// CTR_EL0<19:16> is log2 of the smallest data/unified cacheline in words.
- /// CTR_EL0<15:14> is the level 1 instruction cache policy.
- /// CTR_EL0<3:0> is log2 of the smallest instruction cacheline in words.
- std::uint32_t ctr_el0 = 0x8444c004;
-
- /// DCZID_EL0<3:0> is log2 of the block size in words
- /// DCZID_EL0<4> is 0 if the DC ZVA instruction is permitted.
- std::uint32_t dczid_el0 = 4;
-
- /// Pointer to where TPIDRRO_EL0 is stored. This pointer will be inserted into
- /// emitted code.
- const std::uint64_t* tpidrro_el0 = nullptr;
-
- /// Pointer to where TPIDR_EL0 is stored. This pointer will be inserted into
- /// emitted code.
- std::uint64_t* tpidr_el0 = nullptr;
-
- /// Pointer to the page table which we can use for direct page table access.
- /// If an entry in page_table is null, the relevant memory callback will be called.
- /// If page_table is nullptr, all memory accesses hit the memory callbacks.
- void** page_table = nullptr;
- /// Declares how many valid address bits are there in virtual addresses.
- /// Determines the size of page_table. Valid values are between 12 and 64 inclusive.
- /// This is only used if page_table is not nullptr.
- size_t page_table_address_space_bits = 36;
- /// Masks out the first N bits in host pointers from the page table.
- /// The intention behind this is to allow users of Dynarmic to pack attributes in the
- /// same integer and update the pointer attribute pair atomically.
- /// If the configured value is 3, all pointers will be forcefully aligned to 8 bytes.
- int page_table_pointer_mask_bits = 0;
- /// Determines what happens if the guest accesses an entry that is off the end of the
- /// page table. If true, Dynarmic will silently mirror page_table's address space. If
- /// false, accessing memory outside of page_table bounds will result in a call to the
- /// relevant memory callback.
- /// This is only used if page_table is not nullptr.
- bool silently_mirror_page_table = true;
- /// Determines if the pointer in the page_table shall be offseted locally or globally.
- /// 'false' will access page_table[addr >> bits][addr & mask]
- /// 'true' will access page_table[addr >> bits][addr]
- /// Note: page_table[addr >> bits] will still be checked to verify active pages.
- /// So there might be wrongly faulted pages which maps to nullptr.
- /// This can be avoided by carefully allocating the memory region.
- bool absolute_offset_page_table = false;
- /// Determines if we should detect memory accesses via page_table that straddle are
- /// misaligned. Accesses that straddle page boundaries will fallback to the relevant
- /// memory callback.
- /// This value should be the required access sizes this applies to ORed together.
- /// To detect any access, use: 8 | 16 | 32 | 64 | 128.
- std::uint8_t detect_misaligned_access_via_page_table = 0;
- /// Determines if the above option only triggers when the misalignment straddles a
- /// page boundary.
- bool only_detect_misalignment_via_page_table_on_page_boundary = false;
-
- /// Fastmem Pointer
- /// This should point to the beginning of a 2^page_table_address_space_bits bytes
- /// address space which is in arranged just like what you wish for emulated memory to
- /// be. If the host page faults on an address, the JIT will fallback to calling the
- /// MemoryRead*/MemoryWrite* callbacks.
- void* fastmem_pointer = nullptr;
- /// Determines if instructions that pagefault should cause recompilation of that block
- /// with fastmem disabled.
- /// Recompiled code will use the page_table if this is available, otherwise memory
- /// accesses will hit the memory callbacks.
- bool recompile_on_fastmem_failure = true;
- /// Declares how many valid address bits are there in virtual addresses.
- /// Determines the size of fastmem arena. Valid values are between 12 and 64 inclusive.
- /// This is only used if fastmem_pointer is not nullptr.
- size_t fastmem_address_space_bits = 36;
- /// Determines what happens if the guest accesses an entry that is off the end of the
- /// fastmem arena. If true, Dynarmic will silently mirror fastmem's address space. If
- /// false, accessing memory outside of fastmem bounds will result in a call to the
- /// relevant memory callback.
- /// This is only used if fastmem_pointer is not nullptr.
- bool silently_mirror_fastmem = true;
-
- /// Determines if we should use the above fastmem_pointer for exclusive reads and
- /// writes. On x64, dynarmic currently relies on x64 cmpxchg semantics which may not
- /// provide fully accurate emulation.
- bool fastmem_exclusive_access = false;
- /// Determines if exclusive access instructions that pagefault should cause
- /// recompilation of that block with fastmem disabled. Recompiled code will use memory
- /// callbacks.
- bool recompile_on_exclusive_fastmem_failure = true;
-
- /// This option relates to translation. Generally when we run into an unpredictable
- /// instruction the ExceptionRaised callback is called. If this is true, we define
- /// definite behaviour for some unpredictable instructions.
- bool define_unpredictable_behaviour = false;
-
- /// HACK:
- /// This tells the translator a wall clock will be used, thus allowing it
- /// to avoid writting certain unnecessary code only needed for cycle timers.
- bool wall_clock_cntpct = false;
-
- /// This allows accurately emulating protection fault handlers. If true, we check
- /// for exit after every data memory access by the emulated program.
- bool check_halt_on_memory_access = false;
-
- /// This option allows you to disable cycle counting. If this is set to false,
- /// AddTicks and GetTicksRemaining are never called, and no cycle counting is done.
- bool enable_cycle_counting = true;
-
- // Minimum size is about 8MiB. Maximum size is about 128MiB (arm64 host) or 2GiB (x64 host).
- // Maximum size is limited by the maximum length of a x86_64 / arm64 jump.
- size_t code_cache_size = 128 * 1024 * 1024; // bytes
-
- /// Internal use only
- bool very_verbose_debugging_output = false;
-};
-
-} // namespace A64
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/exclusive_monitor.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/exclusive_monitor.h
deleted file mode 100644
index 48136758..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/exclusive_monitor.h
+++ /dev/null
@@ -1,88 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <atomic>
-#include <cstddef>
-#include <cstdint>
-#include <cstring>
-#include <vector>
-
-#include <dynarmic/common/spin_lock.h>
-
-namespace Dynarmic {
-
-using VAddr = std::uint64_t;
-using Vector = std::array<std::uint64_t, 2>;
-
-class ExclusiveMonitor {
-public:
- /// @param processor_count Maximum number of processors using this global
- /// exclusive monitor. Each processor must have a
- /// unique id.
- explicit ExclusiveMonitor(size_t processor_count);
-
- size_t GetProcessorCount() const;
-
- /// Marks a region containing [address, address+size) to be exclusive to
- /// processor processor_id.
- template<typename T, typename Function>
- T ReadAndMark(size_t processor_id, VAddr address, Function op) {
- static_assert(std::is_trivially_copyable_v<T>);
- const VAddr masked_address = address & RESERVATION_GRANULE_MASK;
-
- Lock();
- exclusive_addresses[processor_id] = masked_address;
- const T value = op();
- std::memcpy(exclusive_values[processor_id].data(), &value, sizeof(T));
- Unlock();
- return value;
- }
-
- /// Checks to see if processor processor_id has exclusive access to the
- /// specified region. If it does, executes the operation then clears
- /// the exclusive state for processors if their exclusive region(s)
- /// contain [address, address+size).
- template<typename T, typename Function>
- bool DoExclusiveOperation(size_t processor_id, VAddr address, Function op) {
- static_assert(std::is_trivially_copyable_v<T>);
- if (!CheckAndClear(processor_id, address)) {
- return false;
- }
-
- T saved_value;
- std::memcpy(&saved_value, exclusive_values[processor_id].data(), sizeof(T));
- const bool result = op(saved_value);
-
- Unlock();
- return result;
- }
-
- /// Unmark everything.
- void Clear();
- /// Unmark processor id
- void ClearProcessor(size_t processor_id);
-
-private:
- bool CheckAndClear(size_t processor_id, VAddr address);
-
- void Lock();
- void Unlock();
-
- friend volatile int* GetExclusiveMonitorLockPointer(ExclusiveMonitor*);
- friend size_t GetExclusiveMonitorProcessorCount(ExclusiveMonitor*);
- friend VAddr* GetExclusiveMonitorAddressPointer(ExclusiveMonitor*, size_t index);
- friend Vector* GetExclusiveMonitorValuePointer(ExclusiveMonitor*, size_t index);
-
- static constexpr VAddr RESERVATION_GRANULE_MASK = 0xFFFF'FFFF'FFFF'FFFFull;
- static constexpr VAddr INVALID_EXCLUSIVE_ADDRESS = 0xDEAD'DEAD'DEAD'DEADull;
- SpinLock lock;
- std::vector<VAddr> exclusive_addresses;
- std::vector<Vector> exclusive_values;
-};
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/halt_reason.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/halt_reason.h
deleted file mode 100644
index 121a8455..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/halt_reason.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2020 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstdint>
-
-namespace Dynarmic {
-
-enum class HaltReason : std::uint32_t {
- Step = 0x00000001,
- CacheInvalidation = 0x00000002,
- MemoryAbort = 0x00000004,
- UserDefined1 = 0x01000000,
- UserDefined2 = 0x02000000,
- UserDefined3 = 0x04000000,
- UserDefined4 = 0x08000000,
- UserDefined5 = 0x10000000,
- UserDefined6 = 0x20000000,
- UserDefined7 = 0x40000000,
- UserDefined8 = 0x80000000,
-};
-
-constexpr HaltReason operator~(HaltReason hr) {
- return static_cast<HaltReason>(~static_cast<std::uint32_t>(hr));
-}
-
-constexpr HaltReason operator|(HaltReason hr1, HaltReason hr2) {
- return static_cast<HaltReason>(static_cast<std::uint32_t>(hr1) | static_cast<std::uint32_t>(hr2));
-}
-
-constexpr HaltReason operator&(HaltReason hr1, HaltReason hr2) {
- return static_cast<HaltReason>(static_cast<std::uint32_t>(hr1) & static_cast<std::uint32_t>(hr2));
-}
-
-constexpr HaltReason operator|=(HaltReason& result, HaltReason hr) {
- return result = (result | hr);
-}
-
-constexpr HaltReason operator&=(HaltReason& result, HaltReason hr) {
- return result = (result & hr);
-}
-
-constexpr bool operator!(HaltReason hr) {
- return static_cast<std::uint32_t>(hr) == 0;
-}
-
-constexpr bool Has(HaltReason hr1, HaltReason hr2) {
- return (static_cast<std::uint32_t>(hr1) & static_cast<std::uint32_t>(hr2)) != 0;
-}
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/optimization_flags.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/optimization_flags.h
deleted file mode 100644
index 2f65f0bf..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/interface/optimization_flags.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2020 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstdint>
-
-namespace Dynarmic {
-
-enum class OptimizationFlag : std::uint32_t {
- /// This optimization avoids dispatcher lookups by allowing emitted basic blocks to jump
- /// directly to other basic blocks if the destination PC is predictable at JIT-time.
- /// This is a safe optimization.
- BlockLinking = 0x00000001,
- /// This optimization avoids dispatcher lookups by emulating a return stack buffer. This
- /// allows for function returns and syscall returns to be predicted at runtime.
- /// This is a safe optimization.
- ReturnStackBuffer = 0x00000002,
- /// This optimization enables a two-tiered dispatch system.
- /// A fast dispatcher (written in assembly) first does a look-up in a small MRU cache.
- /// If this fails, it falls back to the usual slower dispatcher.
- /// This is a safe optimization.
- FastDispatch = 0x00000004,
- /// This is an IR optimization. This optimization eliminates unnecessary emulated CPU state
- /// context lookups.
- /// This is a safe optimization.
- GetSetElimination = 0x00000008,
- /// This is an IR optimization. This optimization does constant propagation.
- /// This is a safe optimization.
- ConstProp = 0x00000010,
- /// This is enables miscellaneous safe IR optimizations.
- MiscIROpt = 0x00000020,
-
- /// This is an UNSAFE optimization that reduces accuracy of fused multiply-add operations.
- /// This unfuses fused instructions to improve performance on host CPUs without FMA support.
- Unsafe_UnfuseFMA = 0x00010000,
- /// This is an UNSAFE optimization that reduces accuracy of certain floating-point instructions.
- /// This allows results of FRECPE and FRSQRTE to have **less** error than spec allows.
- Unsafe_ReducedErrorFP = 0x00020000,
- /// This is an UNSAFE optimization that causes floating-point instructions to not produce correct NaNs.
- /// This may also result in inaccurate results when instructions are given certain special values.
- Unsafe_InaccurateNaN = 0x00040000,
- /// This is an UNSAFE optimization that causes ASIMD floating-point instructions to be run with incorrect
- /// rounding modes. This may result in inaccurate results with all floating-point ASIMD instructions.
- Unsafe_IgnoreStandardFPCRValue = 0x00080000,
- /// This is an UNSAFE optimization that causes the global monitor to be ignored. This may
- /// result in unexpected behaviour in multithreaded scenarios, including but not limited
- /// to data races and deadlocks.
- Unsafe_IgnoreGlobalMonitor = 0x00100000,
-};
-
-constexpr OptimizationFlag no_optimizations = static_cast<OptimizationFlag>(0);
-constexpr OptimizationFlag all_safe_optimizations = static_cast<OptimizationFlag>(0x0000FFFF);
-
-constexpr OptimizationFlag operator~(OptimizationFlag f) {
- return static_cast<OptimizationFlag>(~static_cast<std::uint32_t>(f));
-}
-
-constexpr OptimizationFlag operator|(OptimizationFlag f1, OptimizationFlag f2) {
- return static_cast<OptimizationFlag>(static_cast<std::uint32_t>(f1) | static_cast<std::uint32_t>(f2));
-}
-
-constexpr OptimizationFlag operator&(OptimizationFlag f1, OptimizationFlag f2) {
- return static_cast<OptimizationFlag>(static_cast<std::uint32_t>(f1) & static_cast<std::uint32_t>(f2));
-}
-
-constexpr OptimizationFlag operator|=(OptimizationFlag& result, OptimizationFlag f) {
- return result = (result | f);
-}
-
-constexpr OptimizationFlag operator&=(OptimizationFlag& result, OptimizationFlag f) {
- return result = (result & f);
-}
-
-constexpr bool operator!(OptimizationFlag f) {
- return f == no_optimizations;
-}
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/acc_type.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/acc_type.h
deleted file mode 100644
index f259660b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/acc_type.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::IR {
-
-enum class AccType {
- NORMAL,
- VEC,
- STREAM,
- VECSTREAM,
- ATOMIC,
- ORDERED,
- ORDEREDRW,
- LIMITEDORDERED,
- UNPRIV,
- IFETCH,
- PTW,
- DC,
- IC,
- DCZVA,
- AT,
- SWAP, // TODO: Remove
-};
-
-} // namespace Dynarmic::IR
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/basic_block.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/basic_block.h
deleted file mode 100644
index 18d7fada..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/basic_block.h
+++ /dev/null
@@ -1,168 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <initializer_list>
-#include <memory>
-#include <optional>
-#include <string>
-
-#include <mcl/container/intrusive_list.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/ir/location_descriptor.h"
-#include "dynarmic/ir/microinstruction.h"
-#include "dynarmic/ir/terminal.h"
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::Common {
-class Pool;
-}
-
-namespace Dynarmic::IR {
-
-enum class Cond;
-enum class Opcode;
-
-/**
- * A basic block. It consists of zero or more instructions followed by exactly one terminal.
- * Note that this is a linear IR and not a pure tree-based IR: i.e.: there is an ordering to
- * the microinstructions. This only matters before chaining is done in order to correctly
- * order memory accesses.
- */
-class Block final {
-public:
- using InstructionList = mcl::intrusive_list<Inst>;
- using size_type = InstructionList::size_type;
- using iterator = InstructionList::iterator;
- using const_iterator = InstructionList::const_iterator;
- using reverse_iterator = InstructionList::reverse_iterator;
- using const_reverse_iterator = InstructionList::const_reverse_iterator;
-
- explicit Block(const LocationDescriptor& location);
- ~Block();
-
- Block(const Block&) = delete;
- Block& operator=(const Block&) = delete;
-
- Block(Block&&);
- Block& operator=(Block&&);
-
- bool empty() const { return instructions.empty(); }
- size_type size() const { return instructions.size(); }
-
- Inst& front() { return instructions.front(); }
- const Inst& front() const { return instructions.front(); }
-
- Inst& back() { return instructions.back(); }
- const Inst& back() const { return instructions.back(); }
-
- iterator begin() { return instructions.begin(); }
- const_iterator begin() const { return instructions.begin(); }
- iterator end() { return instructions.end(); }
- const_iterator end() const { return instructions.end(); }
-
- reverse_iterator rbegin() { return instructions.rbegin(); }
- const_reverse_iterator rbegin() const { return instructions.rbegin(); }
- reverse_iterator rend() { return instructions.rend(); }
- const_reverse_iterator rend() const { return instructions.rend(); }
-
- const_iterator cbegin() const { return instructions.cbegin(); }
- const_iterator cend() const { return instructions.cend(); }
-
- const_reverse_iterator crbegin() const { return instructions.crbegin(); }
- const_reverse_iterator crend() const { return instructions.crend(); }
-
- /**
- * Appends a new instruction to the end of this basic block,
- * handling any allocations necessary to do so.
- *
- * @param op Opcode representing the instruction to add.
- * @param args A sequence of Value instances used as arguments for the instruction.
- */
- void AppendNewInst(Opcode op, std::initializer_list<Value> args);
-
- /**
- * Prepends a new instruction to this basic block before the insertion point,
- * handling any allocations necessary to do so.
- *
- * @param insertion_point Where to insert the new instruction.
- * @param op Opcode representing the instruction to add.
- * @param args A sequence of Value instances used as arguments for the instruction.
- * @returns Iterator to the newly created instruction.
- */
- iterator PrependNewInst(iterator insertion_point, Opcode op, std::initializer_list<Value> args);
-
- /// Gets the starting location for this basic block.
- LocationDescriptor Location() const;
- /// Gets the end location for this basic block.
- LocationDescriptor EndLocation() const;
- /// Sets the end location for this basic block.
- void SetEndLocation(const LocationDescriptor& descriptor);
-
- /// Gets the condition required to pass in order to execute this block.
- Cond GetCondition() const;
- /// Sets the condition required to pass in order to execute this block.
- void SetCondition(Cond condition);
-
- /// Gets the location of the block to execute if the predicated condition fails.
- LocationDescriptor ConditionFailedLocation() const;
- /// Sets the location of the block to execute if the predicated condition fails.
- void SetConditionFailedLocation(LocationDescriptor fail_location);
- /// Determines whether or not a predicated condition failure block is present.
- bool HasConditionFailedLocation() const;
-
- /// Gets a mutable reference to the condition failed cycle count.
- size_t& ConditionFailedCycleCount();
- /// Gets an immutable reference to the condition failed cycle count.
- const size_t& ConditionFailedCycleCount() const;
-
- /// Gets a mutable reference to the instruction list for this basic block.
- InstructionList& Instructions();
- /// Gets an immutable reference to the instruction list for this basic block.
- const InstructionList& Instructions() const;
-
- /// Gets the terminal instruction for this basic block.
- Terminal GetTerminal() const;
- /// Sets the terminal instruction for this basic block.
- void SetTerminal(Terminal term);
- /// Replaces the terminal instruction for this basic block.
- void ReplaceTerminal(Terminal term);
- /// Determines whether or not this basic block has a terminal instruction.
- bool HasTerminal() const;
-
- /// Gets a mutable reference to the cycle count for this basic block.
- size_t& CycleCount();
- /// Gets an immutable reference to the cycle count for this basic block.
- const size_t& CycleCount() const;
-
-private:
- /// Description of the starting location of this block
- LocationDescriptor location;
- /// Description of the end location of this block
- LocationDescriptor end_location;
- /// Conditional to pass in order to execute this block
- Cond cond;
- /// Block to execute next if `cond` did not pass.
- std::optional<LocationDescriptor> cond_failed = {};
- /// Number of cycles this block takes to execute if the conditional fails.
- size_t cond_failed_cycle_count = 0;
-
- /// List of instructions in this block.
- InstructionList instructions;
- /// Memory pool for instruction list
- std::unique_ptr<Common::Pool> instruction_alloc_pool;
- /// Terminal instruction of this block.
- Terminal terminal = Term::Invalid{};
-
- /// Number of cycles this block takes to execute.
- size_t cycle_count = 0;
-};
-
-/// Returns a string representation of the contents of block. Intended for debugging.
-std::string DumpBlock(const IR::Block& block);
-
-} // namespace Dynarmic::IR
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/cond.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/cond.h
deleted file mode 100644
index 5bdd05ed..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/cond.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::IR {
-
-enum class Cond {
- EQ,
- NE,
- CS,
- CC,
- MI,
- PL,
- VS,
- VC,
- HI,
- LS,
- GE,
- LT,
- GT,
- LE,
- AL,
- NV,
- HS = CS,
- LO = CC,
-};
-
-} // namespace Dynarmic::IR
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/ir_emitter.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/ir_emitter.h
deleted file mode 100644
index d37df245..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/ir_emitter.h
+++ /dev/null
@@ -1,432 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/ir/acc_type.h"
-#include "dynarmic/ir/basic_block.h"
-#include "dynarmic/ir/location_descriptor.h"
-#include "dynarmic/ir/terminal.h"
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::FP {
-enum class RoundingMode;
-} // namespace Dynarmic::FP
-
-// ARM JIT Microinstruction Intermediate Representation
-//
-// This intermediate representation is an SSA IR. It is designed primarily for analysis,
-// though it can be lowered into a reduced form for interpretation. Each IR node (Value)
-// is a microinstruction of an idealised ARM CPU. The choice of microinstructions is made
-// not based on any existing microarchitecture but on ease of implementation.
-
-namespace Dynarmic::IR {
-
-enum class Opcode;
-
-template<typename T>
-struct ResultAndCarry {
- T result;
- U1 carry;
-};
-
-template<typename T>
-struct ResultAndOverflow {
- T result;
- U1 overflow;
-};
-
-template<typename T>
-struct ResultAndGE {
- T result;
- U32 ge;
-};
-
-struct UpperAndLower {
- U128 upper;
- U128 lower;
-};
-
-enum class MemOp {
- LOAD,
- STORE,
- PREFETCH,
-};
-
-/**
- * Convenience class to construct a basic block of the intermediate representation.
- * `block` is the resulting block.
- * The user of this class updates `current_location` as appropriate.
- */
-class IREmitter {
-public:
- explicit IREmitter(Block& block)
- : block(block), insertion_point(block.end()) {}
-
- Block& block;
-
- U1 Imm1(bool value) const;
- U8 Imm8(u8 value) const;
- U16 Imm16(u16 value) const;
- U32 Imm32(u32 value) const;
- U64 Imm64(u64 value) const;
-
- void PushRSB(const LocationDescriptor& return_location);
-
- U64 Pack2x32To1x64(const U32& lo, const U32& hi);
- U128 Pack2x64To1x128(const U64& lo, const U64& hi);
- UAny LeastSignificant(size_t bitsize, const U32U64& value);
- U32 LeastSignificantWord(const U64& value);
- U16 LeastSignificantHalf(U32U64 value);
- U8 LeastSignificantByte(U32U64 value);
- ResultAndCarry<U32> MostSignificantWord(const U64& value);
- U1 MostSignificantBit(const U32& value);
- U1 IsZero(const U32& value);
- U1 IsZero(const U64& value);
- U1 IsZero(const U32U64& value);
- U1 TestBit(const U32U64& value, const U8& bit);
- U32 ConditionalSelect(Cond cond, const U32& a, const U32& b);
- U64 ConditionalSelect(Cond cond, const U64& a, const U64& b);
- NZCV ConditionalSelect(Cond cond, const NZCV& a, const NZCV& b);
- U32U64 ConditionalSelect(Cond cond, const U32U64& a, const U32U64& b);
-
- U1 GetCFlagFromNZCV(const NZCV& nzcv);
- NZCV NZCVFromPackedFlags(const U32& a);
- // This pseudo-instruction may only be added to instructions that support it.
- NZCV NZCVFrom(const Value& value);
-
- ResultAndCarry<U32> LogicalShiftLeft(const U32& value_in, const U8& shift_amount, const U1& carry_in);
- ResultAndCarry<U32> LogicalShiftRight(const U32& value_in, const U8& shift_amount, const U1& carry_in);
- ResultAndCarry<U32> ArithmeticShiftRight(const U32& value_in, const U8& shift_amount, const U1& carry_in);
- ResultAndCarry<U32> RotateRight(const U32& value_in, const U8& shift_amount, const U1& carry_in);
- U32U64 LogicalShiftLeft(const U32U64& value_in, const U8& shift_amount);
- U32U64 LogicalShiftRight(const U32U64& value_in, const U8& shift_amount);
- U32U64 ArithmeticShiftRight(const U32U64& value_in, const U8& shift_amount);
- U32U64 RotateRight(const U32U64& value_in, const U8& shift_amount);
- U32U64 LogicalShiftLeftMasked(const U32U64& value_in, const U32U64& shift_amount);
- U32U64 LogicalShiftRightMasked(const U32U64& value_in, const U32U64& shift_amount);
- U32U64 ArithmeticShiftRightMasked(const U32U64& value_in, const U32U64& shift_amount);
- U32U64 RotateRightMasked(const U32U64& value_in, const U32U64& shift_amount);
- ResultAndCarry<U32> RotateRightExtended(const U32& value_in, const U1& carry_in);
- U32U64 AddWithCarry(const U32U64& a, const U32U64& b, const U1& carry_in);
- U32U64 SubWithCarry(const U32U64& a, const U32U64& b, const U1& carry_in);
- U32U64 Add(const U32U64& a, const U32U64& b);
- U32U64 Sub(const U32U64& a, const U32U64& b);
- U32U64 Mul(const U32U64& a, const U32U64& b);
- U64 UnsignedMultiplyHigh(const U64& a, const U64& b);
- U64 SignedMultiplyHigh(const U64& a, const U64& b);
- U32U64 UnsignedDiv(const U32U64& a, const U32U64& b);
- U32U64 SignedDiv(const U32U64& a, const U32U64& b);
- U32U64 And(const U32U64& a, const U32U64& b);
- U32U64 AndNot(const U32U64& a, const U32U64& b);
- U32U64 Eor(const U32U64& a, const U32U64& b);
- U32U64 Or(const U32U64& a, const U32U64& b);
- U32U64 Not(const U32U64& a);
- U32 SignExtendToWord(const UAny& a);
- U64 SignExtendToLong(const UAny& a);
- U32 SignExtendByteToWord(const U8& a);
- U32 SignExtendHalfToWord(const U16& a);
- U64 SignExtendWordToLong(const U32& a);
- U32 ZeroExtendToWord(const UAny& a);
- U64 ZeroExtendToLong(const UAny& a);
- U128 ZeroExtendToQuad(const UAny& a);
- U32 ZeroExtendByteToWord(const U8& a);
- U32 ZeroExtendHalfToWord(const U16& a);
- U64 ZeroExtendWordToLong(const U32& a);
- U32 IndeterminateExtendToWord(const UAny& a);
- U64 IndeterminateExtendToLong(const UAny& a);
- U32 ByteReverseWord(const U32& a);
- U16 ByteReverseHalf(const U16& a);
- U64 ByteReverseDual(const U64& a);
- U32U64 CountLeadingZeros(const U32U64& a);
- U32U64 ExtractRegister(const U32U64& a, const U32U64& b, const U8& lsb);
- U32U64 ReplicateBit(const U32U64& a, u8 bit);
- U32U64 MaxSigned(const U32U64& a, const U32U64& b);
- U32U64 MaxUnsigned(const U32U64& a, const U32U64& b);
- U32U64 MinSigned(const U32U64& a, const U32U64& b);
- U32U64 MinUnsigned(const U32U64& a, const U32U64& b);
-
- ResultAndOverflow<U32> SignedSaturatedAddWithFlag(const U32& a, const U32& b);
- ResultAndOverflow<U32> SignedSaturatedSubWithFlag(const U32& a, const U32& b);
- ResultAndOverflow<U32> SignedSaturation(const U32& a, size_t bit_size_to_saturate_to);
- ResultAndOverflow<U32> UnsignedSaturation(const U32& a, size_t bit_size_to_saturate_to);
-
- UAny SignedSaturatedAdd(const UAny& a, const UAny& b);
- UAny SignedSaturatedDoublingMultiplyReturnHigh(const UAny& a, const UAny& b);
- UAny SignedSaturatedSub(const UAny& a, const UAny& b);
- UAny UnsignedSaturatedAdd(const UAny& a, const UAny& b);
- UAny UnsignedSaturatedSub(const UAny& a, const UAny& b);
-
- U128 VectorSignedSaturatedAdd(size_t esize, const U128& a, const U128& b);
- U128 VectorSignedSaturatedSub(size_t esize, const U128& a, const U128& b);
- U128 VectorUnsignedSaturatedAdd(size_t esize, const U128& a, const U128& b);
- U128 VectorUnsignedSaturatedSub(size_t esize, const U128& a, const U128& b);
-
- ResultAndGE<U32> PackedAddU8(const U32& a, const U32& b);
- ResultAndGE<U32> PackedAddS8(const U32& a, const U32& b);
- ResultAndGE<U32> PackedAddU16(const U32& a, const U32& b);
- ResultAndGE<U32> PackedAddS16(const U32& a, const U32& b);
- ResultAndGE<U32> PackedSubU8(const U32& a, const U32& b);
- ResultAndGE<U32> PackedSubS8(const U32& a, const U32& b);
- ResultAndGE<U32> PackedSubU16(const U32& a, const U32& b);
- ResultAndGE<U32> PackedSubS16(const U32& a, const U32& b);
- ResultAndGE<U32> PackedAddSubU16(const U32& a, const U32& b);
- ResultAndGE<U32> PackedAddSubS16(const U32& a, const U32& b);
- ResultAndGE<U32> PackedSubAddU16(const U32& a, const U32& b);
- ResultAndGE<U32> PackedSubAddS16(const U32& a, const U32& b);
- U32 PackedHalvingAddU8(const U32& a, const U32& b);
- U32 PackedHalvingAddS8(const U32& a, const U32& b);
- U32 PackedHalvingSubU8(const U32& a, const U32& b);
- U32 PackedHalvingSubS8(const U32& a, const U32& b);
- U32 PackedHalvingAddU16(const U32& a, const U32& b);
- U32 PackedHalvingAddS16(const U32& a, const U32& b);
- U32 PackedHalvingSubU16(const U32& a, const U32& b);
- U32 PackedHalvingSubS16(const U32& a, const U32& b);
- U32 PackedHalvingAddSubU16(const U32& a, const U32& b);
- U32 PackedHalvingAddSubS16(const U32& a, const U32& b);
- U32 PackedHalvingSubAddU16(const U32& a, const U32& b);
- U32 PackedHalvingSubAddS16(const U32& a, const U32& b);
- U32 PackedSaturatedAddU8(const U32& a, const U32& b);
- U32 PackedSaturatedAddS8(const U32& a, const U32& b);
- U32 PackedSaturatedSubU8(const U32& a, const U32& b);
- U32 PackedSaturatedSubS8(const U32& a, const U32& b);
- U32 PackedSaturatedAddU16(const U32& a, const U32& b);
- U32 PackedSaturatedAddS16(const U32& a, const U32& b);
- U32 PackedSaturatedSubU16(const U32& a, const U32& b);
- U32 PackedSaturatedSubS16(const U32& a, const U32& b);
- U32 PackedAbsDiffSumU8(const U32& a, const U32& b);
- U32 PackedSelect(const U32& ge, const U32& a, const U32& b);
-
- U32 CRC32Castagnoli8(const U32& a, const U32& b);
- U32 CRC32Castagnoli16(const U32& a, const U32& b);
- U32 CRC32Castagnoli32(const U32& a, const U32& b);
- U32 CRC32Castagnoli64(const U32& a, const U64& b);
- U32 CRC32ISO8(const U32& a, const U32& b);
- U32 CRC32ISO16(const U32& a, const U32& b);
- U32 CRC32ISO32(const U32& a, const U32& b);
- U32 CRC32ISO64(const U32& a, const U64& b);
-
- U128 AESDecryptSingleRound(const U128& a);
- U128 AESEncryptSingleRound(const U128& a);
- U128 AESInverseMixColumns(const U128& a);
- U128 AESMixColumns(const U128& a);
-
- U8 SM4AccessSubstitutionBox(const U8& a);
-
- U128 SHA256Hash(const U128& x, const U128& y, const U128& w, bool part1);
- U128 SHA256MessageSchedule0(const U128& x, const U128& y);
- U128 SHA256MessageSchedule1(const U128& x, const U128& y, const U128& z);
-
- UAny VectorGetElement(size_t esize, const U128& a, size_t index);
- U128 VectorSetElement(size_t esize, const U128& a, size_t index, const UAny& elem);
- U128 VectorAbs(size_t esize, const U128& a);
- U128 VectorAdd(size_t esize, const U128& a, const U128& b);
- U128 VectorAnd(const U128& a, const U128& b);
- U128 VectorAndNot(const U128& a, const U128& b);
- U128 VectorArithmeticShiftRight(size_t esize, const U128& a, u8 shift_amount);
- U128 VectorArithmeticVShift(size_t esize, const U128& a, const U128& b);
- U128 VectorBroadcast(size_t esize, const UAny& a);
- U128 VectorBroadcastLower(size_t esize, const UAny& a);
- U128 VectorBroadcastElement(size_t esize, const U128& a, size_t index);
- U128 VectorBroadcastElementLower(size_t esize, const U128& a, size_t index);
- U128 VectorCountLeadingZeros(size_t esize, const U128& a);
- U128 VectorEor(const U128& a, const U128& b);
- U128 VectorDeinterleaveEven(size_t esize, const U128& a, const U128& b);
- U128 VectorDeinterleaveEvenLower(size_t esize, const U128& a, const U128& b);
- U128 VectorDeinterleaveOdd(size_t esize, const U128& a, const U128& b);
- U128 VectorDeinterleaveOddLower(size_t esize, const U128& a, const U128& b);
- U128 VectorEqual(size_t esize, const U128& a, const U128& b);
- U128 VectorExtract(const U128& a, const U128& b, size_t position);
- U128 VectorExtractLower(const U128& a, const U128& b, size_t position);
- U128 VectorGreaterEqualSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorGreaterEqualUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorGreaterSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorGreaterUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorHalvingAddSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorHalvingAddUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorHalvingSubSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorHalvingSubUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorInterleaveLower(size_t esize, const U128& a, const U128& b);
- U128 VectorInterleaveUpper(size_t esize, const U128& a, const U128& b);
- U128 VectorLessEqualSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorLessEqualUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorLessSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorLessUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorLogicalShiftLeft(size_t esize, const U128& a, u8 shift_amount);
- U128 VectorLogicalShiftRight(size_t esize, const U128& a, u8 shift_amount);
- U128 VectorLogicalVShift(size_t esize, const U128& a, const U128& b);
- U128 VectorMaxSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorMaxUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorMinSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorMinUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorMultiply(size_t esize, const U128& a, const U128& b);
- U128 VectorMultiplySignedWiden(size_t esize, const U128& a, const U128& b);
- U128 VectorMultiplyUnsignedWiden(size_t esize, const U128& a, const U128& b);
- U128 VectorNarrow(size_t original_esize, const U128& a);
- U128 VectorNot(const U128& a);
- U128 VectorOr(const U128& a, const U128& b);
- U128 VectorPairedAdd(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedAddLower(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedAddSignedWiden(size_t original_esize, const U128& a);
- U128 VectorPairedAddUnsignedWiden(size_t original_esize, const U128& a);
- U128 VectorPairedMaxSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedMaxUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedMinSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedMinUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedMaxSignedLower(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedMaxUnsignedLower(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedMinSignedLower(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedMinUnsignedLower(size_t esize, const U128& a, const U128& b);
- U128 VectorPolynomialMultiply(const U128& a, const U128& b);
- U128 VectorPolynomialMultiplyLong(size_t esize, const U128& a, const U128& b);
- U128 VectorPopulationCount(const U128& a);
- U128 VectorReverseBits(const U128& a);
- U128 VectorReverseElementsInHalfGroups(size_t esize, const U128& a);
- U128 VectorReverseElementsInWordGroups(size_t esize, const U128& a);
- U128 VectorReverseElementsInLongGroups(size_t esize, const U128& a);
- U128 VectorReduceAdd(size_t esize, const U128& a);
- U128 VectorRotateLeft(size_t esize, const U128& a, u8 amount);
- U128 VectorRotateRight(size_t esize, const U128& a, u8 amount);
- U128 VectorRotateWholeVectorRight(const U128& a, u8 amount);
- U128 VectorRoundingHalvingAddSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorRoundingHalvingAddUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorRoundingShiftLeftSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorRoundingShiftLeftUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorSignExtend(size_t original_esize, const U128& a);
- U128 VectorSignedAbsoluteDifference(size_t esize, const U128& a, const U128& b);
- UpperAndLower VectorSignedMultiply(size_t esize, const U128& a, const U128& b);
- U128 VectorSignedSaturatedAbs(size_t esize, const U128& a);
- U128 VectorSignedSaturatedAccumulateUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorSignedSaturatedDoublingMultiplyHigh(size_t esize, const U128& a, const U128& b);
- U128 VectorSignedSaturatedDoublingMultiplyHighRounding(size_t esize, const U128& a, const U128& b);
- U128 VectorSignedSaturatedDoublingMultiplyLong(size_t esize, const U128& a, const U128& b);
- U128 VectorSignedSaturatedNarrowToSigned(size_t original_esize, const U128& a);
- U128 VectorSignedSaturatedNarrowToUnsigned(size_t original_esize, const U128& a);
- U128 VectorSignedSaturatedNeg(size_t esize, const U128& a);
- U128 VectorSignedSaturatedShiftLeft(size_t esize, const U128& a, const U128& b);
- U128 VectorSignedSaturatedShiftLeftUnsigned(size_t esize, const U128& a, u8 shift_amount);
- U128 VectorSub(size_t esize, const U128& a, const U128& b);
- Table VectorTable(std::vector<U64> values);
- Table VectorTable(std::vector<U128> values);
- U64 VectorTableLookup(const U64& defaults, const Table& table, const U64& indices);
- U128 VectorTableLookup(const U128& defaults, const Table& table, const U128& indices);
- U128 VectorTranspose(size_t esize, const U128& a, const U128& b, bool part);
- U128 VectorUnsignedAbsoluteDifference(size_t esize, const U128& a, const U128& b);
- U128 VectorUnsignedRecipEstimate(const U128& a);
- U128 VectorUnsignedRecipSqrtEstimate(const U128& a);
- U128 VectorUnsignedSaturatedAccumulateSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorUnsignedSaturatedNarrow(size_t esize, const U128& a);
- U128 VectorUnsignedSaturatedShiftLeft(size_t esize, const U128& a, const U128& b);
- U128 VectorZeroExtend(size_t original_esize, const U128& a);
- U128 VectorZeroUpper(const U128& a);
- U128 ZeroVector();
-
- U16U32U64 FPAbs(const U16U32U64& a);
- U32U64 FPAdd(const U32U64& a, const U32U64& b);
- NZCV FPCompare(const U32U64& a, const U32U64& b, bool exc_on_qnan);
- U32U64 FPDiv(const U32U64& a, const U32U64& b);
- U32U64 FPMax(const U32U64& a, const U32U64& b);
- U32U64 FPMaxNumeric(const U32U64& a, const U32U64& b);
- U32U64 FPMin(const U32U64& a, const U32U64& b);
- U32U64 FPMinNumeric(const U32U64& a, const U32U64& b);
- U32U64 FPMul(const U32U64& a, const U32U64& b);
- U16U32U64 FPMulAdd(const U16U32U64& addend, const U16U32U64& op1, const U16U32U64& op2);
- U16U32U64 FPMulSub(const U16U32U64& minuend, const U16U32U64& op1, const U16U32U64& op2);
- U32U64 FPMulX(const U32U64& a, const U32U64& b);
- U16U32U64 FPNeg(const U16U32U64& a);
- U16U32U64 FPRecipEstimate(const U16U32U64& a);
- U16U32U64 FPRecipExponent(const U16U32U64& a);
- U16U32U64 FPRecipStepFused(const U16U32U64& a, const U16U32U64& b);
- U16U32U64 FPRoundInt(const U16U32U64& a, FP::RoundingMode rounding, bool exact);
- U16U32U64 FPRSqrtEstimate(const U16U32U64& a);
- U16U32U64 FPRSqrtStepFused(const U16U32U64& a, const U16U32U64& b);
- U32U64 FPSqrt(const U32U64& a);
- U32U64 FPSub(const U32U64& a, const U32U64& b);
- U16 FPDoubleToHalf(const U64& a, FP::RoundingMode rounding);
- U32 FPDoubleToSingle(const U64& a, FP::RoundingMode rounding);
- U64 FPHalfToDouble(const U16& a, FP::RoundingMode rounding);
- U32 FPHalfToSingle(const U16& a, FP::RoundingMode rounding);
- U16 FPSingleToHalf(const U32& a, FP::RoundingMode rounding);
- U64 FPSingleToDouble(const U32& a, FP::RoundingMode rounding);
- U16 FPToFixedS16(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U32 FPToFixedS32(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U64 FPToFixedS64(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U16 FPToFixedU16(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U32 FPToFixedU32(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U64 FPToFixedU64(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U32 FPSignedFixedToSingle(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U32 FPUnsignedFixedToSingle(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U64 FPSignedFixedToDouble(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U64 FPUnsignedFixedToDouble(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
-
- U128 FPVectorAbs(size_t esize, const U128& a);
- U128 FPVectorAdd(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorDiv(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorEqual(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorFromHalf(size_t esize, const U128& a, FP::RoundingMode rounding, bool fpcr_controlled = true);
- U128 FPVectorFromSignedFixed(size_t esize, const U128& a, size_t fbits, FP::RoundingMode rounding, bool fpcr_controlled = true);
- U128 FPVectorFromUnsignedFixed(size_t esize, const U128& a, size_t fbits, FP::RoundingMode rounding, bool fpcr_controlled = true);
- U128 FPVectorGreater(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorGreaterEqual(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorMax(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorMaxNumeric(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorMin(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorMinNumeric(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorMul(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorMulAdd(size_t esize, const U128& addend, const U128& op1, const U128& op2, bool fpcr_controlled = true);
- U128 FPVectorMulX(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorNeg(size_t esize, const U128& a);
- U128 FPVectorPairedAdd(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorPairedAddLower(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorRecipEstimate(size_t esize, const U128& a, bool fpcr_controlled = true);
- U128 FPVectorRecipStepFused(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorRoundInt(size_t esize, const U128& operand, FP::RoundingMode rounding, bool exact, bool fpcr_controlled = true);
- U128 FPVectorRSqrtEstimate(size_t esize, const U128& a, bool fpcr_controlled = true);
- U128 FPVectorRSqrtStepFused(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorSqrt(size_t esize, const U128& a, bool fpcr_controlled = true);
- U128 FPVectorSub(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorToHalf(size_t esize, const U128& a, FP::RoundingMode rounding, bool fpcr_controlled = true);
- U128 FPVectorToSignedFixed(size_t esize, const U128& a, size_t fbits, FP::RoundingMode rounding, bool fpcr_controlled = true);
- U128 FPVectorToUnsignedFixed(size_t esize, const U128& a, size_t fbits, FP::RoundingMode rounding, bool fpcr_controlled = true);
-
- void Breakpoint();
- void CallHostFunction(void (*fn)(void));
- void CallHostFunction(void (*fn)(u64), const U64& arg1);
- void CallHostFunction(void (*fn)(u64, u64), const U64& arg1, const U64& arg2);
- void CallHostFunction(void (*fn)(u64, u64, u64), const U64& arg1, const U64& arg2, const U64& arg3);
-
- void SetTerm(const Terminal& terminal);
-
- void SetInsertionPointBefore(IR::Inst* new_insertion_point) {
- insertion_point = IR::Block::iterator{*new_insertion_point};
- }
-
- void SetInsertionPointBefore(IR::Block::iterator new_insertion_point) {
- insertion_point = new_insertion_point;
- }
-
- void SetInsertionPointAfter(IR::Inst* new_insertion_point) {
- insertion_point = IR::Block::iterator{*new_insertion_point};
- ++insertion_point;
- }
-
- void SetInsertionPointAfter(IR::Block::iterator new_insertion_point) {
- insertion_point = new_insertion_point;
- ++insertion_point;
- }
-
-protected:
- IR::Block::iterator insertion_point;
-
- template<typename T = Value, typename... Args>
- T Inst(Opcode op, Args... args) {
- auto iter = block.PrependNewInst(insertion_point, op, {Value(args)...});
- return T(Value(&*iter));
- }
-};
-
-} // namespace Dynarmic::IR
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/location_descriptor.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/location_descriptor.h
deleted file mode 100644
index 48e5e32b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/location_descriptor.h
+++ /dev/null
@@ -1,64 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <functional>
-#include <string>
-
-#include <fmt/format.h>
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::IR {
-
-class LocationDescriptor {
-public:
- explicit LocationDescriptor(u64 value)
- : value(value) {}
-
- bool operator==(const LocationDescriptor& o) const {
- return value == o.Value();
- }
-
- bool operator!=(const LocationDescriptor& o) const {
- return !operator==(o);
- }
-
- u64 Value() const { return value; }
-
-private:
- u64 value;
-};
-
-std::string ToString(const LocationDescriptor& descriptor);
-
-inline bool operator<(const LocationDescriptor& x, const LocationDescriptor& y) noexcept {
- return x.Value() < y.Value();
-}
-
-} // namespace Dynarmic::IR
-
-namespace std {
-template<>
-struct less<Dynarmic::IR::LocationDescriptor> {
- bool operator()(const Dynarmic::IR::LocationDescriptor& x, const Dynarmic::IR::LocationDescriptor& y) const noexcept {
- return x < y;
- }
-};
-template<>
-struct hash<Dynarmic::IR::LocationDescriptor> {
- size_t operator()(const Dynarmic::IR::LocationDescriptor& x) const noexcept {
- return std::hash<u64>()(x.Value());
- }
-};
-} // namespace std
-
-template<>
-struct fmt::formatter<Dynarmic::IR::LocationDescriptor> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::IR::LocationDescriptor descriptor, FormatContext& ctx) const {
- return formatter<std::string>::format(ToString(descriptor), ctx);
- }
-};
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/microinstruction.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/microinstruction.h
deleted file mode 100644
index 26b6b899..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/microinstruction.h
+++ /dev/null
@@ -1,162 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/container/intrusive_list.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::IR {
-
-enum class Opcode;
-enum class Type;
-
-constexpr size_t max_arg_count = 4;
-
-/**
- * A representation of a microinstruction. A single ARM/Thumb instruction may be
- * converted into zero or more microinstructions.
- */
-class Inst final : public mcl::intrusive_list_node<Inst> {
-public:
- explicit Inst(Opcode op)
- : op(op) {}
-
- /// Determines whether or not this instruction performs an arithmetic shift.
- bool IsArithmeticShift() const;
- /// Determines whether or not this instruction performs a logical shift.
- bool IsLogicalShift() const;
- /// Determines whether or not this instruction performs a circular shift.
- bool IsCircularShift() const;
- /// Determines whether or not this instruction performs any kind of shift.
- bool IsShift() const;
-
- /// Determines whether or not this instruction is a form of barrier.
- bool IsBarrier() const;
-
- /// Determines whether or not this instruction performs a shared memory read.
- bool IsSharedMemoryRead() const;
- /// Determines whether or not this instruction performs a shared memory write.
- bool IsSharedMemoryWrite() const;
- /// Determines whether or not this instruction performs a shared memory read or write.
- bool IsSharedMemoryReadOrWrite() const;
- /// Determines whether or not this instruction performs an atomic memory read.
- bool IsExclusiveMemoryRead() const;
- /// Determines whether or not this instruction performs an atomic memory write.
- bool IsExclusiveMemoryWrite() const;
-
- /// Determines whether or not this instruction performs any kind of memory read.
- bool IsMemoryRead() const;
- /// Determines whether or not this instruction performs any kind of memory write.
- bool IsMemoryWrite() const;
- /// Determines whether or not this instruction performs any kind of memory access.
- bool IsMemoryReadOrWrite() const;
-
- /// Determines whether or not this instruction reads from the CPSR.
- bool ReadsFromCPSR() const;
- /// Determines whether or not this instruction writes to the CPSR.
- bool WritesToCPSR() const;
-
- /// Determines whether or not this instruction writes to a system register.
- bool WritesToSystemRegister() const;
-
- /// Determines whether or not this instruction reads from a core register.
- bool ReadsFromCoreRegister() const;
- /// Determines whether or not this instruction writes to a core register.
- bool WritesToCoreRegister() const;
-
- /// Determines whether or not this instruction reads from the FPCR.
- bool ReadsFromFPCR() const;
- /// Determines whether or not this instruction writes to the FPCR.
- bool WritesToFPCR() const;
-
- /// Determines whether or not this instruction reads from the FPSR.
- bool ReadsFromFPSR() const;
- /// Determines whether or not this instruction writes to the FPSR.
- bool WritesToFPSR() const;
-
- /// Determines whether or not this instruction reads from the FPSR cumulative exception bits.
- bool ReadsFromFPSRCumulativeExceptionBits() const;
- /// Determines whether or not this instruction writes to the FPSR cumulative exception bits.
- bool WritesToFPSRCumulativeExceptionBits() const;
- /// Determines whether or not this instruction both reads from and writes to the FPSR cumulative exception bits.
- bool ReadsFromAndWritesToFPSRCumulativeExceptionBits() const;
-
- /// Determines whether or not this instruction reads from the FPSR cumulative saturation bit.
- bool ReadsFromFPSRCumulativeSaturationBit() const;
- /// Determines whether or not this instruction writes to the FPSR cumulative saturation bit.
- bool WritesToFPSRCumulativeSaturationBit() const;
-
- /// Determines whether or not this instruction alters memory-exclusivity.
- bool AltersExclusiveState() const;
-
- /// Determines whether or not this instruction accesses a coprocessor.
- bool IsCoprocessorInstruction() const;
-
- /// Determines whether or not this instruction causes a CPU exception.
- bool CausesCPUException() const;
-
- /// Determines whether or not this instruction is a SetCheckBit operation.
- bool IsSetCheckBitOperation() const;
-
- /// Determines whether or not this instruction may have side-effects.
- bool MayHaveSideEffects() const;
-
- /// Determines whether or not this instruction is a pseduo-instruction.
- /// Pseudo-instructions depend on their parent instructions for their semantics.
- bool IsAPseudoOperation() const;
-
- /// Determines whether or not this instruction supports the GetNZCVFromOp pseudo-operation.
- bool MayGetNZCVFromOp() const;
-
- /// Determines if all arguments of this instruction are immediates.
- bool AreAllArgsImmediates() const;
-
- size_t UseCount() const { return use_count; }
- bool HasUses() const { return use_count > 0; }
-
- /// Determines if there is a pseudo-operation associated with this instruction.
- bool HasAssociatedPseudoOperation() const;
- /// Gets a pseudo-operation associated with this instruction.
- Inst* GetAssociatedPseudoOperation(Opcode opcode);
-
- /// Get the microop this microinstruction represents.
- Opcode GetOpcode() const { return op; }
- /// Get the type this instruction returns.
- Type GetType() const;
- /// Get the number of arguments this instruction has.
- size_t NumArgs() const;
-
- Value GetArg(size_t index) const;
- void SetArg(size_t index, Value value);
-
- void Invalidate();
- void ClearArgs();
-
- void ReplaceUsesWith(Value replacement);
-
- // IR name (i.e. instruction number in block). This is set in the naming pass. Treat 0 as an invalid name.
- // This is used for debugging and fastmem instruction identification.
- void SetName(unsigned value) { name = value; }
- unsigned GetName() const { return name; }
-
-private:
- void Use(const Value& value);
- void UndoUse(const Value& value);
-
- Opcode op;
- unsigned use_count = 0;
- unsigned name = 0;
- std::array<Value, max_arg_count> args;
-
- // Linked list of pseudooperations associated with this instruction.
- Inst* next_pseudoop = nullptr;
-};
-
-} // namespace Dynarmic::IR
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/opcodes.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/opcodes.h
deleted file mode 100644
index 404f4cdb..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/opcodes.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string>
-
-#include <fmt/format.h>
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::IR {
-
-enum class Type;
-
-/**
- * The Opcodes of our intermediate representation.
- * Type signatures for each opcode can be found in opcodes.inc
- */
-enum class Opcode {
-#define OPCODE(name, type, ...) name,
-#define A32OPC(name, type, ...) A32##name,
-#define A64OPC(name, type, ...) A64##name,
-#include "./opcodes.inc"
-#undef OPCODE
-#undef A32OPC
-#undef A64OPC
- NUM_OPCODE
-};
-
-constexpr size_t OpcodeCount = static_cast<size_t>(Opcode::NUM_OPCODE);
-
-/// Get return type of an opcode
-Type GetTypeOf(Opcode op);
-
-/// Get the number of arguments an opcode accepts
-size_t GetNumArgsOf(Opcode op);
-
-/// Get the required type of an argument of an opcode
-Type GetArgTypeOf(Opcode op, size_t arg_index);
-
-/// Get the name of an opcode.
-std::string GetNameOf(Opcode op);
-
-} // namespace Dynarmic::IR
-
-template<>
-struct fmt::formatter<Dynarmic::IR::Opcode> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::IR::Opcode op, FormatContext& ctx) const {
- return formatter<std::string>::format(Dynarmic::IR::GetNameOf(op), ctx);
- }
-};
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/opt/ir_matcher.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/opt/ir_matcher.h
deleted file mode 100644
index 5eb1a551..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/opt/ir_matcher.h
+++ /dev/null
@@ -1,127 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2020 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-#include <tuple>
-
-#include <mp/metafunction/apply.h>
-#include <mp/typelist/concat.h>
-#include <mp/typelist/drop.h>
-#include <mp/typelist/get.h>
-#include <mp/typelist/head.h>
-#include <mp/typelist/list.h>
-#include <mp/typelist/prepend.h>
-
-#include "dynarmic/ir/microinstruction.h"
-#include "dynarmic/ir/opcodes.h"
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::Optimization::IRMatcher {
-
-struct CaptureValue {
- using ReturnType = std::tuple<IR::Value>;
-
- static std::optional<ReturnType> Match(IR::Value value) {
- return std::tuple(value);
- }
-};
-
-struct CaptureInst {
- using ReturnType = std::tuple<IR::Inst*>;
-
- static std::optional<ReturnType> Match(IR::Value value) {
- if (value.IsImmediate())
- return std::nullopt;
- return std::tuple(value.GetInstRecursive());
- }
-};
-
-struct CaptureUImm {
- using ReturnType = std::tuple<u64>;
-
- static std::optional<ReturnType> Match(IR::Value value) {
- return std::tuple(value.GetImmediateAsU64());
- }
-};
-
-struct CaptureSImm {
- using ReturnType = std::tuple<s64>;
-
- static std::optional<ReturnType> Match(IR::Value value) {
- return std::tuple(value.GetImmediateAsS64());
- }
-};
-
-template<u64 Value>
-struct UImm {
- using ReturnType = std::tuple<>;
-
- static std::optional<std::tuple<>> Match(IR::Value value) {
- if (value.GetImmediateAsU64() == Value)
- return std::tuple();
- return std::nullopt;
- }
-};
-
-template<s64 Value>
-struct SImm {
- using ReturnType = std::tuple<>;
-
- static std::optional<std::tuple<>> Match(IR::Value value) {
- if (value.GetImmediateAsS64() == Value)
- return std::tuple();
- return std::nullopt;
- }
-};
-
-template<IR::Opcode Opcode, typename... Args>
-struct Inst {
-public:
- using ReturnType = mp::concat<std::tuple<>, typename Args::ReturnType...>;
-
- static std::optional<ReturnType> Match(const IR::Inst& inst) {
- if (inst.GetOpcode() != Opcode)
- return std::nullopt;
- if (inst.HasAssociatedPseudoOperation())
- return std::nullopt;
- return MatchArgs<0>(inst);
- }
-
- static std::optional<ReturnType> Match(IR::Value value) {
- if (value.IsImmediate())
- return std::nullopt;
- return Match(*value.GetInstRecursive());
- }
-
-private:
- template<size_t I>
- static auto MatchArgs(const IR::Inst& inst) -> std::optional<mp::apply<mp::concat, mp::prepend<mp::drop<I, mp::list<typename Args::ReturnType...>>, std::tuple<>>>> {
- if constexpr (I >= sizeof...(Args)) {
- return std::tuple();
- } else {
- using Arg = mp::get<I, mp::list<Args...>>;
-
- if (const auto arg = Arg::Match(inst.GetArg(I))) {
- if (const auto rest = MatchArgs<I + 1>(inst)) {
- return std::tuple_cat(*arg, *rest);
- }
- }
-
- return std::nullopt;
- }
- }
-};
-
-inline bool IsSameInst(std::tuple<IR::Inst*, IR::Inst*> t) {
- return std::get<0>(t) == std::get<1>(t);
-}
-
-inline bool IsSameInst(std::tuple<IR::Inst*, IR::Inst*, IR::Inst*> t) {
- return std::get<0>(t) == std::get<1>(t) && std::get<0>(t) == std::get<2>(t);
-}
-
-} // namespace Dynarmic::Optimization::IRMatcher
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/opt/passes.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/opt/passes.h
deleted file mode 100644
index 703145b5..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/opt/passes.h
+++ /dev/null
@@ -1,47 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::A32 {
-struct UserCallbacks;
-}
-
-namespace Dynarmic::A64 {
-struct UserCallbacks;
-struct UserConfig;
-} // namespace Dynarmic::A64
-
-namespace Dynarmic::IR {
-class Block;
-}
-
-namespace Dynarmic::Optimization {
-
-struct PolyfillOptions {
- bool sha256 = false;
- bool vector_multiply_widen = false;
-
- bool operator==(const PolyfillOptions&) const = default;
-};
-
-struct A32GetSetEliminationOptions {
- bool convert_nzc_to_nz = false;
- bool convert_nz_to_nzc = false;
-};
-
-void PolyfillPass(IR::Block& block, const PolyfillOptions& opt);
-void A32ConstantMemoryReads(IR::Block& block, A32::UserCallbacks* cb);
-void A32GetSetElimination(IR::Block& block, A32GetSetEliminationOptions opt);
-void A64CallbackConfigPass(IR::Block& block, const A64::UserConfig& conf);
-void A64GetSetElimination(IR::Block& block);
-void A64MergeInterpretBlocksPass(IR::Block& block, A64::UserCallbacks* cb);
-void ConstantPropagation(IR::Block& block);
-void DeadCodeElimination(IR::Block& block);
-void IdentityRemovalPass(IR::Block& block);
-void VerificationPass(const IR::Block& block);
-void NamingPass(IR::Block& block);
-
-} // namespace Dynarmic::Optimization
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/terminal.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/terminal.h
deleted file mode 100644
index d437ffd5..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/terminal.h
+++ /dev/null
@@ -1,131 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <boost/variant.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/ir/cond.h"
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace Dynarmic::IR {
-namespace Term {
-
-struct Invalid {};
-
-/**
- * This terminal instruction calls the interpreter, starting at `next`.
- * The interpreter must interpret exactly `num_instructions` instructions.
- */
-struct Interpret {
- explicit Interpret(const LocationDescriptor& next_)
- : next(next_) {}
- LocationDescriptor next; ///< Location at which interpretation starts.
- size_t num_instructions = 1;
-};
-
-/**
- * This terminal instruction returns control to the dispatcher.
- * The dispatcher will use the current cpu state to determine what comes next.
- */
-struct ReturnToDispatch {};
-
-/**
- * This terminal instruction jumps to the basic block described by `next` if we have enough
- * cycles remaining. If we do not have enough cycles remaining, we return to the
- * dispatcher, which will return control to the host.
- */
-struct LinkBlock {
- explicit LinkBlock(const LocationDescriptor& next_)
- : next(next_) {}
- LocationDescriptor next; ///< Location descriptor for next block.
-};
-
-/**
- * This terminal instruction jumps to the basic block described by `next` unconditionally.
- * This is an optimization and MUST only be emitted when this is guaranteed not to result
- * in hanging, even in the face of other optimizations. (In practice, this means that only
- * forward jumps to short-ish blocks would use this instruction.)
- * A backend that doesn't support this optimization may choose to implement this exactly
- * as LinkBlock.
- */
-struct LinkBlockFast {
- explicit LinkBlockFast(const LocationDescriptor& next_)
- : next(next_) {}
- LocationDescriptor next; ///< Location descriptor for next block.
-};
-
-/**
- * This terminal instruction checks the top of the Return Stack Buffer against the current
- * location descriptor. If RSB lookup fails, control is returned to the dispatcher.
- * This is an optimization for faster function calls. A backend that doesn't support
- * this optimization or doesn't have a RSB may choose to implement this exactly as
- * ReturnToDispatch.
- */
-struct PopRSBHint {};
-
-/**
- * This terminal instruction performs a lookup of the current location descriptor in the
- * fast dispatch lookup table. A backend that doesn't support this optimization may choose
- * to implement this exactly as ReturnToDispatch.
- */
-struct FastDispatchHint {};
-
-struct If;
-struct CheckBit;
-struct CheckHalt;
-/// A Terminal is the terminal instruction in a MicroBlock.
-using Terminal = boost::variant<
- Invalid,
- Interpret,
- ReturnToDispatch,
- LinkBlock,
- LinkBlockFast,
- PopRSBHint,
- FastDispatchHint,
- boost::recursive_wrapper<If>,
- boost::recursive_wrapper<CheckBit>,
- boost::recursive_wrapper<CheckHalt>>;
-
-/**
- * This terminal instruction conditionally executes one terminal or another depending
- * on the run-time state of the ARM flags.
- */
-struct If {
- If(Cond if_, Terminal then_, Terminal else_)
- : if_(if_), then_(std::move(then_)), else_(std::move(else_)) {}
- Cond if_;
- Terminal then_;
- Terminal else_;
-};
-
-/**
- * This terminal instruction conditionally executes one terminal or another depending
- * on the run-time state of the check bit.
- * then_ is executed if the check bit is non-zero, otherwise else_ is executed.
- */
-struct CheckBit {
- CheckBit(Terminal then_, Terminal else_)
- : then_(std::move(then_)), else_(std::move(else_)) {}
- Terminal then_;
- Terminal else_;
-};
-
-/**
- * This terminal instruction checks if a halt was requested. If it wasn't, else_ is
- * executed.
- */
-struct CheckHalt {
- explicit CheckHalt(Terminal else_)
- : else_(std::move(else_)) {}
- Terminal else_;
-};
-
-} // namespace Term
-
-using Term::Terminal;
-
-} // namespace Dynarmic::IR
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/type.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/type.h
deleted file mode 100644
index 65fe76dd..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/type.h
+++ /dev/null
@@ -1,60 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string>
-
-#include <fmt/format.h>
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::IR {
-
-/**
- * The intermediate representation is typed. These are the used by our IR.
- */
-enum class Type {
- Void = 0,
- A32Reg = 1 << 0,
- A32ExtReg = 1 << 1,
- A64Reg = 1 << 2,
- A64Vec = 1 << 3,
- Opaque = 1 << 4,
- U1 = 1 << 5,
- U8 = 1 << 6,
- U16 = 1 << 7,
- U32 = 1 << 8,
- U64 = 1 << 9,
- U128 = 1 << 10,
- CoprocInfo = 1 << 11,
- NZCVFlags = 1 << 12,
- Cond = 1 << 13,
- Table = 1 << 14,
- AccType = 1 << 15,
-};
-
-constexpr Type operator|(Type a, Type b) {
- return static_cast<Type>(static_cast<size_t>(a) | static_cast<size_t>(b));
-}
-
-constexpr Type operator&(Type a, Type b) {
- return static_cast<Type>(static_cast<size_t>(a) & static_cast<size_t>(b));
-}
-
-/// Get the name of a type.
-std::string GetNameOf(Type type);
-
-/// @returns true if t1 and t2 are compatible types
-bool AreTypesCompatible(Type t1, Type t2);
-
-} // namespace Dynarmic::IR
-
-template<>
-struct fmt::formatter<Dynarmic::IR::Type> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::IR::Type type, FormatContext& ctx) const {
- return formatter<std::string>::format(Dynarmic::IR::GetNameOf(type), ctx);
- }
-};
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/value.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/value.h
deleted file mode 100644
index 8f70110a..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/Headers/dynarmic/ir/value.h
+++ /dev/null
@@ -1,187 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <type_traits>
-
-#include <mcl/assert.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/ir/type.h"
-
-namespace Dynarmic::A32 {
-enum class ExtReg;
-enum class Reg;
-} // namespace Dynarmic::A32
-
-namespace Dynarmic::A64 {
-enum class Reg;
-enum class Vec;
-} // namespace Dynarmic::A64
-
-namespace Dynarmic::IR {
-
-class Inst;
-enum class AccType;
-enum class Cond;
-
-/**
- * A representation of a value in the IR.
- * A value may either be an immediate or the result of a microinstruction.
- */
-class Value {
-public:
- using CoprocessorInfo = std::array<u8, 8>;
-
- Value()
- : type(Type::Void) {}
- explicit Value(Inst* value);
- explicit Value(A32::Reg value);
- explicit Value(A32::ExtReg value);
- explicit Value(A64::Reg value);
- explicit Value(A64::Vec value);
- explicit Value(bool value);
- explicit Value(u8 value);
- explicit Value(u16 value);
- explicit Value(u32 value);
- explicit Value(u64 value);
- explicit Value(CoprocessorInfo value);
- explicit Value(Cond value);
- explicit Value(AccType value);
-
- static Value EmptyNZCVImmediateMarker();
-
- bool IsIdentity() const;
- bool IsEmpty() const;
- bool IsImmediate() const;
- Type GetType() const;
-
- Inst* GetInst() const;
- Inst* GetInstRecursive() const;
- A32::Reg GetA32RegRef() const;
- A32::ExtReg GetA32ExtRegRef() const;
- A64::Reg GetA64RegRef() const;
- A64::Vec GetA64VecRef() const;
- bool GetU1() const;
- u8 GetU8() const;
- u16 GetU16() const;
- u32 GetU32() const;
- u64 GetU64() const;
- CoprocessorInfo GetCoprocInfo() const;
- Cond GetCond() const;
- AccType GetAccType() const;
-
- /**
- * Retrieves the immediate of a Value instance as a signed 64-bit value.
- *
- * @pre The value contains either a U1, U8, U16, U32, or U64 value.
- * Breaking this precondition will cause an assertion to be invoked.
- */
- s64 GetImmediateAsS64() const;
-
- /**
- * Retrieves the immediate of a Value instance as an unsigned 64-bit value.
- *
- * @pre The value contains either a U1, U8, U16, U32, or U64 value.
- * Breaking this precondition will cause an assertion to be invoked.
- */
- u64 GetImmediateAsU64() const;
-
- /**
- * Determines whether or not the contained value matches the provided signed one.
- *
- * Note that this function will always return false if the contained
- * value is not a a constant value. In other words, if IsImmediate()
- * would return false on an instance, then so will this function.
- *
- * @param value The value to check against the contained value.
- */
- bool IsSignedImmediate(s64 value) const;
-
- /**
- * Determines whether or not the contained value matches the provided unsigned one.
- *
- * Note that this function will always return false if the contained
- * value is not a a constant value. In other words, if IsImmediate()
- * would return false on an instance, then so will this function.
- *
- * @param value The value to check against the contained value.
- */
- bool IsUnsignedImmediate(u64 value) const;
-
- /**
- * Determines whether or not the contained constant value has all bits set.
- *
- * @pre The value contains either a U1, U8, U16, U32, or U64 value.
- * Breaking this precondition will cause an assertion to be invoked.
- */
- bool HasAllBitsSet() const;
-
- /**
- * Whether or not the current value contains a representation of zero.
- *
- * Note that this function will always return false if the contained
- * value is not a a constant value. In other words, if IsImmediate()
- * would return false on an instance, then so will this function.
- */
- bool IsZero() const;
-
-private:
- Type type;
-
- union {
- Inst* inst; // type == Type::Opaque
- A32::Reg imm_a32regref;
- A32::ExtReg imm_a32extregref;
- A64::Reg imm_a64regref;
- A64::Vec imm_a64vecref;
- bool imm_u1;
- u8 imm_u8;
- u16 imm_u16;
- u32 imm_u32;
- u64 imm_u64;
- CoprocessorInfo imm_coproc;
- Cond imm_cond;
- AccType imm_acctype;
- } inner;
-};
-static_assert(sizeof(Value) <= 2 * sizeof(u64), "IR::Value should be kept small in size");
-
-template<Type type_>
-class TypedValue final : public Value {
-public:
- TypedValue() = default;
-
- template<Type other_type, typename = std::enable_if_t<(other_type & type_) != Type::Void>>
- /* implicit */ TypedValue(const TypedValue<other_type>& value)
- : Value(value) {
- ASSERT((value.GetType() & type_) != Type::Void);
- }
-
- explicit TypedValue(const Value& value)
- : Value(value) {
- ASSERT((value.GetType() & type_) != Type::Void);
- }
-
- explicit TypedValue(Inst* inst)
- : TypedValue(Value(inst)) {}
-};
-
-using U1 = TypedValue<Type::U1>;
-using U8 = TypedValue<Type::U8>;
-using U16 = TypedValue<Type::U16>;
-using U32 = TypedValue<Type::U32>;
-using U64 = TypedValue<Type::U64>;
-using U128 = TypedValue<Type::U128>;
-using U32U64 = TypedValue<Type::U32 | Type::U64>;
-using U16U32U64 = TypedValue<Type::U16 | Type::U32 | Type::U64>;
-using UAny = TypedValue<Type::U8 | Type::U16 | Type::U32 | Type::U64>;
-using UAnyU128 = TypedValue<Type::U8 | Type::U16 | Type::U32 | Type::U64 | Type::U128>;
-using NZCV = TypedValue<Type::NZCVFlags>;
-using Table = TypedValue<Type::Table>;
-
-} // namespace Dynarmic::IR
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/libdynarmic.a b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/libdynarmic.a
deleted file mode 100644
index 4bfa3829..00000000
Binary files a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64-simulator/libdynarmic.a and /dev/null differ
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/a32_address_space.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/a32_address_space.h
deleted file mode 100644
index 3b9e9fb2..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/a32_address_space.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include "dynarmic/backend/arm64/address_space.h"
-#include "dynarmic/backend/block_range_information.h"
-#include "dynarmic/interface/A32/config.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct EmittedBlockInfo;
-
-class A32AddressSpace final : public AddressSpace {
-public:
- explicit A32AddressSpace(const A32::UserConfig& conf);
-
- IR::Block GenerateIR(IR::LocationDescriptor) const override;
-
- void InvalidateCacheRanges(const boost::icl::interval_set<u32>& ranges);
-
-protected:
- friend class A32Core;
-
- void EmitPrelude();
- EmitConfig GetEmitConfig() override;
- void RegisterNewBasicBlock(const IR::Block& block, const EmittedBlockInfo& block_info) override;
-
- const A32::UserConfig conf;
- BlockRangeInformation<u32> block_ranges;
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/a32_core.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/a32_core.h
deleted file mode 100644
index 86f6f284..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/a32_core.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include "dynarmic/backend/arm64/a32_address_space.h"
-#include "dynarmic/backend/arm64/a32_jitstate.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-class A32Core final {
-public:
- explicit A32Core(const A32::UserConfig&) {}
-
- HaltReason Run(A32AddressSpace& process, A32JitState& thread_ctx, volatile u32* halt_reason) {
- const auto location_descriptor = thread_ctx.GetLocationDescriptor();
- const auto entry_point = process.GetOrEmit(location_descriptor);
- return process.prelude_info.run_code(entry_point, &thread_ctx, halt_reason);
- }
-
- HaltReason Step(A32AddressSpace& process, A32JitState& thread_ctx, volatile u32* halt_reason) {
- const auto location_descriptor = A32::LocationDescriptor{thread_ctx.GetLocationDescriptor()}.SetSingleStepping(true);
- const auto entry_point = process.GetOrEmit(location_descriptor);
- return process.prelude_info.step_code(entry_point, &thread_ctx, halt_reason);
- }
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/a32_jitstate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/a32_jitstate.h
deleted file mode 100644
index 978bf84a..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/a32_jitstate.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2021 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/A32/a32_location_descriptor.h"
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct A32JitState {
- u32 cpsr_nzcv = 0;
- u32 cpsr_q = 0;
- u32 cpsr_jaifm = 0;
- u32 cpsr_ge = 0;
-
- u32 fpsr = 0;
- u32 fpsr_nzcv = 0;
-
- std::array<u32, 16> regs{};
-
- u32 upper_location_descriptor;
-
- alignas(16) std::array<u32, 64> ext_regs{};
-
- u32 exclusive_state = 0;
-
- u32 Cpsr() const;
- void SetCpsr(u32 cpsr);
-
- u32 Fpscr() const;
- void SetFpscr(u32 fpscr);
-
- IR::LocationDescriptor GetLocationDescriptor() const {
- return IR::LocationDescriptor{regs[15] | (static_cast<u64>(upper_location_descriptor) << 32)};
- }
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/a64_address_space.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/a64_address_space.h
deleted file mode 100644
index 86eae4dd..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/a64_address_space.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include "dynarmic/backend/arm64/address_space.h"
-#include "dynarmic/backend/block_range_information.h"
-#include "dynarmic/interface/A64/config.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct EmittedBlockInfo;
-
-class A64AddressSpace final : public AddressSpace {
-public:
- explicit A64AddressSpace(const A64::UserConfig& conf);
-
- IR::Block GenerateIR(IR::LocationDescriptor) const override;
-
- void InvalidateCacheRanges(const boost::icl::interval_set<u64>& ranges);
-
-protected:
- friend class A64Core;
-
- void EmitPrelude();
- EmitConfig GetEmitConfig() override;
- void RegisterNewBasicBlock(const IR::Block& block, const EmittedBlockInfo& block_info) override;
-
- const A64::UserConfig conf;
- BlockRangeInformation<u64> block_ranges;
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/a64_core.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/a64_core.h
deleted file mode 100644
index 24fbb66b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/a64_core.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include "dynarmic/backend/arm64/a64_address_space.h"
-#include "dynarmic/backend/arm64/a64_jitstate.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-class A64Core final {
-public:
- explicit A64Core(const A64::UserConfig&) {}
-
- HaltReason Run(A64AddressSpace& process, A64JitState& thread_ctx, volatile u32* halt_reason) {
- const auto location_descriptor = thread_ctx.GetLocationDescriptor();
- const auto entry_point = process.GetOrEmit(location_descriptor);
- return process.prelude_info.run_code(entry_point, &thread_ctx, halt_reason);
- }
-
- HaltReason Step(A64AddressSpace& process, A64JitState& thread_ctx, volatile u32* halt_reason) {
- const auto location_descriptor = A64::LocationDescriptor{thread_ctx.GetLocationDescriptor()}.SetSingleStepping(true);
- const auto entry_point = process.GetOrEmit(location_descriptor);
- return process.prelude_info.step_code(entry_point, &thread_ctx, halt_reason);
- }
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/a64_jitstate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/a64_jitstate.h
deleted file mode 100644
index 215e6987..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/a64_jitstate.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/A64/a64_location_descriptor.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct A64JitState {
- std::array<u64, 31> reg{};
- u64 sp = 0;
- u64 pc = 0;
-
- u32 cpsr_nzcv = 0;
-
- alignas(16) std::array<u64, 64> vec{};
-
- u32 exclusive_state = 0;
-
- u32 fpsr = 0;
- u32 fpcr = 0;
-
- IR::LocationDescriptor GetLocationDescriptor() const {
- const u64 fpcr_u64 = static_cast<u64>(fpcr & A64::LocationDescriptor::fpcr_mask) << A64::LocationDescriptor::fpcr_shift;
- const u64 pc_u64 = pc & A64::LocationDescriptor::pc_mask;
- return IR::LocationDescriptor{pc_u64 | fpcr_u64};
- }
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/abi.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/abi.h
deleted file mode 100644
index 609b06cd..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/abi.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <initializer_list>
-#include <stdexcept>
-#include <type_traits>
-
-#include <mcl/mp/metavalue/lift_value.hpp>
-#include <mcl/stdint.hpp>
-#include <oaknut/oaknut.hpp>
-
-#include "dynarmic/common/always_false.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-constexpr oaknut::XReg Xstate{28};
-constexpr oaknut::XReg Xhalt{27};
-constexpr oaknut::XReg Xticks{26};
-constexpr oaknut::XReg Xfastmem{25};
-constexpr oaknut::XReg Xpagetable{24};
-
-constexpr oaknut::XReg Xscratch0{16}, Xscratch1{17}, Xscratch2{30};
-constexpr oaknut::WReg Wscratch0{16}, Wscratch1{17}, Wscratch2{30};
-
-template<size_t bitsize>
-constexpr auto Rscratch0() {
- if constexpr (bitsize == 32) {
- return Wscratch0;
- } else if constexpr (bitsize == 64) {
- return Xscratch0;
- } else {
- static_assert(Common::always_false_v<mcl::mp::lift_value<bitsize>>);
- }
-}
-
-template<size_t bitsize>
-constexpr auto Rscratch1() {
- if constexpr (bitsize == 32) {
- return Wscratch1;
- } else if constexpr (bitsize == 64) {
- return Xscratch1;
- } else {
- static_assert(Common::always_false_v<mcl::mp::lift_value<bitsize>>);
- }
-}
-
-constexpr std::initializer_list<int> GPR_ORDER{19, 20, 21, 22, 23, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7, 8};
-constexpr std::initializer_list<int> FPR_ORDER{8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31};
-
-using RegisterList = u64;
-
-constexpr RegisterList ToRegList(oaknut::Reg reg) {
- if (reg.is_vector()) {
- return RegisterList{1} << (reg.index() + 32);
- }
-
- if (reg.index() == 31) {
- throw std::out_of_range("ZR not allowed in reg list");
- }
-
- if (reg.index() == -1) {
- return RegisterList{1} << 31;
- }
-
- return RegisterList{1} << reg.index();
-}
-
-constexpr RegisterList ABI_CALLEE_SAVE = 0x0000ff00'7ff80000;
-constexpr RegisterList ABI_CALLER_SAVE = 0xffffffff'4000ffff;
-
-void ABI_PushRegisters(oaknut::CodeGenerator& code, RegisterList rl, size_t stack_space);
-void ABI_PopRegisters(oaknut::CodeGenerator& code, RegisterList rl, size_t stack_space);
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/address_space.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/address_space.h
deleted file mode 100644
index a5fe7513..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/address_space.h
+++ /dev/null
@@ -1,136 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <map>
-#include <optional>
-
-#include <mcl/stdint.hpp>
-#include <oaknut/code_block.hpp>
-#include <oaknut/oaknut.hpp>
-#include <tsl/robin_map.h>
-#include <tsl/robin_set.h>
-
-#include "dynarmic/backend/arm64/emit_arm64.h"
-#include "dynarmic/backend/arm64/fastmem.h"
-#include "dynarmic/interface/halt_reason.h"
-#include "dynarmic/ir/basic_block.h"
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-class AddressSpace {
-public:
- explicit AddressSpace(size_t code_cache_size);
- virtual ~AddressSpace();
-
- virtual IR::Block GenerateIR(IR::LocationDescriptor) const = 0;
-
- CodePtr Get(IR::LocationDescriptor descriptor);
-
- // Returns "most likely" LocationDescriptor assocated with the emitted code at that location
- std::optional<IR::LocationDescriptor> ReverseGetLocation(CodePtr host_pc);
-
- // Returns "most likely" entry_point associated with the emitted code at that location
- CodePtr ReverseGetEntryPoint(CodePtr host_pc);
-
- CodePtr GetOrEmit(IR::LocationDescriptor descriptor);
-
- void InvalidateBasicBlocks(const tsl::robin_set<IR::LocationDescriptor>& descriptors);
-
- void ClearCache();
-
-protected:
- virtual EmitConfig GetEmitConfig() = 0;
- virtual void RegisterNewBasicBlock(const IR::Block& block, const EmittedBlockInfo& block_info) = 0;
-
- void ProtectCodeMemory() {
-#if defined(DYNARMIC_ENABLE_NO_EXECUTE_SUPPORT) || defined(__APPLE__) || defined(__OpenBSD__)
- mem.protect();
-#endif
- }
-
- void UnprotectCodeMemory() {
-#if defined(DYNARMIC_ENABLE_NO_EXECUTE_SUPPORT) || defined(__APPLE__) || defined(__OpenBSD__)
- mem.unprotect();
-#endif
- }
-
- size_t GetRemainingSize();
- EmittedBlockInfo Emit(IR::Block ir_block);
- void Link(EmittedBlockInfo& block);
- void LinkBlockLinks(const CodePtr entry_point, const CodePtr target_ptr, const std::vector<BlockRelocation>& block_relocations_list);
- void RelinkForDescriptor(IR::LocationDescriptor target_descriptor, CodePtr target_ptr);
-
- FakeCall FastmemCallback(u64 host_pc);
-
- const size_t code_cache_size;
- oaknut::CodeBlock mem;
- oaknut::CodeGenerator code;
-
- // A IR::LocationDescriptor will have one current CodePtr.
- // However, there can be multiple other CodePtrs which are older, previously invalidated blocks.
- tsl::robin_map<IR::LocationDescriptor, CodePtr> block_entries;
- std::map<CodePtr, IR::LocationDescriptor> reverse_block_entries;
- tsl::robin_map<CodePtr, EmittedBlockInfo> block_infos;
- tsl::robin_map<IR::LocationDescriptor, tsl::robin_set<CodePtr>> block_references;
-
- ExceptionHandler exception_handler;
- FastmemManager fastmem_manager;
-
- struct PreludeInfo {
- std::ptrdiff_t end_of_prelude;
-
- using RunCodeFuncType = HaltReason (*)(CodePtr entry_point, void* jit_state, volatile u32* halt_reason);
- RunCodeFuncType run_code;
- RunCodeFuncType step_code;
- void* return_to_dispatcher;
- void* return_from_run_code;
-
- void* read_memory_8;
- void* read_memory_16;
- void* read_memory_32;
- void* read_memory_64;
- void* read_memory_128;
- void* wrapped_read_memory_8;
- void* wrapped_read_memory_16;
- void* wrapped_read_memory_32;
- void* wrapped_read_memory_64;
- void* wrapped_read_memory_128;
- void* exclusive_read_memory_8;
- void* exclusive_read_memory_16;
- void* exclusive_read_memory_32;
- void* exclusive_read_memory_64;
- void* exclusive_read_memory_128;
- void* write_memory_8;
- void* write_memory_16;
- void* write_memory_32;
- void* write_memory_64;
- void* write_memory_128;
- void* wrapped_write_memory_8;
- void* wrapped_write_memory_16;
- void* wrapped_write_memory_32;
- void* wrapped_write_memory_64;
- void* wrapped_write_memory_128;
- void* exclusive_write_memory_8;
- void* exclusive_write_memory_16;
- void* exclusive_write_memory_32;
- void* exclusive_write_memory_64;
- void* exclusive_write_memory_128;
-
- void* call_svc;
- void* exception_raised;
- void* dc_raised;
- void* ic_raised;
- void* isb_raised;
-
- void* get_cntpct;
- void* add_ticks;
- void* get_ticks_remaining;
- } prelude_info;
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/devirtualize.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/devirtualize.h
deleted file mode 100644
index c433fd01..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/devirtualize.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/bit_cast.hpp>
-#include <mcl/stdint.hpp>
-#include <mcl/type_traits/function_info.hpp>
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct DevirtualizedCall {
- u64 fn_ptr;
- u64 this_ptr;
-};
-
-// https://rants.vastheman.com/2021/09/21/msvc/
-template<auto mfp>
-DevirtualizedCall DevirtualizeWindows(mcl::class_type<decltype(mfp)>* this_) {
- static_assert(sizeof(mfp) == 8);
- return DevirtualizedCall{mcl::bit_cast<u64>(mfp), reinterpret_cast<u64>(this_)};
-}
-
-// https://github.com/ARM-software/abi-aa/blob/main/cppabi64/cppabi64.rst#representation-of-pointer-to-member-function
-template<auto mfp>
-DevirtualizedCall DevirtualizeDefault(mcl::class_type<decltype(mfp)>* this_) {
- struct MemberFunctionPointer {
- // Address of non-virtual function or index into vtable.
- u64 ptr;
- // LSB is discriminator for if function is virtual. Other bits are this adjustment.
- u64 adj;
- } mfp_struct = mcl::bit_cast<MemberFunctionPointer>(mfp);
-
- static_assert(sizeof(MemberFunctionPointer) == 16);
- static_assert(sizeof(MemberFunctionPointer) == sizeof(mfp));
-
- u64 fn_ptr = mfp_struct.ptr;
- u64 this_ptr = mcl::bit_cast<u64>(this_) + (mfp_struct.adj >> 1);
- if (mfp_struct.adj & 1) {
- u64 vtable = mcl::bit_cast_pointee<u64>(this_ptr);
- fn_ptr = mcl::bit_cast_pointee<u64>(vtable + fn_ptr);
- }
- return DevirtualizedCall{fn_ptr, this_ptr};
-}
-
-template<auto mfp>
-DevirtualizedCall Devirtualize(mcl::class_type<decltype(mfp)>* this_) {
-#if defined(_WIN32) && defined(_MSC_VER)
- return DevirtualizeWindows<mfp>(this_);
-#else
- return DevirtualizeDefault<mfp>(this_);
-#endif
-}
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/emit_arm64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/emit_arm64.h
deleted file mode 100644
index 6ac62074..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/emit_arm64.h
+++ /dev/null
@@ -1,181 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <cstddef>
-#include <memory>
-#include <vector>
-
-#include <mcl/stdint.hpp>
-#include <tsl/robin_map.h>
-
-#include "dynarmic/backend/arm64/fastmem.h"
-#include "dynarmic/interface/A32/coprocessor.h"
-#include "dynarmic/interface/optimization_flags.h"
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace oaknut {
-struct CodeGenerator;
-struct Label;
-} // namespace oaknut
-
-namespace Dynarmic::FP {
-class FPCR;
-} // namespace Dynarmic::FP
-
-namespace Dynarmic::IR {
-class Block;
-class Inst;
-enum class Cond;
-enum class Opcode;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct EmitContext;
-
-using CodePtr = std::byte*;
-
-enum class LinkTarget {
- ReturnToDispatcher,
- ReturnFromRunCode,
- ReadMemory8,
- ReadMemory16,
- ReadMemory32,
- ReadMemory64,
- ReadMemory128,
- WrappedReadMemory8,
- WrappedReadMemory16,
- WrappedReadMemory32,
- WrappedReadMemory64,
- WrappedReadMemory128,
- ExclusiveReadMemory8,
- ExclusiveReadMemory16,
- ExclusiveReadMemory32,
- ExclusiveReadMemory64,
- ExclusiveReadMemory128,
- WriteMemory8,
- WriteMemory16,
- WriteMemory32,
- WriteMemory64,
- WriteMemory128,
- WrappedWriteMemory8,
- WrappedWriteMemory16,
- WrappedWriteMemory32,
- WrappedWriteMemory64,
- WrappedWriteMemory128,
- ExclusiveWriteMemory8,
- ExclusiveWriteMemory16,
- ExclusiveWriteMemory32,
- ExclusiveWriteMemory64,
- ExclusiveWriteMemory128,
- CallSVC,
- ExceptionRaised,
- InstructionSynchronizationBarrierRaised,
- InstructionCacheOperationRaised,
- DataCacheOperationRaised,
- GetCNTPCT,
- AddTicks,
- GetTicksRemaining,
-};
-
-struct Relocation {
- std::ptrdiff_t code_offset;
- LinkTarget target;
-};
-
-enum class BlockRelocationType {
- Branch,
- MoveToScratch1,
-};
-
-struct BlockRelocation {
- std::ptrdiff_t code_offset;
- BlockRelocationType type;
-};
-
-struct EmittedBlockInfo {
- CodePtr entry_point;
- size_t size;
- std::vector<Relocation> relocations;
- tsl::robin_map<IR::LocationDescriptor, std::vector<BlockRelocation>> block_relocations;
- tsl::robin_map<std::ptrdiff_t, FastmemPatchInfo> fastmem_patch_info;
-};
-
-struct EmitConfig {
- OptimizationFlag optimizations;
- bool HasOptimization(OptimizationFlag f) const { return (f & optimizations) != no_optimizations; }
-
- bool hook_isb;
-
- // System registers
- u64 cntfreq_el0;
- u32 ctr_el0;
- u32 dczid_el0;
- const u64* tpidrro_el0;
- u64* tpidr_el0;
-
- // Memory
- bool check_halt_on_memory_access;
-
- // Page table
- u64 page_table_pointer;
- size_t page_table_address_space_bits;
- int page_table_pointer_mask_bits;
- bool silently_mirror_page_table;
- bool absolute_offset_page_table;
- u8 detect_misaligned_access_via_page_table;
- bool only_detect_misalignment_via_page_table_on_page_boundary;
-
- // Fastmem
- u64 fastmem_pointer;
- bool recompile_on_fastmem_failure;
- size_t fastmem_address_space_bits;
- bool silently_mirror_fastmem;
-
- // Timing
- bool wall_clock_cntpct;
- bool enable_cycle_counting;
-
- // Endianness
- bool always_little_endian;
-
- // Frontend specific callbacks
- FP::FPCR (*descriptor_to_fpcr)(const IR::LocationDescriptor& descriptor);
- oaknut::Label (*emit_cond)(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Cond cond);
- void (*emit_condition_failed_terminal)(oaknut::CodeGenerator& code, EmitContext& ctx);
- void (*emit_terminal)(oaknut::CodeGenerator& code, EmitContext& ctx);
- void (*emit_check_memory_abort)(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst, oaknut::Label& end);
-
- // State offsets
- size_t state_nzcv_offset;
- size_t state_fpsr_offset;
- size_t state_exclusive_state_offset;
-
- // A32 specific
- std::array<std::shared_ptr<A32::Coprocessor>, 16> coprocessors{};
-
- // Debugging
- bool very_verbose_debugging_output;
-};
-
-EmittedBlockInfo EmitArm64(oaknut::CodeGenerator& code, IR::Block block, const EmitConfig& emit_conf, FastmemManager& fastmem_manager);
-
-template<IR::Opcode op>
-void EmitIR(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst);
-void EmitRelocation(oaknut::CodeGenerator& code, EmitContext& ctx, LinkTarget link_target);
-void EmitBlockLinkRelocation(oaknut::CodeGenerator& code, EmitContext& ctx, const IR::LocationDescriptor& descriptor, BlockRelocationType type);
-oaknut::Label EmitA32Cond(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Cond cond);
-oaknut::Label EmitA64Cond(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Cond cond);
-void EmitA32Terminal(oaknut::CodeGenerator& code, EmitContext& ctx);
-void EmitA64Terminal(oaknut::CodeGenerator& code, EmitContext& ctx);
-void EmitA32ConditionFailedTerminal(oaknut::CodeGenerator& code, EmitContext& ctx);
-void EmitA64ConditionFailedTerminal(oaknut::CodeGenerator& code, EmitContext& ctx);
-void EmitA32CheckMemoryAbort(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst, oaknut::Label& end);
-void EmitA64CheckMemoryAbort(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst, oaknut::Label& end);
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/emit_arm64_memory.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/emit_arm64_memory.h
deleted file mode 100644
index bfc6d71f..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/emit_arm64_memory.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#include <mcl/stdint.hpp>
-
-namespace oaknut {
-struct CodeGenerator;
-struct Label;
-} // namespace oaknut
-
-namespace Dynarmic::IR {
-enum class AccType;
-class Inst;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct EmitContext;
-enum class LinkTarget;
-
-template<size_t bitsize>
-void EmitReadMemory(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst);
-template<size_t bitsize>
-void EmitExclusiveReadMemory(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst);
-template<size_t bitsize>
-void EmitWriteMemory(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst);
-template<size_t bitsize>
-void EmitExclusiveWriteMemory(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst);
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/emit_context.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/emit_context.h
deleted file mode 100644
index 6bfc6f3c..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/emit_context.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <functional>
-#include <memory>
-#include <vector>
-
-#include <oaknut/oaknut.hpp>
-
-#include "dynarmic/backend/arm64/emit_arm64.h"
-#include "dynarmic/backend/arm64/reg_alloc.h"
-#include "dynarmic/common/fp/fpcr.h"
-#include "dynarmic/ir/basic_block.h"
-
-namespace Dynarmic::IR {
-class Block;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct EmitConfig;
-class FastmemManager;
-class FpsrManager;
-
-using SharedLabel = std::shared_ptr<oaknut::Label>;
-
-inline SharedLabel GenSharedLabel() {
- return std::make_shared<oaknut::Label>();
-}
-
-struct EmitContext {
- IR::Block& block;
- RegAlloc& reg_alloc;
- const EmitConfig& conf;
- EmittedBlockInfo& ebi;
- FpsrManager& fpsr;
- FastmemManager& fastmem;
-
- std::vector<std::function<void()>> deferred_emits;
-
- FP::FPCR FPCR(bool fpcr_controlled = true) const {
- const FP::FPCR fpcr = conf.descriptor_to_fpcr(block.Location());
- return fpcr_controlled ? fpcr : fpcr.ASIMDStandardValue();
- }
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/fastmem.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/fastmem.h
deleted file mode 100644
index 8ed686ae..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/fastmem.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstddef>
-#include <tuple>
-
-#include <mcl/hash/xmrx.hpp>
-#include <mcl/stdint.hpp>
-#include <tsl/robin_set.h>
-
-#include "dynarmic/backend/exception_handler.h"
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-using DoNotFastmemMarker = std::tuple<IR::LocationDescriptor, unsigned>;
-
-struct DoNotFastmemMarkerHash {
- size_t operator()(const DoNotFastmemMarker& value) const {
- return mcl::hash::xmrx(std::get<0>(value).Value() ^ static_cast<u64>(std::get<1>(value)));
- }
-};
-
-struct FastmemPatchInfo {
- DoNotFastmemMarker marker;
- FakeCall fc;
- bool recompile;
-};
-
-class FastmemManager {
-public:
- explicit FastmemManager(ExceptionHandler& eh)
- : exception_handler(eh) {}
-
- bool SupportsFastmem() const {
- return exception_handler.SupportsFastmem();
- }
-
- bool ShouldFastmem(DoNotFastmemMarker marker) const {
- return do_not_fastmem.count(marker) == 0;
- }
-
- void MarkDoNotFastmem(DoNotFastmemMarker marker) {
- do_not_fastmem.insert(marker);
- }
-
-private:
- ExceptionHandler& exception_handler;
- tsl::robin_set<DoNotFastmemMarker, DoNotFastmemMarkerHash> do_not_fastmem;
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/fpsr_manager.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/fpsr_manager.h
deleted file mode 100644
index e003522d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/fpsr_manager.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace oaknut {
-struct CodeGenerator;
-} // namespace oaknut
-
-namespace Dynarmic::Backend::Arm64 {
-
-class FpsrManager {
-public:
- explicit FpsrManager(oaknut::CodeGenerator& code, size_t state_fpsr_offset);
-
- void Spill();
- void Load();
- void Overwrite() { fpsr_loaded = false; }
-
-private:
- oaknut::CodeGenerator& code;
- size_t state_fpsr_offset;
- bool fpsr_loaded = false;
-};
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/reg_alloc.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/reg_alloc.h
deleted file mode 100644
index 3a2d5388..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/reg_alloc.h
+++ /dev/null
@@ -1,376 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <optional>
-#include <random>
-#include <utility>
-#include <vector>
-
-#include <mcl/assert.hpp>
-#include <mcl/stdint.hpp>
-#include <mcl/type_traits/is_instance_of_template.hpp>
-#include <oaknut/oaknut.hpp>
-#include <tsl/robin_set.h>
-
-#include "dynarmic/backend/arm64/stack_layout.h"
-#include "dynarmic/ir/cond.h"
-#include "dynarmic/ir/microinstruction.h"
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::Backend::Arm64 {
-
-class FpsrManager;
-class RegAlloc;
-
-struct HostLoc final {
- enum class Kind {
- Gpr,
- Fpr,
- Flags,
- Spill,
- } kind;
- int index;
-};
-
-enum RWType {
- Void,
- Read,
- Write,
- ReadWrite,
-};
-
-struct Argument final {
-public:
- using copyable_reference = std::reference_wrapper<Argument>;
-
- IR::Type GetType() const;
- bool IsVoid() const { return GetType() == IR::Type::Void; }
- bool IsImmediate() const;
-
- bool GetImmediateU1() const;
- u8 GetImmediateU8() const;
- u16 GetImmediateU16() const;
- u32 GetImmediateU32() const;
- u64 GetImmediateU64() const;
- IR::Cond GetImmediateCond() const;
- IR::AccType GetImmediateAccType() const;
-
- // Only valid if not immediate
- HostLoc::Kind CurrentLocationKind() const;
- bool IsInGpr() const { return !IsImmediate() && CurrentLocationKind() == HostLoc::Kind::Gpr; }
- bool IsInFpr() const { return !IsImmediate() && CurrentLocationKind() == HostLoc::Kind::Fpr; }
-
-private:
- friend class RegAlloc;
- explicit Argument(RegAlloc& reg_alloc)
- : reg_alloc{reg_alloc} {}
-
- bool allocated = false;
- RegAlloc& reg_alloc;
- IR::Value value;
-};
-
-struct FlagsTag final {
-private:
- template<typename>
- friend struct RAReg;
-
- explicit FlagsTag(int) {}
- int index() const { return 0; }
-};
-
-template<typename T>
-struct RAReg final {
-public:
- static constexpr HostLoc::Kind kind = !std::is_same_v<FlagsTag, T>
- ? std::is_base_of_v<oaknut::VReg, T>
- ? HostLoc::Kind::Fpr
- : HostLoc::Kind::Gpr
- : HostLoc::Kind::Flags;
-
- operator T() const { return reg.value(); }
-
- operator oaknut::WRegWsp() const
- requires(std::is_same_v<T, oaknut::WReg>)
- {
- return reg.value();
- }
-
- operator oaknut::XRegSp() const
- requires(std::is_same_v<T, oaknut::XReg>)
- {
- return reg.value();
- }
-
- T operator*() const { return reg.value(); }
- const T* operator->() const { return &reg.value(); }
-
- ~RAReg();
- RAReg(RAReg&& other)
- : reg_alloc{other.reg_alloc}
- , rw{std::exchange(other.rw, RWType::Void)}
- , read_value{std::exchange(other.read_value, {})}
- , write_value{std::exchange(other.write_value, nullptr)}
- , reg{std::exchange(other.reg, std::nullopt)} {
- }
- RAReg& operator=(RAReg&&) = delete;
-
-private:
- friend class RegAlloc;
- explicit RAReg(RegAlloc& reg_alloc, RWType rw, const IR::Value& read_value, const IR::Inst* write_value);
-
- RAReg(const RAReg&) = delete;
- RAReg& operator=(const RAReg&) = delete;
-
- void Realize();
-
- RegAlloc& reg_alloc;
- RWType rw;
- IR::Value read_value;
- const IR::Inst* write_value;
- std::optional<T> reg;
-};
-
-struct HostLocInfo final {
- std::vector<const IR::Inst*> values;
- size_t locked = 0;
- bool realized = false;
- size_t uses_this_inst = 0;
- size_t accumulated_uses = 0;
- size_t expected_uses = 0;
-
- bool Contains(const IR::Inst*) const;
- void SetupScratchLocation();
- void SetupLocation(const IR::Inst*);
- bool IsCompletelyEmpty() const;
- bool MaybeAllocatable() const;
- bool IsOneRemainingUse() const;
- void UpdateUses();
-};
-
-class RegAlloc final {
-public:
- using ArgumentInfo = std::array<Argument, IR::max_arg_count>;
-
- explicit RegAlloc(oaknut::CodeGenerator& code, FpsrManager& fpsr_manager, std::vector<int> gpr_order, std::vector<int> fpr_order)
- : code{code}, fpsr_manager{fpsr_manager}, gpr_order{gpr_order}, fpr_order{fpr_order}, rand_gen{std::random_device{}()} {}
-
- ArgumentInfo GetArgumentInfo(IR::Inst* inst);
- bool WasValueDefined(IR::Inst* inst) const;
-
- auto ReadX(Argument& arg) { return RAReg<oaknut::XReg>{*this, RWType::Read, arg.value, nullptr}; }
- auto ReadW(Argument& arg) { return RAReg<oaknut::WReg>{*this, RWType::Read, arg.value, nullptr}; }
-
- auto ReadQ(Argument& arg) { return RAReg<oaknut::QReg>{*this, RWType::Read, arg.value, nullptr}; }
- auto ReadD(Argument& arg) { return RAReg<oaknut::DReg>{*this, RWType::Read, arg.value, nullptr}; }
- auto ReadS(Argument& arg) { return RAReg<oaknut::SReg>{*this, RWType::Read, arg.value, nullptr}; }
- auto ReadH(Argument& arg) { return RAReg<oaknut::HReg>{*this, RWType::Read, arg.value, nullptr}; }
- auto ReadB(Argument& arg) { return RAReg<oaknut::BReg>{*this, RWType::Read, arg.value, nullptr}; }
-
- template<size_t size>
- auto ReadReg(Argument& arg) {
- if constexpr (size == 64) {
- return ReadX(arg);
- } else if constexpr (size == 32) {
- return ReadW(arg);
- } else {
- ASSERT_FALSE("Invalid size to ReadReg {}", size);
- }
- }
-
- template<size_t size>
- auto ReadVec(Argument& arg) {
- if constexpr (size == 128) {
- return ReadQ(arg);
- } else if constexpr (size == 64) {
- return ReadD(arg);
- } else if constexpr (size == 32) {
- return ReadS(arg);
- } else if constexpr (size == 16) {
- return ReadH(arg);
- } else if constexpr (size == 8) {
- return ReadB(arg);
- } else {
- ASSERT_FALSE("Invalid size to ReadVec {}", size);
- }
- }
-
- auto WriteX(IR::Inst* inst) { return RAReg<oaknut::XReg>{*this, RWType::Write, {}, inst}; }
- auto WriteW(IR::Inst* inst) { return RAReg<oaknut::WReg>{*this, RWType::Write, {}, inst}; }
-
- auto WriteQ(IR::Inst* inst) { return RAReg<oaknut::QReg>{*this, RWType::Write, {}, inst}; }
- auto WriteD(IR::Inst* inst) { return RAReg<oaknut::DReg>{*this, RWType::Write, {}, inst}; }
- auto WriteS(IR::Inst* inst) { return RAReg<oaknut::SReg>{*this, RWType::Write, {}, inst}; }
- auto WriteH(IR::Inst* inst) { return RAReg<oaknut::HReg>{*this, RWType::Write, {}, inst}; }
- auto WriteB(IR::Inst* inst) { return RAReg<oaknut::BReg>{*this, RWType::Write, {}, inst}; }
-
- auto WriteFlags(IR::Inst* inst) { return RAReg<FlagsTag>{*this, RWType::Write, {}, inst}; }
-
- template<size_t size>
- auto WriteReg(IR::Inst* inst) {
- if constexpr (size == 64) {
- return WriteX(inst);
- } else if constexpr (size == 32) {
- return WriteW(inst);
- } else {
- ASSERT_FALSE("Invalid size to WriteReg {}", size);
- }
- }
-
- template<size_t size>
- auto WriteVec(IR::Inst* inst) {
- if constexpr (size == 128) {
- return WriteQ(inst);
- } else if constexpr (size == 64) {
- return WriteD(inst);
- } else if constexpr (size == 32) {
- return WriteS(inst);
- } else if constexpr (size == 16) {
- return WriteH(inst);
- } else if constexpr (size == 8) {
- return WriteB(inst);
- } else {
- ASSERT_FALSE("Invalid size to WriteVec {}", size);
- }
- }
-
- auto ReadWriteX(Argument& arg, const IR::Inst* inst) { return RAReg<oaknut::XReg>{*this, RWType::ReadWrite, arg.value, inst}; }
- auto ReadWriteW(Argument& arg, const IR::Inst* inst) { return RAReg<oaknut::WReg>{*this, RWType::ReadWrite, arg.value, inst}; }
-
- auto ReadWriteQ(Argument& arg, const IR::Inst* inst) { return RAReg<oaknut::QReg>{*this, RWType::ReadWrite, arg.value, inst}; }
- auto ReadWriteD(Argument& arg, const IR::Inst* inst) { return RAReg<oaknut::DReg>{*this, RWType::ReadWrite, arg.value, inst}; }
- auto ReadWriteS(Argument& arg, const IR::Inst* inst) { return RAReg<oaknut::SReg>{*this, RWType::ReadWrite, arg.value, inst}; }
- auto ReadWriteH(Argument& arg, const IR::Inst* inst) { return RAReg<oaknut::HReg>{*this, RWType::ReadWrite, arg.value, inst}; }
- auto ReadWriteB(Argument& arg, const IR::Inst* inst) { return RAReg<oaknut::BReg>{*this, RWType::ReadWrite, arg.value, inst}; }
-
- template<size_t size>
- auto ReadWriteReg(Argument& arg, const IR::Inst* inst) {
- if constexpr (size == 64) {
- return ReadWriteX(arg, inst);
- } else if constexpr (size == 32) {
- return ReadWriteW(arg, inst);
- } else {
- ASSERT_FALSE("Invalid size to ReadWriteReg {}", size);
- }
- }
-
- template<size_t size>
- auto ReadWriteVec(Argument& arg, const IR::Inst* inst) {
- if constexpr (size == 128) {
- return ReadWriteQ(arg, inst);
- } else if constexpr (size == 64) {
- return ReadWriteD(arg, inst);
- } else if constexpr (size == 32) {
- return ReadWriteS(arg, inst);
- } else if constexpr (size == 16) {
- return ReadWriteH(arg, inst);
- } else if constexpr (size == 8) {
- return ReadWriteB(arg, inst);
- } else {
- ASSERT_FALSE("Invalid size to ReadWriteVec {}", size);
- }
- }
-
- void PrepareForCall(std::optional<Argument::copyable_reference> arg0 = {}, std::optional<Argument::copyable_reference> arg1 = {}, std::optional<Argument::copyable_reference> arg2 = {}, std::optional<Argument::copyable_reference> arg3 = {});
-
- void DefineAsExisting(IR::Inst* inst, Argument& arg);
- void DefineAsRegister(IR::Inst* inst, oaknut::Reg reg);
-
- void ReadWriteFlags(Argument& read, IR::Inst* write);
- void SpillFlags();
- void SpillAll();
-
- template<typename... Ts>
- static void Realize(Ts&... rs) {
- static_assert((mcl::is_instance_of_template<RAReg, Ts>() && ...));
- (rs.Realize(), ...);
- }
-
- void UpdateAllUses();
- void AssertAllUnlocked() const;
- void AssertNoMoreUses() const;
-
- void EmitVerboseDebuggingOutput();
-
-private:
- friend struct Argument;
- template<typename>
- friend struct RAReg;
-
- template<HostLoc::Kind kind>
- int GenerateImmediate(const IR::Value& value);
- template<HostLoc::Kind kind>
- int RealizeReadImpl(const IR::Value& value);
- template<HostLoc::Kind kind>
- int RealizeWriteImpl(const IR::Inst* value);
- template<HostLoc::Kind kind>
- int RealizeReadWriteImpl(const IR::Value& read_value, const IR::Inst* write_value);
-
- int AllocateRegister(const std::array<HostLocInfo, 32>& regs, const std::vector<int>& order) const;
- void SpillGpr(int index);
- void SpillFpr(int index);
- int FindFreeSpill() const;
-
- void LoadCopyInto(const IR::Value& value, oaknut::XReg reg);
- void LoadCopyInto(const IR::Value& value, oaknut::QReg reg);
-
- std::optional<HostLoc> ValueLocation(const IR::Inst* value) const;
- HostLocInfo& ValueInfo(HostLoc host_loc);
- HostLocInfo& ValueInfo(const IR::Inst* value);
-
- oaknut::CodeGenerator& code;
- FpsrManager& fpsr_manager;
- std::vector<int> gpr_order;
- std::vector<int> fpr_order;
-
- std::array<HostLocInfo, 32> gprs;
- std::array<HostLocInfo, 32> fprs;
- HostLocInfo flags;
- std::array<HostLocInfo, SpillCount> spills;
-
- mutable std::mt19937 rand_gen;
-
- tsl::robin_set<const IR::Inst*> defined_insts;
-};
-
-template<typename T>
-RAReg<T>::RAReg(RegAlloc& reg_alloc, RWType rw, const IR::Value& read_value, const IR::Inst* write_value)
- : reg_alloc{reg_alloc}, rw{rw}, read_value{read_value}, write_value{write_value} {
- if (rw != RWType::Write && !read_value.IsImmediate()) {
- reg_alloc.ValueInfo(read_value.GetInst()).locked++;
- }
-}
-
-template<typename T>
-RAReg<T>::~RAReg() {
- if (rw != RWType::Write && !read_value.IsImmediate()) {
- reg_alloc.ValueInfo(read_value.GetInst()).locked--;
- }
- if (reg) {
- reg_alloc.ValueInfo(HostLoc{kind, reg->index()}).realized = false;
- }
-}
-
-template<typename T>
-void RAReg<T>::Realize() {
- switch (rw) {
- case RWType::Read:
- reg = T{reg_alloc.RealizeReadImpl<kind>(read_value)};
- break;
- case RWType::Write:
- reg = T{reg_alloc.RealizeWriteImpl<kind>(write_value)};
- break;
- case RWType::ReadWrite:
- reg = T{reg_alloc.RealizeReadWriteImpl<kind>(read_value, write_value)};
- break;
- default:
- ASSERT_FALSE("Invalid RWType");
- }
-}
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/stack_layout.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/stack_layout.h
deleted file mode 100644
index cf7f3259..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/stack_layout.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Backend::Arm64 {
-
-#ifdef _MSC_VER
-# pragma warning(push)
-# pragma warning(disable : 4324) // Structure was padded due to alignment specifier
-#endif
-
-constexpr size_t SpillCount = 64;
-
-struct alignas(16) RSBEntry {
- u64 target;
- u64 code_ptr;
-};
-
-constexpr size_t RSBCount = 8;
-constexpr u64 RSBIndexMask = (RSBCount - 1) * sizeof(RSBEntry);
-
-struct alignas(16) StackLayout {
- std::array<RSBEntry, RSBCount> rsb;
-
- std::array<std::array<u64, 2>, SpillCount> spill;
-
- u32 rsb_ptr;
-
- s64 cycles_to_run;
-
- u32 save_host_fpcr;
-
- bool check_bit;
-};
-
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-
-static_assert(sizeof(StackLayout) % 16 == 0);
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/verbose_debugging_output.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/verbose_debugging_output.h
deleted file mode 100644
index 73c66461..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/arm64/verbose_debugging_output.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2023 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/backend/arm64/stack_layout.h"
-
-namespace oaknut {
-struct CodeGenerator;
-struct Label;
-} // namespace oaknut
-
-namespace Dynarmic::IR {
-enum class Type;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic::Backend::Arm64 {
-
-struct EmitContext;
-
-using Vector = std::array<u64, 2>;
-
-#ifdef _MSC_VER
-# pragma warning(push)
-# pragma warning(disable : 4324) // Structure was padded due to alignment specifier
-#endif
-
-enum class HostLocType {
- X,
- Q,
- Nzcv,
- Spill,
-};
-
-struct alignas(16) RegisterData {
- std::array<u64, 30> x;
- std::array<Vector, 32> q;
- u32 nzcv;
- decltype(StackLayout::spill)* spill;
- u32 fpsr;
-};
-
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-
-void EmitVerboseDebuggingOutput(oaknut::CodeGenerator& code, EmitContext& ctx);
-void PrintVerboseDebuggingOutputLine(RegisterData& reg_data, HostLocType reg_type, size_t reg_index, size_t inst_index, IR::Type inst_type);
-
-} // namespace Dynarmic::Backend::Arm64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/block_range_information.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/block_range_information.h
deleted file mode 100644
index 3402b155..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/block_range_information.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <set>
-
-#include <boost/icl/interval_map.hpp>
-#include <boost/icl/interval_set.hpp>
-#include <tsl/robin_set.h>
-
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace Dynarmic::Backend {
-
-template<typename ProgramCounterType>
-class BlockRangeInformation {
-public:
- void AddRange(boost::icl::discrete_interval<ProgramCounterType> range, IR::LocationDescriptor location);
- void ClearCache();
- tsl::robin_set<IR::LocationDescriptor> InvalidateRanges(const boost::icl::interval_set<ProgramCounterType>& ranges);
-
-private:
- boost::icl::interval_map<ProgramCounterType, std::set<IR::LocationDescriptor>> block_ranges;
-};
-
-} // namespace Dynarmic::Backend
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/exception_handler.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/exception_handler.h
deleted file mode 100644
index 179433ba..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/exception_handler.h
+++ /dev/null
@@ -1,63 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2020 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <functional>
-#include <memory>
-#include <optional>
-
-#include <mcl/macro/architecture.hpp>
-#include <mcl/stdint.hpp>
-
-#if defined(MCL_ARCHITECTURE_X86_64)
-namespace Dynarmic::Backend::X64 {
-class BlockOfCode;
-} // namespace Dynarmic::Backend::X64
-#elif defined(MCL_ARCHITECTURE_ARM64)
-namespace oaknut {
-class CodeBlock;
-} // namespace oaknut
-#else
-# error "Invalid architecture"
-#endif
-
-namespace Dynarmic::Backend {
-
-#if defined(MCL_ARCHITECTURE_X86_64)
-struct FakeCall {
- u64 call_rip;
- u64 ret_rip;
-};
-#elif defined(MCL_ARCHITECTURE_ARM64)
-struct FakeCall {
- u64 call_pc;
-};
-#else
-# error "Invalid architecture"
-#endif
-
-class ExceptionHandler final {
-public:
- ExceptionHandler();
- ~ExceptionHandler();
-
-#if defined(MCL_ARCHITECTURE_X86_64)
- void Register(X64::BlockOfCode& code);
-#elif defined(MCL_ARCHITECTURE_ARM64)
- void Register(oaknut::CodeBlock& mem, std::size_t mem_size);
-#else
-# error "Invalid architecture"
-#endif
-
- bool SupportsFastmem() const noexcept;
- void SetFastmemCallback(std::function<FakeCall(u64)> cb);
-
-private:
- struct Impl;
- std::unique_ptr<Impl> impl;
-};
-
-} // namespace Dynarmic::Backend
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/a32_emit_x64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/a32_emit_x64.h
deleted file mode 100644
index 3706b30a..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/a32_emit_x64.h
+++ /dev/null
@@ -1,147 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <optional>
-#include <set>
-#include <tuple>
-
-#include <tsl/robin_map.h>
-
-#include "dynarmic/backend/block_range_information.h"
-#include "dynarmic/backend/x64/a32_jitstate.h"
-#include "dynarmic/backend/x64/emit_x64.h"
-#include "dynarmic/frontend/A32/a32_location_descriptor.h"
-#include "dynarmic/interface/A32/a32.h"
-#include "dynarmic/interface/A32/config.h"
-#include "dynarmic/ir/terminal.h"
-
-namespace Dynarmic::Backend::X64 {
-
-class RegAlloc;
-
-struct A32EmitContext final : public EmitContext {
- A32EmitContext(const A32::UserConfig& conf, RegAlloc& reg_alloc, IR::Block& block);
-
- A32::LocationDescriptor Location() const;
- A32::LocationDescriptor EndLocation() const;
- bool IsSingleStep() const;
- FP::FPCR FPCR(bool fpcr_controlled = true) const override;
-
- bool HasOptimization(OptimizationFlag flag) const override {
- return conf.HasOptimization(flag);
- }
-
- const A32::UserConfig& conf;
-};
-
-class A32EmitX64 final : public EmitX64 {
-public:
- A32EmitX64(BlockOfCode& code, A32::UserConfig conf, A32::Jit* jit_interface);
- ~A32EmitX64() override;
-
- /**
- * Emit host machine code for a basic block with intermediate representation `block`.
- * @note block is modified.
- */
- BlockDescriptor Emit(IR::Block& block);
-
- void ClearCache() override;
-
- void InvalidateCacheRanges(const boost::icl::interval_set<u32>& ranges);
-
-protected:
- const A32::UserConfig conf;
- A32::Jit* jit_interface;
- BlockRangeInformation<u32> block_ranges;
-
- void EmitCondPrelude(const A32EmitContext& ctx);
-
- struct FastDispatchEntry {
- u64 location_descriptor = 0xFFFF'FFFF'FFFF'FFFFull;
- const void* code_ptr = nullptr;
- };
- static_assert(sizeof(FastDispatchEntry) == 0x10);
- static constexpr u64 fast_dispatch_table_mask = 0xFFFF0;
- static constexpr size_t fast_dispatch_table_size = 0x10000;
- std::array<FastDispatchEntry, fast_dispatch_table_size> fast_dispatch_table;
- void ClearFastDispatchTable();
-
- void (*memory_read_128)() = nullptr; // Dummy
- void (*memory_write_128)() = nullptr; // Dummy
-
- std::map<std::tuple<bool, size_t, int, int>, void (*)()> read_fallbacks;
- std::map<std::tuple<bool, size_t, int, int>, void (*)()> write_fallbacks;
- std::map<std::tuple<bool, size_t, int, int>, void (*)()> exclusive_write_fallbacks;
- void GenFastmemFallbacks();
-
- const void* terminal_handler_pop_rsb_hint;
- const void* terminal_handler_fast_dispatch_hint = nullptr;
- FastDispatchEntry& (*fast_dispatch_table_lookup)(u64) = nullptr;
- void GenTerminalHandlers();
-
- // Microinstruction emitters
-#define OPCODE(...)
-#define A32OPC(name, type, ...) void EmitA32##name(A32EmitContext& ctx, IR::Inst* inst);
-#define A64OPC(...)
-#include "dynarmic/ir/opcodes.inc"
-#undef OPCODE
-#undef A32OPC
-#undef A64OPC
-
- // Helpers
- std::string LocationDescriptorToFriendlyName(const IR::LocationDescriptor&) const override;
-
- // Fastmem information
- using DoNotFastmemMarker = std::tuple<IR::LocationDescriptor, unsigned>;
- struct FastmemPatchInfo {
- u64 resume_rip;
- u64 callback;
- DoNotFastmemMarker marker;
- bool recompile;
- };
- tsl::robin_map<u64, FastmemPatchInfo> fastmem_patch_info;
- std::set<DoNotFastmemMarker> do_not_fastmem;
- std::optional<DoNotFastmemMarker> ShouldFastmem(A32EmitContext& ctx, IR::Inst* inst) const;
- FakeCall FastmemCallback(u64 rip);
-
- // Memory access helpers
- void EmitCheckMemoryAbort(A32EmitContext& ctx, IR::Inst* inst, Xbyak::Label* end = nullptr);
- template<std::size_t bitsize, auto callback>
- void EmitMemoryRead(A32EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitMemoryWrite(A32EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveReadMemory(A32EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveWriteMemory(A32EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveReadMemoryInline(A32EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveWriteMemoryInline(A32EmitContext& ctx, IR::Inst* inst);
-
- // Terminal instruction emitters
- void EmitSetUpperLocationDescriptor(IR::LocationDescriptor new_location, IR::LocationDescriptor old_location);
- void EmitTerminalImpl(IR::Term::Interpret terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::ReturnToDispatch terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::LinkBlock terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::LinkBlockFast terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::PopRSBHint terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::FastDispatchHint terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::If terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::CheckBit terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::CheckHalt terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
-
- // Patching
- void Unpatch(const IR::LocationDescriptor& target_desc) override;
- void EmitPatchJg(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) override;
- void EmitPatchJz(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) override;
- void EmitPatchJmp(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) override;
- void EmitPatchMovRcx(CodePtr target_code_ptr = nullptr) override;
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/a32_jitstate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/a32_jitstate.h
deleted file mode 100644
index cc13abf8..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/a32_jitstate.h
+++ /dev/null
@@ -1,97 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Backend::X64 {
-
-class BlockOfCode;
-
-#ifdef _MSC_VER
-# pragma warning(push)
-# pragma warning(disable : 4324) // Structure was padded due to alignment specifier
-#endif
-
-struct A32JitState {
- using ProgramCounterType = u32;
-
- A32JitState() { ResetRSB(); }
-
- std::array<u32, 16> Reg{}; // Current register file.
- // TODO: Mode-specific register sets unimplemented.
-
- u32 upper_location_descriptor = 0;
-
- u32 cpsr_ge = 0;
- u32 cpsr_q = 0;
- u32 cpsr_nzcv = 0;
- u32 cpsr_jaifm = 0;
- u32 Cpsr() const;
- void SetCpsr(u32 cpsr);
-
- alignas(16) std::array<u32, 64> ExtReg{}; // Extension registers.
-
- // For internal use (See: BlockOfCode::RunCode)
- u32 guest_MXCSR = 0x00001f80;
- u32 asimd_MXCSR = 0x00009fc0;
- volatile u32 halt_reason = 0;
-
- // Exclusive state
- u32 exclusive_state = 0;
-
- static constexpr size_t RSBSize = 8; // MUST be a power of 2.
- static constexpr size_t RSBPtrMask = RSBSize - 1;
- u32 rsb_ptr = 0;
- std::array<u64, RSBSize> rsb_location_descriptors;
- std::array<u64, RSBSize> rsb_codeptrs;
- void ResetRSB();
-
- u32 fpsr_exc = 0;
- u32 fpsr_qc = 0;
- u32 fpsr_nzcv = 0;
- u32 Fpscr() const;
- void SetFpscr(u32 FPSCR);
-
- u64 GetUniqueHash() const noexcept {
- return (static_cast<u64>(upper_location_descriptor) << 32) | (static_cast<u64>(Reg[15]));
- }
-
- void TransferJitState(const A32JitState& src, bool reset_rsb) {
- Reg = src.Reg;
- upper_location_descriptor = src.upper_location_descriptor;
- cpsr_ge = src.cpsr_ge;
- cpsr_q = src.cpsr_q;
- cpsr_nzcv = src.cpsr_nzcv;
- cpsr_jaifm = src.cpsr_jaifm;
- ExtReg = src.ExtReg;
- guest_MXCSR = src.guest_MXCSR;
- asimd_MXCSR = src.asimd_MXCSR;
- fpsr_exc = src.fpsr_exc;
- fpsr_qc = src.fpsr_qc;
- fpsr_nzcv = src.fpsr_nzcv;
-
- exclusive_state = 0;
-
- if (reset_rsb) {
- ResetRSB();
- } else {
- rsb_ptr = src.rsb_ptr;
- rsb_location_descriptors = src.rsb_location_descriptors;
- rsb_codeptrs = src.rsb_codeptrs;
- }
- }
-};
-
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-
-using CodePtr = const void*;
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/a64_emit_x64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/a64_emit_x64.h
deleted file mode 100644
index ed493155..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/a64_emit_x64.h
+++ /dev/null
@@ -1,144 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <map>
-#include <optional>
-#include <tuple>
-
-#include "dynarmic/backend/block_range_information.h"
-#include "dynarmic/backend/x64/a64_jitstate.h"
-#include "dynarmic/backend/x64/emit_x64.h"
-#include "dynarmic/frontend/A64/a64_location_descriptor.h"
-#include "dynarmic/interface/A64/a64.h"
-#include "dynarmic/interface/A64/config.h"
-#include "dynarmic/ir/terminal.h"
-
-namespace Dynarmic::Backend::X64 {
-
-class RegAlloc;
-
-struct A64EmitContext final : public EmitContext {
- A64EmitContext(const A64::UserConfig& conf, RegAlloc& reg_alloc, IR::Block& block);
-
- A64::LocationDescriptor Location() const;
- bool IsSingleStep() const;
- FP::FPCR FPCR(bool fpcr_controlled = true) const override;
-
- bool HasOptimization(OptimizationFlag flag) const override {
- return conf.HasOptimization(flag);
- }
-
- const A64::UserConfig& conf;
-};
-
-class A64EmitX64 final : public EmitX64 {
-public:
- A64EmitX64(BlockOfCode& code, A64::UserConfig conf, A64::Jit* jit_interface);
- ~A64EmitX64() override;
-
- /**
- * Emit host machine code for a basic block with intermediate representation `block`.
- * @note block is modified.
- */
- BlockDescriptor Emit(IR::Block& block);
-
- void ClearCache() override;
-
- void InvalidateCacheRanges(const boost::icl::interval_set<u64>& ranges);
-
-protected:
- const A64::UserConfig conf;
- A64::Jit* jit_interface;
- BlockRangeInformation<u64> block_ranges;
-
- struct FastDispatchEntry {
- u64 location_descriptor = 0xFFFF'FFFF'FFFF'FFFFull;
- const void* code_ptr = nullptr;
- };
- static_assert(sizeof(FastDispatchEntry) == 0x10);
- static constexpr u64 fast_dispatch_table_mask = 0xFFFFF0;
- static constexpr size_t fast_dispatch_table_size = 0x100000;
- std::array<FastDispatchEntry, fast_dispatch_table_size> fast_dispatch_table;
- void ClearFastDispatchTable();
-
- void (*memory_read_128)();
- void (*memory_write_128)();
- void (*memory_exclusive_write_128)();
- void GenMemory128Accessors();
-
- std::map<std::tuple<bool, size_t, int, int>, void (*)()> read_fallbacks;
- std::map<std::tuple<bool, size_t, int, int>, void (*)()> write_fallbacks;
- std::map<std::tuple<bool, size_t, int, int>, void (*)()> exclusive_write_fallbacks;
- void GenFastmemFallbacks();
-
- const void* terminal_handler_pop_rsb_hint;
- const void* terminal_handler_fast_dispatch_hint = nullptr;
- FastDispatchEntry& (*fast_dispatch_table_lookup)(u64) = nullptr;
- void GenTerminalHandlers();
-
- // Microinstruction emitters
- void EmitPushRSB(EmitContext& ctx, IR::Inst* inst);
-#define OPCODE(...)
-#define A32OPC(...)
-#define A64OPC(name, type, ...) void EmitA64##name(A64EmitContext& ctx, IR::Inst* inst);
-#include "dynarmic/ir/opcodes.inc"
-#undef OPCODE
-#undef A32OPC
-#undef A64OPC
-
- // Helpers
- std::string LocationDescriptorToFriendlyName(const IR::LocationDescriptor&) const override;
-
- // Fastmem information
- using DoNotFastmemMarker = std::tuple<IR::LocationDescriptor, unsigned>;
- struct FastmemPatchInfo {
- u64 resume_rip;
- u64 callback;
- DoNotFastmemMarker marker;
- bool recompile;
- };
- tsl::robin_map<u64, FastmemPatchInfo> fastmem_patch_info;
- std::set<DoNotFastmemMarker> do_not_fastmem;
- std::optional<DoNotFastmemMarker> ShouldFastmem(A64EmitContext& ctx, IR::Inst* inst) const;
- FakeCall FastmemCallback(u64 rip);
-
- // Memory access helpers
- void EmitCheckMemoryAbort(A64EmitContext& ctx, IR::Inst* inst, Xbyak::Label* end = nullptr);
- template<std::size_t bitsize, auto callback>
- void EmitMemoryRead(A64EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitMemoryWrite(A64EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveReadMemory(A64EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveWriteMemory(A64EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveReadMemoryInline(A64EmitContext& ctx, IR::Inst* inst);
- template<std::size_t bitsize, auto callback>
- void EmitExclusiveWriteMemoryInline(A64EmitContext& ctx, IR::Inst* inst);
-
- // Terminal instruction emitters
- void EmitTerminalImpl(IR::Term::Interpret terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::ReturnToDispatch terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::LinkBlock terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::LinkBlockFast terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::PopRSBHint terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::FastDispatchHint terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::If terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::CheckBit terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
- void EmitTerminalImpl(IR::Term::CheckHalt terminal, IR::LocationDescriptor initial_location, bool is_single_step) override;
-
- // Patching
- void Unpatch(const IR::LocationDescriptor& target_desc) override;
- void EmitPatchJg(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) override;
- void EmitPatchJz(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) override;
- void EmitPatchJmp(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) override;
- void EmitPatchMovRcx(CodePtr target_code_ptr = nullptr) override;
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/a64_jitstate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/a64_jitstate.h
deleted file mode 100644
index 0929e81e..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/a64_jitstate.h
+++ /dev/null
@@ -1,84 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/backend/x64/nzcv_util.h"
-#include "dynarmic/frontend/A64/a64_location_descriptor.h"
-
-namespace Dynarmic::Backend::X64 {
-
-class BlockOfCode;
-
-#ifdef _MSC_VER
-# pragma warning(push)
-# pragma warning(disable : 4324) // Structure was padded due to alignment specifier
-#endif
-
-struct A64JitState {
- using ProgramCounterType = u64;
-
- A64JitState() { ResetRSB(); }
-
- std::array<u64, 31> reg{};
- u64 sp = 0;
- u64 pc = 0;
-
- u32 cpsr_nzcv = 0;
-
- u32 GetPstate() const {
- return NZCV::FromX64(cpsr_nzcv);
- }
- void SetPstate(u32 new_pstate) {
- cpsr_nzcv = NZCV::ToX64(new_pstate);
- }
-
- alignas(16) std::array<u64, 64> vec{}; // Extension registers.
-
- // For internal use (See: BlockOfCode::RunCode)
- u32 guest_MXCSR = 0x00001f80;
- u32 asimd_MXCSR = 0x00009fc0;
- volatile u32 halt_reason = 0;
-
- // Exclusive state
- static constexpr u64 RESERVATION_GRANULE_MASK = 0xFFFF'FFFF'FFFF'FFF0ull;
- u8 exclusive_state = 0;
-
- static constexpr size_t RSBSize = 8; // MUST be a power of 2.
- static constexpr size_t RSBPtrMask = RSBSize - 1;
- u32 rsb_ptr = 0;
- std::array<u64, RSBSize> rsb_location_descriptors;
- std::array<u64, RSBSize> rsb_codeptrs;
- void ResetRSB() {
- rsb_location_descriptors.fill(0xFFFFFFFFFFFFFFFFull);
- rsb_codeptrs.fill(0);
- }
-
- u32 fpsr_exc = 0;
- u32 fpsr_qc = 0;
- u32 fpcr = 0;
- u32 GetFpcr() const;
- u32 GetFpsr() const;
- void SetFpcr(u32 value);
- void SetFpsr(u32 value);
-
- u64 GetUniqueHash() const noexcept {
- const u64 fpcr_u64 = static_cast<u64>(fpcr & A64::LocationDescriptor::fpcr_mask) << A64::LocationDescriptor::fpcr_shift;
- const u64 pc_u64 = pc & A64::LocationDescriptor::pc_mask;
- return pc_u64 | fpcr_u64;
- }
-};
-
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-
-using CodePtr = const void*;
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/abi.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/abi.h
deleted file mode 100644
index 4bddf51b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/abi.h
+++ /dev/null
@@ -1,132 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/backend/x64/hostloc.h"
-
-namespace Dynarmic::Backend::X64 {
-
-class BlockOfCode;
-
-#ifdef _WIN32
-
-constexpr HostLoc ABI_RETURN = HostLoc::RAX;
-
-constexpr size_t ABI_PARAM_COUNT = 4;
-
-constexpr HostLoc ABI_PARAM1 = HostLoc::RCX;
-constexpr HostLoc ABI_PARAM2 = HostLoc::RDX;
-constexpr HostLoc ABI_PARAM3 = HostLoc::R8;
-constexpr HostLoc ABI_PARAM4 = HostLoc::R9;
-
-constexpr std::array<HostLoc, 13> ABI_ALL_CALLER_SAVE = {
- HostLoc::RAX,
- HostLoc::RCX,
- HostLoc::RDX,
- HostLoc::R8,
- HostLoc::R9,
- HostLoc::R10,
- HostLoc::R11,
- HostLoc::XMM0,
- HostLoc::XMM1,
- HostLoc::XMM2,
- HostLoc::XMM3,
- HostLoc::XMM4,
- HostLoc::XMM5,
-};
-
-constexpr std::array<HostLoc, 18> ABI_ALL_CALLEE_SAVE = {
- HostLoc::RBX,
- HostLoc::RSI,
- HostLoc::RDI,
- HostLoc::RBP,
- HostLoc::R12,
- HostLoc::R13,
- HostLoc::R14,
- HostLoc::R15,
- HostLoc::XMM6,
- HostLoc::XMM7,
- HostLoc::XMM8,
- HostLoc::XMM9,
- HostLoc::XMM10,
- HostLoc::XMM11,
- HostLoc::XMM12,
- HostLoc::XMM13,
- HostLoc::XMM14,
- HostLoc::XMM15,
-};
-
-constexpr size_t ABI_SHADOW_SPACE = 32; // bytes
-
-#else
-
-constexpr HostLoc ABI_RETURN = HostLoc::RAX;
-constexpr HostLoc ABI_RETURN2 = HostLoc::RDX;
-
-constexpr size_t ABI_PARAM_COUNT = 6;
-
-constexpr HostLoc ABI_PARAM1 = HostLoc::RDI;
-constexpr HostLoc ABI_PARAM2 = HostLoc::RSI;
-constexpr HostLoc ABI_PARAM3 = HostLoc::RDX;
-constexpr HostLoc ABI_PARAM4 = HostLoc::RCX;
-constexpr HostLoc ABI_PARAM5 = HostLoc::R8;
-constexpr HostLoc ABI_PARAM6 = HostLoc::R9;
-
-constexpr std::array<HostLoc, 25> ABI_ALL_CALLER_SAVE = {
- HostLoc::RAX,
- HostLoc::RCX,
- HostLoc::RDX,
- HostLoc::RDI,
- HostLoc::RSI,
- HostLoc::R8,
- HostLoc::R9,
- HostLoc::R10,
- HostLoc::R11,
- HostLoc::XMM0,
- HostLoc::XMM1,
- HostLoc::XMM2,
- HostLoc::XMM3,
- HostLoc::XMM4,
- HostLoc::XMM5,
- HostLoc::XMM6,
- HostLoc::XMM7,
- HostLoc::XMM8,
- HostLoc::XMM9,
- HostLoc::XMM10,
- HostLoc::XMM11,
- HostLoc::XMM12,
- HostLoc::XMM13,
- HostLoc::XMM14,
- HostLoc::XMM15,
-};
-
-constexpr std::array<HostLoc, 6> ABI_ALL_CALLEE_SAVE = {
- HostLoc::RBX,
- HostLoc::RBP,
- HostLoc::R12,
- HostLoc::R13,
- HostLoc::R14,
- HostLoc::R15,
-};
-
-constexpr size_t ABI_SHADOW_SPACE = 0; // bytes
-
-#endif
-
-static_assert(ABI_ALL_CALLER_SAVE.size() + ABI_ALL_CALLEE_SAVE.size() == 31, "Invalid total number of registers");
-
-void ABI_PushCalleeSaveRegistersAndAdjustStack(BlockOfCode& code, size_t frame_size = 0);
-void ABI_PopCalleeSaveRegistersAndAdjustStack(BlockOfCode& code, size_t frame_size = 0);
-void ABI_PushCallerSaveRegistersAndAdjustStack(BlockOfCode& code, size_t frame_size = 0);
-void ABI_PopCallerSaveRegistersAndAdjustStack(BlockOfCode& code, size_t frame_size = 0);
-
-void ABI_PushCallerSaveRegistersAndAdjustStackExcept(BlockOfCode& code, HostLoc exception);
-void ABI_PopCallerSaveRegistersAndAdjustStackExcept(BlockOfCode& code, HostLoc exception);
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/block_of_code.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/block_of_code.h
deleted file mode 100644
index 3f7573af..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/block_of_code.h
+++ /dev/null
@@ -1,205 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <functional>
-#include <memory>
-#include <type_traits>
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-#include <xbyak/xbyak.h>
-#include <xbyak/xbyak_util.h>
-
-#include "dynarmic/backend/x64/abi.h"
-#include "dynarmic/backend/x64/callback.h"
-#include "dynarmic/backend/x64/constant_pool.h"
-#include "dynarmic/backend/x64/host_feature.h"
-#include "dynarmic/backend/x64/jitstate_info.h"
-#include "dynarmic/common/cast_util.h"
-#include "dynarmic/interface/halt_reason.h"
-#include "dynarmic/ir/cond.h"
-
-namespace Dynarmic::Backend::X64 {
-
-using CodePtr = const void*;
-
-struct RunCodeCallbacks {
- std::unique_ptr<Callback> LookupBlock;
- std::unique_ptr<Callback> AddTicks;
- std::unique_ptr<Callback> GetTicksRemaining;
- bool enable_cycle_counting;
-};
-
-class BlockOfCode final : public Xbyak::CodeGenerator {
-public:
- BlockOfCode(RunCodeCallbacks cb, JitStateInfo jsi, size_t total_code_size, std::function<void(BlockOfCode&)> rcp);
- BlockOfCode(const BlockOfCode&) = delete;
-
- /// Call when external emitters have finished emitting their preludes.
- void PreludeComplete();
-
- /// Change permissions to RW. This is required to support systems with W^X enforced.
- void EnableWriting();
- /// Change permissions to RX. This is required to support systems with W^X enforced.
- void DisableWriting();
-
- /// Clears this block of code and resets code pointer to beginning.
- void ClearCache();
- /// Calculates how much space is remaining to use.
- size_t SpaceRemaining() const;
- /// Ensure at least codesize bytes of code cache memory are committed at the current code_ptr.
- void EnsureMemoryCommitted(size_t codesize);
-
- /// Runs emulated code from code_ptr.
- HaltReason RunCode(void* jit_state, CodePtr code_ptr) const;
- /// Runs emulated code from code_ptr for a single cycle.
- HaltReason StepCode(void* jit_state, CodePtr code_ptr) const;
- /// Code emitter: Returns to dispatcher
- void ReturnFromRunCode(bool mxcsr_already_exited = false);
- /// Code emitter: Returns to dispatcher, forces return to host
- void ForceReturnFromRunCode(bool mxcsr_already_exited = false);
- /// Code emitter: Makes guest MXCSR the current MXCSR
- void SwitchMxcsrOnEntry();
- /// Code emitter: Makes saved host MXCSR the current MXCSR
- void SwitchMxcsrOnExit();
- /// Code emitter: Enter standard ASIMD MXCSR region
- void EnterStandardASIMD();
- /// Code emitter: Leave standard ASIMD MXCSR region
- void LeaveStandardASIMD();
- /// Code emitter: Updates cycles remaining my calling cb.AddTicks and cb.GetTicksRemaining
- /// @note this clobbers ABI caller-save registers
- void UpdateTicks();
- /// Code emitter: Performs a block lookup based on current state
- /// @note this clobbers ABI caller-save registers
- void LookupBlock();
-
- /// Code emitter: Load required flags for conditional cond from rax into host rflags
- void LoadRequiredFlagsForCondFromRax(IR::Cond cond);
-
- /// Code emitter: Calls the function
- template<typename FunctionPointer>
- void CallFunction(FunctionPointer fn) {
- static_assert(std::is_pointer_v<FunctionPointer> && std::is_function_v<std::remove_pointer_t<FunctionPointer>>,
- "Supplied type must be a pointer to a function");
-
- const u64 address = reinterpret_cast<u64>(fn);
- const u64 distance = address - (getCurr<u64>() + 5);
-
- if (distance >= 0x0000000080000000ULL && distance < 0xFFFFFFFF80000000ULL) {
- // Far call
- mov(rax, address);
- call(rax);
- } else {
- call(fn);
- }
- }
-
- /// Code emitter: Calls the lambda. Lambda must not have any captures.
- template<typename Lambda>
- void CallLambda(Lambda l) {
- CallFunction(Common::FptrCast(l));
- }
-
- void ZeroExtendFrom(size_t bitsize, Xbyak::Reg64 reg) {
- switch (bitsize) {
- case 8:
- movzx(reg.cvt32(), reg.cvt8());
- return;
- case 16:
- movzx(reg.cvt32(), reg.cvt16());
- return;
- case 32:
- mov(reg.cvt32(), reg.cvt32());
- return;
- case 64:
- return;
- default:
- UNREACHABLE();
- }
- }
-
- Xbyak::Address Const(const Xbyak::AddressFrame& frame, u64 lower, u64 upper = 0);
-
- template<size_t esize>
- Xbyak::Address BConst(const Xbyak::AddressFrame& frame, u64 value) {
- return Const(frame, mcl::bit::replicate_element<u64>(esize, value),
- mcl::bit::replicate_element<u64>(esize, value));
- }
-
- CodePtr GetCodeBegin() const;
- size_t GetTotalCodeSize() const;
-
- const void* GetReturnFromRunCodeAddress() const {
- return return_from_run_code[0];
- }
-
- const void* GetForceReturnFromRunCodeAddress() const {
- return return_from_run_code[FORCE_RETURN];
- }
-
- void int3() { db(0xCC); }
-
- /// Allocate memory of `size` bytes from the same block of memory the code is in.
- /// This is useful for objects that need to be placed close to or within code.
- /// The lifetime of this memory is the same as the code around it.
- void* AllocateFromCodeSpace(size_t size);
-
- void SetCodePtr(CodePtr code_ptr);
- void EnsurePatchLocationSize(CodePtr begin, size_t size);
-
- // ABI registers
-#ifdef _WIN32
- static const Xbyak::Reg64 ABI_RETURN;
- static const Xbyak::Reg64 ABI_PARAM1;
- static const Xbyak::Reg64 ABI_PARAM2;
- static const Xbyak::Reg64 ABI_PARAM3;
- static const Xbyak::Reg64 ABI_PARAM4;
- static const std::array<Xbyak::Reg64, ABI_PARAM_COUNT> ABI_PARAMS;
-#else
- static const Xbyak::Reg64 ABI_RETURN;
- static const Xbyak::Reg64 ABI_RETURN2;
- static const Xbyak::Reg64 ABI_PARAM1;
- static const Xbyak::Reg64 ABI_PARAM2;
- static const Xbyak::Reg64 ABI_PARAM3;
- static const Xbyak::Reg64 ABI_PARAM4;
- static const Xbyak::Reg64 ABI_PARAM5;
- static const Xbyak::Reg64 ABI_PARAM6;
- static const std::array<Xbyak::Reg64, ABI_PARAM_COUNT> ABI_PARAMS;
-#endif
-
- JitStateInfo GetJitStateInfo() const { return jsi; }
-
- bool HasHostFeature(HostFeature feature) const {
- return (host_features & feature) == feature;
- }
-
-private:
- RunCodeCallbacks cb;
- JitStateInfo jsi;
-
- bool prelude_complete = false;
- CodePtr code_begin = nullptr;
-
-#ifdef _WIN32
- size_t committed_size = 0;
-#endif
-
- ConstantPool constant_pool;
-
- using RunCodeFuncType = HaltReason (*)(void*, CodePtr);
- RunCodeFuncType run_code = nullptr;
- RunCodeFuncType step_code = nullptr;
- static constexpr size_t MXCSR_ALREADY_EXITED = 1 << 0;
- static constexpr size_t FORCE_RETURN = 1 << 1;
- std::array<const void*, 4> return_from_run_code;
- void GenRunCode(std::function<void(BlockOfCode&)> rcp);
-
- const HostFeature host_features;
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/callback.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/callback.h
deleted file mode 100644
index 716555da..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/callback.h
+++ /dev/null
@@ -1,63 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <functional>
-#include <vector>
-
-#include <mcl/stdint.hpp>
-#include <xbyak/xbyak.h>
-
-namespace Dynarmic::Backend::X64 {
-
-using RegList = std::vector<Xbyak::Reg64>;
-
-class BlockOfCode;
-
-class Callback {
-public:
- virtual ~Callback();
-
- void EmitCall(BlockOfCode& code) const {
- EmitCall(code, [](RegList) {});
- }
-
- virtual void EmitCall(BlockOfCode& code, std::function<void(RegList)> fn) const = 0;
- virtual void EmitCallWithReturnPointer(BlockOfCode& code, std::function<void(Xbyak::Reg64, RegList)> fn) const = 0;
-};
-
-class SimpleCallback final : public Callback {
-public:
- template<typename Function>
- SimpleCallback(Function fn)
- : fn(reinterpret_cast<void (*)()>(fn)) {}
-
- using Callback::EmitCall;
-
- void EmitCall(BlockOfCode& code, std::function<void(RegList)> fn) const override;
- void EmitCallWithReturnPointer(BlockOfCode& code, std::function<void(Xbyak::Reg64, RegList)> fn) const override;
-
-private:
- void (*fn)();
-};
-
-class ArgCallback final : public Callback {
-public:
- template<typename Function>
- ArgCallback(Function fn, u64 arg)
- : fn(reinterpret_cast<void (*)()>(fn)), arg(arg) {}
-
- using Callback::EmitCall;
-
- void EmitCall(BlockOfCode& code, std::function<void(RegList)> fn) const override;
- void EmitCallWithReturnPointer(BlockOfCode& code, std::function<void(Xbyak::Reg64, RegList)> fn) const override;
-
-private:
- void (*fn)();
- u64 arg;
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/constant_pool.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/constant_pool.h
deleted file mode 100644
index 2ab64215..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/constant_pool.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <bit>
-#include <cstddef>
-#include <span>
-#include <utility>
-
-#include <mcl/stdint.hpp>
-#include <tsl/robin_map.h>
-#include <xbyak/xbyak.h>
-
-namespace Dynarmic::Backend::X64 {
-
-class BlockOfCode;
-
-/// ConstantPool allocates a block of memory from BlockOfCode.
-/// It places constants into this block of memory, returning the address
-/// of the memory location where the constant is placed. If the constant
-/// already exists, its memory location is reused.
-class ConstantPool final {
-public:
- ConstantPool(BlockOfCode& code, size_t size);
-
- Xbyak::Address GetConstant(const Xbyak::AddressFrame& frame, u64 lower, u64 upper = 0);
-
-private:
- static constexpr size_t align_size = 16; // bytes
-
- using ConstantT = std::pair<u64, u64>;
- static_assert(sizeof(ConstantT) == align_size);
-
- struct ConstantHash {
- std::size_t operator()(const ConstantT& constant) const noexcept {
- return constant.first ^ std::rotl<u64>(constant.second, 1);
- }
- };
-
- tsl::robin_map<ConstantT, void*, ConstantHash> constant_info;
-
- BlockOfCode& code;
- std::span<ConstantT> pool;
- std::size_t insertion_point;
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/constants.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/constants.h
deleted file mode 100644
index f8173241..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/constants.h
+++ /dev/null
@@ -1,177 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/common/fp/rounding_mode.h"
-
-namespace Dynarmic::Backend::X64 {
-
-// Redefinition of _MM_CMP_* constants for use with the 'vcmp' instruction
-namespace Cmp {
-constexpr u8 Equal_OQ = 0; // Equal (Quiet, Ordered).
-constexpr u8 LessThan_OS = 1; // Less (Signaling, Ordered).
-constexpr u8 LessEqual_OS = 2; // Less/Equal (Signaling, Ordered).
-constexpr u8 Unordered_Q = 3; // Unordered (Quiet).
-constexpr u8 NotEqual_UQ = 4; // Not Equal (Quiet, Unordered).
-constexpr u8 NotLessThan_US = 5; // Not Less (Signaling, Unordered).
-constexpr u8 NotLessEqual_US = 6; // Not Less/Equal (Signaling, Unordered).
-constexpr u8 Ordered_Q = 7; // Ordered (Quiet).
-constexpr u8 Equal_UQ = 8; // Equal (Quiet, Unordered).
-constexpr u8 NotGreaterEqual_US = 9; // Not Greater/Equal (Signaling, Unordered).
-constexpr u8 NotGreaterThan_US = 10; // Not Greater (Signaling, Unordered).
-constexpr u8 False_OQ = 11; // False (Quiet, Ordered).
-constexpr u8 NotEqual_OQ = 12; // Not Equal (Quiet, Ordered).
-constexpr u8 GreaterEqual_OS = 13; // Greater/Equal (Signaling, Ordered).
-constexpr u8 GreaterThan_OS = 14; // Greater (Signaling, Ordered).
-constexpr u8 True_UQ = 15; // True (Quiet, Unordered).
-constexpr u8 Equal_OS = 16; // Equal (Signaling, Ordered).
-constexpr u8 LessThan_OQ = 17; // Less (Quiet, Ordered).
-constexpr u8 LessEqual_OQ = 18; // Less/Equal (Quiet, Ordered).
-constexpr u8 Unordered_S = 19; // Unordered (Signaling).
-constexpr u8 NotEqual_US = 20; // Not Equal (Signaling, Unordered).
-constexpr u8 NotLessThan_UQ = 21; // Not Less (Quiet, Unordered).
-constexpr u8 NotLessEqual_UQ = 22; // Not Less/Equal (Quiet, Unordered).
-constexpr u8 Ordered_S = 23; // Ordered (Signaling).
-constexpr u8 Equal_US = 24; // Equal (Signaling, Unordered).
-constexpr u8 NotGreaterEqual_UQ = 25; // Not Greater/Equal (Quiet, Unordered).
-constexpr u8 NotGreaterThan_UQ = 26; // Not Greater (Quiet, Unordered).
-constexpr u8 False_OS = 27; // False (Signaling, Ordered).
-constexpr u8 NotEqual_OS = 28; // Not Equal (Signaling, Ordered).
-constexpr u8 GreaterEqual_OQ = 29; // Greater/Equal (Quiet, Ordered).
-constexpr u8 GreaterThan_OQ = 30; // Greater (Quiet, Ordered).
-constexpr u8 True_US = 31; // True (Signaling, Unordered).
-} // namespace Cmp
-
-// Redefinition of _MM_CMPINT_* constants for use with the 'vpcmp' instruction
-namespace CmpInt {
-constexpr u8 Equal = 0x0;
-constexpr u8 LessThan = 0x1;
-constexpr u8 LessEqual = 0x2;
-constexpr u8 False = 0x3;
-constexpr u8 NotEqual = 0x4;
-constexpr u8 NotLessThan = 0x5;
-constexpr u8 GreaterEqual = 0x5;
-constexpr u8 NotLessEqual = 0x6;
-constexpr u8 GreaterThan = 0x6;
-constexpr u8 True = 0x7;
-} // namespace CmpInt
-
-// Used to generate ternary logic truth-tables for vpternlog
-// Use these to directly refer to terms and perform binary operations upon them
-// and the resulting value will be the ternary lookup table
-// ex:
-// (Tern::a | ~Tern::b) & Tern::c
-// = 0b10100010
-// = 0xa2
-// vpternlog a, b, c, 0xa2
-//
-// ~(Tern::a ^ Tern::b) & Tern::c
-// = 0b10000010
-// = 0x82
-// vpternlog a, b, c, 0x82
-namespace Tern {
-constexpr u8 a = 0b11110000;
-constexpr u8 b = 0b11001100;
-constexpr u8 c = 0b10101010;
-} // namespace Tern
-
-// For use as a bitmask with vfpclass instruction
-namespace FpClass {
-constexpr u8 QNaN = 0b00000001;
-constexpr u8 ZeroPos = 0b00000010;
-constexpr u8 ZeroNeg = 0b00000100;
-constexpr u8 InfPos = 0b00001000;
-constexpr u8 InfNeg = 0b00010000;
-constexpr u8 Denormal = 0b00100000;
-constexpr u8 Negative = 0b01000000; // Negative finite value
-constexpr u8 SNaN = 0b10000000;
-} // namespace FpClass
-
-// Opcodes for use with vfixupimm
-enum class FpFixup : u8 {
- Dest = 0b0000, // Preserve destination
- Norm_Src = 0b0001, // Source operand (Denormal as positive-zero)
- QNaN_Src = 0b0010, // QNaN with sign of source (Denormal as positive-zero)
- IndefNaN = 0b0011, // Indefinite QNaN (Negative QNaN with no payload on x86)
- NegInf = 0b0100, // -Infinity
- PosInf = 0b0101, // +Infinity
- Inf_Src = 0b0110, // Infinity with sign of source (Denormal as positive-zero)
- NegZero = 0b0111, // -0.0
- PosZero = 0b1000, // +0.0
- NegOne = 0b1001, // -1.0
- PosOne = 0b1010, // +1.0
- Half = 0b1011, // 0.5
- Ninety = 0b1100, // 90.0
- HalfPi = 0b1101, // PI/2
- PosMax = 0b1110, // +{FLT_MAX,DBL_MAX}
- NegMax = 0b1111, // -{FLT_MAX,DBL_MAX}
-};
-
-// Generates 32-bit LUT for vfixupimm instruction
-constexpr u32 FixupLUT(FpFixup src_qnan = FpFixup::Dest,
- FpFixup src_snan = FpFixup::Dest,
- FpFixup src_zero = FpFixup::Dest,
- FpFixup src_posone = FpFixup::Dest,
- FpFixup src_neginf = FpFixup::Dest,
- FpFixup src_posinf = FpFixup::Dest,
- FpFixup src_neg = FpFixup::Dest,
- FpFixup src_pos = FpFixup::Dest) {
- u32 fixup_lut = 0;
- fixup_lut = mcl::bit::set_bits<0, 3, u32>(fixup_lut, static_cast<u32>(src_qnan));
- fixup_lut = mcl::bit::set_bits<4, 7, u32>(fixup_lut, static_cast<u32>(src_snan));
- fixup_lut = mcl::bit::set_bits<8, 11, u32>(fixup_lut, static_cast<u32>(src_zero));
- fixup_lut = mcl::bit::set_bits<12, 15, u32>(fixup_lut, static_cast<u32>(src_posone));
- fixup_lut = mcl::bit::set_bits<16, 19, u32>(fixup_lut, static_cast<u32>(src_neginf));
- fixup_lut = mcl::bit::set_bits<20, 23, u32>(fixup_lut, static_cast<u32>(src_posinf));
- fixup_lut = mcl::bit::set_bits<24, 27, u32>(fixup_lut, static_cast<u32>(src_neg));
- fixup_lut = mcl::bit::set_bits<28, 31, u32>(fixup_lut, static_cast<u32>(src_pos));
- return fixup_lut;
-}
-
-// Opcodes for use with vrange* instructions
-enum class FpRangeSelect : u8 {
- Min = 0b00,
- Max = 0b01,
- AbsMin = 0b10, // Smaller absolute value
- AbsMax = 0b11, // Larger absolute value
-};
-
-enum class FpRangeSign : u8 {
- A = 0b00, // Copy sign of operand A
- Preserve = 0b01, // Leave sign as is
- Positive = 0b10, // Set Positive
- Negative = 0b11, // Set Negative
-};
-
-// Generates 8-bit immediate LUT for vrange instruction
-constexpr u8 FpRangeLUT(FpRangeSelect range_select, FpRangeSign range_sign) {
- u8 range_lut = 0;
- range_lut = mcl::bit::set_bits<0, 1, u8>(range_lut, static_cast<u8>(range_select));
- range_lut = mcl::bit::set_bits<2, 3, u8>(range_lut, static_cast<u8>(range_sign));
- return range_lut;
-}
-
-constexpr std::optional<int> ConvertRoundingModeToX64Immediate(FP::RoundingMode rounding_mode) {
- switch (rounding_mode) {
- case FP::RoundingMode::ToNearest_TieEven:
- return 0b00;
- case FP::RoundingMode::TowardsPlusInfinity:
- return 0b10;
- case FP::RoundingMode::TowardsMinusInfinity:
- return 0b01;
- case FP::RoundingMode::TowardsZero:
- return 0b11;
- default:
- return std::nullopt;
- }
-}
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/devirtualize.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/devirtualize.h
deleted file mode 100644
index 778536a3..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/devirtualize.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstring>
-#include <utility>
-
-#include <mcl/bit_cast.hpp>
-#include <mcl/stdint.hpp>
-#include <mcl/type_traits/function_info.hpp>
-
-#include "dynarmic/backend/x64/callback.h"
-
-namespace Dynarmic {
-namespace Backend::X64 {
-
-namespace impl {
-
-template<typename FunctionType, FunctionType mfp>
-struct ThunkBuilder;
-
-template<typename C, typename R, typename... Args, R (C::*mfp)(Args...)>
-struct ThunkBuilder<R (C::*)(Args...), mfp> {
- static R Thunk(C* this_, Args... args) {
- return (this_->*mfp)(std::forward<Args>(args)...);
- }
-};
-
-} // namespace impl
-
-template<auto mfp>
-ArgCallback DevirtualizeGeneric(mcl::class_type<decltype(mfp)>* this_) {
- return ArgCallback{&impl::ThunkBuilder<decltype(mfp), mfp>::Thunk, reinterpret_cast<u64>(this_)};
-}
-
-template<auto mfp>
-ArgCallback DevirtualizeWindows(mcl::class_type<decltype(mfp)>* this_) {
- static_assert(sizeof(mfp) == 8);
- return ArgCallback{mcl::bit_cast<u64>(mfp), reinterpret_cast<u64>(this_)};
-}
-
-template<auto mfp>
-ArgCallback DevirtualizeItanium(mcl::class_type<decltype(mfp)>* this_) {
- struct MemberFunctionPointer {
- /// For a non-virtual function, this is a simple function pointer.
- /// For a virtual function, it is (1 + virtual table offset in bytes).
- u64 ptr;
- /// The required adjustment to `this`, prior to the call.
- u64 adj;
- } mfp_struct = mcl::bit_cast<MemberFunctionPointer>(mfp);
-
- static_assert(sizeof(MemberFunctionPointer) == 16);
- static_assert(sizeof(MemberFunctionPointer) == sizeof(mfp));
-
- u64 fn_ptr = mfp_struct.ptr;
- u64 this_ptr = reinterpret_cast<u64>(this_) + mfp_struct.adj;
- if (mfp_struct.ptr & 1) {
- u64 vtable = mcl::bit_cast_pointee<u64>(this_ptr);
- fn_ptr = mcl::bit_cast_pointee<u64>(vtable + fn_ptr - 1);
- }
- return ArgCallback{fn_ptr, this_ptr};
-}
-
-template<auto mfp>
-ArgCallback Devirtualize(mcl::class_type<decltype(mfp)>* this_) {
-#if defined(__APPLE__) || defined(linux) || defined(__linux) || defined(__linux__)
- return DevirtualizeItanium<mfp>(this_);
-#elif defined(__MINGW64__)
- return DevirtualizeItanium<mfp>(this_);
-#elif defined(_WIN32)
- return DevirtualizeWindows<mfp>(this_);
-#else
- return DevirtualizeGeneric<mfp>(this_);
-#endif
-}
-
-} // namespace Backend::X64
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/emit_x64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/emit_x64.h
deleted file mode 100644
index 5a46f04e..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/emit_x64.h
+++ /dev/null
@@ -1,145 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <functional>
-#include <memory>
-#include <optional>
-#include <string>
-#include <type_traits>
-#include <vector>
-
-#include <mcl/bitsizeof.hpp>
-#include <tsl/robin_map.h>
-#include <tsl/robin_set.h>
-#include <xbyak/xbyak.h>
-#include <xbyak/xbyak_util.h>
-
-#include "dynarmic/backend/exception_handler.h"
-#include "dynarmic/backend/x64/reg_alloc.h"
-#include "dynarmic/common/fp/fpcr.h"
-#include "dynarmic/ir/location_descriptor.h"
-#include "dynarmic/ir/terminal.h"
-
-namespace Dynarmic::IR {
-class Block;
-class Inst;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic {
-enum class OptimizationFlag : u32;
-} // namespace Dynarmic
-
-namespace Dynarmic::Backend::X64 {
-
-class BlockOfCode;
-
-using A64FullVectorWidth = std::integral_constant<size_t, 128>;
-
-// Array alias that always sizes itself according to the given type T
-// relative to the size of a vector register. e.g. T = u32 would result
-// in a std::array<u32, 4>.
-template<typename T>
-using VectorArray = std::array<T, A64FullVectorWidth::value / mcl::bitsizeof<T>>;
-
-template<typename T>
-using HalfVectorArray = std::array<T, A64FullVectorWidth::value / mcl::bitsizeof<T> / 2>;
-
-struct EmitContext {
- EmitContext(RegAlloc& reg_alloc, IR::Block& block);
- virtual ~EmitContext();
-
- void EraseInstruction(IR::Inst* inst);
-
- virtual FP::FPCR FPCR(bool fpcr_controlled = true) const = 0;
-
- virtual bool HasOptimization(OptimizationFlag flag) const = 0;
-
- RegAlloc& reg_alloc;
- IR::Block& block;
-
- std::vector<std::function<void()>> deferred_emits;
-};
-
-using SharedLabel = std::shared_ptr<Xbyak::Label>;
-
-inline SharedLabel GenSharedLabel() {
- return std::make_shared<Xbyak::Label>();
-}
-
-class EmitX64 {
-public:
- struct BlockDescriptor {
- CodePtr entrypoint; // Entrypoint of emitted code
- size_t size; // Length in bytes of emitted code
- };
-
- explicit EmitX64(BlockOfCode& code);
- virtual ~EmitX64();
-
- /// Looks up an emitted host block in the cache.
- std::optional<BlockDescriptor> GetBasicBlock(IR::LocationDescriptor descriptor) const;
-
- /// Empties the entire cache.
- virtual void ClearCache();
-
- /// Invalidates a selection of basic blocks.
- void InvalidateBasicBlocks(const tsl::robin_set<IR::LocationDescriptor>& locations);
-
-protected:
- // Microinstruction emitters
-#define OPCODE(name, type, ...) void Emit##name(EmitContext& ctx, IR::Inst* inst);
-#define A32OPC(...)
-#define A64OPC(...)
-#include "dynarmic/ir/opcodes.inc"
-#undef OPCODE
-#undef A32OPC
-#undef A64OPC
-
- // Helpers
- virtual std::string LocationDescriptorToFriendlyName(const IR::LocationDescriptor&) const = 0;
- void EmitAddCycles(size_t cycles);
- Xbyak::Label EmitCond(IR::Cond cond);
- BlockDescriptor RegisterBlock(const IR::LocationDescriptor& location_descriptor, CodePtr entrypoint, size_t size);
- void PushRSBHelper(Xbyak::Reg64 loc_desc_reg, Xbyak::Reg64 index_reg, IR::LocationDescriptor target);
-
- void EmitVerboseDebuggingOutput(RegAlloc& reg_alloc);
-
- // Terminal instruction emitters
- void EmitTerminal(IR::Terminal terminal, IR::LocationDescriptor initial_location, bool is_single_step);
- virtual void EmitTerminalImpl(IR::Term::Interpret terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::ReturnToDispatch terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::LinkBlock terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::LinkBlockFast terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::PopRSBHint terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::FastDispatchHint terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::If terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::CheckBit terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
- virtual void EmitTerminalImpl(IR::Term::CheckHalt terminal, IR::LocationDescriptor initial_location, bool is_single_step) = 0;
-
- // Patching
- struct PatchInformation {
- std::vector<CodePtr> jg;
- std::vector<CodePtr> jz;
- std::vector<CodePtr> jmp;
- std::vector<CodePtr> mov_rcx;
- };
- void Patch(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr);
- virtual void Unpatch(const IR::LocationDescriptor& target_desc);
- virtual void EmitPatchJg(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) = 0;
- virtual void EmitPatchJz(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) = 0;
- virtual void EmitPatchJmp(const IR::LocationDescriptor& target_desc, CodePtr target_code_ptr = nullptr) = 0;
- virtual void EmitPatchMovRcx(CodePtr target_code_ptr = nullptr) = 0;
-
- // State
- BlockOfCode& code;
- ExceptionHandler exception_handler;
- tsl::robin_map<IR::LocationDescriptor, BlockDescriptor> block_descriptors;
- tsl::robin_map<IR::LocationDescriptor, PatchInformation> patch_information;
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/emit_x64_memory.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/emit_x64_memory.h
deleted file mode 100644
index c99980d6..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/emit_x64_memory.h
+++ /dev/null
@@ -1,388 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#include <mcl/bit_cast.hpp>
-#include <xbyak/xbyak.h>
-
-#include "dynarmic/backend/x64/a32_emit_x64.h"
-#include "dynarmic/backend/x64/a64_emit_x64.h"
-#include "dynarmic/backend/x64/exclusive_monitor_friend.h"
-#include "dynarmic/common/spin_lock_x64.h"
-#include "dynarmic/interface/exclusive_monitor.h"
-#include "dynarmic/ir/acc_type.h"
-
-namespace Dynarmic::Backend::X64 {
-
-namespace {
-
-using namespace Xbyak::util;
-
-constexpr size_t page_bits = 12;
-constexpr size_t page_size = 1 << page_bits;
-constexpr size_t page_mask = (1 << page_bits) - 1;
-
-template<typename EmitContext>
-void EmitDetectMisalignedVAddr(BlockOfCode& code, EmitContext& ctx, size_t bitsize, Xbyak::Label& abort, Xbyak::Reg64 vaddr, Xbyak::Reg64 tmp) {
- if (bitsize == 8 || (ctx.conf.detect_misaligned_access_via_page_table & bitsize) == 0) {
- return;
- }
-
- const u32 align_mask = [bitsize]() -> u32 {
- switch (bitsize) {
- case 16:
- return 0b1;
- case 32:
- return 0b11;
- case 64:
- return 0b111;
- case 128:
- return 0b1111;
- default:
- UNREACHABLE();
- }
- }();
-
- code.test(vaddr, align_mask);
-
- if (!ctx.conf.only_detect_misalignment_via_page_table_on_page_boundary) {
- code.jnz(abort, code.T_NEAR);
- return;
- }
-
- const u32 page_align_mask = static_cast<u32>(page_size - 1) & ~align_mask;
-
- SharedLabel detect_boundary = GenSharedLabel(), resume = GenSharedLabel();
-
- code.jnz(*detect_boundary, code.T_NEAR);
- code.L(*resume);
-
- ctx.deferred_emits.emplace_back([=, &code] {
- code.L(*detect_boundary);
- code.mov(tmp, vaddr);
- code.and_(tmp, page_align_mask);
- code.cmp(tmp, page_align_mask);
- code.jne(*resume, code.T_NEAR);
- // NOTE: We expect to fallthrough into abort code here.
- });
-}
-
-template<typename EmitContext>
-Xbyak::RegExp EmitVAddrLookup(BlockOfCode& code, EmitContext& ctx, size_t bitsize, Xbyak::Label& abort, Xbyak::Reg64 vaddr);
-
-template<>
-[[maybe_unused]] Xbyak::RegExp EmitVAddrLookup<A32EmitContext>(BlockOfCode& code, A32EmitContext& ctx, size_t bitsize, Xbyak::Label& abort, Xbyak::Reg64 vaddr) {
- const Xbyak::Reg64 page = ctx.reg_alloc.ScratchGpr();
- const Xbyak::Reg32 tmp = ctx.conf.absolute_offset_page_table ? page.cvt32() : ctx.reg_alloc.ScratchGpr().cvt32();
-
- EmitDetectMisalignedVAddr(code, ctx, bitsize, abort, vaddr, tmp.cvt64());
-
- // TODO: This code assumes vaddr has been zext from 32-bits to 64-bits.
-
- code.mov(tmp, vaddr.cvt32());
- code.shr(tmp, static_cast<int>(page_bits));
-
- code.mov(page, qword[r14 + tmp.cvt64() * sizeof(void*)]);
- if (ctx.conf.page_table_pointer_mask_bits == 0) {
- code.test(page, page);
- } else {
- code.and_(page, ~u32(0) << ctx.conf.page_table_pointer_mask_bits);
- }
- code.jz(abort, code.T_NEAR);
- if (ctx.conf.absolute_offset_page_table) {
- return page + vaddr;
- }
- code.mov(tmp, vaddr.cvt32());
- code.and_(tmp, static_cast<u32>(page_mask));
- return page + tmp.cvt64();
-}
-
-template<>
-[[maybe_unused]] Xbyak::RegExp EmitVAddrLookup<A64EmitContext>(BlockOfCode& code, A64EmitContext& ctx, size_t bitsize, Xbyak::Label& abort, Xbyak::Reg64 vaddr) {
- const size_t valid_page_index_bits = ctx.conf.page_table_address_space_bits - page_bits;
- const size_t unused_top_bits = 64 - ctx.conf.page_table_address_space_bits;
-
- const Xbyak::Reg64 page = ctx.reg_alloc.ScratchGpr();
- const Xbyak::Reg64 tmp = ctx.conf.absolute_offset_page_table ? page : ctx.reg_alloc.ScratchGpr();
-
- EmitDetectMisalignedVAddr(code, ctx, bitsize, abort, vaddr, tmp);
-
- if (unused_top_bits == 0) {
- code.mov(tmp, vaddr);
- code.shr(tmp, int(page_bits));
- } else if (ctx.conf.silently_mirror_page_table) {
- if (valid_page_index_bits >= 32) {
- if (code.HasHostFeature(HostFeature::BMI2)) {
- const Xbyak::Reg64 bit_count = ctx.reg_alloc.ScratchGpr();
- code.mov(bit_count, unused_top_bits);
- code.bzhi(tmp, vaddr, bit_count);
- code.shr(tmp, int(page_bits));
- ctx.reg_alloc.Release(bit_count);
- } else {
- code.mov(tmp, vaddr);
- code.shl(tmp, int(unused_top_bits));
- code.shr(tmp, int(unused_top_bits + page_bits));
- }
- } else {
- code.mov(tmp, vaddr);
- code.shr(tmp, int(page_bits));
- code.and_(tmp, u32((1 << valid_page_index_bits) - 1));
- }
- } else {
- ASSERT(valid_page_index_bits < 32);
- code.mov(tmp, vaddr);
- code.shr(tmp, int(page_bits));
- code.test(tmp, u32(-(1 << valid_page_index_bits)));
- code.jnz(abort, code.T_NEAR);
- }
- code.mov(page, qword[r14 + tmp * sizeof(void*)]);
- if (ctx.conf.page_table_pointer_mask_bits == 0) {
- code.test(page, page);
- } else {
- code.and_(page, ~u32(0) << ctx.conf.page_table_pointer_mask_bits);
- }
- code.jz(abort, code.T_NEAR);
- if (ctx.conf.absolute_offset_page_table) {
- return page + vaddr;
- }
- code.mov(tmp, vaddr);
- code.and_(tmp, static_cast<u32>(page_mask));
- return page + tmp;
-}
-
-template<typename EmitContext>
-Xbyak::RegExp EmitFastmemVAddr(BlockOfCode& code, EmitContext& ctx, Xbyak::Label& abort, Xbyak::Reg64 vaddr, bool& require_abort_handling, std::optional<Xbyak::Reg64> tmp = std::nullopt);
-
-template<>
-[[maybe_unused]] Xbyak::RegExp EmitFastmemVAddr<A32EmitContext>(BlockOfCode&, A32EmitContext&, Xbyak::Label&, Xbyak::Reg64 vaddr, bool&, std::optional<Xbyak::Reg64>) {
- return r13 + vaddr;
-}
-
-template<>
-[[maybe_unused]] Xbyak::RegExp EmitFastmemVAddr<A64EmitContext>(BlockOfCode& code, A64EmitContext& ctx, Xbyak::Label& abort, Xbyak::Reg64 vaddr, bool& require_abort_handling, std::optional<Xbyak::Reg64> tmp) {
- const size_t unused_top_bits = 64 - ctx.conf.fastmem_address_space_bits;
-
- if (unused_top_bits == 0) {
- return r13 + vaddr;
- } else if (ctx.conf.silently_mirror_fastmem) {
- if (!tmp) {
- tmp = ctx.reg_alloc.ScratchGpr();
- }
- if (unused_top_bits < 32) {
- code.mov(*tmp, vaddr);
- code.shl(*tmp, int(unused_top_bits));
- code.shr(*tmp, int(unused_top_bits));
- } else if (unused_top_bits == 32) {
- code.mov(tmp->cvt32(), vaddr.cvt32());
- } else {
- code.mov(tmp->cvt32(), vaddr.cvt32());
- code.and_(*tmp, u32((1 << ctx.conf.fastmem_address_space_bits) - 1));
- }
- return r13 + *tmp;
- } else {
- if (ctx.conf.fastmem_address_space_bits < 32) {
- code.test(vaddr, u32(-(1 << ctx.conf.fastmem_address_space_bits)));
- code.jnz(abort, code.T_NEAR);
- require_abort_handling = true;
- } else {
- // TODO: Consider having TEST as above but coalesce 64-bit constant in register allocator
- if (!tmp) {
- tmp = ctx.reg_alloc.ScratchGpr();
- }
- code.mov(*tmp, vaddr);
- code.shr(*tmp, int(ctx.conf.fastmem_address_space_bits));
- code.jnz(abort, code.T_NEAR);
- require_abort_handling = true;
- }
- return r13 + vaddr;
- }
-}
-
-template<std::size_t bitsize>
-const void* EmitReadMemoryMov(BlockOfCode& code, int value_idx, const Xbyak::RegExp& addr, bool ordered) {
- if (ordered) {
- if constexpr (bitsize != 128) {
- code.xor_(Xbyak::Reg32{value_idx}, Xbyak::Reg32{value_idx});
- } else {
- code.xor_(eax, eax);
- code.xor_(ebx, ebx);
- code.xor_(ecx, ecx);
- code.xor_(edx, edx);
- }
-
- const void* fastmem_location = code.getCurr();
- switch (bitsize) {
- case 8:
- code.lock();
- code.xadd(code.byte[addr], Xbyak::Reg32{value_idx}.cvt8());
- break;
- case 16:
- code.lock();
- code.xadd(word[addr], Xbyak::Reg16{value_idx});
- break;
- case 32:
- code.lock();
- code.xadd(dword[addr], Xbyak::Reg32{value_idx});
- break;
- case 64:
- code.lock();
- code.xadd(qword[addr], Xbyak::Reg64{value_idx});
- break;
- case 128:
- code.lock();
- code.cmpxchg16b(xword[addr]);
- if (code.HasHostFeature(HostFeature::SSE41)) {
- code.movq(Xbyak::Xmm{value_idx}, rax);
- code.pinsrq(Xbyak::Xmm{value_idx}, rdx, 1);
- } else {
- code.movq(Xbyak::Xmm{value_idx}, rax);
- code.movq(xmm0, rdx);
- code.punpcklqdq(Xbyak::Xmm{value_idx}, xmm0);
- }
- break;
- default:
- ASSERT_FALSE("Invalid bitsize");
- }
- return fastmem_location;
- }
-
- const void* fastmem_location = code.getCurr();
- switch (bitsize) {
- case 8:
- code.movzx(Xbyak::Reg32{value_idx}, code.byte[addr]);
- break;
- case 16:
- code.movzx(Xbyak::Reg32{value_idx}, word[addr]);
- break;
- case 32:
- code.mov(Xbyak::Reg32{value_idx}, dword[addr]);
- break;
- case 64:
- code.mov(Xbyak::Reg64{value_idx}, qword[addr]);
- break;
- case 128:
- code.movups(Xbyak::Xmm{value_idx}, xword[addr]);
- break;
- default:
- ASSERT_FALSE("Invalid bitsize");
- }
- return fastmem_location;
-}
-
-template<std::size_t bitsize>
-const void* EmitWriteMemoryMov(BlockOfCode& code, const Xbyak::RegExp& addr, int value_idx, bool ordered) {
- if (ordered) {
- if constexpr (bitsize == 128) {
- code.xor_(eax, eax);
- code.xor_(edx, edx);
- if (code.HasHostFeature(HostFeature::SSE41)) {
- code.movq(rbx, Xbyak::Xmm{value_idx});
- code.pextrq(rcx, Xbyak::Xmm{value_idx}, 1);
- } else {
- code.movaps(xmm0, Xbyak::Xmm{value_idx});
- code.movq(rbx, xmm0);
- code.punpckhqdq(xmm0, xmm0);
- code.movq(rcx, xmm0);
- }
- }
-
- const void* fastmem_location = code.getCurr();
- switch (bitsize) {
- case 8:
- code.xchg(code.byte[addr], Xbyak::Reg64{value_idx}.cvt8());
- break;
- case 16:
- code.xchg(word[addr], Xbyak::Reg16{value_idx});
- break;
- case 32:
- code.xchg(dword[addr], Xbyak::Reg32{value_idx});
- break;
- case 64:
- code.xchg(qword[addr], Xbyak::Reg64{value_idx});
- break;
- case 128: {
- Xbyak::Label loop;
- code.L(loop);
- code.lock();
- code.cmpxchg16b(xword[addr]);
- code.jnz(loop);
- break;
- }
- default:
- ASSERT_FALSE("Invalid bitsize");
- }
- return fastmem_location;
- }
-
- const void* fastmem_location = code.getCurr();
- switch (bitsize) {
- case 8:
- code.mov(code.byte[addr], Xbyak::Reg64{value_idx}.cvt8());
- break;
- case 16:
- code.mov(word[addr], Xbyak::Reg16{value_idx});
- break;
- case 32:
- code.mov(dword[addr], Xbyak::Reg32{value_idx});
- break;
- case 64:
- code.mov(qword[addr], Xbyak::Reg64{value_idx});
- break;
- case 128:
- code.movups(xword[addr], Xbyak::Xmm{value_idx});
- break;
- default:
- ASSERT_FALSE("Invalid bitsize");
- }
- return fastmem_location;
-}
-
-template<typename UserConfig>
-void EmitExclusiveLock(BlockOfCode& code, const UserConfig& conf, Xbyak::Reg64 pointer, Xbyak::Reg32 tmp) {
- if (conf.HasOptimization(OptimizationFlag::Unsafe_IgnoreGlobalMonitor)) {
- return;
- }
-
- code.mov(pointer, mcl::bit_cast<u64>(GetExclusiveMonitorLockPointer(conf.global_monitor)));
- EmitSpinLockLock(code, pointer, tmp);
-}
-
-template<typename UserConfig>
-void EmitExclusiveUnlock(BlockOfCode& code, const UserConfig& conf, Xbyak::Reg64 pointer, Xbyak::Reg32 tmp) {
- if (conf.HasOptimization(OptimizationFlag::Unsafe_IgnoreGlobalMonitor)) {
- return;
- }
-
- code.mov(pointer, mcl::bit_cast<u64>(GetExclusiveMonitorLockPointer(conf.global_monitor)));
- EmitSpinLockUnlock(code, pointer, tmp);
-}
-
-template<typename UserConfig>
-void EmitExclusiveTestAndClear(BlockOfCode& code, const UserConfig& conf, Xbyak::Reg64 vaddr, Xbyak::Reg64 pointer, Xbyak::Reg64 tmp) {
- if (conf.HasOptimization(OptimizationFlag::Unsafe_IgnoreGlobalMonitor)) {
- return;
- }
-
- code.mov(tmp, 0xDEAD'DEAD'DEAD'DEAD);
- const size_t processor_count = GetExclusiveMonitorProcessorCount(conf.global_monitor);
- for (size_t processor_index = 0; processor_index < processor_count; processor_index++) {
- if (processor_index == conf.processor_id) {
- continue;
- }
- Xbyak::Label ok;
- code.mov(pointer, mcl::bit_cast<u64>(GetExclusiveMonitorAddressPointer(conf.global_monitor, processor_index)));
- code.cmp(qword[pointer], vaddr);
- code.jne(ok);
- code.mov(qword[pointer], tmp);
- code.L(ok);
- }
-}
-
-inline bool IsOrdered(IR::AccType acctype) {
- return acctype == IR::AccType::ORDERED || acctype == IR::AccType::ORDEREDRW || acctype == IR::AccType::LIMITEDORDERED;
-}
-
-} // namespace
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/exclusive_monitor_friend.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/exclusive_monitor_friend.h
deleted file mode 100644
index 7f7fa242..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/exclusive_monitor_friend.h
+++ /dev/null
@@ -1,28 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include "dynarmic/interface/exclusive_monitor.h"
-
-namespace Dynarmic {
-
-inline volatile int* GetExclusiveMonitorLockPointer(ExclusiveMonitor* monitor) {
- return &monitor->lock.storage;
-}
-
-inline size_t GetExclusiveMonitorProcessorCount(ExclusiveMonitor* monitor) {
- return monitor->exclusive_addresses.size();
-}
-
-inline VAddr* GetExclusiveMonitorAddressPointer(ExclusiveMonitor* monitor, size_t index) {
- return monitor->exclusive_addresses.data() + index;
-}
-
-inline Vector* GetExclusiveMonitorValuePointer(ExclusiveMonitor* monitor, size_t index) {
- return monitor->exclusive_values.data() + index;
-}
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/host_feature.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/host_feature.h
deleted file mode 100644
index 8e3b14c7..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/host_feature.h
+++ /dev/null
@@ -1,66 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2021 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Backend::X64 {
-
-enum class HostFeature : u64 {
- SSSE3 = 1ULL << 0,
- SSE41 = 1ULL << 1,
- SSE42 = 1ULL << 2,
- AVX = 1ULL << 3,
- AVX2 = 1ULL << 4,
- AVX512F = 1ULL << 5,
- AVX512CD = 1ULL << 6,
- AVX512VL = 1ULL << 7,
- AVX512BW = 1ULL << 8,
- AVX512DQ = 1ULL << 9,
- AVX512BITALG = 1ULL << 10,
- AVX512VBMI = 1ULL << 11,
- PCLMULQDQ = 1ULL << 12,
- F16C = 1ULL << 13,
- FMA = 1ULL << 14,
- AES = 1ULL << 15,
- SHA = 1ULL << 16,
- POPCNT = 1ULL << 17,
- BMI1 = 1ULL << 18,
- BMI2 = 1ULL << 19,
- LZCNT = 1ULL << 20,
- GFNI = 1ULL << 21,
-
- // Zen-based BMI2
- FastBMI2 = 1ULL << 22,
-
- // Orthographic AVX512 features on 128 and 256 vectors
- AVX512_Ortho = AVX512F | AVX512VL,
-
- // Orthographic AVX512 features for both 32-bit and 64-bit floats
- AVX512_OrthoFloat = AVX512_Ortho | AVX512DQ,
-};
-
-constexpr HostFeature operator~(HostFeature f) {
- return static_cast<HostFeature>(~static_cast<u64>(f));
-}
-
-constexpr HostFeature operator|(HostFeature f1, HostFeature f2) {
- return static_cast<HostFeature>(static_cast<u64>(f1) | static_cast<u64>(f2));
-}
-
-constexpr HostFeature operator&(HostFeature f1, HostFeature f2) {
- return static_cast<HostFeature>(static_cast<u64>(f1) & static_cast<u64>(f2));
-}
-
-constexpr HostFeature operator|=(HostFeature& result, HostFeature f) {
- return result = (result | f);
-}
-
-constexpr HostFeature operator&=(HostFeature& result, HostFeature f) {
- return result = (result & f);
-}
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/hostloc.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/hostloc.h
deleted file mode 100644
index dbf526b7..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/hostloc.h
+++ /dev/null
@@ -1,147 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-#pragma once
-
-#include <mcl/assert.hpp>
-#include <mcl/stdint.hpp>
-#include <xbyak/xbyak.h>
-
-namespace Dynarmic::Backend::X64 {
-
-enum class HostLoc {
- // Ordering of the registers is intentional. See also: HostLocToX64.
- RAX,
- RCX,
- RDX,
- RBX,
- RSP,
- RBP,
- RSI,
- RDI,
- R8,
- R9,
- R10,
- R11,
- R12,
- R13,
- R14,
- R15,
- XMM0,
- XMM1,
- XMM2,
- XMM3,
- XMM4,
- XMM5,
- XMM6,
- XMM7,
- XMM8,
- XMM9,
- XMM10,
- XMM11,
- XMM12,
- XMM13,
- XMM14,
- XMM15,
- CF,
- PF,
- AF,
- ZF,
- SF,
- OF,
- FirstSpill,
-};
-
-constexpr size_t NonSpillHostLocCount = static_cast<size_t>(HostLoc::FirstSpill);
-
-inline bool HostLocIsGPR(HostLoc reg) {
- return reg >= HostLoc::RAX && reg <= HostLoc::R15;
-}
-
-inline bool HostLocIsXMM(HostLoc reg) {
- return reg >= HostLoc::XMM0 && reg <= HostLoc::XMM15;
-}
-
-inline bool HostLocIsRegister(HostLoc reg) {
- return HostLocIsGPR(reg) || HostLocIsXMM(reg);
-}
-
-inline bool HostLocIsFlag(HostLoc reg) {
- return reg >= HostLoc::CF && reg <= HostLoc::OF;
-}
-
-inline HostLoc HostLocRegIdx(int idx) {
- ASSERT(idx >= 0 && idx <= 15);
- return static_cast<HostLoc>(idx);
-}
-
-inline HostLoc HostLocXmmIdx(int idx) {
- ASSERT(idx >= 0 && idx <= 15);
- return static_cast<HostLoc>(static_cast<size_t>(HostLoc::XMM0) + idx);
-}
-
-inline HostLoc HostLocSpill(size_t i) {
- return static_cast<HostLoc>(static_cast<size_t>(HostLoc::FirstSpill) + i);
-}
-
-inline bool HostLocIsSpill(HostLoc reg) {
- return reg >= HostLoc::FirstSpill;
-}
-
-inline size_t HostLocBitWidth(HostLoc loc) {
- if (HostLocIsGPR(loc))
- return 64;
- if (HostLocIsXMM(loc))
- return 128;
- if (HostLocIsSpill(loc))
- return 128;
- if (HostLocIsFlag(loc))
- return 1;
- UNREACHABLE();
-}
-
-using HostLocList = std::initializer_list<HostLoc>;
-
-// RSP is preserved for function calls
-// R15 contains the JitState pointer
-const HostLocList any_gpr = {
- HostLoc::RAX,
- HostLoc::RBX,
- HostLoc::RCX,
- HostLoc::RDX,
- HostLoc::RSI,
- HostLoc::RDI,
- HostLoc::RBP,
- HostLoc::R8,
- HostLoc::R9,
- HostLoc::R10,
- HostLoc::R11,
- HostLoc::R12,
- HostLoc::R13,
- HostLoc::R14,
-};
-
-// XMM0 is reserved for use by instructions that implicitly use it as an argument
-const HostLocList any_xmm = {
- HostLoc::XMM1,
- HostLoc::XMM2,
- HostLoc::XMM3,
- HostLoc::XMM4,
- HostLoc::XMM5,
- HostLoc::XMM6,
- HostLoc::XMM7,
- HostLoc::XMM8,
- HostLoc::XMM9,
- HostLoc::XMM10,
- HostLoc::XMM11,
- HostLoc::XMM12,
- HostLoc::XMM13,
- HostLoc::XMM14,
- HostLoc::XMM15,
-};
-
-Xbyak::Reg64 HostLocToReg64(HostLoc loc);
-Xbyak::Xmm HostLocToXmm(HostLoc loc);
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/jitstate_info.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/jitstate_info.h
deleted file mode 100644
index 654b3f04..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/jitstate_info.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstddef>
-
-namespace Dynarmic::Backend::X64 {
-
-struct JitStateInfo {
- template<typename JitStateType>
- JitStateInfo(const JitStateType&)
- : offsetof_guest_MXCSR(offsetof(JitStateType, guest_MXCSR))
- , offsetof_asimd_MXCSR(offsetof(JitStateType, asimd_MXCSR))
- , offsetof_rsb_ptr(offsetof(JitStateType, rsb_ptr))
- , rsb_ptr_mask(JitStateType::RSBPtrMask)
- , offsetof_rsb_location_descriptors(offsetof(JitStateType, rsb_location_descriptors))
- , offsetof_rsb_codeptrs(offsetof(JitStateType, rsb_codeptrs))
- , offsetof_cpsr_nzcv(offsetof(JitStateType, cpsr_nzcv))
- , offsetof_fpsr_exc(offsetof(JitStateType, fpsr_exc))
- , offsetof_fpsr_qc(offsetof(JitStateType, fpsr_qc))
- , offsetof_halt_reason(offsetof(JitStateType, halt_reason)) {}
-
- const size_t offsetof_guest_MXCSR;
- const size_t offsetof_asimd_MXCSR;
- const size_t offsetof_rsb_ptr;
- const size_t rsb_ptr_mask;
- const size_t offsetof_rsb_location_descriptors;
- const size_t offsetof_rsb_codeptrs;
- const size_t offsetof_cpsr_nzcv;
- const size_t offsetof_fpsr_exc;
- const size_t offsetof_fpsr_qc;
- const size_t offsetof_halt_reason;
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/nzcv_util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/nzcv_util.h
deleted file mode 100644
index 3a70cf4f..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/nzcv_util.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Backend::X64::NZCV {
-
-constexpr u32 arm_mask = 0xF000'0000;
-constexpr u32 x64_mask = 0xC101;
-
-constexpr size_t x64_n_flag_bit = 15;
-constexpr size_t x64_z_flag_bit = 14;
-constexpr size_t x64_c_flag_bit = 8;
-constexpr size_t x64_v_flag_bit = 0;
-
-/// This is a constant used to create the x64 flags format from the ARM format.
-/// NZCV * multiplier: NZCV0NZCV000NZCV
-/// x64_flags format: NZ-----C-------V
-constexpr u32 to_x64_multiplier = 0x1081;
-
-/// This is a constant used to create the ARM format from the x64 flags format.
-constexpr u32 from_x64_multiplier = 0x1021'0000;
-
-inline u32 ToX64(u32 nzcv) {
- /* Naive implementation:
- u32 x64_flags = 0;
- x64_flags |= mcl::bit::get_bit<31>(cpsr) ? 1 << 15 : 0;
- x64_flags |= mcl::bit::get_bit<30>(cpsr) ? 1 << 14 : 0;
- x64_flags |= mcl::bit::get_bit<29>(cpsr) ? 1 << 8 : 0;
- x64_flags |= mcl::bit::get_bit<28>(cpsr) ? 1 : 0;
- return x64_flags;
- */
- return ((nzcv >> 28) * to_x64_multiplier) & x64_mask;
-}
-
-inline u32 FromX64(u32 x64_flags) {
- /* Naive implementation:
- u32 nzcv = 0;
- nzcv |= mcl::bit::get_bit<15>(x64_flags) ? 1 << 31 : 0;
- nzcv |= mcl::bit::get_bit<14>(x64_flags) ? 1 << 30 : 0;
- nzcv |= mcl::bit::get_bit<8>(x64_flags) ? 1 << 29 : 0;
- nzcv |= mcl::bit::get_bit<0>(x64_flags) ? 1 << 28 : 0;
- return nzcv;
- */
- return ((x64_flags & x64_mask) * from_x64_multiplier) & arm_mask;
-}
-
-} // namespace Dynarmic::Backend::X64::NZCV
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/oparg.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/oparg.h
deleted file mode 100644
index 70c60dfb..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/oparg.h
+++ /dev/null
@@ -1,79 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/assert.hpp>
-#include <xbyak/xbyak.h>
-
-namespace Dynarmic::Backend::X64 {
-
-struct OpArg {
- OpArg()
- : type(Type::Operand), inner_operand() {}
- /* implicit */ OpArg(const Xbyak::Address& address)
- : type(Type::Address), inner_address(address) {}
- /* implicit */ OpArg(const Xbyak::Reg& reg)
- : type(Type::Reg), inner_reg(reg) {}
-
- Xbyak::Operand& operator*() {
- switch (type) {
- case Type::Address:
- return inner_address;
- case Type::Operand:
- return inner_operand;
- case Type::Reg:
- return inner_reg;
- }
- UNREACHABLE();
- }
-
- void setBit(int bits) {
- switch (type) {
- case Type::Address:
- inner_address.setBit(bits);
- return;
- case Type::Operand:
- inner_operand.setBit(bits);
- return;
- case Type::Reg:
- switch (bits) {
- case 8:
- inner_reg = inner_reg.cvt8();
- return;
- case 16:
- inner_reg = inner_reg.cvt16();
- return;
- case 32:
- inner_reg = inner_reg.cvt32();
- return;
- case 64:
- inner_reg = inner_reg.cvt64();
- return;
- default:
- ASSERT_MSG(false, "Invalid bits");
- return;
- }
- }
- UNREACHABLE();
- }
-
-private:
- enum class Type {
- Operand,
- Address,
- Reg,
- };
-
- Type type;
-
- union {
- Xbyak::Operand inner_operand;
- Xbyak::Address inner_address;
- Xbyak::Reg inner_reg;
- };
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/perf_map.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/perf_map.h
deleted file mode 100644
index 7d739ae6..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/perf_map.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string_view>
-
-#include <mcl/bit_cast.hpp>
-
-namespace Dynarmic::Backend::X64 {
-
-namespace detail {
-void PerfMapRegister(const void* start, const void* end, std::string_view friendly_name);
-} // namespace detail
-
-template<typename T>
-void PerfMapRegister(T start, const void* end, std::string_view friendly_name) {
- detail::PerfMapRegister(mcl::bit_cast<const void*>(start), end, friendly_name);
-}
-
-void PerfMapClear();
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/reg_alloc.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/reg_alloc.h
deleted file mode 100644
index 19debf5f..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/reg_alloc.h
+++ /dev/null
@@ -1,188 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <functional>
-#include <optional>
-#include <utility>
-#include <vector>
-
-#include <mcl/stdint.hpp>
-#include <xbyak/xbyak.h>
-
-#include "dynarmic/backend/x64/block_of_code.h"
-#include "dynarmic/backend/x64/hostloc.h"
-#include "dynarmic/backend/x64/oparg.h"
-#include "dynarmic/ir/cond.h"
-#include "dynarmic/ir/microinstruction.h"
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::IR {
-enum class AccType;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic::Backend::X64 {
-
-class RegAlloc;
-
-struct HostLocInfo {
-public:
- bool IsLocked() const;
- bool IsEmpty() const;
- bool IsLastUse() const;
-
- void SetLastUse();
-
- void ReadLock();
- void WriteLock();
- void AddArgReference();
- void ReleaseOne();
- void ReleaseAll();
-
- bool ContainsValue(const IR::Inst* inst) const;
- size_t GetMaxBitWidth() const;
-
- void AddValue(IR::Inst* inst);
-
- void EmitVerboseDebuggingOutput(BlockOfCode& code, size_t host_loc_index) const;
-
-private:
- // Current instruction state
- size_t is_being_used_count = 0;
- bool is_scratch = false;
- bool is_set_last_use = false;
-
- // Block state
- size_t current_references = 0;
- size_t accumulated_uses = 0;
- size_t total_uses = 0;
-
- // Value state
- std::vector<IR::Inst*> values;
- size_t max_bit_width = 0;
-};
-
-struct Argument {
-public:
- using copyable_reference = std::reference_wrapper<Argument>;
-
- IR::Type GetType() const;
- bool IsImmediate() const;
- bool IsVoid() const;
-
- bool FitsInImmediateU32() const;
- bool FitsInImmediateS32() const;
-
- bool GetImmediateU1() const;
- u8 GetImmediateU8() const;
- u16 GetImmediateU16() const;
- u32 GetImmediateU32() const;
- u64 GetImmediateS32() const;
- u64 GetImmediateU64() const;
- IR::Cond GetImmediateCond() const;
- IR::AccType GetImmediateAccType() const;
-
- /// Is this value currently in a GPR?
- bool IsInGpr() const;
- /// Is this value currently in a XMM?
- bool IsInXmm() const;
- /// Is this value currently in memory?
- bool IsInMemory() const;
-
-private:
- friend class RegAlloc;
- explicit Argument(RegAlloc& reg_alloc)
- : reg_alloc(reg_alloc) {}
-
- bool allocated = false;
- RegAlloc& reg_alloc;
- IR::Value value;
-};
-
-class RegAlloc final {
-public:
- using ArgumentInfo = std::array<Argument, IR::max_arg_count>;
-
- explicit RegAlloc(BlockOfCode& code, std::vector<HostLoc> gpr_order, std::vector<HostLoc> xmm_order);
-
- ArgumentInfo GetArgumentInfo(IR::Inst* inst);
- void RegisterPseudoOperation(IR::Inst* inst);
- bool IsValueLive(IR::Inst* inst) const;
-
- Xbyak::Reg64 UseGpr(Argument& arg);
- Xbyak::Xmm UseXmm(Argument& arg);
- OpArg UseOpArg(Argument& arg);
- void Use(Argument& arg, HostLoc host_loc);
-
- Xbyak::Reg64 UseScratchGpr(Argument& arg);
- Xbyak::Xmm UseScratchXmm(Argument& arg);
- void UseScratch(Argument& arg, HostLoc host_loc);
-
- void DefineValue(IR::Inst* inst, const Xbyak::Reg& reg);
- void DefineValue(IR::Inst* inst, Argument& arg);
-
- void Release(const Xbyak::Reg& reg);
-
- Xbyak::Reg64 ScratchGpr();
- Xbyak::Reg64 ScratchGpr(HostLoc desired_location);
- Xbyak::Xmm ScratchXmm();
- Xbyak::Xmm ScratchXmm(HostLoc desired_location);
-
- void HostCall(IR::Inst* result_def = nullptr,
- std::optional<Argument::copyable_reference> arg0 = {},
- std::optional<Argument::copyable_reference> arg1 = {},
- std::optional<Argument::copyable_reference> arg2 = {},
- std::optional<Argument::copyable_reference> arg3 = {});
-
- // TODO: Values in host flags
-
- void AllocStackSpace(size_t stack_space);
- void ReleaseStackSpace(size_t stack_space);
-
- void EndOfAllocScope();
-
- void AssertNoMoreUses();
-
- void EmitVerboseDebuggingOutput();
-
-private:
- friend struct Argument;
-
- std::vector<HostLoc> gpr_order;
- std::vector<HostLoc> xmm_order;
-
- HostLoc SelectARegister(const std::vector<HostLoc>& desired_locations) const;
- std::optional<HostLoc> ValueLocation(const IR::Inst* value) const;
-
- HostLoc UseImpl(IR::Value use_value, const std::vector<HostLoc>& desired_locations);
- HostLoc UseScratchImpl(IR::Value use_value, const std::vector<HostLoc>& desired_locations);
- HostLoc ScratchImpl(const std::vector<HostLoc>& desired_locations);
- void DefineValueImpl(IR::Inst* def_inst, HostLoc host_loc);
- void DefineValueImpl(IR::Inst* def_inst, const IR::Value& use_inst);
-
- HostLoc LoadImmediate(IR::Value imm, HostLoc host_loc);
- void Move(HostLoc to, HostLoc from);
- void CopyToScratch(size_t bit_width, HostLoc to, HostLoc from);
- void Exchange(HostLoc a, HostLoc b);
- void MoveOutOfTheWay(HostLoc reg);
-
- void SpillRegister(HostLoc loc);
- HostLoc FindFreeSpill() const;
-
- std::vector<HostLocInfo> hostloc_info;
- HostLocInfo& LocInfo(HostLoc loc);
- const HostLocInfo& LocInfo(HostLoc loc) const;
-
- BlockOfCode& code;
- size_t reserved_stack_space = 0;
- void EmitMove(size_t bit_width, HostLoc to, HostLoc from);
- void EmitExchange(HostLoc a, HostLoc b);
-
- Xbyak::Address SpillToOpArg(HostLoc loc);
-};
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/stack_layout.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/stack_layout.h
deleted file mode 100644
index 7e6799f1..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/stack_layout.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Backend::X64 {
-
-constexpr size_t SpillCount = 64;
-
-#ifdef _MSC_VER
-# pragma warning(push)
-# pragma warning(disable : 4324) // Structure was padded due to alignment specifier
-#endif
-
-struct alignas(16) StackLayout {
- s64 cycles_remaining;
- s64 cycles_to_run;
-
- std::array<std::array<u64, 2>, SpillCount> spill;
-
- u32 save_host_MXCSR;
-
- bool check_bit;
-};
-
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-
-static_assert(sizeof(StackLayout) % 16 == 0);
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/verbose_debugging_output.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/verbose_debugging_output.h
deleted file mode 100644
index 4eb2646d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/backend/x64/verbose_debugging_output.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2023 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/backend/x64/stack_layout.h"
-
-namespace Dynarmic::Backend::X64 {
-
-enum class HostLoc;
-using Vector = std::array<u64, 2>;
-
-#ifdef _MSC_VER
-# pragma warning(push)
-# pragma warning(disable : 4324) // Structure was padded due to alignment specifier
-#endif
-
-struct alignas(16) RegisterData {
- std::array<u64, 16> gprs;
- std::array<Vector, 16> xmms;
- decltype(StackLayout::spill)* spill;
- u32 mxcsr;
-};
-
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-
-void PrintVerboseDebuggingOutputLine(RegisterData& reg_data, HostLoc hostloc, size_t inst_index, size_t bitsize);
-
-} // namespace Dynarmic::Backend::X64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/always_false.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/always_false.h
deleted file mode 100644
index b980fea0..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/always_false.h
+++ /dev/null
@@ -1,13 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2023 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::Common {
-
-template<typename T>
-inline constexpr bool always_false_v = false;
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/atomic.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/atomic.h
deleted file mode 100644
index 34042d38..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/atomic.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Atomic {
-
-inline u32 Load(volatile u32* ptr) {
-#ifdef _MSC_VER
- return _InterlockedOr(reinterpret_cast<volatile long*>(ptr), 0);
-#else
- return __atomic_load_n(ptr, __ATOMIC_SEQ_CST);
-#endif
-}
-
-inline void Or(volatile u32* ptr, u32 value) {
-#ifdef _MSC_VER
- _InterlockedOr(reinterpret_cast<volatile long*>(ptr), value);
-#else
- __atomic_or_fetch(ptr, value, __ATOMIC_SEQ_CST);
-#endif
-}
-
-inline void And(volatile u32* ptr, u32 value) {
-#ifdef _MSC_VER
- _InterlockedAnd(reinterpret_cast<volatile long*>(ptr), value);
-#else
- __atomic_and_fetch(ptr, value, __ATOMIC_SEQ_CST);
-#endif
-}
-
-inline void Barrier() {
-#ifdef _MSC_VER
- _ReadWriteBarrier();
-#else
- __atomic_thread_fence(__ATOMIC_SEQ_CST);
-#endif
-}
-
-} // namespace Dynarmic::Atomic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/cast_util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/cast_util.h
deleted file mode 100644
index 92c9a259..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/cast_util.h
+++ /dev/null
@@ -1,18 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/type_traits/function_info.hpp>
-
-namespace Dynarmic::Common {
-
-/// Cast a lambda into an equivalent function pointer.
-template<class Function>
-inline auto FptrCast(Function f) noexcept {
- return static_cast<mcl::equivalent_function_type<Function>*>(f);
-}
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/crypto/aes.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/crypto/aes.h
deleted file mode 100644
index fa6d5a81..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/crypto/aes.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Common::Crypto::AES {
-
-using State = std::array<u8, 16>;
-
-// Assumes the state has already been XORed by the round key.
-void DecryptSingleRound(State& out_state, const State& state);
-void EncryptSingleRound(State& out_state, const State& state);
-
-void MixColumns(State& out_state, const State& state);
-void InverseMixColumns(State& out_state, const State& state);
-
-} // namespace Dynarmic::Common::Crypto::AES
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/crypto/crc32.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/crypto/crc32.h
deleted file mode 100644
index 30942327..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/crypto/crc32.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Common::Crypto::CRC32 {
-
-/**
- * Computes a CRC32 value using Castagnoli polynomial (0x1EDC6F41).
- *
- * @param crc The initial CRC value
- * @param value The value to compute the CRC of.
- * @param length The length of the data to compute.
- *
- * @remark @p value is interpreted internally as an array of
- * unsigned char with @p length data.
- *
- * @return The computed CRC32 value.
- */
-u32 ComputeCRC32Castagnoli(u32 crc, u64 value, int length);
-
-/**
- * Computes a CRC32 value using the ISO polynomial (0x04C11DB7).
- *
- * @param crc The initial CRC value
- * @param value The value to compute the CRC of.
- * @param length The length of the data to compute.
- *
- * @remark @p value is interpreted internally as an array of
- * unsigned char with @p length data.
- *
- * @return The computed CRC32 value.
- */
-u32 ComputeCRC32ISO(u32 crc, u64 value, int length);
-
-} // namespace Dynarmic::Common::Crypto::CRC32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/crypto/sm4.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/crypto/sm4.h
deleted file mode 100644
index 417e9b92..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/crypto/sm4.h
+++ /dev/null
@@ -1,14 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Common::Crypto::SM4 {
-
-u8 AccessSubstitutionBox(u8 index);
-
-} // namespace Dynarmic::Common::Crypto::SM4
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/fpcr.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/fpcr.h
deleted file mode 100644
index 287f6d28..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/fpcr.h
+++ /dev/null
@@ -1,209 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-
-#include <mcl/assert.hpp>
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/common/fp/rounding_mode.h"
-
-namespace Dynarmic::FP {
-
-/**
- * Representation of the Floating-Point Control Register.
- */
-class FPCR final {
-public:
- FPCR() = default;
- FPCR(const FPCR&) = default;
- FPCR(FPCR&&) = default;
- explicit FPCR(u32 data)
- : value{data & mask} {}
-
- FPCR& operator=(const FPCR&) = default;
- FPCR& operator=(FPCR&&) = default;
- FPCR& operator=(u32 data) {
- value = data & mask;
- return *this;
- }
-
- /// Get alternate half-precision control flag.
- bool AHP() const {
- return mcl::bit::get_bit<26>(value);
- }
-
- /// Set alternate half-precision control flag.
- void AHP(bool ahp) {
- value = mcl::bit::set_bit<26>(value, ahp);
- }
-
- /// Get default NaN mode control bit.
- bool DN() const {
- return mcl::bit::get_bit<25>(value);
- }
-
- /// Set default NaN mode control bit.
- void DN(bool dn) {
- value = mcl::bit::set_bit<25>(value, dn);
- }
-
- /// Get flush-to-zero mode control bit.
- bool FZ() const {
- return mcl::bit::get_bit<24>(value);
- }
-
- /// Set flush-to-zero mode control bit.
- void FZ(bool fz) {
- value = mcl::bit::set_bit<24>(value, fz);
- }
-
- /// Get rounding mode control field.
- FP::RoundingMode RMode() const {
- return static_cast<FP::RoundingMode>(mcl::bit::get_bits<22, 23>(value));
- }
-
- /// Set rounding mode control field.
- void RMode(FP::RoundingMode rounding_mode) {
- ASSERT_MSG(static_cast<u32>(rounding_mode) <= 0b11, "FPCR: Invalid rounding mode");
- value = mcl::bit::set_bits<22, 23>(value, static_cast<u32>(rounding_mode));
- }
-
- /// Get the stride of a vector when executing AArch32 VFP instructions.
- /// This field has no function in AArch64 state.
- std::optional<size_t> Stride() const {
- switch (mcl::bit::get_bits<20, 21>(value)) {
- case 0b00:
- return 1;
- case 0b11:
- return 2;
- default:
- return std::nullopt;
- }
- }
-
- /// Set the stride of a vector when executing AArch32 VFP instructions.
- /// This field has no function in AArch64 state.
- void Stride(size_t stride) {
- ASSERT_MSG(stride >= 1 && stride <= 2, "FPCR: Invalid stride");
- value = mcl::bit::set_bits<20, 21>(value, stride == 1 ? 0b00u : 0b11u);
- }
-
- /// Get flush-to-zero (half-precision specific) mode control bit.
- bool FZ16() const {
- return mcl::bit::get_bit<19>(value);
- }
-
- /// Set flush-to-zero (half-precision specific) mode control bit.
- void FZ16(bool fz16) {
- value = mcl::bit::set_bit<19>(value, fz16);
- }
-
- /// Gets the length of a vector when executing AArch32 VFP instructions.
- /// This field has no function in AArch64 state.
- size_t Len() const {
- return mcl::bit::get_bits<16, 18>(value) + 1;
- }
-
- /// Sets the length of a vector when executing AArch32 VFP instructions.
- /// This field has no function in AArch64 state.
- void Len(size_t len) {
- ASSERT_MSG(len >= 1 && len <= 8, "FPCR: Invalid len");
- value = mcl::bit::set_bits<16, 18>(value, static_cast<u32>(len - 1));
- }
-
- /// Get input denormal exception trap enable flag.
- bool IDE() const {
- return mcl::bit::get_bit<15>(value);
- }
-
- /// Set input denormal exception trap enable flag.
- void IDE(bool ide) {
- value = mcl::bit::set_bit<15>(value, ide);
- }
-
- /// Get inexact exception trap enable flag.
- bool IXE() const {
- return mcl::bit::get_bit<12>(value);
- }
-
- /// Set inexact exception trap enable flag.
- void IXE(bool ixe) {
- value = mcl::bit::set_bit<12>(value, ixe);
- }
-
- /// Get underflow exception trap enable flag.
- bool UFE() const {
- return mcl::bit::get_bit<11>(value);
- }
-
- /// Set underflow exception trap enable flag.
- void UFE(bool ufe) {
- value = mcl::bit::set_bit<11>(value, ufe);
- }
-
- /// Get overflow exception trap enable flag.
- bool OFE() const {
- return mcl::bit::get_bit<10>(value);
- }
-
- /// Set overflow exception trap enable flag.
- void OFE(bool ofe) {
- value = mcl::bit::set_bit<10>(value, ofe);
- }
-
- /// Get division by zero exception trap enable flag.
- bool DZE() const {
- return mcl::bit::get_bit<9>(value);
- }
-
- /// Set division by zero exception trap enable flag.
- void DZE(bool dze) {
- value = mcl::bit::set_bit<9>(value, dze);
- }
-
- /// Get invalid operation exception trap enable flag.
- bool IOE() const {
- return mcl::bit::get_bit<8>(value);
- }
-
- /// Set invalid operation exception trap enable flag.
- void IOE(bool ioe) {
- value = mcl::bit::set_bit<8>(value, ioe);
- }
-
- /// Gets the underlying raw value within the FPCR.
- u32 Value() const {
- return value;
- }
-
- /// Gets the StandardFPSCRValue (A32 ASIMD).
- FPCR ASIMDStandardValue() const {
- FPCR stdvalue;
- stdvalue.AHP(AHP());
- stdvalue.FZ16(FZ16());
- stdvalue.FZ(true);
- stdvalue.DN(true);
- return stdvalue;
- }
-
-private:
- // Bits 0-7, 13-14, and 27-31 are reserved.
- static constexpr u32 mask = 0x07FF9F00;
- u32 value = 0;
-};
-
-inline bool operator==(FPCR lhs, FPCR rhs) {
- return lhs.Value() == rhs.Value();
-}
-
-inline bool operator!=(FPCR lhs, FPCR rhs) {
- return !operator==(lhs, rhs);
-}
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/fpsr.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/fpsr.h
deleted file mode 100644
index fba58ebb..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/fpsr.h
+++ /dev/null
@@ -1,160 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::FP {
-
-/**
- * Representation of the Floating-Point Status Register.
- */
-class FPSR final {
-public:
- FPSR() = default;
- FPSR(const FPSR&) = default;
- FPSR(FPSR&&) = default;
- explicit FPSR(u32 data)
- : value{data & mask} {}
-
- FPSR& operator=(const FPSR&) = default;
- FPSR& operator=(FPSR&&) = default;
- FPSR& operator=(u32 data) {
- value = data & mask;
- return *this;
- }
-
- /// Get negative condition flag
- bool N() const {
- return mcl::bit::get_bit<31>(value);
- }
-
- /// Set negative condition flag
- void N(bool N_) {
- value = mcl::bit::set_bit<31>(value, N_);
- }
-
- /// Get zero condition flag
- bool Z() const {
- return mcl::bit::get_bit<30>(value);
- }
-
- /// Set zero condition flag
- void Z(bool Z_) {
- value = mcl::bit::set_bit<30>(value, Z_);
- }
-
- /// Get carry condition flag
- bool C() const {
- return mcl::bit::get_bit<29>(value);
- }
-
- /// Set carry condition flag
- void C(bool C_) {
- value = mcl::bit::set_bit<29>(value, C_);
- }
-
- /// Get overflow condition flag
- bool V() const {
- return mcl::bit::get_bit<28>(value);
- }
-
- /// Set overflow condition flag
- void V(bool V_) {
- value = mcl::bit::set_bit<28>(value, V_);
- }
-
- /// Get cumulative saturation bit
- bool QC() const {
- return mcl::bit::get_bit<27>(value);
- }
-
- /// Set cumulative saturation bit
- void QC(bool QC_) {
- value = mcl::bit::set_bit<27>(value, QC_);
- }
-
- /// Get input denormal floating-point exception bit
- bool IDC() const {
- return mcl::bit::get_bit<7>(value);
- }
-
- /// Set input denormal floating-point exception bit
- void IDC(bool IDC_) {
- value = mcl::bit::set_bit<7>(value, IDC_);
- }
-
- /// Get inexact cumulative floating-point exception bit
- bool IXC() const {
- return mcl::bit::get_bit<4>(value);
- }
-
- /// Set inexact cumulative floating-point exception bit
- void IXC(bool IXC_) {
- value = mcl::bit::set_bit<4>(value, IXC_);
- }
-
- /// Get underflow cumulative floating-point exception bit
- bool UFC() const {
- return mcl::bit::get_bit<3>(value);
- }
-
- /// Set underflow cumulative floating-point exception bit
- void UFC(bool UFC_) {
- value = mcl::bit::set_bit<3>(value, UFC_);
- }
-
- /// Get overflow cumulative floating-point exception bit
- bool OFC() const {
- return mcl::bit::get_bit<2>(value);
- }
-
- /// Set overflow cumulative floating-point exception bit
- void OFC(bool OFC_) {
- value = mcl::bit::set_bit<2>(value, OFC_);
- }
-
- /// Get divide by zero cumulative floating-point exception bit
- bool DZC() const {
- return mcl::bit::get_bit<1>(value);
- }
-
- /// Set divide by zero cumulative floating-point exception bit
- void DZC(bool DZC_) {
- value = mcl::bit::set_bit<1>(value, DZC_);
- }
-
- /// Get invalid operation cumulative floating-point exception bit
- bool IOC() const {
- return mcl::bit::get_bit<0>(value);
- }
-
- /// Set invalid operation cumulative floating-point exception bit
- void IOC(bool IOC_) {
- value = mcl::bit::set_bit<0>(value, IOC_);
- }
-
- /// Gets the underlying raw value within the FPSR.
- u32 Value() const {
- return value;
- }
-
-private:
- // Bits 5-6 and 8-26 are reserved.
- static constexpr u32 mask = 0xF800009F;
- u32 value = 0;
-};
-
-inline bool operator==(FPSR lhs, FPSR rhs) {
- return lhs.Value() == rhs.Value();
-}
-
-inline bool operator!=(FPSR lhs, FPSR rhs) {
- return !operator==(lhs, rhs);
-}
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/fused.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/fused.h
deleted file mode 100644
index 0ffa2683..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/fused.h
+++ /dev/null
@@ -1,15 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-struct FPUnpacked;
-
-/// This function assumes all arguments have been normalized.
-FPUnpacked FusedMulAdd(FPUnpacked addend, FPUnpacked op1, FPUnpacked op2);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/info.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/info.h
deleted file mode 100644
index 8cc2d29d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/info.h
+++ /dev/null
@@ -1,138 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/bit/bit_count.hpp>
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::FP {
-
-template<typename FPT>
-struct FPInfo {};
-
-template<>
-struct FPInfo<u16> {
- static constexpr size_t total_width = 16;
- static constexpr size_t exponent_width = 5;
- static constexpr size_t explicit_mantissa_width = 10;
- static constexpr size_t mantissa_width = explicit_mantissa_width + 1;
-
- static constexpr u32 implicit_leading_bit = u32(1) << explicit_mantissa_width;
- static constexpr u32 sign_mask = 0x8000;
- static constexpr u32 exponent_mask = 0x7C00;
- static constexpr u32 mantissa_mask = 0x3FF;
- static constexpr u32 mantissa_msb = 0x200;
-
- static constexpr int exponent_min = -14;
- static constexpr int exponent_max = 15;
- static constexpr int exponent_bias = 15;
-
- static constexpr u16 Zero(bool sign) {
- return sign ? static_cast<u16>(sign_mask) : u16{0};
- }
-
- static constexpr u16 Infinity(bool sign) {
- return static_cast<u16>(exponent_mask | Zero(sign));
- }
-
- static constexpr u16 MaxNormal(bool sign) {
- return static_cast<u16>((exponent_mask - 1) | Zero(sign));
- }
-
- static constexpr u16 DefaultNaN() {
- return static_cast<u16>(exponent_mask | (u32(1) << (explicit_mantissa_width - 1)));
- }
-};
-
-template<>
-struct FPInfo<u32> {
- static constexpr size_t total_width = 32;
- static constexpr size_t exponent_width = 8;
- static constexpr size_t explicit_mantissa_width = 23;
- static constexpr size_t mantissa_width = explicit_mantissa_width + 1;
-
- static constexpr u32 implicit_leading_bit = u32(1) << explicit_mantissa_width;
- static constexpr u32 sign_mask = 0x80000000;
- static constexpr u32 exponent_mask = 0x7F800000;
- static constexpr u32 mantissa_mask = 0x007FFFFF;
- static constexpr u32 mantissa_msb = 0x00400000;
-
- static constexpr int exponent_min = -126;
- static constexpr int exponent_max = 127;
- static constexpr int exponent_bias = 127;
-
- static constexpr u32 Zero(bool sign) {
- return sign ? sign_mask : 0;
- }
-
- static constexpr u32 Infinity(bool sign) {
- return exponent_mask | Zero(sign);
- }
-
- static constexpr u32 MaxNormal(bool sign) {
- return (exponent_mask - 1) | Zero(sign);
- }
-
- static constexpr u32 DefaultNaN() {
- return exponent_mask | (u32(1) << (explicit_mantissa_width - 1));
- }
-};
-
-template<>
-struct FPInfo<u64> {
- static constexpr size_t total_width = 64;
- static constexpr size_t exponent_width = 11;
- static constexpr size_t explicit_mantissa_width = 52;
- static constexpr size_t mantissa_width = explicit_mantissa_width + 1;
-
- static constexpr u64 implicit_leading_bit = u64(1) << explicit_mantissa_width;
- static constexpr u64 sign_mask = 0x8000'0000'0000'0000;
- static constexpr u64 exponent_mask = 0x7FF0'0000'0000'0000;
- static constexpr u64 mantissa_mask = 0x000F'FFFF'FFFF'FFFF;
- static constexpr u64 mantissa_msb = 0x0008'0000'0000'0000;
-
- static constexpr int exponent_min = -1022;
- static constexpr int exponent_max = 1023;
- static constexpr int exponent_bias = 1023;
-
- static constexpr u64 Zero(bool sign) {
- return sign ? sign_mask : 0;
- }
-
- static constexpr u64 Infinity(bool sign) {
- return exponent_mask | Zero(sign);
- }
-
- static constexpr u64 MaxNormal(bool sign) {
- return (exponent_mask - 1) | Zero(sign);
- }
-
- static constexpr u64 DefaultNaN() {
- return exponent_mask | (u64(1) << (explicit_mantissa_width - 1));
- }
-};
-
-/// value = (sign ? -1 : +1) * 2^exponent * value
-/// @note We do not handle denormals. Denormals will static_assert.
-template<typename FPT, bool sign, int exponent, FPT value>
-constexpr FPT FPValue() {
- if constexpr (value == 0) {
- return FPInfo<FPT>::Zero(sign);
- }
-
- constexpr int point_position = static_cast<int>(FPInfo<FPT>::explicit_mantissa_width);
- constexpr int highest_bit = mcl::bit::highest_set_bit(value);
- constexpr int offset = point_position - highest_bit;
- constexpr int normalized_exponent = exponent - offset + point_position;
- static_assert(offset >= 0);
- static_assert(normalized_exponent >= FPInfo<FPT>::exponent_min && normalized_exponent <= FPInfo<FPT>::exponent_max);
-
- constexpr FPT mantissa = (value << offset) & FPInfo<FPT>::mantissa_mask;
- constexpr FPT biased_exponent = static_cast<FPT>(normalized_exponent + FPInfo<FPT>::exponent_bias);
- return FPT(FPInfo<FPT>::Zero(sign) | mantissa | (biased_exponent << FPInfo<FPT>::explicit_mantissa_width));
-}
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/mantissa_util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/mantissa_util.h
deleted file mode 100644
index 31be52f7..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/mantissa_util.h
+++ /dev/null
@@ -1,47 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/bitsizeof.hpp>
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::FP {
-
-enum class ResidualError {
- Zero,
- LessThanHalf,
- Half,
- GreaterThanHalf,
-};
-
-inline ResidualError ResidualErrorOnRightShift(u64 mantissa, int shift_amount) {
- if (shift_amount <= 0 || mantissa == 0) {
- return ResidualError::Zero;
- }
-
- if (shift_amount > static_cast<int>(mcl::bitsizeof<u64>)) {
- return mcl::bit::most_significant_bit(mantissa) ? ResidualError::GreaterThanHalf : ResidualError::LessThanHalf;
- }
-
- const size_t half_bit_position = static_cast<size_t>(shift_amount - 1);
- const u64 half = static_cast<u64>(1) << half_bit_position;
- const u64 error_mask = mcl::bit::ones<u64>(static_cast<size_t>(shift_amount));
- const u64 error = mantissa & error_mask;
-
- if (error == 0) {
- return ResidualError::Zero;
- }
- if (error < half) {
- return ResidualError::LessThanHalf;
- }
- if (error == half) {
- return ResidualError::Half;
- }
- return ResidualError::GreaterThanHalf;
-}
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op.h
deleted file mode 100644
index b30ff39c..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include "dynarmic/common/fp/op/FPCompare.h"
-#include "dynarmic/common/fp/op/FPConvert.h"
-#include "dynarmic/common/fp/op/FPMulAdd.h"
-#include "dynarmic/common/fp/op/FPRSqrtEstimate.h"
-#include "dynarmic/common/fp/op/FPRSqrtStepFused.h"
-#include "dynarmic/common/fp/op/FPRecipEstimate.h"
-#include "dynarmic/common/fp/op/FPRecipExponent.h"
-#include "dynarmic/common/fp/op/FPRecipStepFused.h"
-#include "dynarmic/common/fp/op/FPRoundInt.h"
-#include "dynarmic/common/fp/op/FPToFixed.h"
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPCompare.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPCompare.h
deleted file mode 100644
index e0d5ca03..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPCompare.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2019 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-template<typename FPT>
-bool FPCompareEQ(FPT lhs, FPT rhs, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPConvert.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPConvert.h
deleted file mode 100644
index 0fea22e4..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPConvert.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2019 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-enum class RoundingMode;
-
-template<typename FPT_TO, typename FPT_FROM>
-FPT_TO FPConvert(FPT_FROM op, FPCR fpcr, RoundingMode rounding_mode, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPMulAdd.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPMulAdd.h
deleted file mode 100644
index 8e0a16cd..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPMulAdd.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-template<typename FPT>
-FPT FPMulAdd(FPT addend, FPT op1, FPT op2, FPCR fpcr, FPSR& fpsr);
-
-template<typename FPT>
-FPT FPMulSub(FPT minuend, FPT op1, FPT op2, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPNeg.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPNeg.h
deleted file mode 100644
index 4f172a59..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPNeg.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include "dynarmic/common/fp/info.h"
-
-namespace Dynarmic::FP {
-
-template<typename FPT>
-constexpr FPT FPNeg(FPT op) {
- return op ^ FPInfo<FPT>::sign_mask;
-}
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPRSqrtEstimate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPRSqrtEstimate.h
deleted file mode 100644
index f51be1e8..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPRSqrtEstimate.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-template<typename FPT>
-FPT FPRSqrtEstimate(FPT op, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPRSqrtStepFused.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPRSqrtStepFused.h
deleted file mode 100644
index 384a7592..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPRSqrtStepFused.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-template<typename FPT>
-FPT FPRSqrtStepFused(FPT op1, FPT op2, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPRecipEstimate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPRecipEstimate.h
deleted file mode 100644
index eaf6fee5..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPRecipEstimate.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-template<typename FPT>
-FPT FPRecipEstimate(FPT op, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPRecipExponent.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPRecipExponent.h
deleted file mode 100644
index 63ff3530..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPRecipExponent.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2019 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-template<typename FPT>
-FPT FPRecipExponent(FPT op, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPRecipStepFused.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPRecipStepFused.h
deleted file mode 100644
index abe447b5..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPRecipStepFused.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-template<typename FPT>
-FPT FPRecipStepFused(FPT op1, FPT op2, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPRoundInt.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPRoundInt.h
deleted file mode 100644
index e326627c..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPRoundInt.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-enum class RoundingMode;
-
-template<typename FPT>
-u64 FPRoundInt(FPT op, FPCR fpcr, RoundingMode rounding, bool exact, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPToFixed.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPToFixed.h
deleted file mode 100644
index 53a95283..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/op/FPToFixed.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-enum class RoundingMode;
-
-template<typename FPT>
-u64 FPToFixed(size_t ibits, FPT op, size_t fbits, bool unsigned_, FPCR fpcr, RoundingMode rounding, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/process_exception.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/process_exception.h
deleted file mode 100644
index 436a9daa..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/process_exception.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-
-enum class FPExc {
- InvalidOp,
- DivideByZero,
- Overflow,
- Underflow,
- Inexact,
- InputDenorm,
-};
-
-void FPProcessException(FPExc exception, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/process_nan.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/process_nan.h
deleted file mode 100644
index 331b7943..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/process_nan.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-
-namespace Dynarmic::FP {
-
-class FPCR;
-class FPSR;
-enum class FPType;
-
-template<typename FPT>
-FPT FPProcessNaN(FPType type, FPT op, FPCR fpcr, FPSR& fpsr);
-
-template<typename FPT>
-std::optional<FPT> FPProcessNaNs(FPType type1, FPType type2, FPT op1, FPT op2, FPCR fpcr, FPSR& fpsr);
-
-template<typename FPT>
-std::optional<FPT> FPProcessNaNs3(FPType type1, FPType type2, FPType type3, FPT op1, FPT op2, FPT op3, FPCR fpcr, FPSR& fpsr);
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/rounding_mode.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/rounding_mode.h
deleted file mode 100644
index fcf36f61..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/rounding_mode.h
+++ /dev/null
@@ -1,27 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::FP {
-
-/// Ordering of first four values is important as they correspond to bits in FPCR.
-enum class RoundingMode {
- /// Round to nearest floating point. If there is a tie, round to nearest even digit in required position.
- ToNearest_TieEven,
- /// Round up towards positive infinity.
- TowardsPlusInfinity,
- /// Round downwards towards negative infinity.
- TowardsMinusInfinity,
- /// Truncate towards zero.
- TowardsZero,
- /// Round to nearest floating point. If there is a tie, round away from zero.
- ToNearest_TieAwayFromZero,
- /// Von Neumann rounding (as modified by Brent). Also known as sticky rounding.
- /// Set the least significant bit to 1 if the result is not exact.
- ToOdd,
-};
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/unpacked.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/unpacked.h
deleted file mode 100644
index 77f33d89..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/unpacked.h
+++ /dev/null
@@ -1,90 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <tuple>
-
-#include <mcl/bit/bit_count.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/common/fp/fpcr.h"
-
-namespace Dynarmic::FP {
-
-class FPSR;
-enum class RoundingMode;
-
-enum class FPType {
- Nonzero,
- Zero,
- Infinity,
- QNaN,
- SNaN,
-};
-
-constexpr size_t normalized_point_position = 62;
-
-/// value = (sign ? -1 : +1) * mantissa/(2^62) * 2^exponent
-/// 63rd bit of mantissa is always set (unless value is zero)
-struct FPUnpacked {
- bool sign;
- int exponent;
- u64 mantissa;
-};
-
-inline bool operator==(const FPUnpacked& a, const FPUnpacked& b) {
- return std::tie(a.sign, a.exponent, a.mantissa) == std::tie(b.sign, b.exponent, b.mantissa);
-}
-
-/// return value = (sign ? -1 : +1) * value * 2^exponent
-constexpr FPUnpacked ToNormalized(bool sign, int exponent, u64 value) {
- if (value == 0) {
- return {sign, 0, 0};
- }
-
- const int highest_bit = mcl::bit::highest_set_bit(value);
- const int offset = static_cast<int>(normalized_point_position) - highest_bit;
- value <<= offset;
- exponent -= offset - static_cast<int>(normalized_point_position);
- return {sign, exponent, value};
-}
-
-template<typename FPT>
-std::tuple<FPType, bool, FPUnpacked> FPUnpackBase(FPT op, FPCR fpcr, FPSR& fpsr);
-
-template<typename FPT>
-std::tuple<FPType, bool, FPUnpacked> FPUnpack(FPT op, FPCR fpcr, FPSR& fpsr) {
- fpcr.AHP(false);
- return FPUnpackBase(op, fpcr, fpsr);
-}
-
-template<typename FPT>
-std::tuple<FPType, bool, FPUnpacked> FPUnpackCV(FPT op, FPCR fpcr, FPSR& fpsr) {
- fpcr.FZ16(false);
- return FPUnpackBase(op, fpcr, fpsr);
-}
-
-template<typename FPT>
-FPT FPRoundBase(FPUnpacked op, FPCR fpcr, RoundingMode rounding, FPSR& fpsr);
-
-template<typename FPT>
-FPT FPRound(FPUnpacked op, FPCR fpcr, RoundingMode rounding, FPSR& fpsr) {
- fpcr.AHP(false);
- return FPRoundBase<FPT>(op, fpcr, rounding, fpsr);
-}
-
-template<typename FPT>
-FPT FPRoundCV(FPUnpacked op, FPCR fpcr, RoundingMode rounding, FPSR& fpsr) {
- fpcr.FZ16(false);
- return FPRoundBase<FPT>(op, fpcr, rounding, fpsr);
-}
-
-template<typename FPT>
-FPT FPRound(FPUnpacked op, FPCR fpcr, FPSR& fpsr) {
- return FPRound<FPT>(op, fpcr, fpcr.RMode(), fpsr);
-}
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/util.h
deleted file mode 100644
index fda34e3e..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/fp/util.h
+++ /dev/null
@@ -1,99 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-
-#include "dynarmic/common/fp/fpcr.h"
-#include "dynarmic/common/fp/info.h"
-
-namespace Dynarmic::FP {
-
-/// Is floating point value a zero?
-template<typename FPT>
-inline bool IsZero(FPT value, FPCR fpcr) {
- if (fpcr.FZ()) {
- return (value & FPInfo<FPT>::exponent_mask) == 0;
- }
- return (value & ~FPInfo<FPT>::sign_mask) == 0;
-}
-
-/// Is floating point value an infinity?
-template<typename FPT>
-constexpr bool IsInf(FPT value) {
- return (value & ~FPInfo<FPT>::sign_mask) == FPInfo<FPT>::Infinity(false);
-}
-
-/// Is floating point value a QNaN?
-template<typename FPT>
-constexpr bool IsQNaN(FPT value) {
- constexpr FPT qnan_bits = FPInfo<FPT>::exponent_mask | FPInfo<FPT>::mantissa_msb;
- return (value & qnan_bits) == qnan_bits;
-}
-
-/// Is floating point value a SNaN?
-template<typename FPT>
-constexpr bool IsSNaN(FPT value) {
- constexpr FPT qnan_bits = FPInfo<FPT>::exponent_mask | FPInfo<FPT>::mantissa_msb;
- constexpr FPT snan_bits = FPInfo<FPT>::exponent_mask;
- return (value & qnan_bits) == snan_bits && (value & FPInfo<FPT>::mantissa_mask) != 0;
-}
-
-/// Is floating point value a NaN?
-template<typename FPT>
-constexpr bool IsNaN(FPT value) {
- return IsQNaN(value) || IsSNaN(value);
-}
-
-/// Given a single argument, return the NaN value which would be returned by an ARM processor.
-/// If the argument isn't a NaN, returns std::nullopt.
-template<typename FPT>
-constexpr std::optional<FPT> ProcessNaNs(FPT a) {
- if (IsSNaN(a)) {
- return a | FPInfo<FPT>::mantissa_msb;
- } else if (IsQNaN(a)) {
- return a;
- }
- return std::nullopt;
-}
-
-/// Given a pair of arguments, return the NaN value which would be returned by an ARM processor.
-/// If neither argument is a NaN, returns std::nullopt.
-template<typename FPT>
-constexpr std::optional<FPT> ProcessNaNs(FPT a, FPT b) {
- if (IsSNaN(a)) {
- return a | FPInfo<FPT>::mantissa_msb;
- } else if (IsSNaN(b)) {
- return b | FPInfo<FPT>::mantissa_msb;
- } else if (IsQNaN(a)) {
- return a;
- } else if (IsQNaN(b)) {
- return b;
- }
- return std::nullopt;
-}
-
-/// Given three arguments, return the NaN value which would be returned by an ARM processor.
-/// If none of the arguments is a NaN, returns std::nullopt.
-template<typename FPT>
-constexpr std::optional<FPT> ProcessNaNs(FPT a, FPT b, FPT c) {
- if (IsSNaN(a)) {
- return a | FPInfo<FPT>::mantissa_msb;
- } else if (IsSNaN(b)) {
- return b | FPInfo<FPT>::mantissa_msb;
- } else if (IsSNaN(c)) {
- return c | FPInfo<FPT>::mantissa_msb;
- } else if (IsQNaN(a)) {
- return a;
- } else if (IsQNaN(b)) {
- return b;
- } else if (IsQNaN(c)) {
- return c;
- }
- return std::nullopt;
-}
-
-} // namespace Dynarmic::FP
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/llvm_disassemble.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/llvm_disassemble.h
deleted file mode 100644
index 56de791a..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/llvm_disassemble.h
+++ /dev/null
@@ -1,18 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Common {
-
-std::string DisassembleX64(const void* pos, const void* end);
-std::string DisassembleAArch32(bool is_thumb, u32 pc, const u8* instructions, size_t length);
-std::string DisassembleAArch64(u32 instruction, u64 pc = 0);
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/lut_from_list.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/lut_from_list.h
deleted file mode 100644
index ed9e3dc0..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/lut_from_list.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <initializer_list>
-#include <map>
-#include <type_traits>
-
-#include <mcl/mp/metafunction/apply.hpp>
-#include <mcl/mp/typelist/list.hpp>
-#include <mcl/type_traits/is_instance_of_template.hpp>
-
-#ifdef _MSC_VER
-# include <mcl/mp/typelist/head.hpp>
-#endif
-
-namespace Dynarmic::Common {
-
-template<typename Function, typename... Values>
-inline auto GenerateLookupTableFromList(Function f, mcl::mp::list<Values...>) {
-#ifdef _MSC_VER
- using PairT = std::invoke_result_t<Function, mcl::mp::head<mcl::mp::list<Values...>>>;
-#else
- using PairT = std::common_type_t<std::invoke_result_t<Function, Values>...>;
-#endif
- using MapT = mcl::mp::apply<std::map, PairT>;
-
- static_assert(mcl::is_instance_of_template_v<std::pair, PairT>);
-
- const std::initializer_list<PairT> pair_array{f(Values{})...};
- return MapT(pair_array.begin(), pair_array.end());
-}
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/math_util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/math_util.h
deleted file mode 100644
index 5c1f784c..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/math_util.h
+++ /dev/null
@@ -1,47 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <utility>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Common {
-
-/**
- * This function is a workaround for a bug in MSVC 19.12 where fold expressions
- * do not work when the /permissive- flag is enabled.
- */
-template<typename T, typename... Ts>
-constexpr T Sum(T first, Ts&&... rest) {
- if constexpr (sizeof...(rest) == 0) {
- return first;
- } else {
- return first + Sum(std::forward<Ts>(rest)...);
- }
-}
-
-/**
- * Input is a u0.9 fixed point number. Only values in [0.5, 1.0) are valid.
- * Output is a u0.8 fixed point number, with an implied 1 prefixed.
- * i.e.: The output is a value in [1.0, 2.0).
- *
- * @see RecipEstimate() within the ARMv8 architecture reference manual
- * for a general overview of the requirements of the algorithm.
- */
-u8 RecipEstimate(u64 a);
-
-/**
- * Input is a u0.9 fixed point number. Only values in [0.25, 1.0) are valid.
- * Output is a u0.8 fixed point number, with an implied 1 prefixed.
- * i.e.: The output is a value in [1.0, 2.0).
- *
- * @see RecipSqrtEstimate() within the ARMv8 architecture reference manual
- * for a general overview of the requirements of the algorithm.
- */
-u8 RecipSqrtEstimate(u64 a);
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/memory_pool.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/memory_pool.h
deleted file mode 100644
index 1cbdd909..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/memory_pool.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstddef>
-#include <vector>
-
-namespace Dynarmic::Common {
-
-class Pool {
-public:
- /**
- * @param object_size Byte-size of objects to construct
- * @param initial_pool_size Number of objects to have per slab
- */
- Pool(size_t object_size, size_t initial_pool_size);
- ~Pool();
-
- Pool(const Pool&) = delete;
- Pool(Pool&&) = delete;
-
- Pool& operator=(const Pool&) = delete;
- Pool& operator=(Pool&&) = delete;
-
- /// Returns a pointer to an `object_size`-bytes block of memory.
- void* Alloc();
-
-private:
- // Allocates a completely new memory slab.
- // Used when an entirely new slab is needed
- // due the current one running out of usable space.
- void AllocateNewSlab();
-
- size_t object_size;
- size_t slab_size;
- char* current_slab;
- char* current_ptr;
- size_t remaining;
- std::vector<char*> slabs;
-};
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/safe_ops.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/safe_ops.h
deleted file mode 100644
index aef31347..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/safe_ops.h
+++ /dev/null
@@ -1,115 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <type_traits>
-
-#include <mcl/bitsizeof.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/common/u128.h"
-
-namespace Dynarmic::Safe {
-
-template<typename T>
-T LogicalShiftLeft(T value, int shift_amount);
-template<typename T>
-T LogicalShiftRight(T value, int shift_amount);
-template<typename T>
-T ArithmeticShiftLeft(T value, int shift_amount);
-template<typename T>
-T ArithmeticShiftRight(T value, int shift_amount);
-
-template<typename T>
-T LogicalShiftLeft(T value, int shift_amount) {
- static_assert(std::is_integral_v<T>);
-
- if (shift_amount >= static_cast<int>(mcl::bitsizeof<T>)) {
- return 0;
- }
-
- if (shift_amount < 0) {
- return LogicalShiftRight(value, -shift_amount);
- }
-
- auto unsigned_value = static_cast<std::make_unsigned_t<T>>(value);
- return static_cast<T>(unsigned_value << shift_amount);
-}
-
-template<>
-inline u128 LogicalShiftLeft(u128 value, int shift_amount) {
- return value << shift_amount;
-}
-
-template<typename T>
-T LogicalShiftRight(T value, int shift_amount) {
- static_assert(std::is_integral_v<T>);
-
- if (shift_amount >= static_cast<int>(mcl::bitsizeof<T>)) {
- return 0;
- }
-
- if (shift_amount < 0) {
- return LogicalShiftLeft(value, -shift_amount);
- }
-
- auto unsigned_value = static_cast<std::make_unsigned_t<T>>(value);
- return static_cast<T>(unsigned_value >> shift_amount);
-}
-
-template<>
-inline u128 LogicalShiftRight(u128 value, int shift_amount) {
- return value >> shift_amount;
-}
-
-template<typename T>
-T LogicalShiftRightDouble(T top, T bottom, int shift_amount) {
- return LogicalShiftLeft(top, int(mcl::bitsizeof<T>) - shift_amount) | LogicalShiftRight(bottom, shift_amount);
-}
-
-template<typename T>
-T ArithmeticShiftLeft(T value, int shift_amount) {
- static_assert(std::is_integral_v<T>);
-
- if (shift_amount >= static_cast<int>(mcl::bitsizeof<T>)) {
- return 0;
- }
-
- if (shift_amount < 0) {
- return ArithmeticShiftRight(value, -shift_amount);
- }
-
- auto unsigned_value = static_cast<std::make_unsigned_t<T>>(value);
- return static_cast<T>(unsigned_value << shift_amount);
-}
-
-template<typename T>
-T ArithmeticShiftRight(T value, int shift_amount) {
- static_assert(std::is_integral_v<T>);
-
- if (shift_amount >= static_cast<int>(mcl::bitsizeof<T>)) {
- return mcl::bit::most_significant_bit(value) ? ~static_cast<T>(0) : 0;
- }
-
- if (shift_amount < 0) {
- return ArithmeticShiftLeft(value, -shift_amount);
- }
-
- auto signed_value = static_cast<std::make_signed_t<T>>(value);
- return static_cast<T>(signed_value >> shift_amount);
-}
-
-template<typename T>
-T ArithmeticShiftRightDouble(T top, T bottom, int shift_amount) {
- return ArithmeticShiftLeft(top, int(mcl::bitsizeof<T>) - shift_amount) | LogicalShiftRight(bottom, shift_amount);
-}
-
-template<typename T>
-T Negate(T value) {
- return static_cast<T>(~static_cast<std::uintmax_t>(value) + 1);
-}
-
-} // namespace Dynarmic::Safe
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/spin_lock.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/spin_lock.h
deleted file mode 100644
index f653704d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/spin_lock.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic {
-
-struct SpinLock {
- void Lock();
- void Unlock();
-
- volatile int storage = 0;
-};
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/spin_lock_arm64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/spin_lock_arm64.h
deleted file mode 100644
index c0a86bfe..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/spin_lock_arm64.h
+++ /dev/null
@@ -1,15 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <oaknut/oaknut.hpp>
-
-namespace Dynarmic {
-
-void EmitSpinLockLock(oaknut::CodeGenerator& code, oaknut::XReg ptr);
-void EmitSpinLockUnlock(oaknut::CodeGenerator& code, oaknut::XReg ptr);
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/spin_lock_x64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/spin_lock_x64.h
deleted file mode 100644
index df6a3d74..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/spin_lock_x64.h
+++ /dev/null
@@ -1,15 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <xbyak/xbyak.h>
-
-namespace Dynarmic {
-
-void EmitSpinLockLock(Xbyak::CodeGenerator& code, Xbyak::Reg64 ptr, Xbyak::Reg32 tmp);
-void EmitSpinLockUnlock(Xbyak::CodeGenerator& code, Xbyak::Reg64 ptr, Xbyak::Reg32 tmp);
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/string_util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/string_util.h
deleted file mode 100644
index 900b3aad..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/string_util.h
+++ /dev/null
@@ -1,15 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::Common {
-
-template<typename T>
-constexpr char SignToChar(T value) {
- return value >= 0 ? '+' : '-';
-}
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/u128.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/u128.h
deleted file mode 100644
index f6df1ae6..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/u128.h
+++ /dev/null
@@ -1,99 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <tuple>
-#include <type_traits>
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/bitsizeof.hpp>
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic {
-
-struct u128 {
- u128() = default;
- u128(const u128&) = default;
- u128(u128&&) = default;
- u128& operator=(const u128&) = default;
- u128& operator=(u128&&) = default;
-
- u128(u64 lower_, u64 upper_)
- : lower(lower_), upper(upper_) {}
-
- template<typename T>
- /* implicit */ u128(T value)
- : lower(value), upper(0) {
- static_assert(std::is_integral_v<T>);
- static_assert(mcl::bitsizeof<T> <= mcl::bitsizeof<u64>);
- }
-
- u64 lower = 0;
- u64 upper = 0;
-
- template<size_t bit_position>
- bool Bit() const {
- static_assert(bit_position < 128);
- if constexpr (bit_position < 64) {
- return mcl::bit::get_bit<bit_position>(lower);
- } else {
- return mcl::bit::get_bit<bit_position - 64>(upper);
- }
- }
-};
-
-static_assert(mcl::bitsizeof<u128> == 128);
-static_assert(std::is_standard_layout_v<u128>);
-static_assert(std::is_trivially_copyable_v<u128>);
-
-u128 Multiply64To128(u64 a, u64 b);
-
-inline u128 operator+(u128 a, u128 b) {
- u128 result;
- result.lower = a.lower + b.lower;
- result.upper = a.upper + b.upper + (a.lower > result.lower);
- return result;
-}
-
-inline u128 operator-(u128 a, u128 b) {
- u128 result;
- result.lower = a.lower - b.lower;
- result.upper = a.upper - b.upper - (a.lower < result.lower);
- return result;
-}
-
-inline bool operator<(u128 a, u128 b) {
- return std::tie(a.upper, a.lower) < std::tie(b.upper, b.lower);
-}
-
-inline bool operator>(u128 a, u128 b) {
- return operator<(b, a);
-}
-
-inline bool operator<=(u128 a, u128 b) {
- return !operator>(a, b);
-}
-
-inline bool operator>=(u128 a, u128 b) {
- return !operator<(a, b);
-}
-
-inline bool operator==(u128 a, u128 b) {
- return std::tie(a.upper, a.lower) == std::tie(b.upper, b.lower);
-}
-
-inline bool operator!=(u128 a, u128 b) {
- return !operator==(a, b);
-}
-
-u128 operator<<(u128 operand, int amount);
-u128 operator>>(u128 operand, int amount);
-
-/// LSB is a "sticky-bit".
-/// If a 1 is shifted off, the LSB would be set.
-u128 StickyLogicalShiftRight(u128 operand, int amount);
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/variant_util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/variant_util.h
deleted file mode 100644
index 4dd7f671..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/variant_util.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <boost/variant.hpp>
-
-namespace Dynarmic::Common {
-namespace detail {
-
-template<typename ReturnT, typename Lambda>
-struct VariantVisitor : boost::static_visitor<ReturnT>
- , Lambda {
- VariantVisitor(Lambda&& lambda)
- : Lambda(std::move(lambda)) {}
-
- using Lambda::operator();
-};
-
-} // namespace detail
-
-template<typename ReturnT, typename Variant, typename Lambda>
-inline ReturnT VisitVariant(Variant&& variant, Lambda&& lambda) {
- return boost::apply_visitor(detail::VariantVisitor<ReturnT, Lambda>(std::move(lambda)), variant);
-}
-
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/x64_disassemble.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/x64_disassemble.h
deleted file mode 100644
index 03c511bf..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/common/x64_disassemble.h
+++ /dev/null
@@ -1,21 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2021 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string>
-#include <vector>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::Common {
-
-void DumpDisassembledX64(const void* ptr, size_t size);
-/**
- * Disassemble `size' bytes from `ptr' and return the disassembled lines as a vector
- * of strings.
- */
-std::vector<std::string> DisassembleX64(const void* ptr, size_t size);
-} // namespace Dynarmic::Common
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/FPSCR.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/FPSCR.h
deleted file mode 100644
index 28414e9f..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/FPSCR.h
+++ /dev/null
@@ -1,191 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/common/fp/rounding_mode.h"
-
-namespace Dynarmic::A32 {
-
-/**
- * Representation of the Floating-Point Status and Control Register.
- */
-class FPSCR final {
-public:
- FPSCR() = default;
- FPSCR(const FPSCR&) = default;
- FPSCR(FPSCR&&) = default;
- explicit FPSCR(u32 data)
- : value{data & mask} {}
-
- FPSCR& operator=(const FPSCR&) = default;
- FPSCR& operator=(FPSCR&&) = default;
- FPSCR& operator=(u32 data) {
- value = data & mask;
- return *this;
- }
-
- /// Negative condition flag.
- bool N() const {
- return mcl::bit::get_bit<31>(value);
- }
-
- /// Zero condition flag.
- bool Z() const {
- return mcl::bit::get_bit<30>(value);
- }
-
- /// Carry condition flag.
- bool C() const {
- return mcl::bit::get_bit<29>(value);
- }
-
- /// Overflow condition flag.
- bool V() const {
- return mcl::bit::get_bit<28>(value);
- }
-
- /// Cumulative saturation flag.
- bool QC() const {
- return mcl::bit::get_bit<27>(value);
- }
-
- /// Alternate half-precision control flag.
- bool AHP() const {
- return mcl::bit::get_bit<26>(value);
- }
-
- /// Default NaN mode control bit.
- bool DN() const {
- return mcl::bit::get_bit<25>(value);
- }
-
- /// Flush-to-zero mode control bit.
- bool FTZ() const {
- return mcl::bit::get_bit<24>(value);
- }
-
- /// Rounding mode control field.
- FP::RoundingMode RMode() const {
- return static_cast<FP::RoundingMode>(mcl::bit::get_bits<22, 23>(value));
- }
-
- /// Indicates the stride of a vector.
- std::optional<size_t> Stride() const {
- switch (mcl::bit::get_bits<20, 21>(value)) {
- case 0b00:
- return 1;
- case 0b11:
- return 2;
- default:
- return std::nullopt;
- }
- }
-
- /// Indicates the length of a vector.
- size_t Len() const {
- return mcl::bit::get_bits<16, 18>(value) + 1;
- }
-
- /// Input denormal exception trap enable flag.
- bool IDE() const {
- return mcl::bit::get_bit<15>(value);
- }
-
- /// Inexact exception trap enable flag.
- bool IXE() const {
- return mcl::bit::get_bit<12>(value);
- }
-
- /// Underflow exception trap enable flag.
- bool UFE() const {
- return mcl::bit::get_bit<11>(value);
- }
-
- /// Overflow exception trap enable flag.
- bool OFE() const {
- return mcl::bit::get_bit<10>(value);
- }
-
- /// Division by zero exception trap enable flag.
- bool DZE() const {
- return mcl::bit::get_bit<9>(value);
- }
-
- /// Invalid operation exception trap enable flag.
- bool IOE() const {
- return mcl::bit::get_bit<8>(value);
- }
-
- /// Input denormal cumulative exception bit.
- bool IDC() const {
- return mcl::bit::get_bit<7>(value);
- }
-
- /// Inexact cumulative exception bit.
- bool IXC() const {
- return mcl::bit::get_bit<4>(value);
- }
-
- /// Underflow cumulative exception bit.
- bool UFC() const {
- return mcl::bit::get_bit<3>(value);
- }
-
- /// Overflow cumulative exception bit.
- bool OFC() const {
- return mcl::bit::get_bit<2>(value);
- }
-
- /// Division by zero cumulative exception bit.
- bool DZC() const {
- return mcl::bit::get_bit<1>(value);
- }
-
- /// Invalid operation cumulative exception bit.
- bool IOC() const {
- return mcl::bit::get_bit<0>(value);
- }
-
- /**
- * Whether or not the FPSCR indicates RunFast mode.
- *
- * RunFast mode is enabled when:
- * - Flush-to-zero is enabled
- * - Default NaNs are enabled.
- * - All exception enable bits are cleared.
- */
- bool InRunFastMode() const {
- constexpr u32 runfast_mask = 0x03001F00;
- constexpr u32 expected = 0x03000000;
-
- return (value & runfast_mask) == expected;
- }
-
- /// Gets the underlying raw value within the FPSCR.
- u32 Value() const {
- return value;
- }
-
-private:
- // Bits 5-6, 13-14, and 19 are reserved.
- static constexpr u32 mask = 0xFFF79F9F;
- u32 value = 0;
-};
-
-inline bool operator==(FPSCR lhs, FPSCR rhs) {
- return lhs.Value() == rhs.Value();
-}
-
-inline bool operator!=(FPSCR lhs, FPSCR rhs) {
- return !operator==(lhs, rhs);
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/ITState.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/ITState.h
deleted file mode 100644
index ae69fa1e..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/ITState.h
+++ /dev/null
@@ -1,64 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2019 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/ir/cond.h"
-
-namespace Dynarmic::A32 {
-
-class ITState final {
-public:
- ITState() = default;
- explicit ITState(u8 data)
- : value(data) {}
-
- ITState& operator=(u8 data) {
- value = data;
- return *this;
- }
-
- IR::Cond Cond() const {
- if (value == 0b00000000) {
- return IR::Cond::AL;
- }
- return static_cast<IR::Cond>(mcl::bit::get_bits<4, 7>(value));
- }
-
- bool IsInITBlock() const {
- return mcl::bit::get_bits<0, 3>(value) != 0b0000;
- }
-
- bool IsLastInITBlock() const {
- return mcl::bit::get_bits<0, 3>(value) == 0b1000;
- }
-
- ITState Advance() const {
- if (mcl::bit::get_bits<0, 2>(value) == 0b000) {
- return ITState{0b00000000};
- }
- return ITState{mcl::bit::set_bits<0, 4>(value, static_cast<u8>(mcl::bit::get_bits<0, 4>(value) << 1))};
- }
-
- u8 Value() const {
- return value;
- }
-
-private:
- u8 value = 0;
-};
-
-inline bool operator==(ITState lhs, ITState rhs) {
- return lhs.Value() == rhs.Value();
-}
-
-inline bool operator!=(ITState lhs, ITState rhs) {
- return !operator==(lhs, rhs);
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/PSR.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/PSR.h
deleted file mode 100644
index 9af78eaa..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/PSR.h
+++ /dev/null
@@ -1,224 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/A32/ITState.h"
-
-namespace Dynarmic::A32 {
-
-/**
- * Program Status Register
- *
- * | Bit(s) | Description |
- * |:-------:|:----------------------------------------------|
- * | N | Negative |
- * | Z | Zero |
- * | C | Carry |
- * | V | Overflow |
- * | Q | Sticky overflow for DSP-oriented instructions |
- * | IT[1:0] | Lower two bits of the If-Then execution state |
- * | J | Jazelle bit |
- * | GE | Greater-than or Equal |
- * | IT[7:2] | Upper six bits of the If-Then execution state |
- * | E | Endian (0 is little endian, 1 is big endian) |
- * | A | Imprecise data abort (disables them when set) |
- * | I | IRQ interrupts (disabled when set) |
- * | F | FIQ interrupts (disabled when set) |
- * | T | Thumb bit |
- * | M | Current processor mode |
- */
-class PSR final {
-public:
- /// Valid processor modes that may be indicated.
- enum class Mode : u32 {
- User = 0b10000,
- FIQ = 0b10001,
- IRQ = 0b10010,
- Supervisor = 0b10011,
- Monitor = 0b10110,
- Abort = 0b10111,
- Hypervisor = 0b11010,
- Undefined = 0b11011,
- System = 0b11111
- };
-
- /// Instruction sets that may be signified through a PSR.
- enum class InstructionSet {
- ARM,
- Jazelle,
- Thumb,
- ThumbEE
- };
-
- PSR() = default;
- explicit PSR(u32 data)
- : value{data & mask} {}
-
- PSR& operator=(u32 data) {
- value = data & mask;
- return *this;
- }
-
- bool N() const {
- return mcl::bit::get_bit<31>(value);
- }
- void N(bool set) {
- value = mcl::bit::set_bit<31>(value, set);
- }
-
- bool Z() const {
- return mcl::bit::get_bit<30>(value);
- }
- void Z(bool set) {
- value = mcl::bit::set_bit<30>(value, set);
- }
-
- bool C() const {
- return mcl::bit::get_bit<29>(value);
- }
- void C(bool set) {
- value = mcl::bit::set_bit<29>(value, set);
- }
-
- bool V() const {
- return mcl::bit::get_bit<28>(value);
- }
- void V(bool set) {
- value = mcl::bit::set_bit<28>(value, set);
- }
-
- bool Q() const {
- return mcl::bit::get_bit<27>(value);
- }
- void Q(bool set) {
- value = mcl::bit::set_bit<27>(value, set);
- }
-
- bool J() const {
- return mcl::bit::get_bit<24>(value);
- }
- void J(bool set) {
- value = mcl::bit::set_bit<24>(value, set);
- }
-
- u32 GE() const {
- return mcl::bit::get_bits<16, 19>(value);
- }
- void GE(u32 data) {
- value = mcl::bit::set_bits<16, 19>(value, data);
- }
-
- ITState IT() const {
- return ITState{static_cast<u8>((value & 0x6000000) >> 25 | (value & 0xFC00) >> 8)};
- }
- void IT(ITState it_state) {
- const u32 data = it_state.Value();
- value = (value & ~0x000FC00) | (data & 0b11111100) << 8;
- value = (value & ~0x6000000) | (data & 0b00000011) << 25;
- }
-
- bool E() const {
- return mcl::bit::get_bit<9>(value);
- }
- void E(bool set) {
- value = mcl::bit::set_bit<9>(value, set);
- }
-
- bool A() const {
- return mcl::bit::get_bit<8>(value);
- }
- void A(bool set) {
- value = mcl::bit::set_bit<8>(value, set);
- }
-
- bool I() const {
- return mcl::bit::get_bit<7>(value);
- }
- void I(bool set) {
- value = mcl::bit::set_bit<7>(value, set);
- }
-
- bool F() const {
- return mcl::bit::get_bit<6>(value);
- }
- void F(bool set) {
- value = mcl::bit::set_bit<6>(value, set);
- }
-
- bool T() const {
- return mcl::bit::get_bit<5>(value);
- }
- void T(bool set) {
- value = mcl::bit::set_bit<5>(value, set);
- }
-
- Mode M() const {
- return static_cast<Mode>(mcl::bit::get_bits<0, 4>(value));
- }
- void M(Mode mode) {
- value = mcl::bit::set_bits<0, 4>(value, static_cast<u32>(mode));
- }
-
- u32 Value() const {
- return value;
- }
-
- InstructionSet CurrentInstructionSet() const {
- const bool j_bit = J();
- const bool t_bit = T();
-
- if (j_bit && t_bit)
- return InstructionSet::ThumbEE;
-
- if (t_bit)
- return InstructionSet::Thumb;
-
- if (j_bit)
- return InstructionSet::Jazelle;
-
- return InstructionSet::ARM;
- }
-
- void CurrentInstructionSet(InstructionSet instruction_set) {
- switch (instruction_set) {
- case InstructionSet::ARM:
- T(false);
- J(false);
- break;
- case InstructionSet::Jazelle:
- T(false);
- J(true);
- break;
- case InstructionSet::Thumb:
- T(true);
- J(false);
- break;
- case InstructionSet::ThumbEE:
- T(true);
- J(true);
- break;
- }
- }
-
-private:
- // Bits 20-23 are reserved and should be zero.
- static constexpr u32 mask = 0xFF0FFFFF;
-
- u32 value = 0;
-};
-
-inline bool operator==(PSR lhs, PSR rhs) {
- return lhs.Value() == rhs.Value();
-}
-
-inline bool operator!=(PSR lhs, PSR rhs) {
- return !operator==(lhs, rhs);
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/a32_ir_emitter.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/a32_ir_emitter.h
deleted file mode 100644
index 9fde4f87..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/a32_ir_emitter.h
+++ /dev/null
@@ -1,116 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <utility>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/A32/a32_location_descriptor.h"
-#include "dynarmic/ir/ir_emitter.h"
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::A32 {
-
-enum class ArchVersion;
-enum class CoprocReg;
-enum class Exception;
-enum class ExtReg;
-enum class Reg;
-
-/**
- * Convenience class to construct a basic block of the intermediate representation.
- * `block` is the resulting block.
- * The user of this class updates `current_location` as appropriate.
- */
-class IREmitter : public IR::IREmitter {
-public:
- IREmitter(IR::Block& block, LocationDescriptor descriptor, ArchVersion arch_version)
- : IR::IREmitter(block), current_location(descriptor), arch_version(arch_version) {}
-
- LocationDescriptor current_location;
-
- size_t ArchVersion() const;
-
- u32 PC() const;
- u32 AlignPC(size_t alignment) const;
-
- IR::U32 GetRegister(Reg source_reg);
- IR::U32U64 GetExtendedRegister(ExtReg source_reg);
- IR::U128 GetVector(ExtReg source_reg);
- void SetRegister(Reg dest_reg, const IR::U32& value);
- void SetExtendedRegister(ExtReg dest_reg, const IR::U32U64& value);
- void SetVector(ExtReg dest_reg, const IR::U128& value);
-
- void ALUWritePC(const IR::U32& value);
- void BranchWritePC(const IR::U32& value);
- void BXWritePC(const IR::U32& value);
- void LoadWritePC(const IR::U32& value);
- void UpdateUpperLocationDescriptor();
-
- void CallSupervisor(const IR::U32& value);
- void ExceptionRaised(Exception exception);
-
- IR::U32 GetCpsr();
- void SetCpsr(const IR::U32& value);
- void SetCpsrNZCV(const IR::NZCV& value);
- void SetCpsrNZCVRaw(const IR::U32& value);
- void SetCpsrNZCVQ(const IR::U32& value);
- void SetCheckBit(const IR::U1& value);
- IR::U1 GetOverflowFrom(const IR::Value& value);
- IR::U1 GetCFlag();
- void OrQFlag(const IR::U1& value);
- IR::U32 GetGEFlags();
- void SetGEFlags(const IR::U32& value);
- void SetGEFlagsCompressed(const IR::U32& value);
-
- IR::NZCV NZFrom(const IR::Value& value);
- void SetCpsrNZ(const IR::NZCV& nz);
- void SetCpsrNZC(const IR::NZCV& nz, const IR::U1& c);
-
- void DataSynchronizationBarrier();
- void DataMemoryBarrier();
- void InstructionSynchronizationBarrier();
-
- IR::U32 GetFpscr();
- void SetFpscr(const IR::U32& new_fpscr);
- IR::U32 GetFpscrNZCV();
- void SetFpscrNZCV(const IR::NZCV& new_fpscr_nzcv);
-
- void ClearExclusive();
- IR::UAny ReadMemory(size_t bitsize, const IR::U32& vaddr, IR::AccType acc_type);
- IR::U8 ReadMemory8(const IR::U32& vaddr, IR::AccType acc_type);
- IR::U16 ReadMemory16(const IR::U32& vaddr, IR::AccType acc_type);
- IR::U32 ReadMemory32(const IR::U32& vaddr, IR::AccType acc_type);
- IR::U64 ReadMemory64(const IR::U32& vaddr, IR::AccType acc_type);
- IR::U8 ExclusiveReadMemory8(const IR::U32& vaddr, IR::AccType acc_type);
- IR::U16 ExclusiveReadMemory16(const IR::U32& vaddr, IR::AccType acc_type);
- IR::U32 ExclusiveReadMemory32(const IR::U32& vaddr, IR::AccType acc_type);
- std::pair<IR::U32, IR::U32> ExclusiveReadMemory64(const IR::U32& vaddr, IR::AccType acc_type);
- void WriteMemory(size_t bitsize, const IR::U32& vaddr, const IR::UAny& value, IR::AccType acc_type);
- void WriteMemory8(const IR::U32& vaddr, const IR::U8& value, IR::AccType acc_type);
- void WriteMemory16(const IR::U32& vaddr, const IR::U16& value, IR::AccType acc_type);
- void WriteMemory32(const IR::U32& vaddr, const IR::U32& value, IR::AccType acc_type);
- void WriteMemory64(const IR::U32& vaddr, const IR::U64& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory8(const IR::U32& vaddr, const IR::U8& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory16(const IR::U32& vaddr, const IR::U16& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory32(const IR::U32& vaddr, const IR::U32& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory64(const IR::U32& vaddr, const IR::U32& value_lo, const IR::U32& value_hi, IR::AccType acc_type);
-
- void CoprocInternalOperation(size_t coproc_no, bool two, size_t opc1, CoprocReg CRd, CoprocReg CRn, CoprocReg CRm, size_t opc2);
- void CoprocSendOneWord(size_t coproc_no, bool two, size_t opc1, CoprocReg CRn, CoprocReg CRm, size_t opc2, const IR::U32& word);
- void CoprocSendTwoWords(size_t coproc_no, bool two, size_t opc, CoprocReg CRm, const IR::U32& word1, const IR::U32& word2);
- IR::U32 CoprocGetOneWord(size_t coproc_no, bool two, size_t opc1, CoprocReg CRn, CoprocReg CRm, size_t opc2);
- IR::U64 CoprocGetTwoWords(size_t coproc_no, bool two, size_t opc, CoprocReg CRm);
- void CoprocLoadWords(size_t coproc_no, bool two, bool long_transfer, CoprocReg CRd, const IR::U32& address, bool has_option, u8 option);
- void CoprocStoreWords(size_t coproc_no, bool two, bool long_transfer, CoprocReg CRd, const IR::U32& address, bool has_option, u8 option);
-
-private:
- enum ArchVersion arch_version;
- IR::U64 ImmCurrentLocationDescriptor();
-};
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/a32_location_descriptor.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/a32_location_descriptor.h
deleted file mode 100644
index c53e75d4..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/a32_location_descriptor.h
+++ /dev/null
@@ -1,162 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <functional>
-#include <string>
-#include <tuple>
-
-#include <fmt/format.h>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/A32/FPSCR.h"
-#include "dynarmic/frontend/A32/ITState.h"
-#include "dynarmic/frontend/A32/PSR.h"
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace Dynarmic::A32 {
-
-/**
- * LocationDescriptor describes the location of a basic block.
- * The location is not solely based on the PC because other flags influence the way
- * instructions should be translated. The CPSR.T flag is most notable since it
- * tells us if the processor is in Thumb or Arm mode.
- */
-class LocationDescriptor {
-public:
- // Indicates bits that should be preserved within descriptors.
- static constexpr u32 CPSR_MODE_MASK = 0x0600FE20;
- static constexpr u32 FPSCR_MODE_MASK = 0x07F70000;
-
- LocationDescriptor(u32 arm_pc, PSR cpsr, FPSCR fpscr, bool single_stepping = false)
- : arm_pc(arm_pc)
- , cpsr(cpsr.Value() & CPSR_MODE_MASK)
- , fpscr(fpscr.Value() & FPSCR_MODE_MASK)
- , single_stepping(single_stepping) {}
-
- explicit LocationDescriptor(const IR::LocationDescriptor& o) {
- arm_pc = static_cast<u32>(o.Value());
- cpsr.T((o.Value() >> 32) & 1);
- cpsr.E((o.Value() >> 32) & 2);
- fpscr = (o.Value() >> 32) & FPSCR_MODE_MASK;
- cpsr.IT(ITState{static_cast<u8>(o.Value() >> 40)});
- single_stepping = (o.Value() >> 32) & 4;
- }
-
- u32 PC() const { return arm_pc; }
- bool TFlag() const { return cpsr.T(); }
- bool EFlag() const { return cpsr.E(); }
- ITState IT() const { return cpsr.IT(); }
-
- A32::PSR CPSR() const { return cpsr; }
- A32::FPSCR FPSCR() const { return fpscr; }
-
- bool SingleStepping() const { return single_stepping; }
-
- bool operator==(const LocationDescriptor& o) const {
- return std::tie(arm_pc, cpsr, fpscr, single_stepping) == std::tie(o.arm_pc, o.cpsr, o.fpscr, o.single_stepping);
- }
-
- bool operator!=(const LocationDescriptor& o) const {
- return !operator==(o);
- }
-
- LocationDescriptor SetPC(u32 new_arm_pc) const {
- return LocationDescriptor(new_arm_pc, cpsr, fpscr, single_stepping);
- }
-
- LocationDescriptor AdvancePC(int amount) const {
- return LocationDescriptor(static_cast<u32>(arm_pc + amount), cpsr, fpscr, single_stepping);
- }
-
- LocationDescriptor SetTFlag(bool new_tflag) const {
- PSR new_cpsr = cpsr;
- new_cpsr.T(new_tflag);
-
- return LocationDescriptor(arm_pc, new_cpsr, fpscr, single_stepping);
- }
-
- LocationDescriptor SetEFlag(bool new_eflag) const {
- PSR new_cpsr = cpsr;
- new_cpsr.E(new_eflag);
-
- return LocationDescriptor(arm_pc, new_cpsr, fpscr, single_stepping);
- }
-
- LocationDescriptor SetFPSCR(u32 new_fpscr) const {
- return LocationDescriptor(arm_pc, cpsr, A32::FPSCR{new_fpscr & FPSCR_MODE_MASK}, single_stepping);
- }
-
- LocationDescriptor SetIT(ITState new_it) const {
- PSR new_cpsr = cpsr;
- new_cpsr.IT(new_it);
-
- return LocationDescriptor(arm_pc, new_cpsr, fpscr, single_stepping);
- }
-
- LocationDescriptor AdvanceIT() const {
- return SetIT(IT().Advance());
- }
-
- LocationDescriptor SetSingleStepping(bool new_single_stepping) const {
- return LocationDescriptor(arm_pc, cpsr, fpscr, new_single_stepping);
- }
-
- u64 UniqueHash() const noexcept {
- // This value MUST BE UNIQUE.
- // This calculation has to match up with EmitX64::EmitTerminalPopRSBHint
- const u64 pc_u64 = arm_pc;
- const u64 fpscr_u64 = fpscr.Value();
- const u64 t_u64 = cpsr.T() ? 1 : 0;
- const u64 e_u64 = cpsr.E() ? 2 : 0;
- const u64 single_stepping_u64 = single_stepping ? 4 : 0;
- const u64 it_u64 = u64(cpsr.IT().Value()) << 8;
- const u64 upper = (fpscr_u64 | t_u64 | e_u64 | single_stepping_u64 | it_u64) << 32;
- return pc_u64 | upper;
- }
-
- operator IR::LocationDescriptor() const {
- return IR::LocationDescriptor{UniqueHash()};
- }
-
-private:
- u32 arm_pc; ///< Current program counter value.
- PSR cpsr; ///< Current program status register.
- A32::FPSCR fpscr; ///< Floating point status control register.
- bool single_stepping;
-};
-
-/**
- * Provides a string representation of a LocationDescriptor.
- *
- * @param descriptor The descriptor to get a string representation of
- */
-std::string ToString(const LocationDescriptor& descriptor);
-
-} // namespace Dynarmic::A32
-
-namespace std {
-template<>
-struct less<Dynarmic::A32::LocationDescriptor> {
- bool operator()(const Dynarmic::A32::LocationDescriptor& x, const Dynarmic::A32::LocationDescriptor& y) const noexcept {
- return x.UniqueHash() < y.UniqueHash();
- }
-};
-template<>
-struct hash<Dynarmic::A32::LocationDescriptor> {
- size_t operator()(const Dynarmic::A32::LocationDescriptor& x) const noexcept {
- return std::hash<u64>()(x.UniqueHash());
- }
-};
-} // namespace std
-
-template<>
-struct fmt::formatter<Dynarmic::A32::LocationDescriptor> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::A32::LocationDescriptor descriptor, FormatContext& ctx) const {
- return formatter<std::string>::format(Dynarmic::A32::ToString(descriptor), ctx);
- }
-};
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/a32_types.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/a32_types.h
deleted file mode 100644
index 6f56bea5..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/a32_types.h
+++ /dev/null
@@ -1,177 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string>
-#include <utility>
-
-#include <fmt/format.h>
-#include <mcl/assert.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/interface/A32/coprocessor_util.h"
-#include "dynarmic/ir/cond.h"
-
-namespace Dynarmic::A32 {
-
-using Cond = IR::Cond;
-
-enum class Reg {
- R0,
- R1,
- R2,
- R3,
- R4,
- R5,
- R6,
- R7,
- R8,
- R9,
- R10,
- R11,
- R12,
- R13,
- R14,
- R15,
- SP = R13,
- LR = R14,
- PC = R15,
- INVALID_REG = 99
-};
-
-enum class ExtReg {
- // clang-format off
- S0, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14, S15, S16, S17, S18, S19, S20, S21, S22, S23, S24, S25, S26, S27, S28, S29, S30, S31,
- D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23, D24, D25, D26, D27, D28, D29, D30, D31,
- Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10, Q11, Q12, Q13, Q14, Q15
- // clang-format on
-};
-
-using RegList = u16;
-
-enum class ShiftType {
- LSL,
- LSR,
- ASR,
- ROR ///< RRX falls under this too
-};
-
-enum class SignExtendRotation {
- ROR_0, ///< ROR #0 or omitted
- ROR_8, ///< ROR #8
- ROR_16, ///< ROR #16
- ROR_24 ///< ROR #24
-};
-
-const char* CondToString(Cond cond, bool explicit_al = false);
-const char* RegToString(Reg reg);
-const char* ExtRegToString(ExtReg reg);
-const char* CoprocRegToString(CoprocReg reg);
-std::string RegListToString(RegList reg_list);
-
-constexpr bool IsSingleExtReg(ExtReg reg) {
- return reg >= ExtReg::S0 && reg <= ExtReg::S31;
-}
-
-constexpr bool IsDoubleExtReg(ExtReg reg) {
- return reg >= ExtReg::D0 && reg <= ExtReg::D31;
-}
-
-constexpr bool IsQuadExtReg(ExtReg reg) {
- return reg >= ExtReg::Q0 && reg <= ExtReg::Q15;
-}
-
-inline size_t RegNumber(Reg reg) {
- ASSERT(reg != Reg::INVALID_REG);
- return static_cast<size_t>(reg);
-}
-
-inline size_t RegNumber(ExtReg reg) {
- if (IsSingleExtReg(reg)) {
- return static_cast<size_t>(reg) - static_cast<size_t>(ExtReg::S0);
- }
-
- if (IsDoubleExtReg(reg)) {
- return static_cast<size_t>(reg) - static_cast<size_t>(ExtReg::D0);
- }
-
- if (IsQuadExtReg(reg)) {
- return static_cast<size_t>(reg) - static_cast<size_t>(ExtReg::Q0);
- }
-
- ASSERT_FALSE("Invalid extended register");
-}
-
-inline Reg operator+(Reg reg, size_t number) {
- const size_t new_reg = RegNumber(reg) + number;
- ASSERT(new_reg <= 15);
-
- return static_cast<Reg>(new_reg);
-}
-
-inline ExtReg operator+(ExtReg reg, size_t number) {
- const auto new_reg = static_cast<ExtReg>(static_cast<size_t>(reg) + number);
-
- ASSERT((IsSingleExtReg(reg) && IsSingleExtReg(new_reg))
- || (IsDoubleExtReg(reg) && IsDoubleExtReg(new_reg))
- || (IsQuadExtReg(reg) && IsQuadExtReg(new_reg)));
-
- return new_reg;
-}
-
-inline ExtReg ToExtRegQ(size_t base, bool bit) {
- return ExtReg::Q0 + ((base >> 1) + (bit ? 8 : 0));
-}
-
-inline ExtReg ToExtRegD(size_t base, bool bit) {
- return ExtReg::D0 + (base + (bit ? 16 : 0));
-}
-
-inline ExtReg ToExtRegS(size_t base, bool bit) {
- return ExtReg::S0 + ((base << 1) + (bit ? 1 : 0));
-}
-
-inline ExtReg ToExtReg(bool sz, size_t base, bool bit) {
- return sz ? ToExtRegD(base, bit) : ToExtRegS(base, bit);
-}
-
-inline ExtReg ToVector(bool Q, size_t base, bool bit) {
- return Q ? ToExtRegQ(base, bit) : ToExtRegD(base, bit);
-}
-
-} // namespace Dynarmic::A32
-
-template<>
-struct fmt::formatter<Dynarmic::A32::Reg> : fmt::formatter<const char*> {
- template<typename FormatContext>
- auto format(Dynarmic::A32::Reg reg, FormatContext& ctx) const {
- return formatter<const char*>::format(Dynarmic::A32::RegToString(reg), ctx);
- }
-};
-
-template<>
-struct fmt::formatter<Dynarmic::A32::ExtReg> : fmt::formatter<const char*> {
- template<typename FormatContext>
- auto format(Dynarmic::A32::ExtReg reg, FormatContext& ctx) const {
- return formatter<const char*>::format(Dynarmic::A32::ExtRegToString(reg), ctx);
- }
-};
-
-template<>
-struct fmt::formatter<Dynarmic::A32::CoprocReg> : fmt::formatter<const char*> {
- template<typename FormatContext>
- auto format(Dynarmic::A32::CoprocReg reg, FormatContext& ctx) const {
- return formatter<const char*>::format(Dynarmic::A32::CoprocRegToString(reg), ctx);
- }
-};
-
-template<>
-struct fmt::formatter<Dynarmic::A32::RegList> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::A32::RegList reg_list, FormatContext& ctx) const {
- return formatter<std::string>::format(Dynarmic::A32::RegListToString(reg_list), ctx);
- }
-};
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/decoder/arm.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/decoder/arm.h
deleted file mode 100644
index 16ae52e1..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/decoder/arm.h
+++ /dev/null
@@ -1,74 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- *
- * Original version of table by Lioncash.
- */
-
-#pragma once
-
-#include <algorithm>
-#include <functional>
-#include <optional>
-#include <vector>
-
-#include <mcl/bit/bit_count.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/decoder/decoder_detail.h"
-#include "dynarmic/frontend/decoder/matcher.h"
-
-namespace Dynarmic::A32 {
-
-template<typename Visitor>
-using ArmMatcher = Decoder::Matcher<Visitor, u32>;
-
-template<typename Visitor>
-using ArmDecodeTable = std::array<std::vector<ArmMatcher<Visitor>>, 0x1000>;
-
-namespace detail {
-inline size_t ToFastLookupIndexArm(u32 instruction) {
- return ((instruction >> 4) & 0x00F) | ((instruction >> 16) & 0xFF0);
-}
-} // namespace detail
-
-template<typename V>
-ArmDecodeTable<V> GetArmDecodeTable() {
- std::vector<ArmMatcher<V>> list = {
-
-#define INST(fn, name, bitstring) DYNARMIC_DECODER_GET_MATCHER(ArmMatcher, fn, name, Decoder::detail::StringToArray<32>(bitstring)),
-#include "./arm.inc"
-#undef INST
-
- };
-
- // If a matcher has more bits in its mask it is more specific, so it should come first.
- std::stable_sort(list.begin(), list.end(), [](const auto& matcher1, const auto& matcher2) {
- return mcl::bit::count_ones(matcher1.GetMask()) > mcl::bit::count_ones(matcher2.GetMask());
- });
-
- ArmDecodeTable<V> table{};
- for (size_t i = 0; i < table.size(); ++i) {
- for (auto matcher : list) {
- const auto expect = detail::ToFastLookupIndexArm(matcher.GetExpected());
- const auto mask = detail::ToFastLookupIndexArm(matcher.GetMask());
- if ((i & mask) == expect) {
- table[i].push_back(matcher);
- }
- }
- }
- return table;
-}
-
-template<typename V>
-std::optional<std::reference_wrapper<const ArmMatcher<V>>> DecodeArm(u32 instruction) {
- static const auto table = GetArmDecodeTable<V>();
-
- const auto matches_instruction = [instruction](const auto& matcher) { return matcher.Matches(instruction); };
-
- const auto& subtable = table[detail::ToFastLookupIndexArm(instruction)];
- auto iter = std::find_if(subtable.begin(), subtable.end(), matches_instruction);
- return iter != subtable.end() ? std::optional<std::reference_wrapper<const ArmMatcher<V>>>(*iter) : std::nullopt;
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/decoder/asimd.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/decoder/asimd.h
deleted file mode 100644
index cfcd28c6..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/decoder/asimd.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2020 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <algorithm>
-#include <functional>
-#include <optional>
-#include <set>
-#include <vector>
-
-#include <mcl/bit/bit_count.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/decoder/decoder_detail.h"
-#include "dynarmic/frontend/decoder/matcher.h"
-
-namespace Dynarmic::A32 {
-
-template<typename Visitor>
-using ASIMDMatcher = Decoder::Matcher<Visitor, u32>;
-
-template<typename V>
-std::vector<ASIMDMatcher<V>> GetASIMDDecodeTable() {
- std::vector<ASIMDMatcher<V>> table = {
-
-#define INST(fn, name, bitstring) DYNARMIC_DECODER_GET_MATCHER(ASIMDMatcher, fn, name, Decoder::detail::StringToArray<32>(bitstring)),
-#include "./asimd.inc"
-#undef INST
-
- };
-
- // Exceptions to the rule of thumb.
- const std::set<std::string> comes_first{
- "VBIC, VMOV, VMVN, VORR (immediate)",
- "VEXT",
- "VTBL",
- "VTBX",
- "VDUP (scalar)",
- };
- const std::set<std::string> comes_last{
- "VMLA (scalar)",
- "VMLAL (scalar)",
- "VQDMLAL/VQDMLSL (scalar)",
- "VMUL (scalar)",
- "VMULL (scalar)",
- "VQDMULL (scalar)",
- "VQDMULH (scalar)",
- "VQRDMULH (scalar)",
- };
- const auto sort_begin = std::stable_partition(table.begin(), table.end(), [&](const auto& matcher) {
- return comes_first.count(matcher.GetName()) > 0;
- });
- const auto sort_end = std::stable_partition(table.begin(), table.end(), [&](const auto& matcher) {
- return comes_last.count(matcher.GetName()) == 0;
- });
-
- // If a matcher has more bits in its mask it is more specific, so it should come first.
- std::stable_sort(sort_begin, sort_end, [](const auto& matcher1, const auto& matcher2) {
- return mcl::bit::count_ones(matcher1.GetMask()) > mcl::bit::count_ones(matcher2.GetMask());
- });
-
- return table;
-}
-
-template<typename V>
-std::optional<std::reference_wrapper<const ASIMDMatcher<V>>> DecodeASIMD(u32 instruction) {
- static const auto table = GetASIMDDecodeTable<V>();
-
- const auto matches_instruction = [instruction](const auto& matcher) { return matcher.Matches(instruction); };
-
- auto iter = std::find_if(table.begin(), table.end(), matches_instruction);
- return iter != table.end() ? std::optional<std::reference_wrapper<const ASIMDMatcher<V>>>(*iter) : std::nullopt;
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/decoder/thumb16.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/decoder/thumb16.h
deleted file mode 100644
index 6a4275f7..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/decoder/thumb16.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <algorithm>
-#include <functional>
-#include <optional>
-#include <vector>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/decoder/decoder_detail.h"
-#include "dynarmic/frontend/decoder/matcher.h"
-
-namespace Dynarmic::A32 {
-
-template<typename Visitor>
-using Thumb16Matcher = Decoder::Matcher<Visitor, u16>;
-
-template<typename V>
-std::optional<std::reference_wrapper<const Thumb16Matcher<V>>> DecodeThumb16(u16 instruction) {
- static const std::vector<Thumb16Matcher<V>> table = {
-
-#define INST(fn, name, bitstring) DYNARMIC_DECODER_GET_MATCHER(Thumb16Matcher, fn, name, Decoder::detail::StringToArray<16>(bitstring)),
-#include "./thumb16.inc"
-#undef INST
-
- };
-
- const auto matches_instruction = [instruction](const auto& matcher) { return matcher.Matches(instruction); };
-
- auto iter = std::find_if(table.begin(), table.end(), matches_instruction);
- return iter != table.end() ? std::optional<std::reference_wrapper<const Thumb16Matcher<V>>>(*iter) : std::nullopt;
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/decoder/thumb32.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/decoder/thumb32.h
deleted file mode 100644
index f3f4b3b9..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/decoder/thumb32.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <algorithm>
-#include <optional>
-#include <vector>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/decoder/decoder_detail.h"
-#include "dynarmic/frontend/decoder/matcher.h"
-
-namespace Dynarmic::A32 {
-
-template<typename Visitor>
-using Thumb32Matcher = Decoder::Matcher<Visitor, u32>;
-
-template<typename V>
-std::optional<std::reference_wrapper<const Thumb32Matcher<V>>> DecodeThumb32(u32 instruction) {
- static const std::vector<Thumb32Matcher<V>> table = {
-
-#define INST(fn, name, bitstring) DYNARMIC_DECODER_GET_MATCHER(Thumb32Matcher, fn, name, Decoder::detail::StringToArray<32>(bitstring)),
-#include "./thumb32.inc"
-#undef INST
-
- };
-
- const auto matches_instruction = [instruction](const auto& matcher) { return matcher.Matches(instruction); };
-
- auto iter = std::find_if(table.begin(), table.end(), matches_instruction);
- return iter != table.end() ? std::optional<std::reference_wrapper<const Thumb32Matcher<V>>>(*iter) : std::nullopt;
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/decoder/vfp.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/decoder/vfp.h
deleted file mode 100644
index f79a859b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/decoder/vfp.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2032 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <algorithm>
-#include <functional>
-#include <optional>
-#include <vector>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/decoder/decoder_detail.h"
-#include "dynarmic/frontend/decoder/matcher.h"
-
-namespace Dynarmic::A32 {
-
-template<typename Visitor>
-using VFPMatcher = Decoder::Matcher<Visitor, u32>;
-
-template<typename V>
-std::optional<std::reference_wrapper<const VFPMatcher<V>>> DecodeVFP(u32 instruction) {
- using Table = std::vector<VFPMatcher<V>>;
-
- static const struct Tables {
- Table unconditional;
- Table conditional;
- } tables = [] {
- Table list = {
-
-#define INST(fn, name, bitstring) DYNARMIC_DECODER_GET_MATCHER(VFPMatcher, fn, name, Decoder::detail::StringToArray<32>(bitstring)),
-#include "./vfp.inc"
-#undef INST
-
- };
-
- const auto division = std::stable_partition(list.begin(), list.end(), [&](const auto& matcher) {
- return (matcher.GetMask() & 0xF0000000) == 0xF0000000;
- });
-
- return Tables{
- Table{list.begin(), division},
- Table{division, list.end()},
- };
- }();
-
- const bool is_unconditional = (instruction & 0xF0000000) == 0xF0000000;
- const Table& table = is_unconditional ? tables.unconditional : tables.conditional;
-
- const auto matches_instruction = [instruction](const auto& matcher) { return matcher.Matches(instruction); };
-
- auto iter = std::find_if(table.begin(), table.end(), matches_instruction);
- return iter != table.end() ? std::optional<std::reference_wrapper<const VFPMatcher<V>>>(*iter) : std::nullopt;
-}
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/disassembler/disassembler.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/disassembler/disassembler.h
deleted file mode 100644
index 6a61afde..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/disassembler/disassembler.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::A32 {
-
-std::string DisassembleArm(u32 instruction);
-std::string DisassembleThumb16(u16 instruction);
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/translate/a32_translate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/translate/a32_translate.h
deleted file mode 100644
index 0f2c3a12..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/translate/a32_translate.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/interface/A32/arch_version.h"
-
-namespace Dynarmic::IR {
-class Block;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic::A32 {
-
-class LocationDescriptor;
-struct TranslateCallbacks;
-
-struct TranslationOptions {
- ArchVersion arch_version;
-
- /// This changes what IR we emit when we translate an unpredictable instruction.
- /// If this is false, the ExceptionRaised IR instruction is emitted.
- /// If this is true, we define some behaviour for some instructions.
- bool define_unpredictable_behaviour = false;
-
- /// This changes what IR we emit when we translate a hint instruction.
- /// If this is false, we treat the instruction as a NOP.
- /// If this is true, we emit an ExceptionRaised instruction.
- bool hook_hint_instructions = true;
-};
-
-/**
- * This function translates instructions in memory into our intermediate representation.
- * @param descriptor The starting location of the basic block. Includes information like PC, Thumb state, &c.
- * @param tcb The callbacks we should use to read emulated memory.
- * @param options Configures how certain instructions are translated.
- * @return A translated basic block in the intermediate representation.
- */
-IR::Block Translate(LocationDescriptor descriptor, TranslateCallbacks* tcb, const TranslationOptions& options);
-
-/**
- * This function translates a single provided instruction into our intermediate representation.
- * @param block The block to append the IR for the instruction to.
- * @param descriptor The location of the instruction. Includes information like PC, Thumb state, &c.
- * @param instruction The instruction to translate.
- * @return The translated instruction translated to the intermediate representation.
- */
-bool TranslateSingleInstruction(IR::Block& block, LocationDescriptor descriptor, u32 instruction);
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/translate/conditional_state.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/translate/conditional_state.h
deleted file mode 100644
index 18c8b1cc..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/translate/conditional_state.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2020 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::IR {
-enum class Cond;
-} // namespace Dynarmic::IR
-
-namespace Dynarmic::A32 {
-
-class IREmitter;
-struct TranslatorVisitor;
-
-enum class ConditionalState {
- /// We haven't met any conditional instructions yet.
- None,
- /// Current instruction is a conditional. This marks the end of this basic block.
- Break,
- /// This basic block is made up solely of conditional instructions.
- Translating,
- /// This basic block is made up of conditional instructions followed by unconditional instructions.
- Trailing,
-};
-
-bool CondCanContinue(ConditionalState cond_state, const A32::IREmitter& ir);
-bool IsConditionPassed(TranslatorVisitor& v, IR::Cond cond);
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/translate/impl/a32_translate_impl.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/translate/impl/a32_translate_impl.h
deleted file mode 100644
index 44ac2450..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/translate/impl/a32_translate_impl.h
+++ /dev/null
@@ -1,982 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/assert.hpp>
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/bit/rotate.hpp>
-
-#include "dynarmic/frontend/A32/a32_ir_emitter.h"
-#include "dynarmic/frontend/A32/a32_location_descriptor.h"
-#include "dynarmic/frontend/A32/a32_types.h"
-#include "dynarmic/frontend/A32/translate/a32_translate.h"
-#include "dynarmic/frontend/A32/translate/conditional_state.h"
-#include "dynarmic/frontend/imm.h"
-
-namespace Dynarmic::A32 {
-
-enum class Exception;
-
-struct TranslatorVisitor final {
- using instruction_return_type = bool;
-
- explicit TranslatorVisitor(IR::Block& block, LocationDescriptor descriptor, const TranslationOptions& options)
- : ir(block, descriptor, options.arch_version), options(options) {}
-
- A32::IREmitter ir;
- ConditionalState cond_state = ConditionalState::None;
- TranslationOptions options;
-
- size_t current_instruction_size;
-
- bool ArmConditionPassed(Cond cond);
- bool ThumbConditionPassed();
- bool VFPConditionPassed(Cond cond);
-
- bool InterpretThisInstruction();
- bool UnpredictableInstruction();
- bool UndefinedInstruction();
- bool DecodeError();
- bool RaiseException(Exception exception);
-
- struct ImmAndCarry {
- u32 imm32;
- IR::U1 carry;
- };
-
- ImmAndCarry ArmExpandImm_C(int rotate, Imm<8> imm8, IR::U1 carry_in) {
- u32 imm32 = imm8.ZeroExtend();
- auto carry_out = carry_in;
- if (rotate) {
- imm32 = mcl::bit::rotate_right<u32>(imm8.ZeroExtend(), rotate * 2);
- carry_out = ir.Imm1(mcl::bit::get_bit<31>(imm32));
- }
- return {imm32, carry_out};
- }
-
- u32 ArmExpandImm(int rotate, Imm<8> imm8) {
- return ArmExpandImm_C(rotate, imm8, ir.Imm1(0)).imm32;
- }
-
- ImmAndCarry ThumbExpandImm_C(Imm<1> i, Imm<3> imm3, Imm<8> imm8, IR::U1 carry_in) {
- const Imm<12> imm12 = concatenate(i, imm3, imm8);
- if (imm12.Bits<10, 11>() == 0) {
- const u32 imm32 = [&] {
- const u32 imm8 = imm12.Bits<0, 7>();
- switch (imm12.Bits<8, 9>()) {
- case 0b00:
- return imm8;
- case 0b01:
- return mcl::bit::replicate_element<u16, u32>(imm8);
- case 0b10:
- return mcl::bit::replicate_element<u16, u32>(imm8 << 8);
- case 0b11:
- return mcl::bit::replicate_element<u8, u32>(imm8);
- }
- UNREACHABLE();
- }();
- return {imm32, carry_in};
- }
- const u32 imm32 = mcl::bit::rotate_right<u32>((1 << 7) | imm12.Bits<0, 6>(), imm12.Bits<7, 11>());
- return {imm32, ir.Imm1(mcl::bit::get_bit<31>(imm32))};
- }
-
- u32 ThumbExpandImm(Imm<1> i, Imm<3> imm3, Imm<8> imm8) {
- return ThumbExpandImm_C(i, imm3, imm8, ir.Imm1(0)).imm32;
- }
-
- // Creates an immediate of the given value
- IR::UAny I(size_t bitsize, u64 value);
-
- IR::ResultAndCarry<IR::U32> EmitImmShift(IR::U32 value, ShiftType type, Imm<3> imm3, Imm<2> imm2, IR::U1 carry_in);
- IR::ResultAndCarry<IR::U32> EmitImmShift(IR::U32 value, ShiftType type, Imm<5> imm5, IR::U1 carry_in);
- IR::ResultAndCarry<IR::U32> EmitRegShift(IR::U32 value, ShiftType type, IR::U8 amount, IR::U1 carry_in);
- template<typename FnT>
- bool EmitVfpVectorOperation(bool sz, ExtReg d, ExtReg n, ExtReg m, const FnT& fn);
- template<typename FnT>
- bool EmitVfpVectorOperation(bool sz, ExtReg d, ExtReg m, const FnT& fn);
-
- // Barrier instructions
- bool arm_DMB(Imm<4> option);
- bool arm_DSB(Imm<4> option);
- bool arm_ISB(Imm<4> option);
-
- // Branch instructions
- bool arm_B(Cond cond, Imm<24> imm24);
- bool arm_BL(Cond cond, Imm<24> imm24);
- bool arm_BLX_imm(bool H, Imm<24> imm24);
- bool arm_BLX_reg(Cond cond, Reg m);
- bool arm_BX(Cond cond, Reg m);
- bool arm_BXJ(Cond cond, Reg m);
-
- // Coprocessor instructions
- bool arm_CDP(Cond cond, size_t opc1, CoprocReg CRn, CoprocReg CRd, size_t coproc_no, size_t opc2, CoprocReg CRm);
- bool arm_LDC(Cond cond, bool p, bool u, bool d, bool w, Reg n, CoprocReg CRd, size_t coproc_no, Imm<8> imm8);
- bool arm_MCR(Cond cond, size_t opc1, CoprocReg CRn, Reg t, size_t coproc_no, size_t opc2, CoprocReg CRm);
- bool arm_MCRR(Cond cond, Reg t2, Reg t, size_t coproc_no, size_t opc, CoprocReg CRm);
- bool arm_MRC(Cond cond, size_t opc1, CoprocReg CRn, Reg t, size_t coproc_no, size_t opc2, CoprocReg CRm);
- bool arm_MRRC(Cond cond, Reg t2, Reg t, size_t coproc_no, size_t opc, CoprocReg CRm);
- bool arm_STC(Cond cond, bool p, bool u, bool d, bool w, Reg n, CoprocReg CRd, size_t coproc_no, Imm<8> imm8);
-
- // CRC32 instructions
- bool arm_CRC32(Cond cond, Imm<2> sz, Reg n, Reg d, Reg m);
- bool arm_CRC32C(Cond cond, Imm<2> sz, Reg n, Reg d, Reg m);
-
- // Data processing instructions
- bool arm_ADC_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_ADC_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_ADC_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_ADD_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_ADD_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_ADD_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_AND_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_AND_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_AND_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_BIC_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_BIC_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_BIC_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_CMN_imm(Cond cond, Reg n, int rotate, Imm<8> imm8);
- bool arm_CMN_reg(Cond cond, Reg n, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_CMN_rsr(Cond cond, Reg n, Reg s, ShiftType shift, Reg m);
- bool arm_CMP_imm(Cond cond, Reg n, int rotate, Imm<8> imm8);
- bool arm_CMP_reg(Cond cond, Reg n, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_CMP_rsr(Cond cond, Reg n, Reg s, ShiftType shift, Reg m);
- bool arm_EOR_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_EOR_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_EOR_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_MOV_imm(Cond cond, bool S, Reg d, int rotate, Imm<8> imm8);
- bool arm_MOV_reg(Cond cond, bool S, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_MOV_rsr(Cond cond, bool S, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_MVN_imm(Cond cond, bool S, Reg d, int rotate, Imm<8> imm8);
- bool arm_MVN_reg(Cond cond, bool S, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_MVN_rsr(Cond cond, bool S, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_ORR_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_ORR_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_ORR_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_RSB_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_RSB_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_RSB_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_RSC_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_RSC_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_RSC_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_SBC_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_SBC_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_SBC_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_SUB_imm(Cond cond, bool S, Reg n, Reg d, int rotate, Imm<8> imm8);
- bool arm_SUB_reg(Cond cond, bool S, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_SUB_rsr(Cond cond, bool S, Reg n, Reg d, Reg s, ShiftType shift, Reg m);
- bool arm_TEQ_imm(Cond cond, Reg n, int rotate, Imm<8> imm8);
- bool arm_TEQ_reg(Cond cond, Reg n, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_TEQ_rsr(Cond cond, Reg n, Reg s, ShiftType shift, Reg m);
- bool arm_TST_imm(Cond cond, Reg n, int rotate, Imm<8> imm8);
- bool arm_TST_reg(Cond cond, Reg n, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_TST_rsr(Cond cond, Reg n, Reg s, ShiftType shift, Reg m);
-
- // Exception generating instructions
- bool arm_BKPT(Cond cond, Imm<12> imm12, Imm<4> imm4);
- bool arm_SVC(Cond cond, Imm<24> imm24);
- bool arm_UDF();
-
- // Extension instructions
- bool arm_SXTAB(Cond cond, Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_SXTAB16(Cond cond, Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_SXTAH(Cond cond, Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_SXTB(Cond cond, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_SXTB16(Cond cond, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_SXTH(Cond cond, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_UXTAB(Cond cond, Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_UXTAB16(Cond cond, Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_UXTAH(Cond cond, Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_UXTB(Cond cond, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_UXTB16(Cond cond, Reg d, SignExtendRotation rotate, Reg m);
- bool arm_UXTH(Cond cond, Reg d, SignExtendRotation rotate, Reg m);
-
- // Hint instructions
- bool arm_PLD_imm(bool add, bool R, Reg n, Imm<12> imm12);
- bool arm_PLD_reg(bool add, bool R, Reg n, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_SEV();
- bool arm_SEVL();
- bool arm_WFE();
- bool arm_WFI();
- bool arm_YIELD();
-
- // Load/Store
- bool arm_LDRBT();
- bool arm_LDRHT();
- bool arm_LDRSBT();
- bool arm_LDRSHT();
- bool arm_LDRT();
- bool arm_STRBT();
- bool arm_STRHT();
- bool arm_STRT();
- bool arm_LDR_lit(Cond cond, bool U, Reg t, Imm<12> imm12);
- bool arm_LDR_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg d, Imm<12> imm12);
- bool arm_LDR_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg d, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_LDRB_lit(Cond cond, bool U, Reg t, Imm<12> imm12);
- bool arm_LDRB_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<12> imm12);
- bool arm_LDRB_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_LDRD_lit(Cond cond, bool U, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRD_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRD_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg d, Reg m);
- bool arm_LDRH_lit(Cond cond, bool P, bool U, bool W, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRH_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRH_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg d, Reg m);
- bool arm_LDRSB_lit(Cond cond, bool U, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRSB_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRSB_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Reg m);
- bool arm_LDRSH_lit(Cond cond, bool U, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRSH_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_LDRSH_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Reg m);
- bool arm_STR_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<12> imm12);
- bool arm_STR_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_STRB_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<12> imm12);
- bool arm_STRB_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<5> imm5, ShiftType shift, Reg m);
- bool arm_STRD_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_STRD_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Reg m);
- bool arm_STRH_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<4> imm8a, Imm<4> imm8b);
- bool arm_STRH_reg(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Reg m);
-
- // Load/Store multiple instructions
- bool arm_LDM(Cond cond, bool W, Reg n, RegList list);
- bool arm_LDMDA(Cond cond, bool W, Reg n, RegList list);
- bool arm_LDMDB(Cond cond, bool W, Reg n, RegList list);
- bool arm_LDMIB(Cond cond, bool W, Reg n, RegList list);
- bool arm_LDM_usr();
- bool arm_LDM_eret();
- bool arm_STM(Cond cond, bool W, Reg n, RegList list);
- bool arm_STMDA(Cond cond, bool W, Reg n, RegList list);
- bool arm_STMDB(Cond cond, bool W, Reg n, RegList list);
- bool arm_STMIB(Cond cond, bool W, Reg n, RegList list);
- bool arm_STM_usr();
-
- // Miscellaneous instructions
- bool arm_BFC(Cond cond, Imm<5> msb, Reg d, Imm<5> lsb);
- bool arm_BFI(Cond cond, Imm<5> msb, Reg d, Imm<5> lsb, Reg n);
- bool arm_CLZ(Cond cond, Reg d, Reg m);
- bool arm_MOVT(Cond cond, Imm<4> imm4, Reg d, Imm<12> imm12);
- bool arm_MOVW(Cond cond, Imm<4> imm4, Reg d, Imm<12> imm12);
- bool arm_NOP() { return true; }
- bool arm_RBIT(Cond cond, Reg d, Reg m);
- bool arm_SBFX(Cond cond, Imm<5> widthm1, Reg d, Imm<5> lsb, Reg n);
- bool arm_SEL(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UBFX(Cond cond, Imm<5> widthm1, Reg d, Imm<5> lsb, Reg n);
-
- // Unsigned sum of absolute difference functions
- bool arm_USAD8(Cond cond, Reg d, Reg m, Reg n);
- bool arm_USADA8(Cond cond, Reg d, Reg a, Reg m, Reg n);
-
- // Packing instructions
- bool arm_PKHBT(Cond cond, Reg n, Reg d, Imm<5> imm5, Reg m);
- bool arm_PKHTB(Cond cond, Reg n, Reg d, Imm<5> imm5, Reg m);
-
- // Reversal instructions
- bool arm_REV(Cond cond, Reg d, Reg m);
- bool arm_REV16(Cond cond, Reg d, Reg m);
- bool arm_REVSH(Cond cond, Reg d, Reg m);
-
- // Saturation instructions
- bool arm_SSAT(Cond cond, Imm<5> sat_imm, Reg d, Imm<5> imm5, bool sh, Reg n);
- bool arm_SSAT16(Cond cond, Imm<4> sat_imm, Reg d, Reg n);
- bool arm_USAT(Cond cond, Imm<5> sat_imm, Reg d, Imm<5> imm5, bool sh, Reg n);
- bool arm_USAT16(Cond cond, Imm<4> sat_imm, Reg d, Reg n);
-
- // Divide instructions
- bool arm_SDIV(Cond cond, Reg d, Reg m, Reg n);
- bool arm_UDIV(Cond cond, Reg d, Reg m, Reg n);
-
- // Multiply (Normal) instructions
- bool arm_MLA(Cond cond, bool S, Reg d, Reg a, Reg m, Reg n);
- bool arm_MLS(Cond cond, Reg d, Reg a, Reg m, Reg n);
- bool arm_MUL(Cond cond, bool S, Reg d, Reg m, Reg n);
-
- // Multiply (Long) instructions
- bool arm_SMLAL(Cond cond, bool S, Reg dHi, Reg dLo, Reg m, Reg n);
- bool arm_SMULL(Cond cond, bool S, Reg dHi, Reg dLo, Reg m, Reg n);
- bool arm_UMAAL(Cond cond, Reg dHi, Reg dLo, Reg m, Reg n);
- bool arm_UMLAL(Cond cond, bool S, Reg dHi, Reg dLo, Reg m, Reg n);
- bool arm_UMULL(Cond cond, bool S, Reg dHi, Reg dLo, Reg m, Reg n);
-
- // Multiply (Halfword) instructions
- bool arm_SMLALxy(Cond cond, Reg dHi, Reg dLo, Reg m, bool M, bool N, Reg n);
- bool arm_SMLAxy(Cond cond, Reg d, Reg a, Reg m, bool M, bool N, Reg n);
- bool arm_SMULxy(Cond cond, Reg d, Reg m, bool M, bool N, Reg n);
-
- // Multiply (word by halfword) instructions
- bool arm_SMLAWy(Cond cond, Reg d, Reg a, Reg m, bool M, Reg n);
- bool arm_SMULWy(Cond cond, Reg d, Reg m, bool M, Reg n);
-
- // Multiply (Most significant word) instructions
- bool arm_SMMLA(Cond cond, Reg d, Reg a, Reg m, bool R, Reg n);
- bool arm_SMMLS(Cond cond, Reg d, Reg a, Reg m, bool R, Reg n);
- bool arm_SMMUL(Cond cond, Reg d, Reg m, bool R, Reg n);
-
- // Multiply (Dual) instructions
- bool arm_SMLAD(Cond cond, Reg d, Reg a, Reg m, bool M, Reg n);
- bool arm_SMLALD(Cond cond, Reg dHi, Reg dLo, Reg m, bool M, Reg n);
- bool arm_SMLSD(Cond cond, Reg d, Reg a, Reg m, bool M, Reg n);
- bool arm_SMLSLD(Cond cond, Reg dHi, Reg dLo, Reg m, bool M, Reg n);
- bool arm_SMUAD(Cond cond, Reg d, Reg m, bool M, Reg n);
- bool arm_SMUSD(Cond cond, Reg d, Reg m, bool M, Reg n);
-
- // Parallel Add/Subtract (Modulo arithmetic) instructions
- bool arm_SADD8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SADD16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SASX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SSAX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SSUB8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SSUB16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UADD8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UADD16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UASX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_USAX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_USUB8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_USUB16(Cond cond, Reg n, Reg d, Reg m);
-
- // Parallel Add/Subtract (Saturating) instructions
- bool arm_QADD8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QADD16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QASX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QSAX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QSUB8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QSUB16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UQADD8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UQADD16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UQASX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UQSAX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UQSUB8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UQSUB16(Cond cond, Reg n, Reg d, Reg m);
-
- // Parallel Add/Subtract (Halving) instructions
- bool arm_SHADD8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SHADD16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SHASX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SHSAX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SHSUB8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_SHSUB16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UHADD8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UHADD16(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UHASX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UHSAX(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UHSUB8(Cond cond, Reg n, Reg d, Reg m);
- bool arm_UHSUB16(Cond cond, Reg n, Reg d, Reg m);
-
- // Saturated Add/Subtract instructions
- bool arm_QADD(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QSUB(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QDADD(Cond cond, Reg n, Reg d, Reg m);
- bool arm_QDSUB(Cond cond, Reg n, Reg d, Reg m);
-
- // Synchronization Primitive instructions
- bool arm_CLREX();
- bool arm_SWP(Cond cond, Reg n, Reg t, Reg t2);
- bool arm_SWPB(Cond cond, Reg n, Reg t, Reg t2);
- bool arm_STL(Cond cond, Reg n, Reg t);
- bool arm_STLEX(Cond cond, Reg n, Reg d, Reg t);
- bool arm_STREX(Cond cond, Reg n, Reg d, Reg t);
- bool arm_LDA(Cond cond, Reg n, Reg t);
- bool arm_LDAEX(Cond cond, Reg n, Reg t);
- bool arm_LDREX(Cond cond, Reg n, Reg t);
- bool arm_STLEXD(Cond cond, Reg n, Reg d, Reg t);
- bool arm_STREXD(Cond cond, Reg n, Reg d, Reg t);
- bool arm_LDAEXD(Cond cond, Reg n, Reg t);
- bool arm_LDREXD(Cond cond, Reg n, Reg t);
- bool arm_STLB(Cond cond, Reg n, Reg t);
- bool arm_STLEXB(Cond cond, Reg n, Reg d, Reg t);
- bool arm_STREXB(Cond cond, Reg n, Reg d, Reg t);
- bool arm_LDAB(Cond cond, Reg n, Reg t);
- bool arm_LDAEXB(Cond cond, Reg n, Reg t);
- bool arm_LDREXB(Cond cond, Reg n, Reg t);
- bool arm_STLH(Cond cond, Reg n, Reg t);
- bool arm_STLEXH(Cond cond, Reg n, Reg d, Reg t);
- bool arm_STREXH(Cond cond, Reg n, Reg d, Reg t);
- bool arm_LDAH(Cond cond, Reg n, Reg t);
- bool arm_LDAEXH(Cond cond, Reg n, Reg t);
- bool arm_LDREXH(Cond cond, Reg n, Reg t);
-
- // Status register access instructions
- bool arm_CPS();
- bool arm_MRS(Cond cond, Reg d);
- bool arm_MSR_imm(Cond cond, unsigned mask, int rotate, Imm<8> imm8);
- bool arm_MSR_reg(Cond cond, unsigned mask, Reg n);
- bool arm_RFE();
- bool arm_SETEND(bool E);
- bool arm_SRS();
-
- // thumb16
- bool thumb16_LSL_imm(Imm<5> imm5, Reg m, Reg d);
- bool thumb16_LSR_imm(Imm<5> imm5, Reg m, Reg d);
- bool thumb16_ASR_imm(Imm<5> imm5, Reg m, Reg d);
- bool thumb16_ADD_reg_t1(Reg m, Reg n, Reg d);
- bool thumb16_SUB_reg(Reg m, Reg n, Reg d);
- bool thumb16_ADD_imm_t1(Imm<3> imm3, Reg n, Reg d);
- bool thumb16_SUB_imm_t1(Imm<3> imm3, Reg n, Reg d);
- bool thumb16_MOV_imm(Reg d, Imm<8> imm8);
- bool thumb16_CMP_imm(Reg n, Imm<8> imm8);
- bool thumb16_ADD_imm_t2(Reg d_n, Imm<8> imm8);
- bool thumb16_SUB_imm_t2(Reg d_n, Imm<8> imm8);
- bool thumb16_AND_reg(Reg m, Reg d_n);
- bool thumb16_EOR_reg(Reg m, Reg d_n);
- bool thumb16_LSL_reg(Reg m, Reg d_n);
- bool thumb16_LSR_reg(Reg m, Reg d_n);
- bool thumb16_ASR_reg(Reg m, Reg d_n);
- bool thumb16_ADC_reg(Reg m, Reg d_n);
- bool thumb16_SBC_reg(Reg m, Reg d_n);
- bool thumb16_ROR_reg(Reg m, Reg d_n);
- bool thumb16_TST_reg(Reg m, Reg n);
- bool thumb16_RSB_imm(Reg n, Reg d);
- bool thumb16_CMP_reg_t1(Reg m, Reg n);
- bool thumb16_CMN_reg(Reg m, Reg n);
- bool thumb16_ORR_reg(Reg m, Reg d_n);
- bool thumb16_MUL_reg(Reg n, Reg d_m);
- bool thumb16_BIC_reg(Reg m, Reg d_n);
- bool thumb16_MVN_reg(Reg m, Reg d);
- bool thumb16_ADD_reg_t2(bool d_n_hi, Reg m, Reg d_n_lo);
- bool thumb16_CMP_reg_t2(bool n_hi, Reg m, Reg n_lo);
- bool thumb16_MOV_reg(bool d_hi, Reg m, Reg d_lo);
- bool thumb16_LDR_literal(Reg t, Imm<8> imm8);
- bool thumb16_STR_reg(Reg m, Reg n, Reg t);
- bool thumb16_STRH_reg(Reg m, Reg n, Reg t);
- bool thumb16_STRB_reg(Reg m, Reg n, Reg t);
- bool thumb16_LDRSB_reg(Reg m, Reg n, Reg t);
- bool thumb16_LDR_reg(Reg m, Reg n, Reg t);
- bool thumb16_LDRH_reg(Reg m, Reg n, Reg t);
- bool thumb16_LDRB_reg(Reg m, Reg n, Reg t);
- bool thumb16_LDRSH_reg(Reg m, Reg n, Reg t);
- bool thumb16_STR_imm_t1(Imm<5> imm5, Reg n, Reg t);
- bool thumb16_LDR_imm_t1(Imm<5> imm5, Reg n, Reg t);
- bool thumb16_STRB_imm(Imm<5> imm5, Reg n, Reg t);
- bool thumb16_LDRB_imm(Imm<5> imm5, Reg n, Reg t);
- bool thumb16_STRH_imm(Imm<5> imm5, Reg n, Reg t);
- bool thumb16_LDRH_imm(Imm<5> imm5, Reg n, Reg t);
- bool thumb16_STR_imm_t2(Reg t, Imm<8> imm8);
- bool thumb16_LDR_imm_t2(Reg t, Imm<8> imm8);
- bool thumb16_ADR(Reg d, Imm<8> imm8);
- bool thumb16_ADD_sp_t1(Reg d, Imm<8> imm8);
- bool thumb16_ADD_sp_t2(Imm<7> imm7);
- bool thumb16_SUB_sp(Imm<7> imm7);
- bool thumb16_SEV();
- bool thumb16_SEVL();
- bool thumb16_WFE();
- bool thumb16_WFI();
- bool thumb16_YIELD();
- bool thumb16_NOP();
- bool thumb16_IT(Imm<8> imm8);
- bool thumb16_SXTH(Reg m, Reg d);
- bool thumb16_SXTB(Reg m, Reg d);
- bool thumb16_UXTH(Reg m, Reg d);
- bool thumb16_UXTB(Reg m, Reg d);
- bool thumb16_PUSH(bool M, RegList reg_list);
- bool thumb16_POP(bool P, RegList reg_list);
- bool thumb16_SETEND(bool E);
- bool thumb16_CPS(bool, bool, bool, bool);
- bool thumb16_REV(Reg m, Reg d);
- bool thumb16_REV16(Reg m, Reg d);
- bool thumb16_REVSH(Reg m, Reg d);
- bool thumb16_BKPT(Imm<8> imm8);
- bool thumb16_STMIA(Reg n, RegList reg_list);
- bool thumb16_LDMIA(Reg n, RegList reg_list);
- bool thumb16_CBZ_CBNZ(bool nonzero, Imm<1> i, Imm<5> imm5, Reg n);
- bool thumb16_UDF();
- bool thumb16_BX(Reg m);
- bool thumb16_BLX_reg(Reg m);
- bool thumb16_SVC(Imm<8> imm8);
- bool thumb16_B_t1(Cond cond, Imm<8> imm8);
- bool thumb16_B_t2(Imm<11> imm11);
-
- // thumb32 load/store multiple instructions
- bool thumb32_LDMDB(bool W, Reg n, Imm<16> reg_list);
- bool thumb32_LDMIA(bool W, Reg n, Imm<16> reg_list);
- bool thumb32_POP(Imm<16> reg_list);
- bool thumb32_PUSH(Imm<15> reg_list);
- bool thumb32_STMIA(bool W, Reg n, Imm<15> reg_list);
- bool thumb32_STMDB(bool W, Reg n, Imm<15> reg_list);
-
- // thumb32 load/store dual, load/store exclusive, table branch instructions
- bool thumb32_LDA(Reg n, Reg t);
- bool thumb32_LDRD_imm_1(bool U, Reg n, Reg t, Reg t2, Imm<8> imm8);
- bool thumb32_LDRD_imm_2(bool U, bool W, Reg n, Reg t, Reg t2, Imm<8> imm8);
- bool thumb32_LDRD_lit_1(bool U, Reg t, Reg t2, Imm<8> imm8);
- bool thumb32_LDRD_lit_2(bool U, bool W, Reg t, Reg t2, Imm<8> imm8);
- bool thumb32_STRD_imm_1(bool U, Reg n, Reg t, Reg t2, Imm<8> imm8);
- bool thumb32_STRD_imm_2(bool U, bool W, Reg n, Reg t, Reg t2, Imm<8> imm8);
- bool thumb32_LDREX(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_LDREXD(Reg n, Reg t, Reg t2);
- bool thumb32_LDREXB(Reg n, Reg t);
- bool thumb32_LDREXH(Reg n, Reg t);
- bool thumb32_STL(Reg n, Reg t);
- bool thumb32_STREX(Reg n, Reg t, Reg d, Imm<8> imm8);
- bool thumb32_STREXB(Reg n, Reg t, Reg d);
- bool thumb32_STREXD(Reg n, Reg t, Reg t2, Reg d);
- bool thumb32_STREXH(Reg n, Reg t, Reg d);
- bool thumb32_TBB(Reg n, Reg m);
- bool thumb32_TBH(Reg n, Reg m);
-
- // thumb32 data processing (shifted register) instructions
- bool thumb32_TST_reg(Reg n, Imm<3> imm3, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_AND_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_BIC_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_MOV_reg(bool S, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_ORR_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_MVN_reg(bool S, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_ORN_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_TEQ_reg(Reg n, Imm<3> imm3, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_EOR_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_PKH(Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, Imm<1> tb, Reg m);
- bool thumb32_CMN_reg(Reg n, Imm<3> imm3, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_ADD_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_ADC_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_SBC_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_CMP_reg(Reg n, Imm<3> imm3, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_SUB_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
- bool thumb32_RSB_reg(bool S, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, ShiftType type, Reg m);
-
- // thumb32 data processing (modified immediate) instructions
- bool thumb32_TST_imm(Imm<1> i, Reg n, Imm<3> imm3, Imm<8> imm8);
- bool thumb32_AND_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_BIC_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_MOV_imm(Imm<1> i, bool S, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_ORR_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_MVN_imm(Imm<1> i, bool S, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_ORN_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_TEQ_imm(Imm<1> i, Reg n, Imm<3> imm3, Imm<8> imm8);
- bool thumb32_EOR_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_CMN_imm(Imm<1> i, Reg n, Imm<3> imm3, Imm<8> imm8);
- bool thumb32_ADD_imm_1(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_ADC_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_SBC_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_CMP_imm(Imm<1> i, Reg n, Imm<3> imm3, Imm<8> imm8);
- bool thumb32_SUB_imm_1(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_RSB_imm(Imm<1> i, bool S, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
-
- // thumb32 data processing (plain binary immediate) instructions.
- bool thumb32_ADR_t2(Imm<1> imm1, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_ADR_t3(Imm<1> imm1, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_ADD_imm_2(Imm<1> imm1, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_BFC(Imm<3> imm3, Reg d, Imm<2> imm2, Imm<5> msb);
- bool thumb32_BFI(Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, Imm<5> msb);
- bool thumb32_MOVT(Imm<1> imm1, Imm<4> imm4, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_MOVW_imm(Imm<1> imm1, Imm<4> imm4, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_SBFX(Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, Imm<5> widthm1);
- bool thumb32_SSAT(bool sh, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, Imm<5> sat_imm);
- bool thumb32_SSAT16(Reg n, Reg d, Imm<4> sat_imm);
- bool thumb32_SUB_imm_2(Imm<1> imm1, Reg n, Imm<3> imm3, Reg d, Imm<8> imm8);
- bool thumb32_UBFX(Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, Imm<5> widthm1);
- bool thumb32_USAT(bool sh, Reg n, Imm<3> imm3, Reg d, Imm<2> imm2, Imm<5> sat_imm);
- bool thumb32_USAT16(Reg n, Reg d, Imm<4> sat_imm);
-
- // thumb32 miscellaneous control instructions
- bool thumb32_BXJ(Reg m);
- bool thumb32_CLREX();
- bool thumb32_DMB(Imm<4> option);
- bool thumb32_DSB(Imm<4> option);
- bool thumb32_ISB(Imm<4> option);
- bool thumb32_NOP();
- bool thumb32_SEV();
- bool thumb32_SEVL();
- bool thumb32_UDF();
- bool thumb32_WFE();
- bool thumb32_WFI();
- bool thumb32_YIELD();
- bool thumb32_MSR_reg(bool R, Reg n, Imm<4> mask);
- bool thumb32_MRS_reg(bool R, Reg d);
-
- // thumb32 branch instructions
- bool thumb32_BL_imm(Imm<1> S, Imm<10> hi, Imm<1> j1, Imm<1> j2, Imm<11> lo);
- bool thumb32_BLX_imm(Imm<1> S, Imm<10> hi, Imm<1> j1, Imm<1> j2, Imm<11> lo);
- bool thumb32_B(Imm<1> S, Imm<10> hi, Imm<1> j1, Imm<1> j2, Imm<11> lo);
- bool thumb32_B_cond(Imm<1> S, Cond cond, Imm<6> hi, Imm<1> j1, Imm<1> j2, Imm<11> lo);
-
- // thumb32 store single data item instructions
- bool thumb32_STRB_imm_1(Reg n, Reg t, bool P, bool U, Imm<8> imm8);
- bool thumb32_STRB_imm_2(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_STRB_imm_3(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_STRBT(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_STRB(Reg n, Reg t, Imm<2> imm2, Reg m);
- bool thumb32_STRH_imm_1(Reg n, Reg t, bool P, bool U, Imm<8> imm8);
- bool thumb32_STRH_imm_2(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_STRH_imm_3(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_STRHT(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_STRH(Reg n, Reg t, Imm<2> imm2, Reg m);
- bool thumb32_STR_imm_1(Reg n, Reg t, bool P, bool U, Imm<8> imm8);
- bool thumb32_STR_imm_2(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_STR_imm_3(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_STRT(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_STR_reg(Reg n, Reg t, Imm<2> imm2, Reg m);
-
- // thumb32 load byte and memory hints
- bool thumb32_PLD_lit(bool U, Imm<12> imm12);
- bool thumb32_PLD_imm8(bool W, Reg n, Imm<8> imm8);
- bool thumb32_PLD_imm12(bool W, Reg n, Imm<12> imm12);
- bool thumb32_PLD_reg(bool W, Reg n, Imm<2> imm2, Reg m);
- bool thumb32_PLI_lit(bool U, Imm<12> imm12);
- bool thumb32_PLI_imm8(Reg n, Imm<8> imm8);
- bool thumb32_PLI_imm12(Reg n, Imm<12> imm12);
- bool thumb32_PLI_reg(Reg n, Imm<2> imm2, Reg m);
- bool thumb32_LDRB_lit(bool U, Reg t, Imm<12> imm12);
- bool thumb32_LDRB_reg(Reg n, Reg t, Imm<2> imm2, Reg m);
- bool thumb32_LDRB_imm8(Reg n, Reg t, bool P, bool U, bool W, Imm<8> imm8);
- bool thumb32_LDRB_imm12(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_LDRBT(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_LDRSB_lit(bool U, Reg t, Imm<12> imm12);
- bool thumb32_LDRSB_reg(Reg n, Reg t, Imm<2> imm2, Reg m);
- bool thumb32_LDRSB_imm8(Reg n, Reg t, bool P, bool U, bool W, Imm<8> imm8);
- bool thumb32_LDRSB_imm12(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_LDRSBT(Reg n, Reg t, Imm<8> imm8);
-
- // thumb32 load halfword instructions
- bool thumb32_LDRH_lit(bool U, Reg t, Imm<12> imm12);
- bool thumb32_LDRH_reg(Reg n, Reg t, Imm<2> imm2, Reg m);
- bool thumb32_LDRH_imm8(Reg n, Reg t, bool P, bool U, bool W, Imm<8> imm8);
- bool thumb32_LDRH_imm12(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_LDRHT(Reg n, Reg t, Imm<8> imm8);
- bool thumb32_LDRSH_lit(bool U, Reg t, Imm<12> imm12);
- bool thumb32_LDRSH_reg(Reg n, Reg t, Imm<2> imm2, Reg m);
- bool thumb32_LDRSH_imm8(Reg n, Reg t, bool P, bool U, bool W, Imm<8> imm8);
- bool thumb32_LDRSH_imm12(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_LDRSHT(Reg n, Reg t, Imm<8> imm8);
-
- // thumb32 load word instructions
- bool thumb32_LDR_lit(bool U, Reg t, Imm<12> imm12);
- bool thumb32_LDR_reg(Reg n, Reg t, Imm<2> imm2, Reg m);
- bool thumb32_LDR_imm8(Reg n, Reg t, bool P, bool U, bool W, Imm<8> imm8);
- bool thumb32_LDR_imm12(Reg n, Reg t, Imm<12> imm12);
- bool thumb32_LDRT(Reg n, Reg t, Imm<8> imm8);
-
- // thumb32 data processing (register) instructions
- bool thumb32_ASR_reg(bool S, Reg m, Reg d, Reg s);
- bool thumb32_LSL_reg(bool S, Reg m, Reg d, Reg s);
- bool thumb32_LSR_reg(bool S, Reg m, Reg d, Reg s);
- bool thumb32_ROR_reg(bool S, Reg m, Reg d, Reg s);
- bool thumb32_SXTB(Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_SXTB16(Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_SXTAB(Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_SXTAB16(Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_SXTH(Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_SXTAH(Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_UXTB(Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_UXTB16(Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_UXTAB(Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_UXTAB16(Reg n, Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_UXTH(Reg d, SignExtendRotation rotate, Reg m);
- bool thumb32_UXTAH(Reg n, Reg d, SignExtendRotation rotate, Reg m);
-
- // thumb32 long multiply, long multiply accumulate, and divide instructions
- bool thumb32_SDIV(Reg n, Reg d, Reg m);
- bool thumb32_SMLAL(Reg n, Reg dLo, Reg dHi, Reg m);
- bool thumb32_SMLALD(Reg n, Reg dLo, Reg dHi, bool M, Reg m);
- bool thumb32_SMLALXY(Reg n, Reg dLo, Reg dHi, bool N, bool M, Reg m);
- bool thumb32_SMLSLD(Reg n, Reg dLo, Reg dHi, bool M, Reg m);
- bool thumb32_SMULL(Reg n, Reg dLo, Reg dHi, Reg m);
- bool thumb32_UDIV(Reg n, Reg d, Reg m);
- bool thumb32_UMAAL(Reg n, Reg dLo, Reg dHi, Reg m);
- bool thumb32_UMLAL(Reg n, Reg dLo, Reg dHi, Reg m);
- bool thumb32_UMULL(Reg n, Reg dLo, Reg dHi, Reg m);
-
- // thumb32 miscellaneous instructions
- bool thumb32_CLZ(Reg n, Reg d, Reg m);
- bool thumb32_QADD(Reg n, Reg d, Reg m);
- bool thumb32_QDADD(Reg n, Reg d, Reg m);
- bool thumb32_QDSUB(Reg n, Reg d, Reg m);
- bool thumb32_QSUB(Reg n, Reg d, Reg m);
- bool thumb32_RBIT(Reg n, Reg d, Reg m);
- bool thumb32_REV(Reg n, Reg d, Reg m);
- bool thumb32_REV16(Reg n, Reg d, Reg m);
- bool thumb32_REVSH(Reg n, Reg d, Reg m);
- bool thumb32_SEL(Reg n, Reg d, Reg m);
-
- // thumb32 multiply instructions
- bool thumb32_MLA(Reg n, Reg a, Reg d, Reg m);
- bool thumb32_MLS(Reg n, Reg a, Reg d, Reg m);
- bool thumb32_MUL(Reg n, Reg d, Reg m);
- bool thumb32_SMLAD(Reg n, Reg a, Reg d, bool X, Reg m);
- bool thumb32_SMLAXY(Reg n, Reg a, Reg d, bool N, bool M, Reg m);
- bool thumb32_SMLAWY(Reg n, Reg a, Reg d, bool M, Reg m);
- bool thumb32_SMLSD(Reg n, Reg a, Reg d, bool X, Reg m);
- bool thumb32_SMMLA(Reg n, Reg a, Reg d, bool R, Reg m);
- bool thumb32_SMMLS(Reg n, Reg a, Reg d, bool R, Reg m);
- bool thumb32_SMMUL(Reg n, Reg d, bool R, Reg m);
- bool thumb32_SMUAD(Reg n, Reg d, bool M, Reg m);
- bool thumb32_SMUSD(Reg n, Reg d, bool M, Reg m);
- bool thumb32_SMULXY(Reg n, Reg d, bool N, bool M, Reg m);
- bool thumb32_SMULWY(Reg n, Reg d, bool M, Reg m);
- bool thumb32_USAD8(Reg n, Reg d, Reg m);
- bool thumb32_USADA8(Reg n, Reg a, Reg d, Reg m);
-
- // thumb32 parallel add/sub instructions
- bool thumb32_SADD8(Reg n, Reg d, Reg m);
- bool thumb32_SADD16(Reg n, Reg d, Reg m);
- bool thumb32_SASX(Reg n, Reg d, Reg m);
- bool thumb32_SSAX(Reg n, Reg d, Reg m);
- bool thumb32_SSUB8(Reg n, Reg d, Reg m);
- bool thumb32_SSUB16(Reg n, Reg d, Reg m);
- bool thumb32_UADD8(Reg n, Reg d, Reg m);
- bool thumb32_UADD16(Reg n, Reg d, Reg m);
- bool thumb32_UASX(Reg n, Reg d, Reg m);
- bool thumb32_USAX(Reg n, Reg d, Reg m);
- bool thumb32_USUB8(Reg n, Reg d, Reg m);
- bool thumb32_USUB16(Reg n, Reg d, Reg m);
-
- bool thumb32_QADD8(Reg n, Reg d, Reg m);
- bool thumb32_QADD16(Reg n, Reg d, Reg m);
- bool thumb32_QASX(Reg n, Reg d, Reg m);
- bool thumb32_QSAX(Reg n, Reg d, Reg m);
- bool thumb32_QSUB8(Reg n, Reg d, Reg m);
- bool thumb32_QSUB16(Reg n, Reg d, Reg m);
- bool thumb32_UQADD8(Reg n, Reg d, Reg m);
- bool thumb32_UQADD16(Reg n, Reg d, Reg m);
- bool thumb32_UQASX(Reg n, Reg d, Reg m);
- bool thumb32_UQSAX(Reg n, Reg d, Reg m);
- bool thumb32_UQSUB8(Reg n, Reg d, Reg m);
- bool thumb32_UQSUB16(Reg n, Reg d, Reg m);
-
- bool thumb32_SHADD8(Reg n, Reg d, Reg m);
- bool thumb32_SHADD16(Reg n, Reg d, Reg m);
- bool thumb32_SHASX(Reg n, Reg d, Reg m);
- bool thumb32_SHSAX(Reg n, Reg d, Reg m);
- bool thumb32_SHSUB8(Reg n, Reg d, Reg m);
- bool thumb32_SHSUB16(Reg n, Reg d, Reg m);
- bool thumb32_UHADD8(Reg n, Reg d, Reg m);
- bool thumb32_UHADD16(Reg n, Reg d, Reg m);
- bool thumb32_UHASX(Reg n, Reg d, Reg m);
- bool thumb32_UHSAX(Reg n, Reg d, Reg m);
- bool thumb32_UHSUB8(Reg n, Reg d, Reg m);
- bool thumb32_UHSUB16(Reg n, Reg d, Reg m);
-
- // thumb32 coprocessor insturctions
- bool thumb32_MCRR(bool two, Reg t2, Reg t, size_t coproc_no, size_t opc, CoprocReg CRm);
- bool thumb32_MRRC(bool two, Reg t2, Reg t, size_t coproc_no, size_t opc, CoprocReg CRm);
- bool thumb32_STC(bool two, bool p, bool u, bool d, bool w, Reg n, CoprocReg CRd, size_t coproc_no, Imm<8> imm8);
- bool thumb32_LDC(bool two, bool p, bool u, bool d, bool w, Reg n, CoprocReg CRd, size_t coproc_no, Imm<8> imm8);
- bool thumb32_CDP(bool two, size_t opc1, CoprocReg CRn, CoprocReg CRd, size_t coproc_no, size_t opc2, CoprocReg CRm);
- bool thumb32_MCR(bool two, size_t opc1, CoprocReg CRn, Reg t, size_t coproc_no, size_t opc2, CoprocReg CRm);
- bool thumb32_MRC(bool two, size_t opc1, CoprocReg CRn, Reg t, size_t coproc_no, size_t opc2, CoprocReg CRm);
-
- // Floating-point three-register data processing instructions
- bool vfp_VADD(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VSUB(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VMUL(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VMLA(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VMLS(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VNMUL(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VNMLA(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VNMLS(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VDIV(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VFNMS(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VFNMA(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VFMA(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VFMS(Cond cond, bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VSEL(bool D, Imm<2> cc, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VMAXNM(bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
- bool vfp_VMINNM(bool D, size_t Vn, size_t Vd, bool sz, bool N, bool M, size_t Vm);
-
- // Floating-point move instructions
- bool vfp_VMOV_u32_f64(Cond cond, size_t Vd, Reg t, bool D);
- bool vfp_VMOV_f64_u32(Cond cond, size_t Vn, Reg t, bool N);
- bool vfp_VMOV_u32_f32(Cond cond, size_t Vn, Reg t, bool N);
- bool vfp_VMOV_f32_u32(Cond cond, size_t Vn, Reg t, bool N);
- bool vfp_VMOV_2u32_2f32(Cond cond, Reg t2, Reg t, bool M, size_t Vm);
- bool vfp_VMOV_2f32_2u32(Cond cond, Reg t2, Reg t, bool M, size_t Vm);
- bool vfp_VMOV_2u32_f64(Cond cond, Reg t2, Reg t, bool M, size_t Vm);
- bool vfp_VMOV_f64_2u32(Cond cond, Reg t2, Reg t, bool M, size_t Vm);
- bool vfp_VMOV_from_i32(Cond cond, Imm<1> i, size_t Vd, Reg t, bool D);
- bool vfp_VMOV_from_i16(Cond cond, Imm<1> i1, size_t Vd, Reg t, bool D, Imm<1> i2);
- bool vfp_VMOV_from_i8(Cond cond, Imm<1> i1, size_t Vd, Reg t, bool D, Imm<2> i2);
- bool vfp_VMOV_to_i32(Cond cond, Imm<1> i, size_t Vn, Reg t, bool N);
- bool vfp_VMOV_to_i16(Cond cond, bool U, Imm<1> i1, size_t Vn, Reg t, bool N, Imm<1> i2);
- bool vfp_VMOV_to_i8(Cond cond, bool U, Imm<1> i1, size_t Vn, Reg t, bool N, Imm<2> i2);
- bool vfp_VDUP(Cond cond, Imm<1> B, bool Q, size_t Vd, Reg t, bool D, Imm<1> E);
- bool vfp_VMOV_imm(Cond cond, bool D, Imm<4> imm4H, size_t Vd, bool sz, Imm<4> imm4L);
- bool vfp_VMOV_reg(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
-
- // Floating-point misc instructions
- bool vfp_VABS(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VNEG(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VSQRT(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VCVTB(Cond cond, bool D, bool op, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VCVTT(Cond cond, bool D, bool op, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VCMP(Cond cond, bool D, size_t Vd, bool sz, bool E, bool M, size_t Vm);
- bool vfp_VCMP_zero(Cond cond, bool D, size_t Vd, bool sz, bool E);
- bool vfp_VRINTR(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VRINTZ(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VRINTX(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VCVT_f_to_f(Cond cond, bool D, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VCVT_from_int(Cond cond, bool D, size_t Vd, bool sz, bool is_signed, bool M, size_t Vm);
- bool vfp_VCVT_from_fixed(Cond cond, bool D, bool U, size_t Vd, bool sz, bool sx, Imm<1> i, Imm<4> imm4);
- bool vfp_VCVT_to_u32(Cond cond, bool D, size_t Vd, bool sz, bool round_towards_zero, bool M, size_t Vm);
- bool vfp_VCVT_to_s32(Cond cond, bool D, size_t Vd, bool sz, bool round_towards_zero, bool M, size_t Vm);
- bool vfp_VCVT_to_fixed(Cond cond, bool D, bool U, size_t Vd, bool sz, bool sx, Imm<1> i, Imm<4> imm4);
- bool vfp_VRINT_rm(bool D, size_t rm, size_t Vd, bool sz, bool M, size_t Vm);
- bool vfp_VCVT_rm(bool D, size_t rm, size_t Vd, bool sz, bool U, bool M, size_t Vm);
-
- // Floating-point system register access
- bool vfp_VMSR(Cond cond, Reg t);
- bool vfp_VMRS(Cond cond, Reg t);
-
- // Floating-point load-store instructions
- bool vfp_VLDR(Cond cond, bool U, bool D, Reg n, size_t Vd, bool sz, Imm<8> imm8);
- bool vfp_VSTR(Cond cond, bool U, bool D, Reg n, size_t Vd, bool sz, Imm<8> imm8);
- bool vfp_VPOP(Cond cond, bool D, size_t Vd, bool sz, Imm<8> imm8);
- bool vfp_VPUSH(Cond cond, bool D, size_t Vd, bool sz, Imm<8> imm8);
- bool vfp_VSTM_a1(Cond cond, bool p, bool u, bool D, bool w, Reg n, size_t Vd, Imm<8> imm8);
- bool vfp_VSTM_a2(Cond cond, bool p, bool u, bool D, bool w, Reg n, size_t Vd, Imm<8> imm8);
- bool vfp_VLDM_a1(Cond cond, bool p, bool u, bool D, bool w, Reg n, size_t Vd, Imm<8> imm8);
- bool vfp_VLDM_a2(Cond cond, bool p, bool u, bool D, bool w, Reg n, size_t Vd, Imm<8> imm8);
-
- // Advanced SIMD one register, modified immediate
- bool asimd_VMOV_imm(Imm<1> a, bool D, Imm<1> b, Imm<1> c, Imm<1> d, size_t Vd, Imm<4> cmode, bool Q, bool op, Imm<1> e, Imm<1> f, Imm<1> g, Imm<1> h);
-
- // Advanced SIMD three register with same length
- bool asimd_VHADD(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VQADD(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VRHADD(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VAND_reg(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VBIC_reg(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VORR_reg(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VORN_reg(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VEOR_reg(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VBSL(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VBIT(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VBIF(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VHSUB(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VQSUB(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VCGT_reg(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VCGE_reg(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VABD(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VABA(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VADD_int(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VSUB_int(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VSHL_reg(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VQSHL_reg(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VRSHL(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMAX(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, bool op, size_t Vm);
- bool asimd_VTST(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VCEQ_reg(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMLA(bool op, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMUL(bool P, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VPMAX_int(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, bool op, size_t Vm);
- bool v8_VMAXNM(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool v8_VMINNM(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VQDMULH(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VQRDMULH(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VPADD(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VFMA(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VFMS(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VADD_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VSUB_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VPADD_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VABD_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMLA_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMLS_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMUL_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VCEQ_reg_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VCGE_reg_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VCGT_reg_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VACGE(bool D, bool op, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMAX_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VMIN_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VPMAX_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VPMIN_float(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VRECPS(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VRSQRTS(bool D, bool sz, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool v8_SHA256H(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool v8_SHA256H2(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
- bool v8_SHA256SU1(bool D, size_t Vn, size_t Vd, bool N, bool Q, bool M, size_t Vm);
-
- // Advanced SIMD three registers with different lengths
- bool asimd_VADDL(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool op, bool N, bool M, size_t Vm);
- bool asimd_VSUBL(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool op, bool N, bool M, size_t Vm);
- bool asimd_VABAL(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool M, size_t Vm);
- bool asimd_VABDL(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool M, size_t Vm);
- bool asimd_VMLAL(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool op, bool N, bool M, size_t Vm);
- bool asimd_VMULL(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool P, bool N, bool M, size_t Vm);
-
- // Advanced SIMD two registers and a scalar
- bool asimd_VMLA_scalar(bool Q, bool D, size_t sz, size_t Vn, size_t Vd, bool op, bool F, bool N, bool M, size_t Vm);
- bool asimd_VMLAL_scalar(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool op, bool N, bool M, size_t Vm);
- bool asimd_VMUL_scalar(bool Q, bool D, size_t sz, size_t Vn, size_t Vd, bool F, bool N, bool M, size_t Vm);
- bool asimd_VMULL_scalar(bool U, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool M, size_t Vm);
- bool asimd_VQDMULL_scalar(bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool M, size_t Vm);
- bool asimd_VQDMULH_scalar(bool Q, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool M, size_t Vm);
- bool asimd_VQRDMULH_scalar(bool Q, bool D, size_t sz, size_t Vn, size_t Vd, bool N, bool M, size_t Vm);
-
- // Two registers and a shift amount
- bool asimd_SHR(bool U, bool D, size_t imm6, size_t Vd, bool L, bool Q, bool M, size_t Vm);
- bool asimd_SRA(bool U, bool D, size_t imm6, size_t Vd, bool L, bool Q, bool M, size_t Vm);
- bool asimd_VRSHR(bool U, bool D, size_t imm6, size_t Vd, bool L, bool Q, bool M, size_t Vm);
- bool asimd_VRSRA(bool U, bool D, size_t imm6, size_t Vd, bool L, bool Q, bool M, size_t Vm);
- bool asimd_VSRI(bool D, size_t imm6, size_t Vd, bool L, bool Q, bool M, size_t Vm);
- bool asimd_VSHL(bool D, size_t imm6, size_t Vd, bool L, bool Q, bool M, size_t Vm);
- bool asimd_VSLI(bool D, size_t imm6, size_t Vd, bool L, bool Q, bool M, size_t Vm);
- bool asimd_VQSHL(bool U, bool D, size_t imm6, size_t Vd, bool op, bool L, bool Q, bool M, size_t Vm);
- bool asimd_VSHRN(bool D, size_t imm6, size_t Vd, bool M, size_t Vm);
- bool asimd_VRSHRN(bool D, size_t imm6, size_t Vd, bool M, size_t Vm);
- bool asimd_VQSHRUN(bool D, size_t imm6, size_t Vd, bool M, size_t Vm);
- bool asimd_VQRSHRUN(bool D, size_t imm6, size_t Vd, bool M, size_t Vm);
- bool asimd_VQSHRN(bool U, bool D, size_t imm6, size_t Vd, bool M, size_t Vm);
- bool asimd_VQRSHRN(bool U, bool D, size_t imm6, size_t Vd, bool M, size_t Vm);
- bool asimd_VSHLL(bool U, bool D, size_t imm6, size_t Vd, bool M, size_t Vm);
- bool asimd_VCVT_fixed(bool U, bool D, size_t imm6, size_t Vd, bool to_fixed, bool Q, bool M, size_t Vm);
-
- // Advanced SIMD two register, miscellaneous
- bool asimd_VREV(bool D, size_t sz, size_t Vd, size_t op, bool Q, bool M, size_t Vm);
- bool asimd_VPADDL(bool D, size_t sz, size_t Vd, bool op, bool Q, bool M, size_t Vm);
- bool v8_AESD(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool v8_AESE(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool v8_AESIMC(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool v8_AESMC(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool v8_SHA256SU0(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool asimd_VCLS(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VCLZ(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VCNT(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VMVN_reg(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VPADAL(bool D, size_t sz, size_t Vd, bool op, bool Q, bool M, size_t Vm);
- bool asimd_VQABS(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VQNEG(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VCGT_zero(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VCGE_zero(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VCEQ_zero(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VCLE_zero(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VCLT_zero(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VABS(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VNEG(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VSWP(bool D, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VTRN(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VUZP(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VZIP(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VMOVN(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool asimd_VQMOVUN(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool asimd_VQMOVN(bool D, size_t sz, size_t Vd, bool op, bool M, size_t Vm);
- bool asimd_VSHLL_max(bool D, size_t sz, size_t Vd, bool M, size_t Vm);
- bool v8_VRINTN(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool v8_VRINTX(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool v8_VRINTA(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool v8_VRINTZ(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool v8_VRINTM(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool v8_VRINTP(bool D, size_t sz, size_t Vd, bool Q, bool M, size_t Vm);
- bool asimd_VCVT_half(bool D, size_t sz, size_t Vd, bool op, bool M, size_t Vm);
- bool v8_VCVTA(bool D, size_t sz, size_t Vd, bool op, bool Q, bool M, size_t Vm);
- bool v8_VCVTN(bool D, size_t sz, size_t Vd, bool op, bool Q, bool M, size_t Vm);
- bool v8_VCVTP(bool D, size_t sz, size_t Vd, bool op, bool Q, bool M, size_t Vm);
- bool v8_VCVTM(bool D, size_t sz, size_t Vd, bool op, bool Q, bool M, size_t Vm);
- bool asimd_VRECPE(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VRSQRTE(bool D, size_t sz, size_t Vd, bool F, bool Q, bool M, size_t Vm);
- bool asimd_VCVT_integer(bool D, size_t sz, size_t Vd, bool op, bool U, bool Q, bool M, size_t Vm);
-
- // Advanced SIMD miscellaneous
- bool asimd_VEXT(bool D, size_t Vn, size_t Vd, Imm<4> imm4, bool N, bool Q, bool M, size_t Vm);
- bool asimd_VTBL(bool D, size_t Vn, size_t Vd, size_t len, bool N, bool M, size_t Vm);
- bool asimd_VTBX(bool D, size_t Vn, size_t Vd, size_t len, bool N, bool M, size_t Vm);
- bool asimd_VDUP_scalar(bool D, Imm<4> imm4, size_t Vd, bool Q, bool M, size_t Vm);
-
- // Advanced SIMD load/store structures
- bool v8_VST_multiple(bool D, Reg n, size_t Vd, Imm<4> type, size_t sz, size_t align, Reg m);
- bool v8_VLD_multiple(bool D, Reg n, size_t Vd, Imm<4> type, size_t sz, size_t align, Reg m);
- bool v8_VLD_all_lanes(bool D, Reg n, size_t Vd, size_t nn, size_t sz, bool T, bool a, Reg m);
- bool v8_VST_single(bool D, Reg n, size_t Vd, size_t sz, size_t nn, size_t index_align, Reg m);
- bool v8_VLD_single(bool D, Reg n, size_t Vd, size_t sz, size_t nn, size_t index_align, Reg m);
-};
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/translate/translate_callbacks.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/translate/translate_callbacks.h
deleted file mode 100644
index e0ad48ea..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A32/translate/translate_callbacks.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2021 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-#pragma once
-
-#include <cstdint>
-#include <optional>
-
-namespace Dynarmic::A32 {
-
-using VAddr = std::uint32_t;
-
-class IREmitter;
-
-struct TranslateCallbacks {
- // All reads through this callback are 4-byte aligned.
- // Memory must be interpreted as little endian.
- virtual std::optional<std::uint32_t> MemoryReadCode(VAddr vaddr) = 0;
-
- // This function is called before the instruction at pc is read.
- // IR code can be emitted by the callee prior to instruction handling.
- // By returning false the callee precludes the translation of the instruction;
- // in such case the callee is responsible for setting the terminal.
- virtual bool PreCodeReadHook(bool is_thumb, VAddr pc, A32::IREmitter& ir) = 0;
-
- // This function is called before the instruction at pc is interpreted.
- // IR code can be emitted by the callee prior to translation of the instruction.
- virtual void PreCodeTranslationHook(bool is_thumb, VAddr pc, A32::IREmitter& ir) = 0;
-
- // How many ticks should this instruction take to execute?
- virtual std::uint64_t GetTicksForCode(bool is_thumb, VAddr vaddr, std::uint32_t instruction) = 0;
-};
-
-} // namespace Dynarmic::A32
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A64/a64_ir_emitter.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A64/a64_ir_emitter.h
deleted file mode 100644
index 7fc8bea7..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A64/a64_ir_emitter.h
+++ /dev/null
@@ -1,102 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/A64/a64_location_descriptor.h"
-#include "dynarmic/frontend/A64/a64_types.h"
-#include "dynarmic/interface/A64/config.h"
-#include "dynarmic/ir/ir_emitter.h"
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::A64 {
-
-/**
- * Convenience class to construct a basic block of the intermediate representation.
- * `block` is the resulting block.
- * The user of this class updates `current_location` as appropriate.
- */
-class IREmitter : public IR::IREmitter {
-public:
- explicit IREmitter(IR::Block& block)
- : IR::IREmitter(block) {}
- explicit IREmitter(IR::Block& block, LocationDescriptor descriptor)
- : IR::IREmitter(block), current_location(descriptor) {}
-
- std::optional<LocationDescriptor> current_location;
-
- u64 PC() const;
- u64 AlignPC(size_t alignment) const;
-
- void SetCheckBit(const IR::U1& value);
- IR::U1 GetCFlag();
- IR::U32 GetNZCVRaw();
- void SetNZCVRaw(IR::U32 value);
- void SetNZCV(const IR::NZCV& nzcv);
-
- void CallSupervisor(u32 imm);
- void ExceptionRaised(Exception exception);
- void DataCacheOperationRaised(DataCacheOperation op, const IR::U64& value);
- void InstructionCacheOperationRaised(InstructionCacheOperation op, const IR::U64& value);
- void DataSynchronizationBarrier();
- void DataMemoryBarrier();
- void InstructionSynchronizationBarrier();
- IR::U32 GetCNTFRQ();
- IR::U64 GetCNTPCT(); // TODO: Ensure sub-basic-block cycle counts are updated before this.
- IR::U32 GetCTR();
- IR::U32 GetDCZID();
- IR::U64 GetTPIDR();
- IR::U64 GetTPIDRRO();
- void SetTPIDR(const IR::U64& value);
-
- void ClearExclusive();
- IR::U8 ReadMemory8(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U16 ReadMemory16(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U32 ReadMemory32(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U64 ReadMemory64(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U128 ReadMemory128(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U8 ExclusiveReadMemory8(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U16 ExclusiveReadMemory16(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U32 ExclusiveReadMemory32(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U64 ExclusiveReadMemory64(const IR::U64& vaddr, IR::AccType acc_type);
- IR::U128 ExclusiveReadMemory128(const IR::U64& vaddr, IR::AccType acc_type);
- void WriteMemory8(const IR::U64& vaddr, const IR::U8& value, IR::AccType acc_type);
- void WriteMemory16(const IR::U64& vaddr, const IR::U16& value, IR::AccType acc_type);
- void WriteMemory32(const IR::U64& vaddr, const IR::U32& value, IR::AccType acc_type);
- void WriteMemory64(const IR::U64& vaddr, const IR::U64& value, IR::AccType acc_type);
- void WriteMemory128(const IR::U64& vaddr, const IR::U128& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory8(const IR::U64& vaddr, const IR::U8& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory16(const IR::U64& vaddr, const IR::U16& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory32(const IR::U64& vaddr, const IR::U32& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory64(const IR::U64& vaddr, const IR::U64& value, IR::AccType acc_type);
- IR::U32 ExclusiveWriteMemory128(const IR::U64& vaddr, const IR::U128& value, IR::AccType acc_type);
-
- IR::U32 GetW(Reg source_reg);
- IR::U64 GetX(Reg source_reg);
- IR::U128 GetS(Vec source_vec);
- IR::U128 GetD(Vec source_vec);
- IR::U128 GetQ(Vec source_vec);
- IR::U64 GetSP();
- IR::U32 GetFPCR();
- IR::U32 GetFPSR();
- void SetW(Reg dest_reg, const IR::U32& value);
- void SetX(Reg dest_reg, const IR::U64& value);
- void SetS(Vec dest_vec, const IR::U128& value);
- void SetD(Vec dest_vec, const IR::U128& value);
- void SetQ(Vec dest_vec, const IR::U128& value);
- void SetSP(const IR::U64& value);
- void SetFPCR(const IR::U32& value);
- void SetFPSR(const IR::U32& value);
- void SetPC(const IR::U64& value);
-
-private:
- IR::U64 ImmCurrentLocationDescriptor();
-};
-
-} // namespace Dynarmic::A64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A64/a64_location_descriptor.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A64/a64_location_descriptor.h
deleted file mode 100644
index 122bebbc..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A64/a64_location_descriptor.h
+++ /dev/null
@@ -1,115 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <functional>
-#include <string>
-#include <tuple>
-
-#include <fmt/format.h>
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/common/fp/fpcr.h"
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace Dynarmic::A64 {
-
-/**
- * LocationDescriptor describes the location of a basic block.
- * The location is not solely based on the PC because other flags influence the way
- * instructions should be translated.
- */
-class LocationDescriptor {
-public:
- static constexpr size_t pc_bit_count = 56;
- static constexpr u64 pc_mask = mcl::bit::ones<u64>(pc_bit_count);
- static constexpr u32 fpcr_mask = 0x07C8'0000;
- static constexpr size_t fpcr_shift = 37;
- static constexpr size_t single_stepping_bit = 57;
- static_assert((pc_mask & (u64(fpcr_mask) << fpcr_shift) & (u64(1) << single_stepping_bit)) == 0);
-
- LocationDescriptor(u64 pc, FP::FPCR fpcr, bool single_stepping = false)
- : pc(pc & pc_mask), fpcr(fpcr.Value() & fpcr_mask), single_stepping(single_stepping) {}
-
- explicit LocationDescriptor(const IR::LocationDescriptor& o)
- : pc(o.Value() & pc_mask)
- , fpcr((o.Value() >> fpcr_shift) & fpcr_mask)
- , single_stepping(mcl::bit::get_bit<single_stepping_bit>(o.Value())) {}
-
- u64 PC() const { return mcl::bit::sign_extend<pc_bit_count>(pc); }
- FP::FPCR FPCR() const { return fpcr; }
- bool SingleStepping() const { return single_stepping; }
-
- bool operator==(const LocationDescriptor& o) const {
- return std::tie(pc, fpcr, single_stepping) == std::tie(o.pc, o.fpcr, o.single_stepping);
- }
-
- bool operator!=(const LocationDescriptor& o) const {
- return !operator==(o);
- }
-
- LocationDescriptor SetPC(u64 new_pc) const {
- return LocationDescriptor(new_pc, fpcr, single_stepping);
- }
-
- LocationDescriptor AdvancePC(int amount) const {
- return LocationDescriptor(static_cast<u64>(pc + amount), fpcr, single_stepping);
- }
-
- LocationDescriptor SetSingleStepping(bool new_single_stepping) const {
- return LocationDescriptor(pc, fpcr, new_single_stepping);
- }
-
- u64 UniqueHash() const noexcept {
- // This value MUST BE UNIQUE.
- // This calculation has to match up with EmitTerminalPopRSBHint
- const u64 fpcr_u64 = static_cast<u64>(fpcr.Value()) << fpcr_shift;
- const u64 single_stepping_u64 = static_cast<u64>(single_stepping) << single_stepping_bit;
- return pc | fpcr_u64 | single_stepping_u64;
- }
-
- operator IR::LocationDescriptor() const {
- return IR::LocationDescriptor{UniqueHash()};
- }
-
-private:
- u64 pc; ///< Current program counter value.
- FP::FPCR fpcr; ///< Floating point control register.
- bool single_stepping;
-};
-
-/**
- * Provides a string representation of a LocationDescriptor.
- *
- * @param descriptor The descriptor to get a string representation of
- */
-std::string ToString(const LocationDescriptor& descriptor);
-
-} // namespace Dynarmic::A64
-
-namespace std {
-template<>
-struct less<Dynarmic::A64::LocationDescriptor> {
- bool operator()(const Dynarmic::A64::LocationDescriptor& x, const Dynarmic::A64::LocationDescriptor& y) const noexcept {
- return x.UniqueHash() < y.UniqueHash();
- }
-};
-template<>
-struct hash<Dynarmic::A64::LocationDescriptor> {
- size_t operator()(const Dynarmic::A64::LocationDescriptor& x) const noexcept {
- return std::hash<u64>()(x.UniqueHash());
- }
-};
-} // namespace std
-
-template<>
-struct fmt::formatter<Dynarmic::A64::LocationDescriptor> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::A64::LocationDescriptor descriptor, FormatContext& ctx) const {
- return formatter<std::string>::format(Dynarmic::A64::ToString(descriptor), ctx);
- }
-};
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A64/a64_types.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A64/a64_types.h
deleted file mode 100644
index 6bc7a245..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A64/a64_types.h
+++ /dev/null
@@ -1,142 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string>
-
-#include <fmt/format.h>
-#include <mcl/assert.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/ir/cond.h"
-
-namespace Dynarmic::A64 {
-
-using Cond = IR::Cond;
-
-enum class Reg {
- R0,
- R1,
- R2,
- R3,
- R4,
- R5,
- R6,
- R7,
- R8,
- R9,
- R10,
- R11,
- R12,
- R13,
- R14,
- R15,
- R16,
- R17,
- R18,
- R19,
- R20,
- R21,
- R22,
- R23,
- R24,
- R25,
- R26,
- R27,
- R28,
- R29,
- R30,
- R31,
- LR = R30,
- SP = R31,
- ZR = R31,
-};
-
-enum class Vec {
- V0,
- V1,
- V2,
- V3,
- V4,
- V5,
- V6,
- V7,
- V8,
- V9,
- V10,
- V11,
- V12,
- V13,
- V14,
- V15,
- V16,
- V17,
- V18,
- V19,
- V20,
- V21,
- V22,
- V23,
- V24,
- V25,
- V26,
- V27,
- V28,
- V29,
- V30,
- V31,
-};
-
-enum class ShiftType {
- LSL,
- LSR,
- ASR,
- ROR,
-};
-
-const char* CondToString(Cond cond);
-std::string RegToString(Reg reg);
-std::string VecToString(Vec vec);
-
-constexpr size_t RegNumber(Reg reg) {
- return static_cast<size_t>(reg);
-}
-
-constexpr size_t VecNumber(Vec vec) {
- return static_cast<size_t>(vec);
-}
-
-inline Reg operator+(Reg reg, size_t number) {
- const size_t new_reg = RegNumber(reg) + number;
- ASSERT(new_reg <= 31);
-
- return static_cast<Reg>(new_reg);
-}
-
-inline Vec operator+(Vec vec, size_t number) {
- const size_t new_vec = VecNumber(vec) + number;
- ASSERT(new_vec <= 31);
-
- return static_cast<Vec>(new_vec);
-}
-
-} // namespace Dynarmic::A64
-
-template<>
-struct fmt::formatter<Dynarmic::A64::Reg> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::A64::Reg reg, FormatContext& ctx) const {
- return formatter<std::string>::format(Dynarmic::A64::RegToString(reg), ctx);
- }
-};
-
-template<>
-struct fmt::formatter<Dynarmic::A64::Vec> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::A64::Vec vec, FormatContext& ctx) const {
- return formatter<std::string>::format(Dynarmic::A64::VecToString(vec), ctx);
- }
-};
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A64/decoder/a64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A64/decoder/a64.h
deleted file mode 100644
index d6f447e5..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A64/decoder/a64.h
+++ /dev/null
@@ -1,83 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <algorithm>
-#include <functional>
-#include <optional>
-#include <set>
-#include <string>
-#include <vector>
-
-#include <mcl/bit/bit_count.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/frontend/decoder/decoder_detail.h"
-#include "dynarmic/frontend/decoder/matcher.h"
-
-namespace Dynarmic::A64 {
-
-template<typename Visitor>
-using Matcher = Decoder::Matcher<Visitor, u32>;
-
-template<typename Visitor>
-using DecodeTable = std::array<std::vector<Matcher<Visitor>>, 0x1000>;
-
-namespace detail {
-inline size_t ToFastLookupIndex(u32 instruction) {
- return ((instruction >> 10) & 0x00F) | ((instruction >> 18) & 0xFF0);
-}
-} // namespace detail
-
-template<typename V>
-DecodeTable<V> GetDecodeTable() {
- std::vector<Matcher<V>> list = {
-#define INST(fn, name, bitstring) DYNARMIC_DECODER_GET_MATCHER(Matcher, fn, name, Decoder::detail::StringToArray<32>(bitstring)),
-#include "./a64.inc"
-#undef INST
- };
-
- std::stable_sort(list.begin(), list.end(), [](const auto& matcher1, const auto& matcher2) {
- // If a matcher has more bits in its mask it is more specific, so it should come first.
- return mcl::bit::count_ones(matcher1.GetMask()) > mcl::bit::count_ones(matcher2.GetMask());
- });
-
- // Exceptions to the above rule of thumb.
- const std::set<std::string> comes_first{
- "MOVI, MVNI, ORR, BIC (vector, immediate)",
- "FMOV (vector, immediate)",
- "Unallocated SIMD modified immediate",
- };
-
- std::stable_partition(list.begin(), list.end(), [&](const auto& matcher) {
- return comes_first.count(matcher.GetName()) > 0;
- });
-
- DecodeTable<V> table{};
- for (size_t i = 0; i < table.size(); ++i) {
- for (auto matcher : list) {
- const auto expect = detail::ToFastLookupIndex(matcher.GetExpected());
- const auto mask = detail::ToFastLookupIndex(matcher.GetMask());
- if ((i & mask) == expect) {
- table[i].push_back(matcher);
- }
- }
- }
- return table;
-}
-
-template<typename V>
-std::optional<std::reference_wrapper<const Matcher<V>>> Decode(u32 instruction) {
- static const auto table = GetDecodeTable<V>();
-
- const auto matches_instruction = [instruction](const auto& matcher) { return matcher.Matches(instruction); };
-
- const auto& subtable = table[detail::ToFastLookupIndex(instruction)];
- auto iter = std::find_if(subtable.begin(), subtable.end(), matches_instruction);
- return iter != subtable.end() ? std::optional<std::reference_wrapper<const Matcher<V>>>(*iter) : std::nullopt;
-}
-
-} // namespace Dynarmic::A64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A64/translate/a64_translate.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A64/translate/a64_translate.h
deleted file mode 100644
index 2f62ac6e..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A64/translate/a64_translate.h
+++ /dev/null
@@ -1,59 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-#pragma once
-
-#include <functional>
-#include <optional>
-
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic {
-
-namespace IR {
-class Block;
-} // namespace IR
-
-namespace A64 {
-
-class LocationDescriptor;
-
-using MemoryReadCodeFuncType = std::function<std::optional<u32>(u64 vaddr)>;
-
-struct TranslationOptions {
- /// This changes what IR we emit when we translate an unpredictable instruction.
- /// If this is false, the ExceptionRaised IR instruction is emitted.
- /// If this is true, we define some behaviour for some instructions.
- bool define_unpredictable_behaviour = false;
-
- /// This tells the translator a wall clock will be used, thus allowing it
- /// to avoid writting certain unnecessary code only needed for cycle timers.
- bool wall_clock_cntpct = false;
-
- /// This changes what IR we emit when we translate a hint instruction.
- /// If this is false, we treat the instruction as a NOP.
- /// If this is true, we emit an ExceptionRaised instruction.
- bool hook_hint_instructions = true;
-};
-
-/**
- * This function translates instructions in memory into our intermediate representation.
- * @param descriptor The starting location of the basic block. Includes information like PC, FPCR state, &c.
- * @param memory_read_code The function we should use to read emulated memory.
- * @param options Configures how certain instructions are translated.
- * @return A translated basic block in the intermediate representation.
- */
-IR::Block Translate(LocationDescriptor descriptor, MemoryReadCodeFuncType memory_read_code, TranslationOptions options);
-
-/**
- * This function translates a single provided instruction into our intermediate representation.
- * @param block The block to append the IR for the instruction to.
- * @param descriptor The location of the instruction. Includes information like PC, FPCR state, &c.
- * @param instruction The instruction to translate.
- * @return The translated instruction translated to the intermediate representation.
- */
-bool TranslateSingleInstruction(IR::Block& block, LocationDescriptor descriptor, u32 instruction);
-
-} // namespace A64
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A64/translate/impl/impl.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A64/translate/impl/impl.h
deleted file mode 100644
index 86bc534d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/A64/translate/impl/impl.h
+++ /dev/null
@@ -1,1084 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-
-#include "dynarmic/frontend/A64/a64_ir_emitter.h"
-#include "dynarmic/frontend/A64/a64_location_descriptor.h"
-#include "dynarmic/frontend/A64/a64_types.h"
-#include "dynarmic/frontend/A64/translate/a64_translate.h"
-#include "dynarmic/frontend/imm.h"
-
-namespace Dynarmic::A64 {
-
-struct TranslatorVisitor final {
- using instruction_return_type = bool;
-
- explicit TranslatorVisitor(IR::Block& block, LocationDescriptor descriptor, TranslationOptions options)
- : ir(block, descriptor), options(std::move(options)) {}
-
- A64::IREmitter ir;
- TranslationOptions options;
-
- bool InterpretThisInstruction();
- bool UnpredictableInstruction();
- bool DecodeError();
- bool ReservedValue();
- bool UnallocatedEncoding();
- bool RaiseException(Exception exception);
-
- struct BitMasks {
- u64 wmask, tmask;
- };
-
- static std::optional<BitMasks> DecodeBitMasks(bool immN, Imm<6> imms, Imm<6> immr, bool immediate);
-
- IR::UAny I(size_t bitsize, u64 value);
- IR::UAny X(size_t bitsize, Reg reg);
- void X(size_t bitsize, Reg reg, IR::U32U64 value);
- IR::U32U64 SP(size_t bitsize);
- void SP(size_t bitsize, IR::U32U64 value);
-
- IR::U128 V(size_t bitsize, Vec vec);
- void V(size_t bitsize, Vec vec, IR::U128 value);
-
- IR::UAnyU128 V_scalar(size_t bitsize, Vec vec);
- void V_scalar(size_t bitsize, Vec vec, IR::UAnyU128 value);
-
- IR::U128 Vpart(size_t bitsize, Vec vec, size_t part);
- void Vpart(size_t bitsize, Vec vec, size_t part, IR::U128 value);
-
- IR::UAny Vpart_scalar(size_t bitsize, Vec vec, size_t part);
- void Vpart_scalar(size_t bitsize, Vec vec, size_t part, IR::UAny value);
-
- IR::UAnyU128 Mem(IR::U64 address, size_t size, IR::AccType acctype);
- void Mem(IR::U64 address, size_t size, IR::AccType acctype, IR::UAnyU128 value);
- IR::UAnyU128 ExclusiveMem(IR::U64 address, size_t size, IR::AccType acctype);
- IR::U32 ExclusiveMem(IR::U64 address, size_t size, IR::AccType acctype, IR::UAnyU128 value);
-
- IR::U32U64 SignExtend(IR::UAny value, size_t to_size);
- IR::U32U64 ZeroExtend(IR::UAny value, size_t to_size);
- IR::U32U64 ShiftReg(size_t bitsize, Reg reg, Imm<2> shift, IR::U8 amount);
- IR::U32U64 ExtendReg(size_t bitsize, Reg reg, Imm<3> option, u8 shift);
-
- // Data processing - Immediate - PC relative addressing
- bool ADR(Imm<2> immlo, Imm<19> immhi, Reg Rd);
- bool ADRP(Imm<2> immlo, Imm<19> immhi, Reg Rd);
-
- // Data processing - Immediate - Add/Sub (with tag)
- bool ADDG(Imm<6> offset_imm, Imm<4> tag_offset, Reg Rn, Reg Rd);
- bool SUBG(Imm<6> offset_imm, Imm<4> tag_offset, Reg Rn, Reg Rd);
-
- // Data processing - Immediate - Add/Sub
- bool ADD_imm(bool sf, Imm<2> shift, Imm<12> imm12, Reg Rn, Reg Rd);
- bool ADDS_imm(bool sf, Imm<2> shift, Imm<12> imm12, Reg Rn, Reg Rd);
- bool SUB_imm(bool sf, Imm<2> shift, Imm<12> imm12, Reg Rn, Reg Rd);
- bool SUBS_imm(bool sf, Imm<2> shift, Imm<12> imm12, Reg Rn, Reg Rd);
-
- // Data processing - Immediate - Logical
- bool AND_imm(bool sf, bool N, Imm<6> immr, Imm<6> imms, Reg Rn, Reg Rd);
- bool ORR_imm(bool sf, bool N, Imm<6> immr, Imm<6> imms, Reg Rn, Reg Rd);
- bool EOR_imm(bool sf, bool N, Imm<6> immr, Imm<6> imms, Reg Rn, Reg Rd);
- bool ANDS_imm(bool sf, bool N, Imm<6> immr, Imm<6> imms, Reg Rn, Reg Rd);
-
- // Data processing - Immediate - Move Wide
- bool MOVN(bool sf, Imm<2> hw, Imm<16> imm16, Reg Rd);
- bool MOVZ(bool sf, Imm<2> hw, Imm<16> imm16, Reg Rd);
- bool MOVK(bool sf, Imm<2> hw, Imm<16> imm16, Reg Rd);
-
- // Data processing - Immediate - Bitfield
- bool SBFM(bool sf, bool N, Imm<6> immr, Imm<6> imms, Reg Rn, Reg Rd);
- bool BFM(bool sf, bool N, Imm<6> immr, Imm<6> imms, Reg Rn, Reg Rd);
- bool UBFM(bool sf, bool N, Imm<6> immr, Imm<6> imms, Reg Rn, Reg Rd);
- bool ASR_1(Imm<5> immr, Reg Rn, Reg Rd);
- bool ASR_2(Imm<6> immr, Reg Rn, Reg Rd);
- bool SXTB_1(Reg Rn, Reg Rd);
- bool SXTB_2(Reg Rn, Reg Rd);
- bool SXTH_1(Reg Rn, Reg Rd);
- bool SXTH_2(Reg Rn, Reg Rd);
- bool SXTW(Reg Rn, Reg Rd);
-
- // Data processing - Immediate - Extract
- bool EXTR(bool sf, bool N, Reg Rm, Imm<6> imms, Reg Rn, Reg Rd);
-
- // Conditional branch
- bool B_cond(Imm<19> imm19, Cond cond);
-
- // Exception generation
- bool SVC(Imm<16> imm16);
- bool HVC(Imm<16> imm16);
- bool SMC(Imm<16> imm16);
- bool BRK(Imm<16> imm16);
- bool HLT(Imm<16> imm16);
- bool DCPS1(Imm<16> imm16);
- bool DCPS2(Imm<16> imm16);
- bool DCPS3(Imm<16> imm16);
-
- // System
- bool MSR_imm(Imm<3> op1, Imm<4> CRm, Imm<3> op2);
- bool HINT(Imm<4> CRm, Imm<3> op2);
- bool NOP();
- bool YIELD();
- bool WFE();
- bool WFI();
- bool SEV();
- bool SEVL();
- bool XPAC_1(bool D, Reg Rd);
- bool XPAC_2();
- bool PACIA_1(bool Z, Reg Rn, Reg Rd);
- bool PACIA_2();
- bool PACIB_1(bool Z, Reg Rn, Reg Rd);
- bool PACIB_2();
- bool AUTIA_1(bool Z, Reg Rn, Reg Rd);
- bool AUTIA_2();
- bool AUTIB_1(bool Z, Reg Rn, Reg Rd);
- bool AUTIB_2();
- bool BTI(Imm<2> upper_op2);
- bool ESB();
- bool PSB();
- bool TSB();
- bool CSDB();
- bool CLREX(Imm<4> CRm);
- bool DSB(Imm<4> CRm);
- bool SSBB();
- bool PSSBB();
- bool DMB(Imm<4> CRm);
- bool ISB(Imm<4> CRm);
- bool SYS(Imm<3> op1, Imm<4> CRn, Imm<4> CRm, Imm<3> op2, Reg Rt);
- bool SB();
- bool MSR_reg(Imm<1> o0, Imm<3> op1, Imm<4> CRn, Imm<4> CRm, Imm<3> op2, Reg Rt);
- bool SYSL(Imm<3> op1, Imm<4> CRn, Imm<4> CRm, Imm<3> op2, Reg Rt);
- bool MRS(Imm<1> o0, Imm<3> op1, Imm<4> CRn, Imm<4> CRm, Imm<3> op2, Reg Rt);
-
- // System - Flag manipulation instructions
- bool CFINV();
- bool RMIF(Imm<6> lsb, Reg Rn, Imm<4> mask);
- bool SETF8(Reg Rn);
- bool SETF16(Reg Rn);
-
- // System - Flag format instructions
- bool XAFlag();
- bool AXFlag();
-
- // SYS: Data Cache
- bool DC_IVAC(Reg Rt);
- bool DC_ISW(Reg Rt);
- bool DC_CSW(Reg Rt);
- bool DC_CISW(Reg Rt);
- bool DC_ZVA(Reg Rt);
- bool DC_CVAC(Reg Rt);
- bool DC_CVAU(Reg Rt);
- bool DC_CVAP(Reg Rt);
- bool DC_CIVAC(Reg Rt);
-
- // SYS: Instruction Cache
- bool IC_IALLU();
- bool IC_IALLUIS();
- bool IC_IVAU(Reg Rt);
-
- // Unconditional branch (Register)
- bool BR(Reg Rn);
- bool BRA(bool Z, bool M, Reg Rn, Reg Rm);
- bool BLR(Reg Rn);
- bool BLRA(bool Z, bool M, Reg Rn, Reg Rm);
- bool RET(Reg Rn);
- bool RETA(bool M);
- bool ERET();
- bool ERETA(bool M);
- bool DRPS();
-
- // Unconditional branch (immediate)
- bool B_uncond(Imm<26> imm26);
- bool BL(Imm<26> imm26);
-
- // Compare and branch (immediate)
- bool CBZ(bool sf, Imm<19> imm19, Reg Rt);
- bool CBNZ(bool sf, Imm<19> imm19, Reg Rt);
- bool TBZ(Imm<1> b5, Imm<5> b40, Imm<14> imm14, Reg Rt);
- bool TBNZ(Imm<1> b5, Imm<5> b40, Imm<14> imm14, Reg Rt);
-
- // Loads and stores - Advanced SIMD Load/Store multiple structures
- bool STx_mult_1(bool Q, Imm<4> opcode, Imm<2> size, Reg Rn, Vec Vt);
- bool STx_mult_2(bool Q, Reg Rm, Imm<4> opcode, Imm<2> size, Reg Rn, Vec Vt);
- bool LDx_mult_1(bool Q, Imm<4> opcode, Imm<2> size, Reg Rn, Vec Vt);
- bool LDx_mult_2(bool Q, Reg Rm, Imm<4> opcode, Imm<2> size, Reg Rn, Vec Vt);
-
- // Loads and stores - Advanced SIMD Load/Store single structures
- bool ST1_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool ST1_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool ST3_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool ST3_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool ST2_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool ST2_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool ST4_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool ST4_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD1_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD1_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD3_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD3_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD1R_1(bool Q, Imm<2> size, Reg Rn, Vec Vt);
- bool LD1R_2(bool Q, Reg Rm, Imm<2> size, Reg Rn, Vec Vt);
- bool LD3R_1(bool Q, Imm<2> size, Reg Rn, Vec Vt);
- bool LD3R_2(bool Q, Reg Rm, Imm<2> size, Reg Rn, Vec Vt);
- bool LD2_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD2_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD4_sngl_1(bool Q, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD4_sngl_2(bool Q, Reg Rm, Imm<2> upper_opcode, bool S, Imm<2> size, Reg Rn, Vec Vt);
- bool LD2R_1(bool Q, Imm<2> size, Reg Rn, Vec Vt);
- bool LD2R_2(bool Q, Reg Rm, Imm<2> size, Reg Rn, Vec Vt);
- bool LD4R_1(bool Q, Imm<2> size, Reg Rn, Vec Vt);
- bool LD4R_2(bool Q, Reg Rm, Imm<2> size, Reg Rn, Vec Vt);
-
- // Loads and stores - Load/Store Exclusive
- bool STXR(Imm<2> size, Reg Rs, Reg Rn, Reg Rt);
- bool STLXR(Imm<2> size, Reg Rs, Reg Rn, Reg Rt);
- bool STXP(Imm<1> size, Reg Rs, Reg Rt2, Reg Rn, Reg Rt);
- bool STLXP(Imm<1> size, Reg Rs, Reg Rt2, Reg Rn, Reg Rt);
- bool LDXR(Imm<2> size, Reg Rn, Reg Rt);
- bool LDAXR(Imm<2> size, Reg Rn, Reg Rt);
- bool LDXP(Imm<1> size, Reg Rt2, Reg Rn, Reg Rt);
- bool LDAXP(Imm<1> size, Reg Rt2, Reg Rn, Reg Rt);
- bool STLLR(Imm<2> size, Reg Rn, Reg Rt);
- bool STLR(Imm<2> size, Reg Rn, Reg Rt);
- bool LDLAR(Imm<2> size, Reg Rn, Reg Rt);
- bool LDAR(Imm<2> size, Reg Rn, Reg Rt);
- bool CASP(bool sz, bool L, Reg Rs, bool o0, Reg Rn, Reg Rt);
- bool CASB(bool L, Reg Rs, bool o0, Reg Rn, Reg Rt);
- bool CASH(bool L, Reg Rs, bool o0, Reg Rn, Reg Rt);
- bool CAS(bool sz, bool L, Reg Rs, bool o0, Reg Rn, Reg Rt);
-
- // Loads and stores - Load register (literal)
- bool LDR_lit_gen(bool opc_0, Imm<19> imm19, Reg Rt);
- bool LDR_lit_fpsimd(Imm<2> opc, Imm<19> imm19, Vec Vt);
- bool LDRSW_lit(Imm<19> imm19, Reg Rt);
- bool PRFM_lit(Imm<19> imm19, Imm<5> prfop);
-
- // Loads and stores - Load/Store no-allocate pair
- bool STNP_LDNP_gen(Imm<1> upper_opc, Imm<1> L, Imm<7> imm7, Reg Rt2, Reg Rn, Reg Rt);
- bool STNP_LDNP_fpsimd(Imm<2> opc, Imm<1> L, Imm<7> imm7, Vec Vt2, Reg Rn, Vec Vt);
-
- // Loads and stores - Load/Store register pair
- bool STP_LDP_gen(Imm<2> opc, bool not_postindex, bool wback, Imm<1> L, Imm<7> imm7, Reg Rt2, Reg Rn, Reg Rt);
- bool STP_LDP_fpsimd(Imm<2> opc, bool not_postindex, bool wback, Imm<1> L, Imm<7> imm7, Vec Vt2, Reg Rn, Vec Vt);
- bool STGP_1(Imm<7> offset_imm, Reg Rt2, Reg Rn, Reg Rt);
- bool STGP_2(Imm<7> offset_imm, Reg Rt2, Reg Rn, Reg Rt);
- bool STGP_3(Imm<7> offset_imm, Reg Rt2, Reg Rn, Reg Rt);
-
- // Loads and stores - Load/Store register (immediate)
- bool STRx_LDRx_imm_1(Imm<2> size, Imm<2> opc, Imm<9> imm9, bool not_postindex, Reg Rn, Reg Rt);
- bool STRx_LDRx_imm_2(Imm<2> size, Imm<2> opc, Imm<12> imm12, Reg Rn, Reg Rt);
- bool STURx_LDURx(Imm<2> size, Imm<2> opc, Imm<9> imm9, Reg Rn, Reg Rt);
- bool PRFM_imm(Imm<12> imm12, Reg Rn, Reg Rt);
- bool PRFM_unscaled_imm(Imm<9> imm9, Reg Rn, Reg Rt);
- bool STR_imm_fpsimd_1(Imm<2> size, Imm<1> opc_1, Imm<9> imm9, bool not_postindex, Reg Rn, Vec Vt);
- bool STR_imm_fpsimd_2(Imm<2> size, Imm<1> opc_1, Imm<12> imm12, Reg Rn, Vec Vt);
- bool LDR_imm_fpsimd_1(Imm<2> size, Imm<1> opc_1, Imm<9> imm9, bool not_postindex, Reg Rn, Vec Vt);
- bool LDR_imm_fpsimd_2(Imm<2> size, Imm<1> opc_1, Imm<12> imm12, Reg Rn, Vec Vt);
- bool STUR_fpsimd(Imm<2> size, Imm<1> opc_1, Imm<9> imm9, Reg Rn, Vec Vt);
- bool LDUR_fpsimd(Imm<2> size, Imm<1> opc_1, Imm<9> imm9, Reg Rn, Vec Vt);
-
- // Loads and stores - Load/Store register (unprivileged)
- bool STTRB(Imm<9> imm9, Reg Rn, Reg Rt);
- bool LDTRB(Imm<9> imm9, Reg Rn, Reg Rt);
- bool LDTRSB(Imm<2> opc, Imm<9> imm9, Reg Rn, Reg Rt);
- bool STTRH(Imm<9> imm9, Reg Rn, Reg Rt);
- bool LDTRH(Imm<9> imm9, Reg Rn, Reg Rt);
- bool LDTRSH(Imm<2> opc, Imm<9> imm9, Reg Rn, Reg Rt);
- bool STTR(Imm<2> size, Imm<9> imm9, Reg Rn, Reg Rt);
- bool LDTR(Imm<2> size, Imm<9> imm9, Reg Rn, Reg Rt);
- bool LDTRSW(Imm<9> imm9, Reg Rn, Reg Rt);
-
- // Loads and stores - Atomic memory options
- bool LDADDB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDCLRB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDEORB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSETB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSMAXB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSMINB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDUMAXB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDUMINB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool SWPB(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDAPRB(Reg Rn, Reg Rt);
- bool LDADDH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDCLRH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDEORH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSETH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSMAXH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSMINH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDUMAXH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDUMINH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool SWPH(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDAPRH(Reg Rn, Reg Rt);
- bool LDADD(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDCLR(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDEOR(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSET(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSMAX(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDSMIN(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDUMAX(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDUMIN(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool SWP(bool A, bool R, Reg Rs, Reg Rn, Reg Rt);
- bool LDAPR(Reg Rn, Reg Rt);
-
- // Loads and stores - Load/Store register (register offset)
- bool STRx_reg(Imm<2> size, Imm<1> opc_1, Reg Rm, Imm<3> option, bool S, Reg Rn, Reg Rt);
- bool LDRx_reg(Imm<2> size, Imm<1> opc_1, Reg Rm, Imm<3> option, bool S, Reg Rn, Reg Rt);
- bool STR_reg_fpsimd(Imm<2> size, Imm<1> opc_1, Reg Rm, Imm<3> option, bool S, Reg Rn, Vec Vt);
- bool LDR_reg_fpsimd(Imm<2> size, Imm<1> opc_1, Reg Rm, Imm<3> option, bool S, Reg Rn, Vec Vt);
-
- // Loads and stores - Load/Store memory tags
- bool STG_1(Imm<9> imm9, Reg Rn);
- bool STG_2(Imm<9> imm9, Reg Rn);
- bool STG_3(Imm<9> imm9, Reg Rn);
- bool LDG(Imm<9> offset_imm, Reg Rn, Reg Rt);
- bool STZG_1(Imm<9> offset_imm, Reg Rn);
- bool STZG_2(Imm<9> offset_imm, Reg Rn);
- bool STZG_3(Imm<9> offset_imm, Reg Rn);
- bool ST2G_1(Imm<9> offset_imm, Reg Rn);
- bool ST2G_2(Imm<9> offset_imm, Reg Rn);
- bool ST2G_3(Imm<9> offset_imm, Reg Rn);
- bool STGV(Reg Rn, Reg Rt);
- bool STZ2G_1(Imm<9> offset_imm, Reg Rn);
- bool STZ2G_2(Imm<9> offset_imm, Reg Rn);
- bool STZ2G_3(Imm<9> offset_imm, Reg Rn);
- bool LDGV(Reg Rn, Reg Rt);
-
- // Loads and stores - Load/Store register (pointer authentication)
- bool LDRA(bool M, bool S, Imm<9> imm9, bool W, Reg Rn, Reg Rt);
-
- // Data Processing - Register - 2 source
- bool UDIV(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool SDIV(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool LSLV(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool LSRV(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool ASRV(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool RORV(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool CRC32(bool sf, Reg Rm, Imm<2> sz, Reg Rn, Reg Rd);
- bool CRC32C(bool sf, Reg Rm, Imm<2> sz, Reg Rn, Reg Rd);
- bool PACGA(Reg Rm, Reg Rn, Reg Rd);
- bool SUBP(Reg Rm, Reg Rn, Reg Rd);
- bool IRG(Reg Rm, Reg Rn, Reg Rd);
- bool GMI(Reg Rm, Reg Rn, Reg Rd);
- bool SUBPS(Reg Rm, Reg Rn, Reg Rd);
-
- // Data Processing - Register - 1 source
- bool RBIT_int(bool sf, Reg Rn, Reg Rd);
- bool REV16_int(bool sf, Reg Rn, Reg Rd);
- bool REV(bool sf, bool opc_0, Reg Rn, Reg Rd);
- bool CLZ_int(bool sf, Reg Rn, Reg Rd);
- bool CLS_int(bool sf, Reg Rn, Reg Rd);
- bool REV32_int(Reg Rn, Reg Rd);
- bool PACDA(bool Z, Reg Rn, Reg Rd);
- bool PACDB(bool Z, Reg Rn, Reg Rd);
- bool AUTDA(bool Z, Reg Rn, Reg Rd);
- bool AUTDB(bool Z, Reg Rn, Reg Rd);
-
- // Data Processing - Register - Logical (shifted register)
- bool AND_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool BIC_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool ORR_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool ORN_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool EOR_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool EON(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool ANDS_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool BICS(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
-
- // Data Processing - Register - Add/Sub (shifted register)
- bool ADD_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool ADDS_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool SUB_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
- bool SUBS_shift(bool sf, Imm<2> shift, Reg Rm, Imm<6> imm6, Reg Rn, Reg Rd);
-
- // Data Processing - Register - Add/Sub (shifted register)
- bool ADD_ext(bool sf, Reg Rm, Imm<3> option, Imm<3> imm3, Reg Rn, Reg Rd);
- bool ADDS_ext(bool sf, Reg Rm, Imm<3> option, Imm<3> imm3, Reg Rn, Reg Rd);
- bool SUB_ext(bool sf, Reg Rm, Imm<3> option, Imm<3> imm3, Reg Rn, Reg Rd);
- bool SUBS_ext(bool sf, Reg Rm, Imm<3> option, Imm<3> imm3, Reg Rn, Reg Rd);
-
- // Data Processing - Register - Add/Sub (with carry)
- bool ADC(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool ADCS(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool SBC(bool sf, Reg Rm, Reg Rn, Reg Rd);
- bool SBCS(bool sf, Reg Rm, Reg Rn, Reg Rd);
-
- // Data Processing - Register - Conditional compare
- bool CCMN_reg(bool sf, Reg Rm, Cond cond, Reg Rn, Imm<4> nzcv);
- bool CCMP_reg(bool sf, Reg Rm, Cond cond, Reg Rn, Imm<4> nzcv);
- bool CCMN_imm(bool sf, Imm<5> imm5, Cond cond, Reg Rn, Imm<4> nzcv);
- bool CCMP_imm(bool sf, Imm<5> imm5, Cond cond, Reg Rn, Imm<4> nzcv);
-
- // Data Processing - Register - Conditional select
- bool CSEL(bool sf, Reg Rm, Cond cond, Reg Rn, Reg Rd);
- bool CSINC(bool sf, Reg Rm, Cond cond, Reg Rn, Reg Rd);
- bool CSINV(bool sf, Reg Rm, Cond cond, Reg Rn, Reg Rd);
- bool CSNEG(bool sf, Reg Rm, Cond cond, Reg Rn, Reg Rd);
-
- // Data Processing - Register - 3 source
- bool MADD(bool sf, Reg Rm, Reg Ra, Reg Rn, Reg Rd);
- bool MSUB(bool sf, Reg Rm, Reg Ra, Reg Rn, Reg Rd);
- bool SMADDL(Reg Rm, Reg Ra, Reg Rn, Reg Rd);
- bool SMSUBL(Reg Rm, Reg Ra, Reg Rn, Reg Rd);
- bool SMULH(Reg Rm, Reg Rn, Reg Rd);
- bool UMADDL(Reg Rm, Reg Ra, Reg Rn, Reg Rd);
- bool UMSUBL(Reg Rm, Reg Ra, Reg Rn, Reg Rd);
- bool UMULH(Reg Rm, Reg Rn, Reg Rd);
-
- // Data Processing - FP and SIMD - AES
- bool AESE(Vec Vn, Vec Vd);
- bool AESD(Vec Vn, Vec Vd);
- bool AESMC(Vec Vn, Vec Vd);
- bool AESIMC(Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SHA
- bool SHA1C(Vec Vm, Vec Vn, Vec Vd);
- bool SHA1P(Vec Vm, Vec Vn, Vec Vd);
- bool SHA1M(Vec Vm, Vec Vn, Vec Vd);
- bool SHA1SU0(Vec Vm, Vec Vn, Vec Vd);
- bool SHA256H(Vec Vm, Vec Vn, Vec Vd);
- bool SHA256H2(Vec Vm, Vec Vn, Vec Vd);
- bool SHA256SU1(Vec Vm, Vec Vn, Vec Vd);
- bool SHA1H(Vec Vn, Vec Vd);
- bool SHA1SU1(Vec Vn, Vec Vd);
- bool SHA256SU0(Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Scalar copy
- bool DUP_elt_1(Imm<5> imm5, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Scalar three
- bool FMULX_vec_1(Vec Vm, Vec Vn, Vec Vd);
- bool FMULX_vec_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FCMEQ_reg_1(Vec Vm, Vec Vn, Vec Vd);
- bool FCMEQ_reg_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FRECPS_1(Vec Vm, Vec Vn, Vec Vd);
- bool FRECPS_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FRSQRTS_1(Vec Vm, Vec Vn, Vec Vd);
- bool FRSQRTS_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FCMGE_reg_1(Vec Vm, Vec Vn, Vec Vd);
- bool FCMGE_reg_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FACGE_1(Vec Vm, Vec Vn, Vec Vd);
- bool FACGE_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FABD_1(Vec Vm, Vec Vn, Vec Vd);
- bool FABD_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FCMGT_reg_1(Vec Vm, Vec Vn, Vec Vd);
- bool FCMGT_reg_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FACGT_1(Vec Vm, Vec Vn, Vec Vd);
- bool FACGT_2(bool sz, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Two register misc FP16
- bool FCVTNS_1(Vec Vn, Vec Vd);
- bool FCVTMS_1(Vec Vn, Vec Vd);
- bool FCVTAS_1(Vec Vn, Vec Vd);
- bool SCVTF_int_1(Vec Vn, Vec Vd);
- bool FCMGT_zero_1(Vec Vn, Vec Vd);
- bool FCMEQ_zero_1(Vec Vn, Vec Vd);
- bool FCMLT_1(Vec Vn, Vec Vd);
- bool FCVTPS_1(Vec Vn, Vec Vd);
- bool FCVTZS_int_1(Vec Vn, Vec Vd);
- bool FRECPE_1(Vec Vn, Vec Vd);
- bool FRECPX_1(Vec Vn, Vec Vd);
- bool FCVTNU_1(Vec Vn, Vec Vd);
- bool FCVTMU_1(Vec Vn, Vec Vd);
- bool FCVTAU_1(Vec Vn, Vec Vd);
- bool UCVTF_int_1(Vec Vn, Vec Vd);
- bool FCMGE_zero_1(Vec Vn, Vec Vd);
- bool FCMLE_1(Vec Vn, Vec Vd);
- bool FCVTPU_1(Vec Vn, Vec Vd);
- bool FCVTZU_int_1(Vec Vn, Vec Vd);
- bool FRSQRTE_1(Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Two register misc
- bool FCVTNS_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTMS_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTAS_2(bool sz, Vec Vn, Vec Vd);
- bool SCVTF_int_2(bool sz, Vec Vn, Vec Vd);
- bool FCMGT_zero_2(bool sz, Vec Vn, Vec Vd);
- bool FCMEQ_zero_2(bool sz, Vec Vn, Vec Vd);
- bool FCMLT_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTPS_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTZS_int_2(bool sz, Vec Vn, Vec Vd);
- bool FRECPE_2(bool sz, Vec Vn, Vec Vd);
- bool FRECPX_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTNU_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTMU_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTAU_2(bool sz, Vec Vn, Vec Vd);
- bool UCVTF_int_2(bool sz, Vec Vn, Vec Vd);
- bool FCMGE_zero_2(bool sz, Vec Vn, Vec Vd);
- bool FCMLE_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTPU_2(bool sz, Vec Vn, Vec Vd);
- bool FCVTZU_int_2(bool sz, Vec Vn, Vec Vd);
- bool FRSQRTE_2(bool sz, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Scalar two register misc FP16
- bool FCVTNS_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTMS_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTAS_3(bool Q, Vec Vn, Vec Vd);
- bool SCVTF_int_3(bool Q, Vec Vn, Vec Vd);
- bool FCMGT_zero_3(bool Q, Vec Vn, Vec Vd);
- bool FCMEQ_zero_3(bool Q, Vec Vn, Vec Vd);
- bool FCMLT_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTPS_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTZS_int_3(bool Q, Vec Vn, Vec Vd);
- bool FRECPE_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTNU_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTMU_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTAU_3(bool Q, Vec Vn, Vec Vd);
- bool UCVTF_int_3(bool Q, Vec Vn, Vec Vd);
- bool FCMGE_zero_3(bool Q, Vec Vn, Vec Vd);
- bool FCMLE_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTPU_3(bool Q, Vec Vn, Vec Vd);
- bool FCVTZU_int_3(bool Q, Vec Vn, Vec Vd);
- bool FRSQRTE_3(bool Q, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Scalar two register misc
- bool FCVTNS_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTMS_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTAS_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool SCVTF_int_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCMGT_zero_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCMEQ_zero_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCMLT_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTPS_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTZS_int_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRECPE_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTNU_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTMU_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTAU_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool UCVTF_int_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCMGE_zero_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCMLE_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTPU_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTZU_int_4(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRSQRTE_4(bool Q, bool sz, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Scalar three same extra
- bool SQRDMLAH_vec_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQRDMLAH_vec_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQRDMLSH_vec_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQRDMLSH_vec_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Scalar two-register misc
- bool SUQADD_1(Imm<2> size, Vec Vn, Vec Vd);
- bool SQABS_1(Imm<2> size, Vec Vn, Vec Vd);
- bool CMGT_zero_1(Imm<2> size, Vec Vn, Vec Vd);
- bool CMEQ_zero_1(Imm<2> size, Vec Vn, Vec Vd);
- bool CMLT_1(Imm<2> size, Vec Vn, Vec Vd);
- bool ABS_1(Imm<2> size, Vec Vn, Vec Vd);
- bool SQXTN_1(Imm<2> size, Vec Vn, Vec Vd);
- bool USQADD_1(Imm<2> size, Vec Vn, Vec Vd);
- bool SQNEG_1(Imm<2> size, Vec Vn, Vec Vd);
- bool CMGE_zero_1(Imm<2> size, Vec Vn, Vec Vd);
- bool CMLE_1(Imm<2> size, Vec Vn, Vec Vd);
- bool NEG_1(Imm<2> size, Vec Vn, Vec Vd);
- bool SQXTUN_1(Imm<2> size, Vec Vn, Vec Vd);
- bool UQXTN_1(Imm<2> size, Vec Vn, Vec Vd);
- bool FCVTXN_1(bool sz, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Scalar pairwise
- bool ADDP_pair(Imm<2> size, Vec Vn, Vec Vd);
- bool FMAXNMP_pair_1(Vec Vn, Vec Vd);
- bool FMAXNMP_pair_2(bool sz, Vec Vn, Vec Vd);
- bool FADDP_pair_1(Vec Vn, Vec Vd);
- bool FADDP_pair_2(bool sz, Vec Vn, Vec Vd);
- bool FMAXP_pair_1(Vec Vn, Vec Vd);
- bool FMAXP_pair_2(bool sz, Vec Vn, Vec Vd);
- bool FMINNMP_pair_1(Vec Vn, Vec Vd);
- bool FMINNMP_pair_2(bool sz, Vec Vn, Vec Vd);
- bool FMINP_pair_1(Vec Vn, Vec Vd);
- bool FMINP_pair_2(bool sz, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Scalar three different
- bool SQDMLAL_vec_1(Imm<2> size, Reg Rm, Reg Rn, Vec Vd);
- bool SQDMLSL_vec_1(Imm<2> size, Reg Rm, Reg Rn, Vec Vd);
- bool SQDMULL_vec_1(Imm<2> size, Reg Rm, Reg Rn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Scalar three same
- bool SQADD_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQSUB_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMGT_reg_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMGE_reg_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SSHL_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQSHL_reg_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SRSHL_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQRSHL_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool ADD_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMTST_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQDMULH_vec_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQADD_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQSUB_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMHI_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMHS_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool USHL_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQSHL_reg_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool URSHL_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQRSHL_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SUB_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMEQ_reg_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQRDMULH_vec_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Scalar shift by immediate
- bool SSHR_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SSRA_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SRSHR_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SRSRA_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SHL_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHL_imm_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHRN_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQRSHRN_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SCVTF_fix_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool FCVTZS_fix_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool USHR_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool USRA_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool URSHR_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool URSRA_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SRI_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SLI_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHLU_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UQSHL_imm_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHRUN_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQRSHRUN_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UQSHRN_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UQRSHRN_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UCVTF_fix_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool FCVTZU_fix_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Scalar x indexed element
- bool SQDMLAL_elt_1(Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQDMLSL_elt_1(Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQDMULL_elt_1(Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQDMULH_elt_1(Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQRDMULH_elt_1(Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLA_elt_1(Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLA_elt_2(bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLS_elt_1(Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLS_elt_2(bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMUL_elt_1(Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMUL_elt_2(bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQRDMLAH_elt_1(Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQRDMLSH_elt_1(Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMULX_elt_1(Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMULX_elt_2(bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Table Lookup
- bool TBL(bool Q, Vec Vm, Imm<2> len, size_t Vn, Vec Vd);
- bool TBX(bool Q, Vec Vm, Imm<2> len, size_t Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Permute
- bool UZP1(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool TRN1(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool ZIP1(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UZP2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool TRN2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool ZIP2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Extract
- bool EXT(bool Q, Vec Vm, Imm<4> imm4, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Copy
- bool DUP_elt_2(bool Q, Imm<5> imm5, Vec Vn, Vec Vd);
- bool DUP_gen(bool Q, Imm<5> imm5, Reg Rn, Vec Vd);
- bool SMOV(bool Q, Imm<5> imm5, Vec Vn, Reg Rd);
- bool UMOV(bool Q, Imm<5> imm5, Vec Vn, Reg Rd);
- bool INS_gen(Imm<5> imm5, Reg Rn, Vec Vd);
- bool INS_elt(Imm<5> imm5, Imm<4> imm4, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Three same
- bool FMULX_vec_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FCMEQ_reg_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FRECPS_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FRSQRTS_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FCMGE_reg_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FACGE_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FABD_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FCMGT_reg_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FACGT_3(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMAXNM_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMLA_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FADD_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMAX_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMINNM_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMLS_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FSUB_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMIN_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMAXNMP_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FADDP_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMUL_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMAXP_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FDIV_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMINNMP_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMINP_vec_1(bool Q, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Three same extra
- bool SDOT_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UDOT_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool FCMLA_vec(bool Q, Imm<2> size, Vec Vm, Imm<2> rot, Vec Vn, Vec Vd);
- bool FCADD_vec(bool Q, Imm<2> size, Vec Vm, Imm<1> rot, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Two register misc
- bool REV64_asimd(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool REV16_asimd(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SADDLP(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CLS_asimd(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CNT(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SADALP(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool XTN(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool FCVTN(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FCVTL(bool Q, bool sz, Vec Vn, Vec Vd);
- bool URECPE(bool Q, bool sz, Vec Vn, Vec Vd);
- bool REV32_asimd(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool UADDLP(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CLZ_asimd(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool UADALP(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SHLL(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool NOT(bool Q, Vec Vn, Vec Vd);
- bool RBIT_asimd(bool Q, Vec Vn, Vec Vd);
- bool URSQRTE(bool Q, bool sz, Vec Vn, Vec Vd);
- bool SUQADD_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SQABS_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CMGT_zero_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CMEQ_zero_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CMLT_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool ABS_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SQXTN_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool USQADD_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SQNEG_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CMGE_zero_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool CMLE_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool NEG_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SQXTUN_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool UQXTN_2(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool FCVTXN_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINTN_1(bool Q, Vec Vn, Vec Vd);
- bool FRINTN_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINTM_1(bool Q, Vec Vn, Vec Vd);
- bool FRINTM_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FABS_1(bool Q, Vec Vn, Vec Vd);
- bool FABS_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINTP_1(bool Q, Vec Vn, Vec Vd);
- bool FRINTP_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINTZ_1(bool Q, Vec Vn, Vec Vd);
- bool FRINTZ_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINTA_1(bool Q, Vec Vn, Vec Vd);
- bool FRINTA_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINTX_1(bool Q, Vec Vn, Vec Vd);
- bool FRINTX_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FNEG_1(bool Q, Vec Vn, Vec Vd);
- bool FNEG_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINTI_1(bool Q, Vec Vn, Vec Vd);
- bool FRINTI_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FSQRT_1(bool Q, Vec Vn, Vec Vd);
- bool FSQRT_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINT32X_1(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINT64X_1(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINT32Z_1(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FRINT64Z_1(bool Q, bool sz, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD across lanes
- bool SADDLV(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SMAXV(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool SMINV(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool ADDV(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool FMAXNMV_1(bool Q, Vec Vn, Vec Vd);
- bool FMAXNMV_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FMAXV_1(bool Q, Vec Vn, Vec Vd);
- bool FMAXV_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FMINNMV_1(bool Q, Vec Vn, Vec Vd);
- bool FMINNMV_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool FMINV_1(bool Q, Vec Vn, Vec Vd);
- bool FMINV_2(bool Q, bool sz, Vec Vn, Vec Vd);
- bool UADDLV(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool UMAXV(bool Q, Imm<2> size, Vec Vn, Vec Vd);
- bool UMINV(bool Q, Imm<2> size, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD three different
- bool SADDL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SADDW(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SSUBL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SSUBW(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool ADDHN(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SABAL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SUBHN(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SABDL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SMLAL_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SMLSL_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SMULL_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool PMULL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UADDL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UADDW(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool USUBL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool USUBW(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool RADDHN(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UABAL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool RSUBHN(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UABDL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UMLAL_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UMLSL_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UMULL_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQDMLAL_vec_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQDMLSL_vec_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQDMULL_vec_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD three same
- bool SHADD(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SRHADD(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SHSUB(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SMAX(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SMIN(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SABD(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SABA(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool MLA_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool MUL_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SMAXP(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SMINP(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool ADDP_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool FMLAL_vec_1(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMLAL_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool AND_asimd(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool BIC_asimd_reg(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMLSL_vec_1(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMLSL_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool ORR_asimd_reg(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool ORN_asimd(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool UHADD(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool URHADD(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UHSUB(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UMAX(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UMIN(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UABD(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UABA(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool MLS_vec(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool PMUL(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UMAXP(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UMINP(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool EOR_asimd(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool BSL(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool BIT(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool BIF(bool Q, Vec Vm, Vec Vn, Vec Vd);
- bool FMAXNM_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMLA_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FADD_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMAX_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMINNM_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMLS_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FSUB_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMIN_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMAXNMP_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FADDP_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMUL_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMAXP_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FDIV_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMINNMP_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMINP_vec_2(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FMULX_vec_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FCMEQ_reg_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FRECPS_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FRSQRTS_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FCMGE_reg_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FACGE_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FABD_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FCMGT_reg_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool FACGT_4(bool Q, bool sz, Vec Vm, Vec Vn, Vec Vd);
- bool SQADD_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQSUB_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMGT_reg_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMGE_reg_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SSHL_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQSHL_reg_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SRSHL_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQRSHL_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool ADD_vector(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMTST_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQDMULH_vec_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQADD_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQSUB_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMHI_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMHS_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool USHL_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQSHL_reg_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool URSHL_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool UQRSHL_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SUB_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool CMEQ_reg_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
- bool SQRDMULH_vec_2(bool Q, Imm<2> size, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD modified immediate
- bool MOVI(bool Q, bool op, Imm<1> a, Imm<1> b, Imm<1> c, Imm<4> cmode, Imm<1> d, Imm<1> e, Imm<1> f, Imm<1> g, Imm<1> h, Vec Vd);
- bool FMOV_2(bool Q, bool op, Imm<1> a, Imm<1> b, Imm<1> c, Imm<1> d, Imm<1> e, Imm<1> f, Imm<1> g, Imm<1> h, Vec Vd);
- bool FMOV_3(bool Q, Imm<1> a, Imm<1> b, Imm<1> c, Imm<1> d, Imm<1> e, Imm<1> f, Imm<1> g, Imm<1> h, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD Shift by immediate
- bool SSHR_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SSRA_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SRSHR_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SRSRA_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SHL_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHL_imm_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SHRN(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool RSHRN(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHRN_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQRSHRN_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SSHLL(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SCVTF_fix_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool FCVTZS_fix_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool USHR_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool USRA_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool URSHR_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool URSRA_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SRI_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SLI_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHLU_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UQSHL_imm_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQSHRUN_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool SQRSHRUN_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UQSHRN_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UQRSHRN_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool USHLL(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool UCVTF_fix_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
- bool FCVTZU_fix_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SIMD vector x indexed element
- bool SMLAL_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQDMLAL_elt_2(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SMLSL_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQDMLSL_elt_2(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool MUL_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SMULL_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vm, Imm<1> H, Vec Vn, Vec Vd);
- bool SQDMULL_elt_2(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQDMULH_elt_2(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQRDMULH_elt_2(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SDOT_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLA_elt_3(bool Q, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLA_elt_4(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLS_elt_3(bool Q, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLS_elt_4(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMUL_elt_3(bool Q, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMUL_elt_4(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLAL_elt_1(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLAL_elt_2(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLSL_elt_1(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMLSL_elt_2(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool MLA_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool UMLAL_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool MLS_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool UMLSL_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool UMULL_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQRDMLAH_elt_2(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool UDOT_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool SQRDMLSH_elt_2(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMULX_elt_3(bool Q, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FMULX_elt_4(bool Q, bool sz, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<1> H, Vec Vn, Vec Vd);
- bool FCMLA_elt(bool Q, Imm<2> size, Imm<1> L, Imm<1> M, Imm<4> Vmlo, Imm<2> rot, Imm<1> H, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Cryptographic three register
- bool SM3TT1A(Vec Vm, Imm<2> imm2, Vec Vn, Vec Vd);
- bool SM3TT1B(Vec Vm, Imm<2> imm2, Vec Vn, Vec Vd);
- bool SM3TT2A(Vec Vm, Imm<2> imm2, Vec Vn, Vec Vd);
- bool SM3TT2B(Vec Vm, Imm<2> imm2, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SHA512 three register
- bool SHA512H(Vec Vm, Vec Vn, Vec Vd);
- bool SHA512H2(Vec Vm, Vec Vn, Vec Vd);
- bool SHA512SU1(Vec Vm, Vec Vn, Vec Vd);
- bool RAX1(Vec Vm, Vec Vn, Vec Vd);
- bool XAR(Vec Vm, Imm<6> imm6, Vec Vn, Vec Vd);
- bool SM3PARTW1(Vec Vm, Vec Vn, Vec Vd);
- bool SM3PARTW2(Vec Vm, Vec Vn, Vec Vd);
- bool SM4EKEY(Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Cryptographic four register
- bool EOR3(Vec Vm, Vec Va, Vec Vn, Vec Vd);
- bool BCAX(Vec Vm, Vec Va, Vec Vn, Vec Vd);
- bool SM3SS1(Vec Vm, Vec Va, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - SHA512 two register
- bool SHA512SU0(Vec Vn, Vec Vd);
- bool SM4E(Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Conversion between floating point and fixed point
- bool SCVTF_float_fix(bool sf, Imm<2> type, Imm<6> scale, Reg Rn, Vec Vd);
- bool UCVTF_float_fix(bool sf, Imm<2> type, Imm<6> scale, Reg Rn, Vec Vd);
- bool FCVTZS_float_fix(bool sf, Imm<2> type, Imm<6> scale, Vec Vn, Reg Rd);
- bool FCVTZU_float_fix(bool sf, Imm<2> type, Imm<6> scale, Vec Vn, Reg Rd);
-
- // Data Processing - FP and SIMD - Conversion between floating point and integer
- bool FCVTNS_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FCVTNU_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool SCVTF_float_int(bool sf, Imm<2> type, Reg Rn, Vec Vd);
- bool UCVTF_float_int(bool sf, Imm<2> type, Reg Rn, Vec Vd);
- bool FCVTAS_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FCVTAU_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FMOV_float_gen(bool sf, Imm<2> type, Imm<1> rmode_0, Imm<1> opc_0, size_t n, size_t d);
- bool FCVTPS_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FCVTPU_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FCVTMS_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FCVTMU_float(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FCVTZS_float_int(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FCVTZU_float_int(bool sf, Imm<2> type, Vec Vn, Reg Rd);
- bool FJCVTZS(Vec Vn, Reg Rd);
-
- // Data Processing - FP and SIMD - Floating point data processing
- bool FMOV_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FABS_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FNEG_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FSQRT_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FCVT_float(Imm<2> type, Imm<2> opc, Vec Vn, Vec Vd);
- bool FRINTN_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINTP_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINTM_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINTZ_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINTA_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINTX_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINTI_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINT32X_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINT64X_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINT32Z_float(Imm<2> type, Vec Vn, Vec Vd);
- bool FRINT64Z_float(Imm<2> type, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Floating point compare
- bool FCMP_float(Imm<2> type, Vec Vm, Vec Vn, bool cmp_with_zero);
- bool FCMPE_float(Imm<2> type, Vec Vm, Vec Vn, bool cmp_with_zero);
-
- // Data Processing - FP and SIMD - Floating point immediate
- bool FMOV_float_imm(Imm<2> type, Imm<8> imm8, Vec Vd);
-
- // Data Processing - FP and SIMD - Floating point conditional compare
- bool FCCMP_float(Imm<2> type, Vec Vm, Cond cond, Vec Vn, Imm<4> nzcv);
- bool FCCMPE_float(Imm<2> type, Vec Vm, Cond cond, Vec Vn, Imm<4> nzcv);
-
- // Data Processing - FP and SIMD - Floating point data processing two register
- bool FMUL_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FDIV_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FADD_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FSUB_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FMAX_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FMIN_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FMAXNM_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FMINNM_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
- bool FNMUL_float(Imm<2> type, Vec Vm, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Floating point conditional select
- bool FCSEL_float(Imm<2> type, Vec Vm, Cond cond, Vec Vn, Vec Vd);
-
- // Data Processing - FP and SIMD - Floating point data processing three register
- bool FMADD_float(Imm<2> type, Vec Vm, Vec Va, Vec Vn, Vec Vd);
- bool FMSUB_float(Imm<2> type, Vec Vm, Vec Va, Vec Vn, Vec Vd);
- bool FNMADD_float(Imm<2> type, Vec Vm, Vec Va, Vec Vn, Vec Vd);
- bool FNMSUB_float(Imm<2> type, Vec Vm, Vec Va, Vec Vn, Vec Vd);
-};
-
-inline std::optional<size_t> FPGetDataSize(Imm<2> type) {
- switch (type.ZeroExtend()) {
- case 0b00:
- return 32;
- case 0b01:
- return 64;
- case 0b11:
- return 16;
- }
- return std::nullopt;
-}
-
-} // namespace Dynarmic::A64
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/decoder/decoder_detail.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/decoder/decoder_detail.h
deleted file mode 100644
index cf7d0e64..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/decoder/decoder_detail.h
+++ /dev/null
@@ -1,190 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <algorithm>
-#include <array>
-#include <tuple>
-
-#include <mcl/assert.hpp>
-#include <mcl/bitsizeof.hpp>
-#include <mcl/type_traits/function_info.hpp>
-
-namespace Dynarmic::Decoder {
-namespace detail {
-
-template<size_t N>
-inline consteval std::array<char, N> StringToArray(const char (&str)[N + 1]) {
- std::array<char, N> result{};
- for (size_t i = 0; i < N; i++) {
- result[i] = str[i];
- }
- return result;
-}
-
-/**
- * Helper functions for the decoders.
- *
- * @tparam MatcherT The type of the Matcher to use.
- */
-template<class MatcherT>
-struct detail {
- using opcode_type = typename MatcherT::opcode_type;
- using visitor_type = typename MatcherT::visitor_type;
-
- static constexpr size_t opcode_bitsize = mcl::bitsizeof<opcode_type>;
-
- /**
- * Generates the mask and the expected value after masking from a given bitstring.
- * A '0' in a bitstring indicates that a zero must be present at that bit position.
- * A '1' in a bitstring indicates that a one must be present at that bit position.
- */
-#ifdef __clang__
- static constexpr auto GetMaskAndExpect(std::array<char, opcode_bitsize> bitstring) {
-#else
- static consteval auto GetMaskAndExpect(std::array<char, opcode_bitsize> bitstring) {
-#endif
- const auto one = static_cast<opcode_type>(1);
- opcode_type mask = 0, expect = 0;
- for (size_t i = 0; i < opcode_bitsize; i++) {
- const size_t bit_position = opcode_bitsize - i - 1;
- switch (bitstring[i]) {
- case '0':
- mask |= one << bit_position;
- break;
- case '1':
- expect |= one << bit_position;
- mask |= one << bit_position;
- break;
- default:
- // Ignore
- break;
- }
- }
- return std::make_tuple(mask, expect);
- }
-
- /**
- * Generates the masks and shifts for each argument.
- * A '-' in a bitstring indicates that we don't care about that value.
- * An argument is specified by a continuous string of the same character.
- */
- template<size_t N>
- static consteval auto GetArgInfo(std::array<char, opcode_bitsize> bitstring) {
- std::array<opcode_type, N> masks = {};
- std::array<size_t, N> shifts = {};
- size_t arg_index = 0;
- char ch = 0;
-
- for (size_t i = 0; i < opcode_bitsize; i++) {
- if (bitstring[i] == '0' || bitstring[i] == '1' || bitstring[i] == '-') {
- if (ch != 0) {
- ch = 0;
- arg_index++;
- }
- } else {
- if (ch == 0) {
- ch = bitstring[i];
- } else if (ch != bitstring[i]) {
- ch = bitstring[i];
- arg_index++;
- }
-
- if constexpr (N > 0) {
- const size_t bit_position = opcode_bitsize - i - 1;
-
- if (arg_index >= N)
- throw std::out_of_range("Unexpected field");
-
- masks[arg_index] |= static_cast<opcode_type>(1) << bit_position;
- shifts[arg_index] = bit_position;
- } else {
- throw std::out_of_range("Unexpected field");
- }
- }
- }
-
-#if !defined(DYNARMIC_IGNORE_ASSERTS) && !defined(__ANDROID__)
- // Avoids a MSVC ICE, and avoids Android NDK issue.
- ASSERT(std::all_of(masks.begin(), masks.end(), [](auto m) { return m != 0; }));
-#endif
-
- return std::make_tuple(masks, shifts);
- }
-
- /**
- * This struct's Make member function generates a lambda which decodes an instruction based on
- * the provided arg_masks and arg_shifts. The Visitor member function to call is provided as a
- * template argument.
- */
- template<typename FnT>
- struct VisitorCaller;
-
-#ifdef _MSC_VER
-# pragma warning(push)
-# pragma warning(disable : 4800) // forcing value to bool 'true' or 'false' (performance warning)
-#endif
- template<typename Visitor, typename... Args, typename CallRetT>
- struct VisitorCaller<CallRetT (Visitor::*)(Args...)> {
- template<size_t... iota>
- static auto Make(std::integer_sequence<size_t, iota...>,
- CallRetT (Visitor::*const fn)(Args...),
- const std::array<opcode_type, sizeof...(iota)> arg_masks,
- const std::array<size_t, sizeof...(iota)> arg_shifts) {
- static_assert(std::is_same_v<visitor_type, Visitor>, "Member function is not from Matcher's Visitor");
- return [fn, arg_masks, arg_shifts](Visitor& v, opcode_type instruction) {
- (void)instruction;
- (void)arg_masks;
- (void)arg_shifts;
- return (v.*fn)(static_cast<Args>((instruction & arg_masks[iota]) >> arg_shifts[iota])...);
- };
- }
- };
-
- template<typename Visitor, typename... Args, typename CallRetT>
- struct VisitorCaller<CallRetT (Visitor::*)(Args...) const> {
- template<size_t... iota>
- static auto Make(std::integer_sequence<size_t, iota...>,
- CallRetT (Visitor::*const fn)(Args...) const,
- const std::array<opcode_type, sizeof...(iota)> arg_masks,
- const std::array<size_t, sizeof...(iota)> arg_shifts) {
- static_assert(std::is_same_v<visitor_type, const Visitor>, "Member function is not from Matcher's Visitor");
- return [fn, arg_masks, arg_shifts](const Visitor& v, opcode_type instruction) {
- (void)instruction;
- (void)arg_masks;
- (void)arg_shifts;
- return (v.*fn)(static_cast<Args>((instruction & arg_masks[iota]) >> arg_shifts[iota])...);
- };
- }
- };
-#ifdef _MSC_VER
-# pragma warning(pop)
-#endif
-
- /**
- * Creates a matcher that can match and parse instructions based on bitstring.
- * See also: GetMaskAndExpect and GetArgInfo for format of bitstring.
- */
- template<auto bitstring, typename FnT>
- static auto GetMatcher(FnT fn, const char* const name) {
- constexpr size_t args_count = mcl::parameter_count_v<FnT>;
-
- constexpr auto mask = std::get<0>(GetMaskAndExpect(bitstring));
- constexpr auto expect = std::get<1>(GetMaskAndExpect(bitstring));
- constexpr auto arg_masks = std::get<0>(GetArgInfo<args_count>(bitstring));
- constexpr auto arg_shifts = std::get<1>(GetArgInfo<args_count>(bitstring));
-
- using Iota = std::make_index_sequence<args_count>;
-
- const auto proxy_fn = VisitorCaller<FnT>::Make(Iota(), fn, arg_masks, arg_shifts);
- return MatcherT(name, mask, expect, proxy_fn);
- }
-};
-
-#define DYNARMIC_DECODER_GET_MATCHER(MatcherT, fn, name, bitstring) Decoder::detail::detail<MatcherT<V>>::template GetMatcher<bitstring>(&V::fn, name)
-
-} // namespace detail
-} // namespace Dynarmic::Decoder
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/decoder/matcher.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/decoder/matcher.h
deleted file mode 100644
index adf9556d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/decoder/matcher.h
+++ /dev/null
@@ -1,76 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <functional>
-
-#include <mcl/assert.hpp>
-
-namespace Dynarmic::Decoder {
-
-/**
- * Generic instruction handling construct.
- *
- * @tparam Visitor An arbitrary visitor type that will be passed through
- * to the function being handled. This type must be the
- * type of the first parameter in a handler function.
- *
- * @tparam OpcodeType Type representing an opcode. This must be the
- * type of the second parameter in a handler function.
- */
-template<typename Visitor, typename OpcodeType>
-class Matcher {
-public:
- using opcode_type = OpcodeType;
- using visitor_type = Visitor;
- using handler_return_type = typename Visitor::instruction_return_type;
- using handler_function = std::function<handler_return_type(Visitor&, opcode_type)>;
-
- Matcher(const char* const name, opcode_type mask, opcode_type expected, handler_function func)
- : name{name}, mask{mask}, expected{expected}, fn{std::move(func)} {}
-
- /// Gets the name of this type of instruction.
- const char* GetName() const {
- return name;
- }
-
- /// Gets the mask for this instruction.
- opcode_type GetMask() const {
- return mask;
- }
-
- /// Gets the expected value after masking for this instruction.
- opcode_type GetExpected() const {
- return expected;
- }
-
- /**
- * Tests to see if the given instruction is the instruction this matcher represents.
- * @param instruction The instruction to test
- * @returns true if the given instruction matches.
- */
- bool Matches(opcode_type instruction) const {
- return (instruction & mask) == expected;
- }
-
- /**
- * Calls the corresponding instruction handler on visitor for this type of instruction.
- * @param v The visitor to use
- * @param instruction The instruction to decode.
- */
- handler_return_type call(Visitor& v, opcode_type instruction) const {
- ASSERT(Matches(instruction));
- return fn(v, instruction);
- }
-
-private:
- const char* name;
- opcode_type mask;
- opcode_type expected;
- handler_function fn;
-};
-
-} // namespace Dynarmic::Decoder
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/imm.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/imm.h
deleted file mode 100644
index 7d86abbb..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/frontend/imm.h
+++ /dev/null
@@ -1,168 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <type_traits>
-
-#include <mcl/assert.hpp>
-#include <mcl/bit/bit_field.hpp>
-#include <mcl/bitsizeof.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/common/math_util.h"
-
-namespace Dynarmic {
-
-/**
- * Imm represents an immediate value in an AArch32/AArch64 instruction.
- * Imm is used during translation as a typesafe way of passing around immediates of fixed sizes.
- */
-template<size_t bit_size_>
-class Imm {
-public:
- static constexpr size_t bit_size = bit_size_;
-
- explicit Imm(u32 value)
- : value(value) {
- ASSERT_MSG((mcl::bit::get_bits<0, bit_size - 1>(value) == value), "More bits in value than expected");
- }
-
- template<typename T = u32>
- T ZeroExtend() const {
- static_assert(mcl::bitsizeof<T> >= bit_size);
- return static_cast<T>(value);
- }
-
- template<typename T = s32>
- T SignExtend() const {
- static_assert(mcl::bitsizeof<T> >= bit_size);
- return static_cast<T>(mcl::bit::sign_extend<bit_size, std::make_unsigned_t<T>>(value));
- }
-
- template<size_t bit>
- bool Bit() const {
- static_assert(bit < bit_size);
- return mcl::bit::get_bit<bit>(value);
- }
-
- template<size_t begin_bit, size_t end_bit, typename T = u32>
- T Bits() const {
- static_assert(begin_bit <= end_bit && end_bit < bit_size);
- static_assert(mcl::bitsizeof<T> >= end_bit - begin_bit + 1);
- return static_cast<T>(mcl::bit::get_bits<begin_bit, end_bit>(value));
- }
-
- bool operator==(Imm other) const {
- return value == other.value;
- }
-
- bool operator!=(Imm other) const {
- return !operator==(other);
- }
-
- bool operator<(Imm other) const {
- return value < other.value;
- }
-
- bool operator<=(Imm other) const {
- return value <= other.value;
- }
-
- bool operator>(Imm other) const {
- return value > other.value;
- }
-
- bool operator>=(Imm other) const {
- return value >= other.value;
- }
-
-private:
- static_assert(bit_size != 0, "Cannot have a zero-sized immediate");
- static_assert(bit_size <= 32, "Cannot have an immediate larger than the instruction size");
-
- u32 value;
-};
-
-template<size_t bit_size>
-bool operator==(u32 a, Imm<bit_size> b) {
- return Imm<bit_size>{a} == b;
-}
-
-template<size_t bit_size>
-bool operator==(Imm<bit_size> a, u32 b) {
- return Imm<bit_size>{b} == a;
-}
-
-template<size_t bit_size>
-bool operator!=(u32 a, Imm<bit_size> b) {
- return !operator==(a, b);
-}
-
-template<size_t bit_size>
-bool operator!=(Imm<bit_size> a, u32 b) {
- return !operator==(a, b);
-}
-
-template<size_t bit_size>
-bool operator<(u32 a, Imm<bit_size> b) {
- return Imm<bit_size>{a} < b;
-}
-
-template<size_t bit_size>
-bool operator<(Imm<bit_size> a, u32 b) {
- return a < Imm<bit_size>{b};
-}
-
-template<size_t bit_size>
-bool operator<=(u32 a, Imm<bit_size> b) {
- return !operator<(b, a);
-}
-
-template<size_t bit_size>
-bool operator<=(Imm<bit_size> a, u32 b) {
- return !operator<(b, a);
-}
-
-template<size_t bit_size>
-bool operator>(u32 a, Imm<bit_size> b) {
- return operator<(b, a);
-}
-
-template<size_t bit_size>
-bool operator>(Imm<bit_size> a, u32 b) {
- return operator<(b, a);
-}
-
-template<size_t bit_size>
-bool operator>=(u32 a, Imm<bit_size> b) {
- return !operator<(a, b);
-}
-
-template<size_t bit_size>
-bool operator>=(Imm<bit_size> a, u32 b) {
- return !operator<(a, b);
-}
-
-/**
- * Concatenate immediates together.
- * Left to right corresponds to most significant imm to least significant imm.
- * This is equivalent to a:b:...:z in ASL.
- */
-template<size_t first_bit_size, size_t... rest_bit_sizes>
-auto concatenate(Imm<first_bit_size> first, Imm<rest_bit_sizes>... rest) {
- if constexpr (sizeof...(rest) == 0) {
- return first;
- } else {
- const auto concat_rest = concatenate(rest...);
- const u32 value = (first.ZeroExtend() << concat_rest.bit_size) | concat_rest.ZeroExtend();
- return Imm<Common::Sum(first_bit_size, rest_bit_sizes...)>{value};
- }
-}
-
-/// Expands an Advanced SIMD modified immediate.
-u64 AdvSIMDExpandImm(bool op, Imm<4> cmode, Imm<8> imm8);
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A32/a32.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A32/a32.h
deleted file mode 100644
index e1c5b40f..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A32/a32.h
+++ /dev/null
@@ -1,109 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstddef>
-#include <cstdint>
-#include <memory>
-#include <string>
-#include <vector>
-
-#include "dynarmic/interface/A32/config.h"
-#include "dynarmic/interface/halt_reason.h"
-
-namespace Dynarmic {
-namespace A32 {
-
-class Jit final {
-public:
- explicit Jit(UserConfig conf);
- ~Jit();
-
- /**
- * Runs the emulated CPU.
- * Cannot be recursively called.
- */
- HaltReason Run();
-
- /**
- * Steps the emulated CPU.
- * Cannot be recursively called.
- */
- HaltReason Step();
-
- /**
- * Clears the code cache of all compiled code.
- * Can be called at any time. Halts execution if called within a callback.
- */
- void ClearCache();
-
- /**
- * Invalidate the code cache at a range of addresses.
- * @param start_address The starting address of the range to invalidate.
- * @param length The length (in bytes) of the range to invalidate.
- */
- void InvalidateCacheRange(std::uint32_t start_address, std::size_t length);
-
- /**
- * Reset CPU state to state at startup. Does not clear code cache.
- * Cannot be called from a callback.
- */
- void Reset();
-
- /**
- * Stops execution in Jit::Run.
- */
- void HaltExecution(HaltReason hr = HaltReason::UserDefined1);
-
- /**
- * Clears a halt reason from flags.
- * Warning: Only use this if you're sure this won't introduce races.
- */
- void ClearHalt(HaltReason hr = HaltReason::UserDefined1);
-
- /// View and modify registers.
- std::array<std::uint32_t, 16>& Regs();
- const std::array<std::uint32_t, 16>& Regs() const;
- std::array<std::uint32_t, 64>& ExtRegs();
- const std::array<std::uint32_t, 64>& ExtRegs() const;
-
- /// View and modify CPSR.
- std::uint32_t Cpsr() const;
- void SetCpsr(std::uint32_t value);
-
- /// View and modify FPSCR.
- std::uint32_t Fpscr() const;
- void SetFpscr(std::uint32_t value);
-
- /// Clears exclusive state for this core.
- void ClearExclusiveState();
-
- /**
- * Returns true if Jit::Run was called but hasn't returned yet.
- * i.e.: We're in a callback.
- */
- bool IsExecuting() const {
- return is_executing;
- }
-
- /// Debugging: Dump a disassembly all compiled code to the console.
- void DumpDisassembly() const;
-
- /**
- * Disassemble the instructions following the current pc and return
- * the resulting instructions as a vector of their string representations.
- */
- std::vector<std::string> Disassemble() const;
-
-private:
- bool is_executing = false;
-
- struct Impl;
- std::unique_ptr<Impl> impl;
-};
-
-} // namespace A32
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A32/arch_version.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A32/arch_version.h
deleted file mode 100644
index 240e40ee..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A32/arch_version.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2020 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic {
-namespace A32 {
-
-enum class ArchVersion {
- v3,
- v4,
- v4T,
- v5TE,
- v6K,
- v6T2,
- v7,
- v8,
-};
-
-} // namespace A32
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A32/config.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A32/config.h
deleted file mode 100644
index a3c2aa15..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A32/config.h
+++ /dev/null
@@ -1,246 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <cstddef>
-#include <cstdint>
-#include <memory>
-#include <optional>
-
-#include "dynarmic/frontend/A32/translate/translate_callbacks.h"
-#include "dynarmic/interface/A32/arch_version.h"
-#include "dynarmic/interface/optimization_flags.h"
-
-namespace Dynarmic {
-class ExclusiveMonitor;
-} // namespace Dynarmic
-
-namespace Dynarmic {
-namespace A32 {
-
-using VAddr = std::uint32_t;
-
-class Coprocessor;
-
-enum class Exception {
- /// An UndefinedFault occured due to executing instruction with an unallocated encoding
- UndefinedInstruction,
- /// An unpredictable instruction is to be executed. Implementation-defined behaviour should now happen.
- /// This behaviour is up to the user of this library to define.
- UnpredictableInstruction,
- /// A decode error occurred when decoding this instruction. This should never happen.
- DecodeError,
- /// A SEV instruction was executed. The event register of all PEs should be set. (Hint instruction.)
- SendEvent,
- /// A SEVL instruction was executed. The event register of the current PE should be set. (Hint instruction.)
- SendEventLocal,
- /// A WFI instruction was executed. You may now enter a low-power state. (Hint instruction.)
- WaitForInterrupt,
- /// A WFE instruction was executed. You may now enter a low-power state if the event register is clear. (Hint instruction.)
- WaitForEvent,
- /// A YIELD instruction was executed. (Hint instruction.)
- Yield,
- /// A BKPT instruction was executed.
- Breakpoint,
- /// A PLD instruction was executed. (Hint instruction.)
- PreloadData,
- /// A PLDW instruction was executed. (Hint instruction.)
- PreloadDataWithIntentToWrite,
- /// A PLI instruction was executed. (Hint instruction.)
- PreloadInstruction,
- /// Attempted to execute a code block at an address for which MemoryReadCode returned std::nullopt.
- /// (Intended to be used to emulate memory protection faults.)
- NoExecuteFault,
-};
-
-/// These function pointers may be inserted into compiled code.
-struct UserCallbacks : public TranslateCallbacks {
- virtual ~UserCallbacks() = default;
-
- // All reads through this callback are 4-byte aligned.
- // Memory must be interpreted as little endian.
- std::optional<std::uint32_t> MemoryReadCode(VAddr vaddr) override { return MemoryRead32(vaddr); }
-
- // This function is called before the instruction at pc is read.
- // IR code can be emitted by the callee prior to instruction handling.
- // By returning true the callee precludes the translation of the instruction;
- // in such case the callee is responsible for setting the terminal.
- bool PreCodeReadHook(bool /*is_thumb*/, VAddr /*pc*/, A32::IREmitter& /*ir*/) override { return true; }
-
- // Thus function is called before the instruction at pc is interpreted.
- // IR code can be emitted by the callee prior to translation of the instruction.
- void PreCodeTranslationHook(bool /*is_thumb*/, VAddr /*pc*/, A32::IREmitter& /*ir*/) override {}
-
- // Reads through these callbacks may not be aligned.
- // Memory must be interpreted as if ENDIANSTATE == 0, endianness will be corrected by the JIT.
- virtual std::uint8_t MemoryRead8(VAddr vaddr) = 0;
- virtual std::uint16_t MemoryRead16(VAddr vaddr) = 0;
- virtual std::uint32_t MemoryRead32(VAddr vaddr) = 0;
- virtual std::uint64_t MemoryRead64(VAddr vaddr) = 0;
-
- // Writes through these callbacks may not be aligned.
- virtual void MemoryWrite8(VAddr vaddr, std::uint8_t value) = 0;
- virtual void MemoryWrite16(VAddr vaddr, std::uint16_t value) = 0;
- virtual void MemoryWrite32(VAddr vaddr, std::uint32_t value) = 0;
- virtual void MemoryWrite64(VAddr vaddr, std::uint64_t value) = 0;
-
- // Writes through these callbacks may not be aligned.
- virtual bool MemoryWriteExclusive8(VAddr /*vaddr*/, std::uint8_t /*value*/, std::uint8_t /*expected*/) { return false; }
- virtual bool MemoryWriteExclusive16(VAddr /*vaddr*/, std::uint16_t /*value*/, std::uint16_t /*expected*/) { return false; }
- virtual bool MemoryWriteExclusive32(VAddr /*vaddr*/, std::uint32_t /*value*/, std::uint32_t /*expected*/) { return false; }
- virtual bool MemoryWriteExclusive64(VAddr /*vaddr*/, std::uint64_t /*value*/, std::uint64_t /*expected*/) { return false; }
-
- // If this callback returns true, the JIT will assume MemoryRead* callbacks will always
- // return the same value at any point in time for this vaddr. The JIT may use this information
- // in optimizations.
- // A conservative implementation that always returns false is safe.
- virtual bool IsReadOnlyMemory(VAddr /*vaddr*/) { return false; }
-
- /// The interpreter must execute exactly num_instructions starting from PC.
- virtual void InterpreterFallback(VAddr pc, size_t num_instructions) = 0;
-
- // This callback is called whenever a SVC instruction is executed.
- virtual void CallSVC(std::uint32_t swi) = 0;
-
- virtual void ExceptionRaised(VAddr pc, Exception exception) = 0;
-
- virtual void InstructionSynchronizationBarrierRaised() {}
-
- // Timing-related callbacks
- // ticks ticks have passed
- virtual void AddTicks(std::uint64_t ticks) = 0;
- // How many more ticks am I allowed to execute?
- virtual std::uint64_t GetTicksRemaining() = 0;
- // How many ticks should this instruction take to execute?
- std::uint64_t GetTicksForCode(bool /*is_thumb*/, VAddr /*vaddr*/, std::uint32_t /*instruction*/) override { return 1; }
-};
-
-struct UserConfig {
- UserCallbacks* callbacks;
-
- size_t processor_id = 0;
- ExclusiveMonitor* global_monitor = nullptr;
-
- /// Select the architecture version to use.
- /// There are minor behavioural differences between versions.
- ArchVersion arch_version = ArchVersion::v8;
-
- /// This selects other optimizations than can't otherwise be disabled by setting other
- /// configuration options. This includes:
- /// - IR optimizations
- /// - Block linking optimizations
- /// - RSB optimizations
- /// This is intended to be used for debugging.
- OptimizationFlag optimizations = all_safe_optimizations;
-
- bool HasOptimization(OptimizationFlag f) const {
- if (!unsafe_optimizations) {
- f &= all_safe_optimizations;
- }
- return (f & optimizations) != no_optimizations;
- }
-
- /// This enables unsafe optimizations that reduce emulation accuracy in favour of speed.
- /// For safety, in order to enable unsafe optimizations you have to set BOTH this flag
- /// AND the appropriate flag bits above.
- /// The prefered and tested mode for this library is with unsafe optimizations disabled.
- bool unsafe_optimizations = false;
-
- // Page Table
- // The page table is used for faster memory access. If an entry in the table is nullptr,
- // the JIT will fallback to calling the MemoryRead*/MemoryWrite* callbacks.
- static constexpr std::size_t PAGE_BITS = 12;
- static constexpr std::size_t NUM_PAGE_TABLE_ENTRIES = 1 << (32 - PAGE_BITS);
- std::array<std::uint8_t*, NUM_PAGE_TABLE_ENTRIES>* page_table = nullptr;
- /// Determines if the pointer in the page_table shall be offseted locally or globally.
- /// 'false' will access page_table[addr >> bits][addr & mask]
- /// 'true' will access page_table[addr >> bits][addr]
- /// Note: page_table[addr >> bits] will still be checked to verify active pages.
- /// So there might be wrongly faulted pages which maps to nullptr.
- /// This can be avoided by carefully allocating the memory region.
- bool absolute_offset_page_table = false;
- /// Masks out the first N bits in host pointers from the page table.
- /// The intention behind this is to allow users of Dynarmic to pack attributes in the
- /// same integer and update the pointer attribute pair atomically.
- /// If the configured value is 3, all pointers will be forcefully aligned to 8 bytes.
- int page_table_pointer_mask_bits = 0;
- /// Determines if we should detect memory accesses via page_table that straddle are
- /// misaligned. Accesses that straddle page boundaries will fallback to the relevant
- /// memory callback.
- /// This value should be the required access sizes this applies to ORed together.
- /// To detect any access, use: 8 | 16 | 32 | 64.
- std::uint8_t detect_misaligned_access_via_page_table = 0;
- /// Determines if the above option only triggers when the misalignment straddles a
- /// page boundary.
- bool only_detect_misalignment_via_page_table_on_page_boundary = false;
-
- // Fastmem Pointer
- // This should point to the beginning of a 4GB address space which is in arranged just like
- // what you wish for emulated memory to be. If the host page faults on an address, the JIT
- // will fallback to calling the MemoryRead*/MemoryWrite* callbacks.
- void* fastmem_pointer = nullptr;
- /// Determines if instructions that pagefault should cause recompilation of that block
- /// with fastmem disabled.
- /// Recompiled code will use the page_table if this is available, otherwise memory
- /// accesses will hit the memory callbacks.
- bool recompile_on_fastmem_failure = true;
-
- /// Determines if we should use the above fastmem_pointer for exclusive reads and
- /// writes. On x64, dynarmic currently relies on x64 cmpxchg semantics which may not
- /// provide fully accurate emulation.
- bool fastmem_exclusive_access = false;
- /// Determines if exclusive access instructions that pagefault should cause
- /// recompilation of that block with fastmem disabled. Recompiled code will use memory
- /// callbacks.
- bool recompile_on_exclusive_fastmem_failure = true;
-
- // Coprocessors
- std::array<std::shared_ptr<Coprocessor>, 16> coprocessors{};
-
- /// When set to true, UserCallbacks::InstructionSynchronizationBarrierRaised will be
- /// called when an ISB instruction is executed.
- /// When set to false, ISB will be treated as a NOP instruction.
- bool hook_isb = false;
-
- /// Hint instructions would cause ExceptionRaised to be called with the appropriate
- /// argument.
- bool hook_hint_instructions = false;
-
- /// This option relates to translation. Generally when we run into an unpredictable
- /// instruction the ExceptionRaised callback is called. If this is true, we define
- /// definite behaviour for some unpredictable instructions.
- bool define_unpredictable_behaviour = false;
-
- /// HACK:
- /// This tells the translator a wall clock will be used, thus allowing it
- /// to avoid writting certain unnecessary code only needed for cycle timers.
- bool wall_clock_cntpct = false;
-
- /// This allows accurately emulating protection fault handlers. If true, we check
- /// for exit after every data memory access by the emulated program.
- bool check_halt_on_memory_access = false;
-
- /// This option allows you to disable cycle counting. If this is set to false,
- /// AddTicks and GetTicksRemaining are never called, and no cycle counting is done.
- bool enable_cycle_counting = true;
-
- /// This option relates to the CPSR.E flag. Enabling this option disables modification
- /// of CPSR.E by the emulated program, forcing it to 0.
- /// NOTE: Calling Jit::SetCpsr with CPSR.E=1 while this option is enabled may result
- /// in unusual behavior.
- bool always_little_endian = false;
-
- // Minimum size is about 8MiB. Maximum size is about 128MiB (arm64 host) or 2GiB (x64 host).
- // Maximum size is limited by the maximum length of a x86_64 / arm64 jump.
- size_t code_cache_size = 128 * 1024 * 1024; // bytes
-
- /// Internal use only
- bool very_verbose_debugging_output = false;
-};
-
-} // namespace A32
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A32/coprocessor.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A32/coprocessor.h
deleted file mode 100644
index 7ee2e96e..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A32/coprocessor.h
+++ /dev/null
@@ -1,110 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstdint>
-#include <optional>
-#include <variant>
-
-#include "dynarmic/interface/A32/coprocessor_util.h"
-
-namespace Dynarmic {
-namespace A32 {
-
-class Jit;
-
-class Coprocessor {
-public:
- virtual ~Coprocessor() = default;
-
- struct Callback {
- /**
- * @param jit CPU state
- * @param user_arg Set to Callback::user_arg at runtime
- * @param arg0 Purpose of this argument depends on type of callback.
- * @param arg1 Purpose of this argument depends on type of callback.
- * @return Purpose of return value depends on type of callback.
- */
- std::uint64_t (*function)(void* user_arg, std::uint32_t arg0, std::uint32_t arg1);
- /// If std::nullopt, function will be called with a user_arg parameter containing garbage.
- std::optional<void*> user_arg;
- };
-
- /**
- * std::monostate: coprocessor exception will be compiled
- * Callback: a call to the Callback will be compiled
- * std::uint32_t*: a write/read to that memory address will be compiled
- */
- using CallbackOrAccessOneWord = std::variant<std::monostate, Callback, std::uint32_t*>;
-
- /**
- * std::monostate: coprocessor exception will be compiled
- * Callback: a call to the Callback will be compiled
- * std::array<std::uint32_t*, 2>: a write/read to those memory addresses will be compiled
- */
- using CallbackOrAccessTwoWords = std::variant<std::monostate, Callback, std::array<std::uint32_t*, 2>>;
-
- /**
- * Called when compiling CDP or CDP2 for this coprocessor.
- * A return value of std::nullopt will cause a coprocessor exception to be compiled.
- * arg0, arg1 and return value of callback are ignored.
- */
- virtual std::optional<Callback> CompileInternalOperation(bool two, unsigned opc1, CoprocReg CRd, CoprocReg CRn, CoprocReg CRm, unsigned opc2) = 0;
-
- /**
- * Called when compiling MCR or MCR2 for this coprocessor.
- * A return value of std::monostate will cause a coprocessor exception to be compiled.
- * arg0 of the callback will contain the word sent to the coprocessor.
- * arg1 and return value of the callback are ignored.
- */
- virtual CallbackOrAccessOneWord CompileSendOneWord(bool two, unsigned opc1, CoprocReg CRn, CoprocReg CRm, unsigned opc2) = 0;
-
- /**
- * Called when compiling MCRR or MCRR2 for this coprocessor.
- * A return value of std::monostate will cause a coprocessor exception to be compiled.
- * arg0 and arg1 of the callback will contain the words sent to the coprocessor.
- * The return value of the callback is ignored.
- */
- virtual CallbackOrAccessTwoWords CompileSendTwoWords(bool two, unsigned opc, CoprocReg CRm) = 0;
-
- /**
- * Called when compiling MRC or MRC2 for this coprocessor.
- * A return value of std::monostate will cause a coprocessor exception to be compiled.
- * The return value of the callback should contain word from coprocessor.
- * The low word of the return value will be stored in Rt.
- * arg0 and arg1 of the callback are ignored.
- */
- virtual CallbackOrAccessOneWord CompileGetOneWord(bool two, unsigned opc1, CoprocReg CRn, CoprocReg CRm, unsigned opc2) = 0;
-
- /**
- * Called when compiling MRRC or MRRC2 for this coprocessor.
- * A return value of std::monostate will cause a coprocessor exception to be compiled.
- * The return value of the callback should contain words from coprocessor.
- * The low word of the return value will be stored in Rt.
- * The high word of the return value will be stored in Rt2.
- * arg0 and arg1 of the callback are ignored.
- */
- virtual CallbackOrAccessTwoWords CompileGetTwoWords(bool two, unsigned opc, CoprocReg CRm) = 0;
-
- /**
- * Called when compiling LDC or LDC2 for this coprocessor.
- * A return value of std::nullopt will cause a coprocessor exception to be compiled.
- * arg0 of the callback will contain the start address.
- * arg1 and return value of the callback are ignored.
- */
- virtual std::optional<Callback> CompileLoadWords(bool two, bool long_transfer, CoprocReg CRd, std::optional<std::uint8_t> option) = 0;
-
- /**
- * Called when compiling STC or STC2 for this coprocessor.
- * A return value of std::nullopt will cause a coprocessor exception to be compiled.
- * arg0 of the callback will contain the start address.
- * arg1 and return value of the callback are ignored.
- */
- virtual std::optional<Callback> CompileStoreWords(bool two, bool long_transfer, CoprocReg CRd, std::optional<std::uint8_t> option) = 0;
-};
-
-} // namespace A32
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A32/coprocessor_util.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A32/coprocessor_util.h
deleted file mode 100644
index ed695d17..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A32/coprocessor_util.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic {
-namespace A32 {
-
-enum class CoprocReg {
- C0,
- C1,
- C2,
- C3,
- C4,
- C5,
- C6,
- C7,
- C8,
- C9,
- C10,
- C11,
- C12,
- C13,
- C14,
- C15
-};
-
-} // namespace A32
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A32/disassembler.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A32/disassembler.h
deleted file mode 100644
index 54058bf5..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A32/disassembler.h
+++ /dev/null
@@ -1,18 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstdint>
-#include <string>
-
-namespace Dynarmic {
-namespace A32 {
-
-std::string DisassembleArm(std::uint32_t instruction);
-std::string DisassembleThumb16(std::uint16_t instruction);
-
-} // namespace A32
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A64/a64.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A64/a64.h
deleted file mode 100644
index a150da84..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A64/a64.h
+++ /dev/null
@@ -1,137 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <cstddef>
-#include <cstdint>
-#include <memory>
-#include <string>
-#include <vector>
-
-#include "dynarmic/interface/A64/config.h"
-#include "dynarmic/interface/halt_reason.h"
-
-namespace Dynarmic {
-namespace A64 {
-
-class Jit final {
-public:
- explicit Jit(UserConfig conf);
- ~Jit();
-
- /**
- * Runs the emulated CPU.
- * Cannot be recursively called.
- */
- HaltReason Run();
-
- /**
- * Step the emulated CPU for one instruction.
- * Cannot be recursively called.
- */
- HaltReason Step();
-
- /**
- * Clears the code cache of all compiled code.
- * Can be called at any time. Halts execution if called within a callback.
- */
- void ClearCache();
-
- /**
- * Invalidate the code cache at a range of addresses.
- * @param start_address The starting address of the range to invalidate.
- * @param length The length (in bytes) of the range to invalidate.
- */
- void InvalidateCacheRange(std::uint64_t start_address, std::size_t length);
-
- /**
- * Reset CPU state to state at startup. Does not clear code cache.
- * Cannot be called from a callback.
- */
- void Reset();
-
- /**
- * Stops execution in Jit::Run.
- */
- void HaltExecution(HaltReason hr = HaltReason::UserDefined1);
-
- /**
- * Clears a halt reason from flags.
- * Warning: Only use this if you're sure this won't introduce races.
- */
- void ClearHalt(HaltReason hr = HaltReason::UserDefined1);
-
- /// Read Stack Pointer
- std::uint64_t GetSP() const;
- /// Modify Stack Pointer
- void SetSP(std::uint64_t value);
-
- /// Read Program Counter
- std::uint64_t GetPC() const;
- /// Modify Program Counter
- void SetPC(std::uint64_t value);
-
- /// Read general-purpose register.
- std::uint64_t GetRegister(std::size_t index) const;
- /// Modify general-purpose register.
- void SetRegister(size_t index, std::uint64_t value);
-
- /// Read all general-purpose registers.
- std::array<std::uint64_t, 31> GetRegisters() const;
- /// Modify all general-purpose registers.
- void SetRegisters(const std::array<std::uint64_t, 31>& value);
-
- /// Read floating point and SIMD register.
- Vector GetVector(std::size_t index) const;
- /// Modify floating point and SIMD register.
- void SetVector(std::size_t index, Vector value);
-
- /// Read all floating point and SIMD registers.
- std::array<Vector, 32> GetVectors() const;
- /// Modify all floating point and SIMD registers.
- void SetVectors(const std::array<Vector, 32>& value);
-
- /// View FPCR.
- std::uint32_t GetFpcr() const;
- /// Modify FPCR.
- void SetFpcr(std::uint32_t value);
-
- /// View FPSR.
- std::uint32_t GetFpsr() const;
- /// Modify FPSR.
- void SetFpsr(std::uint32_t value);
-
- /// View PSTATE
- std::uint32_t GetPstate() const;
- /// Modify PSTATE
- void SetPstate(std::uint32_t value);
-
- /// Clears exclusive state for this core.
- void ClearExclusiveState();
-
- /**
- * Returns true if Jit::Run was called but hasn't returned yet.
- * i.e.: We're in a callback.
- */
- bool IsExecuting() const;
-
- /// Debugging: Dump a disassembly all of compiled code to the console.
- void DumpDisassembly() const;
-
- /*
- * Disassemble the instructions following the current pc and return
- * the resulting instructions as a vector of their string representations.
- */
- std::vector<std::string> Disassemble() const;
-
-private:
- struct Impl;
- std::unique_ptr<Impl> impl;
-};
-
-} // namespace A64
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A64/config.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A64/config.h
deleted file mode 100644
index b10c65bc..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/A64/config.h
+++ /dev/null
@@ -1,297 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <cstddef>
-#include <cstdint>
-#include <memory>
-#include <optional>
-
-#include "dynarmic/interface/optimization_flags.h"
-
-namespace Dynarmic {
-class ExclusiveMonitor;
-} // namespace Dynarmic
-
-namespace Dynarmic {
-namespace A64 {
-
-using VAddr = std::uint64_t;
-
-using Vector = std::array<std::uint64_t, 2>;
-static_assert(sizeof(Vector) == sizeof(std::uint64_t) * 2, "Vector must be 128 bits in size");
-
-enum class Exception {
- /// An UndefinedFault occured due to executing instruction with an unallocated encoding
- UnallocatedEncoding,
- /// An UndefinedFault occured due to executing instruction containing a reserved value
- ReservedValue,
- /// An unpredictable instruction is to be executed. Implementation-defined behaviour should now happen.
- /// This behaviour is up to the user of this library to define.
- /// Note: Constraints on unpredictable behaviour are specified in the ARMv8 ARM.
- UnpredictableInstruction,
- /// A WFI instruction was executed. You may now enter a low-power state. (Hint instruction.)
- WaitForInterrupt,
- /// A WFE instruction was executed. You may now enter a low-power state if the event register is clear. (Hint instruction.)
- WaitForEvent,
- /// A SEV instruction was executed. The event register of all PEs should be set. (Hint instruction.)
- SendEvent,
- /// A SEVL instruction was executed. The event register of the current PE should be set. (Hint instruction.)
- SendEventLocal,
- /// A YIELD instruction was executed. (Hint instruction.)
- Yield,
- /// A BRK instruction was executed. (Hint instruction.)
- Breakpoint,
- /// Attempted to execute a code block at an address for which MemoryReadCode returned std::nullopt.
- /// (Intended to be used to emulate memory protection faults.)
- NoExecuteFault,
-};
-
-enum class DataCacheOperation {
- /// DC CISW
- CleanAndInvalidateBySetWay,
- /// DC CIVAC
- CleanAndInvalidateByVAToPoC,
- /// DC CSW
- CleanBySetWay,
- /// DC CVAC
- CleanByVAToPoC,
- /// DC CVAU
- CleanByVAToPoU,
- /// DC CVAP
- CleanByVAToPoP,
- /// DC ISW
- InvalidateBySetWay,
- /// DC IVAC
- InvalidateByVAToPoC,
- /// DC ZVA
- ZeroByVA,
-};
-
-enum class InstructionCacheOperation {
- /// IC IVAU
- InvalidateByVAToPoU,
- /// IC IALLU
- InvalidateAllToPoU,
- /// IC IALLUIS
- InvalidateAllToPoUInnerSharable
-};
-
-struct UserCallbacks {
- virtual ~UserCallbacks() = default;
-
- // All reads through this callback are 4-byte aligned.
- // Memory must be interpreted as little endian.
- virtual std::optional<std::uint32_t> MemoryReadCode(VAddr vaddr) { return MemoryRead32(vaddr); }
-
- // Reads through these callbacks may not be aligned.
- virtual std::uint8_t MemoryRead8(VAddr vaddr) = 0;
- virtual std::uint16_t MemoryRead16(VAddr vaddr) = 0;
- virtual std::uint32_t MemoryRead32(VAddr vaddr) = 0;
- virtual std::uint64_t MemoryRead64(VAddr vaddr) = 0;
- virtual Vector MemoryRead128(VAddr vaddr) = 0;
-
- // Writes through these callbacks may not be aligned.
- virtual void MemoryWrite8(VAddr vaddr, std::uint8_t value) = 0;
- virtual void MemoryWrite16(VAddr vaddr, std::uint16_t value) = 0;
- virtual void MemoryWrite32(VAddr vaddr, std::uint32_t value) = 0;
- virtual void MemoryWrite64(VAddr vaddr, std::uint64_t value) = 0;
- virtual void MemoryWrite128(VAddr vaddr, Vector value) = 0;
-
- // Writes through these callbacks may not be aligned.
- virtual bool MemoryWriteExclusive8(VAddr /*vaddr*/, std::uint8_t /*value*/, std::uint8_t /*expected*/) { return false; }
- virtual bool MemoryWriteExclusive16(VAddr /*vaddr*/, std::uint16_t /*value*/, std::uint16_t /*expected*/) { return false; }
- virtual bool MemoryWriteExclusive32(VAddr /*vaddr*/, std::uint32_t /*value*/, std::uint32_t /*expected*/) { return false; }
- virtual bool MemoryWriteExclusive64(VAddr /*vaddr*/, std::uint64_t /*value*/, std::uint64_t /*expected*/) { return false; }
- virtual bool MemoryWriteExclusive128(VAddr /*vaddr*/, Vector /*value*/, Vector /*expected*/) { return false; }
-
- // If this callback returns true, the JIT will assume MemoryRead* callbacks will always
- // return the same value at any point in time for this vaddr. The JIT may use this information
- // in optimizations.
- // A conservative implementation that always returns false is safe.
- virtual bool IsReadOnlyMemory(VAddr /*vaddr*/) { return false; }
-
- /// The interpreter must execute exactly num_instructions starting from PC.
- virtual void InterpreterFallback(VAddr pc, size_t num_instructions) = 0;
-
- // This callback is called whenever a SVC instruction is executed.
- virtual void CallSVC(std::uint32_t swi) = 0;
-
- virtual void ExceptionRaised(VAddr pc, Exception exception) = 0;
- virtual void DataCacheOperationRaised(DataCacheOperation /*op*/, VAddr /*value*/) {}
- virtual void InstructionCacheOperationRaised(InstructionCacheOperation /*op*/, VAddr /*value*/) {}
- virtual void InstructionSynchronizationBarrierRaised() {}
-
- // Timing-related callbacks
- // ticks ticks have passed
- virtual void AddTicks(std::uint64_t ticks) = 0;
- // How many more ticks am I allowed to execute?
- virtual std::uint64_t GetTicksRemaining() = 0;
- // Get value in the emulated counter-timer physical count register.
- virtual std::uint64_t GetCNTPCT() = 0;
-};
-
-struct UserConfig {
- UserCallbacks* callbacks;
-
- size_t processor_id = 0;
- ExclusiveMonitor* global_monitor = nullptr;
-
- /// This selects other optimizations than can't otherwise be disabled by setting other
- /// configuration options. This includes:
- /// - IR optimizations
- /// - Block linking optimizations
- /// - RSB optimizations
- /// This is intended to be used for debugging.
- OptimizationFlag optimizations = all_safe_optimizations;
-
- bool HasOptimization(OptimizationFlag f) const {
- if (!unsafe_optimizations) {
- f &= all_safe_optimizations;
- }
- return (f & optimizations) != no_optimizations;
- }
-
- /// This enables unsafe optimizations that reduce emulation accuracy in favour of speed.
- /// For safety, in order to enable unsafe optimizations you have to set BOTH this flag
- /// AND the appropriate flag bits above.
- /// The prefered and tested mode for this library is with unsafe optimizations disabled.
- bool unsafe_optimizations = false;
-
- /// When set to true, UserCallbacks::DataCacheOperationRaised will be called when any
- /// data cache instruction is executed. Notably DC ZVA will not implicitly do anything.
- /// When set to false, UserCallbacks::DataCacheOperationRaised will never be called.
- /// Executing DC ZVA in this mode will result in zeros being written to memory.
- bool hook_data_cache_operations = false;
-
- /// When set to true, UserCallbacks::InstructionSynchronizationBarrierRaised will be
- /// called when an ISB instruction is executed.
- /// When set to false, ISB will be treated as a NOP instruction.
- bool hook_isb = false;
-
- /// When set to true, UserCallbacks::ExceptionRaised will be called when any hint
- /// instruction is executed.
- bool hook_hint_instructions = false;
-
- /// Counter-timer frequency register. The value of the register is not interpreted by
- /// dynarmic.
- std::uint32_t cntfrq_el0 = 600000000;
-
- /// CTR_EL0<27:24> is log2 of the cache writeback granule in words.
- /// CTR_EL0<23:20> is log2 of the exclusives reservation granule in words.
- /// CTR_EL0<19:16> is log2 of the smallest data/unified cacheline in words.
- /// CTR_EL0<15:14> is the level 1 instruction cache policy.
- /// CTR_EL0<3:0> is log2 of the smallest instruction cacheline in words.
- std::uint32_t ctr_el0 = 0x8444c004;
-
- /// DCZID_EL0<3:0> is log2 of the block size in words
- /// DCZID_EL0<4> is 0 if the DC ZVA instruction is permitted.
- std::uint32_t dczid_el0 = 4;
-
- /// Pointer to where TPIDRRO_EL0 is stored. This pointer will be inserted into
- /// emitted code.
- const std::uint64_t* tpidrro_el0 = nullptr;
-
- /// Pointer to where TPIDR_EL0 is stored. This pointer will be inserted into
- /// emitted code.
- std::uint64_t* tpidr_el0 = nullptr;
-
- /// Pointer to the page table which we can use for direct page table access.
- /// If an entry in page_table is null, the relevant memory callback will be called.
- /// If page_table is nullptr, all memory accesses hit the memory callbacks.
- void** page_table = nullptr;
- /// Declares how many valid address bits are there in virtual addresses.
- /// Determines the size of page_table. Valid values are between 12 and 64 inclusive.
- /// This is only used if page_table is not nullptr.
- size_t page_table_address_space_bits = 36;
- /// Masks out the first N bits in host pointers from the page table.
- /// The intention behind this is to allow users of Dynarmic to pack attributes in the
- /// same integer and update the pointer attribute pair atomically.
- /// If the configured value is 3, all pointers will be forcefully aligned to 8 bytes.
- int page_table_pointer_mask_bits = 0;
- /// Determines what happens if the guest accesses an entry that is off the end of the
- /// page table. If true, Dynarmic will silently mirror page_table's address space. If
- /// false, accessing memory outside of page_table bounds will result in a call to the
- /// relevant memory callback.
- /// This is only used if page_table is not nullptr.
- bool silently_mirror_page_table = true;
- /// Determines if the pointer in the page_table shall be offseted locally or globally.
- /// 'false' will access page_table[addr >> bits][addr & mask]
- /// 'true' will access page_table[addr >> bits][addr]
- /// Note: page_table[addr >> bits] will still be checked to verify active pages.
- /// So there might be wrongly faulted pages which maps to nullptr.
- /// This can be avoided by carefully allocating the memory region.
- bool absolute_offset_page_table = false;
- /// Determines if we should detect memory accesses via page_table that straddle are
- /// misaligned. Accesses that straddle page boundaries will fallback to the relevant
- /// memory callback.
- /// This value should be the required access sizes this applies to ORed together.
- /// To detect any access, use: 8 | 16 | 32 | 64 | 128.
- std::uint8_t detect_misaligned_access_via_page_table = 0;
- /// Determines if the above option only triggers when the misalignment straddles a
- /// page boundary.
- bool only_detect_misalignment_via_page_table_on_page_boundary = false;
-
- /// Fastmem Pointer
- /// This should point to the beginning of a 2^page_table_address_space_bits bytes
- /// address space which is in arranged just like what you wish for emulated memory to
- /// be. If the host page faults on an address, the JIT will fallback to calling the
- /// MemoryRead*/MemoryWrite* callbacks.
- void* fastmem_pointer = nullptr;
- /// Determines if instructions that pagefault should cause recompilation of that block
- /// with fastmem disabled.
- /// Recompiled code will use the page_table if this is available, otherwise memory
- /// accesses will hit the memory callbacks.
- bool recompile_on_fastmem_failure = true;
- /// Declares how many valid address bits are there in virtual addresses.
- /// Determines the size of fastmem arena. Valid values are between 12 and 64 inclusive.
- /// This is only used if fastmem_pointer is not nullptr.
- size_t fastmem_address_space_bits = 36;
- /// Determines what happens if the guest accesses an entry that is off the end of the
- /// fastmem arena. If true, Dynarmic will silently mirror fastmem's address space. If
- /// false, accessing memory outside of fastmem bounds will result in a call to the
- /// relevant memory callback.
- /// This is only used if fastmem_pointer is not nullptr.
- bool silently_mirror_fastmem = true;
-
- /// Determines if we should use the above fastmem_pointer for exclusive reads and
- /// writes. On x64, dynarmic currently relies on x64 cmpxchg semantics which may not
- /// provide fully accurate emulation.
- bool fastmem_exclusive_access = false;
- /// Determines if exclusive access instructions that pagefault should cause
- /// recompilation of that block with fastmem disabled. Recompiled code will use memory
- /// callbacks.
- bool recompile_on_exclusive_fastmem_failure = true;
-
- /// This option relates to translation. Generally when we run into an unpredictable
- /// instruction the ExceptionRaised callback is called. If this is true, we define
- /// definite behaviour for some unpredictable instructions.
- bool define_unpredictable_behaviour = false;
-
- /// HACK:
- /// This tells the translator a wall clock will be used, thus allowing it
- /// to avoid writting certain unnecessary code only needed for cycle timers.
- bool wall_clock_cntpct = false;
-
- /// This allows accurately emulating protection fault handlers. If true, we check
- /// for exit after every data memory access by the emulated program.
- bool check_halt_on_memory_access = false;
-
- /// This option allows you to disable cycle counting. If this is set to false,
- /// AddTicks and GetTicksRemaining are never called, and no cycle counting is done.
- bool enable_cycle_counting = true;
-
- // Minimum size is about 8MiB. Maximum size is about 128MiB (arm64 host) or 2GiB (x64 host).
- // Maximum size is limited by the maximum length of a x86_64 / arm64 jump.
- size_t code_cache_size = 128 * 1024 * 1024; // bytes
-
- /// Internal use only
- bool very_verbose_debugging_output = false;
-};
-
-} // namespace A64
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/exclusive_monitor.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/exclusive_monitor.h
deleted file mode 100644
index 48136758..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/exclusive_monitor.h
+++ /dev/null
@@ -1,88 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2018 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <atomic>
-#include <cstddef>
-#include <cstdint>
-#include <cstring>
-#include <vector>
-
-#include <dynarmic/common/spin_lock.h>
-
-namespace Dynarmic {
-
-using VAddr = std::uint64_t;
-using Vector = std::array<std::uint64_t, 2>;
-
-class ExclusiveMonitor {
-public:
- /// @param processor_count Maximum number of processors using this global
- /// exclusive monitor. Each processor must have a
- /// unique id.
- explicit ExclusiveMonitor(size_t processor_count);
-
- size_t GetProcessorCount() const;
-
- /// Marks a region containing [address, address+size) to be exclusive to
- /// processor processor_id.
- template<typename T, typename Function>
- T ReadAndMark(size_t processor_id, VAddr address, Function op) {
- static_assert(std::is_trivially_copyable_v<T>);
- const VAddr masked_address = address & RESERVATION_GRANULE_MASK;
-
- Lock();
- exclusive_addresses[processor_id] = masked_address;
- const T value = op();
- std::memcpy(exclusive_values[processor_id].data(), &value, sizeof(T));
- Unlock();
- return value;
- }
-
- /// Checks to see if processor processor_id has exclusive access to the
- /// specified region. If it does, executes the operation then clears
- /// the exclusive state for processors if their exclusive region(s)
- /// contain [address, address+size).
- template<typename T, typename Function>
- bool DoExclusiveOperation(size_t processor_id, VAddr address, Function op) {
- static_assert(std::is_trivially_copyable_v<T>);
- if (!CheckAndClear(processor_id, address)) {
- return false;
- }
-
- T saved_value;
- std::memcpy(&saved_value, exclusive_values[processor_id].data(), sizeof(T));
- const bool result = op(saved_value);
-
- Unlock();
- return result;
- }
-
- /// Unmark everything.
- void Clear();
- /// Unmark processor id
- void ClearProcessor(size_t processor_id);
-
-private:
- bool CheckAndClear(size_t processor_id, VAddr address);
-
- void Lock();
- void Unlock();
-
- friend volatile int* GetExclusiveMonitorLockPointer(ExclusiveMonitor*);
- friend size_t GetExclusiveMonitorProcessorCount(ExclusiveMonitor*);
- friend VAddr* GetExclusiveMonitorAddressPointer(ExclusiveMonitor*, size_t index);
- friend Vector* GetExclusiveMonitorValuePointer(ExclusiveMonitor*, size_t index);
-
- static constexpr VAddr RESERVATION_GRANULE_MASK = 0xFFFF'FFFF'FFFF'FFFFull;
- static constexpr VAddr INVALID_EXCLUSIVE_ADDRESS = 0xDEAD'DEAD'DEAD'DEADull;
- SpinLock lock;
- std::vector<VAddr> exclusive_addresses;
- std::vector<Vector> exclusive_values;
-};
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/halt_reason.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/halt_reason.h
deleted file mode 100644
index 121a8455..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/halt_reason.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2020 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstdint>
-
-namespace Dynarmic {
-
-enum class HaltReason : std::uint32_t {
- Step = 0x00000001,
- CacheInvalidation = 0x00000002,
- MemoryAbort = 0x00000004,
- UserDefined1 = 0x01000000,
- UserDefined2 = 0x02000000,
- UserDefined3 = 0x04000000,
- UserDefined4 = 0x08000000,
- UserDefined5 = 0x10000000,
- UserDefined6 = 0x20000000,
- UserDefined7 = 0x40000000,
- UserDefined8 = 0x80000000,
-};
-
-constexpr HaltReason operator~(HaltReason hr) {
- return static_cast<HaltReason>(~static_cast<std::uint32_t>(hr));
-}
-
-constexpr HaltReason operator|(HaltReason hr1, HaltReason hr2) {
- return static_cast<HaltReason>(static_cast<std::uint32_t>(hr1) | static_cast<std::uint32_t>(hr2));
-}
-
-constexpr HaltReason operator&(HaltReason hr1, HaltReason hr2) {
- return static_cast<HaltReason>(static_cast<std::uint32_t>(hr1) & static_cast<std::uint32_t>(hr2));
-}
-
-constexpr HaltReason operator|=(HaltReason& result, HaltReason hr) {
- return result = (result | hr);
-}
-
-constexpr HaltReason operator&=(HaltReason& result, HaltReason hr) {
- return result = (result & hr);
-}
-
-constexpr bool operator!(HaltReason hr) {
- return static_cast<std::uint32_t>(hr) == 0;
-}
-
-constexpr bool Has(HaltReason hr1, HaltReason hr2) {
- return (static_cast<std::uint32_t>(hr1) & static_cast<std::uint32_t>(hr2)) != 0;
-}
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/optimization_flags.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/optimization_flags.h
deleted file mode 100644
index 2f65f0bf..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/interface/optimization_flags.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2020 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <cstdint>
-
-namespace Dynarmic {
-
-enum class OptimizationFlag : std::uint32_t {
- /// This optimization avoids dispatcher lookups by allowing emitted basic blocks to jump
- /// directly to other basic blocks if the destination PC is predictable at JIT-time.
- /// This is a safe optimization.
- BlockLinking = 0x00000001,
- /// This optimization avoids dispatcher lookups by emulating a return stack buffer. This
- /// allows for function returns and syscall returns to be predicted at runtime.
- /// This is a safe optimization.
- ReturnStackBuffer = 0x00000002,
- /// This optimization enables a two-tiered dispatch system.
- /// A fast dispatcher (written in assembly) first does a look-up in a small MRU cache.
- /// If this fails, it falls back to the usual slower dispatcher.
- /// This is a safe optimization.
- FastDispatch = 0x00000004,
- /// This is an IR optimization. This optimization eliminates unnecessary emulated CPU state
- /// context lookups.
- /// This is a safe optimization.
- GetSetElimination = 0x00000008,
- /// This is an IR optimization. This optimization does constant propagation.
- /// This is a safe optimization.
- ConstProp = 0x00000010,
- /// This is enables miscellaneous safe IR optimizations.
- MiscIROpt = 0x00000020,
-
- /// This is an UNSAFE optimization that reduces accuracy of fused multiply-add operations.
- /// This unfuses fused instructions to improve performance on host CPUs without FMA support.
- Unsafe_UnfuseFMA = 0x00010000,
- /// This is an UNSAFE optimization that reduces accuracy of certain floating-point instructions.
- /// This allows results of FRECPE and FRSQRTE to have **less** error than spec allows.
- Unsafe_ReducedErrorFP = 0x00020000,
- /// This is an UNSAFE optimization that causes floating-point instructions to not produce correct NaNs.
- /// This may also result in inaccurate results when instructions are given certain special values.
- Unsafe_InaccurateNaN = 0x00040000,
- /// This is an UNSAFE optimization that causes ASIMD floating-point instructions to be run with incorrect
- /// rounding modes. This may result in inaccurate results with all floating-point ASIMD instructions.
- Unsafe_IgnoreStandardFPCRValue = 0x00080000,
- /// This is an UNSAFE optimization that causes the global monitor to be ignored. This may
- /// result in unexpected behaviour in multithreaded scenarios, including but not limited
- /// to data races and deadlocks.
- Unsafe_IgnoreGlobalMonitor = 0x00100000,
-};
-
-constexpr OptimizationFlag no_optimizations = static_cast<OptimizationFlag>(0);
-constexpr OptimizationFlag all_safe_optimizations = static_cast<OptimizationFlag>(0x0000FFFF);
-
-constexpr OptimizationFlag operator~(OptimizationFlag f) {
- return static_cast<OptimizationFlag>(~static_cast<std::uint32_t>(f));
-}
-
-constexpr OptimizationFlag operator|(OptimizationFlag f1, OptimizationFlag f2) {
- return static_cast<OptimizationFlag>(static_cast<std::uint32_t>(f1) | static_cast<std::uint32_t>(f2));
-}
-
-constexpr OptimizationFlag operator&(OptimizationFlag f1, OptimizationFlag f2) {
- return static_cast<OptimizationFlag>(static_cast<std::uint32_t>(f1) & static_cast<std::uint32_t>(f2));
-}
-
-constexpr OptimizationFlag operator|=(OptimizationFlag& result, OptimizationFlag f) {
- return result = (result | f);
-}
-
-constexpr OptimizationFlag operator&=(OptimizationFlag& result, OptimizationFlag f) {
- return result = (result & f);
-}
-
-constexpr bool operator!(OptimizationFlag f) {
- return f == no_optimizations;
-}
-
-} // namespace Dynarmic
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/acc_type.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/acc_type.h
deleted file mode 100644
index f259660b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/acc_type.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2022 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::IR {
-
-enum class AccType {
- NORMAL,
- VEC,
- STREAM,
- VECSTREAM,
- ATOMIC,
- ORDERED,
- ORDEREDRW,
- LIMITEDORDERED,
- UNPRIV,
- IFETCH,
- PTW,
- DC,
- IC,
- DCZVA,
- AT,
- SWAP, // TODO: Remove
-};
-
-} // namespace Dynarmic::IR
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/basic_block.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/basic_block.h
deleted file mode 100644
index 18d7fada..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/basic_block.h
+++ /dev/null
@@ -1,168 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <initializer_list>
-#include <memory>
-#include <optional>
-#include <string>
-
-#include <mcl/container/intrusive_list.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/ir/location_descriptor.h"
-#include "dynarmic/ir/microinstruction.h"
-#include "dynarmic/ir/terminal.h"
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::Common {
-class Pool;
-}
-
-namespace Dynarmic::IR {
-
-enum class Cond;
-enum class Opcode;
-
-/**
- * A basic block. It consists of zero or more instructions followed by exactly one terminal.
- * Note that this is a linear IR and not a pure tree-based IR: i.e.: there is an ordering to
- * the microinstructions. This only matters before chaining is done in order to correctly
- * order memory accesses.
- */
-class Block final {
-public:
- using InstructionList = mcl::intrusive_list<Inst>;
- using size_type = InstructionList::size_type;
- using iterator = InstructionList::iterator;
- using const_iterator = InstructionList::const_iterator;
- using reverse_iterator = InstructionList::reverse_iterator;
- using const_reverse_iterator = InstructionList::const_reverse_iterator;
-
- explicit Block(const LocationDescriptor& location);
- ~Block();
-
- Block(const Block&) = delete;
- Block& operator=(const Block&) = delete;
-
- Block(Block&&);
- Block& operator=(Block&&);
-
- bool empty() const { return instructions.empty(); }
- size_type size() const { return instructions.size(); }
-
- Inst& front() { return instructions.front(); }
- const Inst& front() const { return instructions.front(); }
-
- Inst& back() { return instructions.back(); }
- const Inst& back() const { return instructions.back(); }
-
- iterator begin() { return instructions.begin(); }
- const_iterator begin() const { return instructions.begin(); }
- iterator end() { return instructions.end(); }
- const_iterator end() const { return instructions.end(); }
-
- reverse_iterator rbegin() { return instructions.rbegin(); }
- const_reverse_iterator rbegin() const { return instructions.rbegin(); }
- reverse_iterator rend() { return instructions.rend(); }
- const_reverse_iterator rend() const { return instructions.rend(); }
-
- const_iterator cbegin() const { return instructions.cbegin(); }
- const_iterator cend() const { return instructions.cend(); }
-
- const_reverse_iterator crbegin() const { return instructions.crbegin(); }
- const_reverse_iterator crend() const { return instructions.crend(); }
-
- /**
- * Appends a new instruction to the end of this basic block,
- * handling any allocations necessary to do so.
- *
- * @param op Opcode representing the instruction to add.
- * @param args A sequence of Value instances used as arguments for the instruction.
- */
- void AppendNewInst(Opcode op, std::initializer_list<Value> args);
-
- /**
- * Prepends a new instruction to this basic block before the insertion point,
- * handling any allocations necessary to do so.
- *
- * @param insertion_point Where to insert the new instruction.
- * @param op Opcode representing the instruction to add.
- * @param args A sequence of Value instances used as arguments for the instruction.
- * @returns Iterator to the newly created instruction.
- */
- iterator PrependNewInst(iterator insertion_point, Opcode op, std::initializer_list<Value> args);
-
- /// Gets the starting location for this basic block.
- LocationDescriptor Location() const;
- /// Gets the end location for this basic block.
- LocationDescriptor EndLocation() const;
- /// Sets the end location for this basic block.
- void SetEndLocation(const LocationDescriptor& descriptor);
-
- /// Gets the condition required to pass in order to execute this block.
- Cond GetCondition() const;
- /// Sets the condition required to pass in order to execute this block.
- void SetCondition(Cond condition);
-
- /// Gets the location of the block to execute if the predicated condition fails.
- LocationDescriptor ConditionFailedLocation() const;
- /// Sets the location of the block to execute if the predicated condition fails.
- void SetConditionFailedLocation(LocationDescriptor fail_location);
- /// Determines whether or not a predicated condition failure block is present.
- bool HasConditionFailedLocation() const;
-
- /// Gets a mutable reference to the condition failed cycle count.
- size_t& ConditionFailedCycleCount();
- /// Gets an immutable reference to the condition failed cycle count.
- const size_t& ConditionFailedCycleCount() const;
-
- /// Gets a mutable reference to the instruction list for this basic block.
- InstructionList& Instructions();
- /// Gets an immutable reference to the instruction list for this basic block.
- const InstructionList& Instructions() const;
-
- /// Gets the terminal instruction for this basic block.
- Terminal GetTerminal() const;
- /// Sets the terminal instruction for this basic block.
- void SetTerminal(Terminal term);
- /// Replaces the terminal instruction for this basic block.
- void ReplaceTerminal(Terminal term);
- /// Determines whether or not this basic block has a terminal instruction.
- bool HasTerminal() const;
-
- /// Gets a mutable reference to the cycle count for this basic block.
- size_t& CycleCount();
- /// Gets an immutable reference to the cycle count for this basic block.
- const size_t& CycleCount() const;
-
-private:
- /// Description of the starting location of this block
- LocationDescriptor location;
- /// Description of the end location of this block
- LocationDescriptor end_location;
- /// Conditional to pass in order to execute this block
- Cond cond;
- /// Block to execute next if `cond` did not pass.
- std::optional<LocationDescriptor> cond_failed = {};
- /// Number of cycles this block takes to execute if the conditional fails.
- size_t cond_failed_cycle_count = 0;
-
- /// List of instructions in this block.
- InstructionList instructions;
- /// Memory pool for instruction list
- std::unique_ptr<Common::Pool> instruction_alloc_pool;
- /// Terminal instruction of this block.
- Terminal terminal = Term::Invalid{};
-
- /// Number of cycles this block takes to execute.
- size_t cycle_count = 0;
-};
-
-/// Returns a string representation of the contents of block. Intended for debugging.
-std::string DumpBlock(const IR::Block& block);
-
-} // namespace Dynarmic::IR
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/cond.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/cond.h
deleted file mode 100644
index 5bdd05ed..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/cond.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::IR {
-
-enum class Cond {
- EQ,
- NE,
- CS,
- CC,
- MI,
- PL,
- VS,
- VC,
- HI,
- LS,
- GE,
- LT,
- GT,
- LE,
- AL,
- NV,
- HS = CS,
- LO = CC,
-};
-
-} // namespace Dynarmic::IR
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/ir_emitter.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/ir_emitter.h
deleted file mode 100644
index d37df245..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/ir_emitter.h
+++ /dev/null
@@ -1,432 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/ir/acc_type.h"
-#include "dynarmic/ir/basic_block.h"
-#include "dynarmic/ir/location_descriptor.h"
-#include "dynarmic/ir/terminal.h"
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::FP {
-enum class RoundingMode;
-} // namespace Dynarmic::FP
-
-// ARM JIT Microinstruction Intermediate Representation
-//
-// This intermediate representation is an SSA IR. It is designed primarily for analysis,
-// though it can be lowered into a reduced form for interpretation. Each IR node (Value)
-// is a microinstruction of an idealised ARM CPU. The choice of microinstructions is made
-// not based on any existing microarchitecture but on ease of implementation.
-
-namespace Dynarmic::IR {
-
-enum class Opcode;
-
-template<typename T>
-struct ResultAndCarry {
- T result;
- U1 carry;
-};
-
-template<typename T>
-struct ResultAndOverflow {
- T result;
- U1 overflow;
-};
-
-template<typename T>
-struct ResultAndGE {
- T result;
- U32 ge;
-};
-
-struct UpperAndLower {
- U128 upper;
- U128 lower;
-};
-
-enum class MemOp {
- LOAD,
- STORE,
- PREFETCH,
-};
-
-/**
- * Convenience class to construct a basic block of the intermediate representation.
- * `block` is the resulting block.
- * The user of this class updates `current_location` as appropriate.
- */
-class IREmitter {
-public:
- explicit IREmitter(Block& block)
- : block(block), insertion_point(block.end()) {}
-
- Block& block;
-
- U1 Imm1(bool value) const;
- U8 Imm8(u8 value) const;
- U16 Imm16(u16 value) const;
- U32 Imm32(u32 value) const;
- U64 Imm64(u64 value) const;
-
- void PushRSB(const LocationDescriptor& return_location);
-
- U64 Pack2x32To1x64(const U32& lo, const U32& hi);
- U128 Pack2x64To1x128(const U64& lo, const U64& hi);
- UAny LeastSignificant(size_t bitsize, const U32U64& value);
- U32 LeastSignificantWord(const U64& value);
- U16 LeastSignificantHalf(U32U64 value);
- U8 LeastSignificantByte(U32U64 value);
- ResultAndCarry<U32> MostSignificantWord(const U64& value);
- U1 MostSignificantBit(const U32& value);
- U1 IsZero(const U32& value);
- U1 IsZero(const U64& value);
- U1 IsZero(const U32U64& value);
- U1 TestBit(const U32U64& value, const U8& bit);
- U32 ConditionalSelect(Cond cond, const U32& a, const U32& b);
- U64 ConditionalSelect(Cond cond, const U64& a, const U64& b);
- NZCV ConditionalSelect(Cond cond, const NZCV& a, const NZCV& b);
- U32U64 ConditionalSelect(Cond cond, const U32U64& a, const U32U64& b);
-
- U1 GetCFlagFromNZCV(const NZCV& nzcv);
- NZCV NZCVFromPackedFlags(const U32& a);
- // This pseudo-instruction may only be added to instructions that support it.
- NZCV NZCVFrom(const Value& value);
-
- ResultAndCarry<U32> LogicalShiftLeft(const U32& value_in, const U8& shift_amount, const U1& carry_in);
- ResultAndCarry<U32> LogicalShiftRight(const U32& value_in, const U8& shift_amount, const U1& carry_in);
- ResultAndCarry<U32> ArithmeticShiftRight(const U32& value_in, const U8& shift_amount, const U1& carry_in);
- ResultAndCarry<U32> RotateRight(const U32& value_in, const U8& shift_amount, const U1& carry_in);
- U32U64 LogicalShiftLeft(const U32U64& value_in, const U8& shift_amount);
- U32U64 LogicalShiftRight(const U32U64& value_in, const U8& shift_amount);
- U32U64 ArithmeticShiftRight(const U32U64& value_in, const U8& shift_amount);
- U32U64 RotateRight(const U32U64& value_in, const U8& shift_amount);
- U32U64 LogicalShiftLeftMasked(const U32U64& value_in, const U32U64& shift_amount);
- U32U64 LogicalShiftRightMasked(const U32U64& value_in, const U32U64& shift_amount);
- U32U64 ArithmeticShiftRightMasked(const U32U64& value_in, const U32U64& shift_amount);
- U32U64 RotateRightMasked(const U32U64& value_in, const U32U64& shift_amount);
- ResultAndCarry<U32> RotateRightExtended(const U32& value_in, const U1& carry_in);
- U32U64 AddWithCarry(const U32U64& a, const U32U64& b, const U1& carry_in);
- U32U64 SubWithCarry(const U32U64& a, const U32U64& b, const U1& carry_in);
- U32U64 Add(const U32U64& a, const U32U64& b);
- U32U64 Sub(const U32U64& a, const U32U64& b);
- U32U64 Mul(const U32U64& a, const U32U64& b);
- U64 UnsignedMultiplyHigh(const U64& a, const U64& b);
- U64 SignedMultiplyHigh(const U64& a, const U64& b);
- U32U64 UnsignedDiv(const U32U64& a, const U32U64& b);
- U32U64 SignedDiv(const U32U64& a, const U32U64& b);
- U32U64 And(const U32U64& a, const U32U64& b);
- U32U64 AndNot(const U32U64& a, const U32U64& b);
- U32U64 Eor(const U32U64& a, const U32U64& b);
- U32U64 Or(const U32U64& a, const U32U64& b);
- U32U64 Not(const U32U64& a);
- U32 SignExtendToWord(const UAny& a);
- U64 SignExtendToLong(const UAny& a);
- U32 SignExtendByteToWord(const U8& a);
- U32 SignExtendHalfToWord(const U16& a);
- U64 SignExtendWordToLong(const U32& a);
- U32 ZeroExtendToWord(const UAny& a);
- U64 ZeroExtendToLong(const UAny& a);
- U128 ZeroExtendToQuad(const UAny& a);
- U32 ZeroExtendByteToWord(const U8& a);
- U32 ZeroExtendHalfToWord(const U16& a);
- U64 ZeroExtendWordToLong(const U32& a);
- U32 IndeterminateExtendToWord(const UAny& a);
- U64 IndeterminateExtendToLong(const UAny& a);
- U32 ByteReverseWord(const U32& a);
- U16 ByteReverseHalf(const U16& a);
- U64 ByteReverseDual(const U64& a);
- U32U64 CountLeadingZeros(const U32U64& a);
- U32U64 ExtractRegister(const U32U64& a, const U32U64& b, const U8& lsb);
- U32U64 ReplicateBit(const U32U64& a, u8 bit);
- U32U64 MaxSigned(const U32U64& a, const U32U64& b);
- U32U64 MaxUnsigned(const U32U64& a, const U32U64& b);
- U32U64 MinSigned(const U32U64& a, const U32U64& b);
- U32U64 MinUnsigned(const U32U64& a, const U32U64& b);
-
- ResultAndOverflow<U32> SignedSaturatedAddWithFlag(const U32& a, const U32& b);
- ResultAndOverflow<U32> SignedSaturatedSubWithFlag(const U32& a, const U32& b);
- ResultAndOverflow<U32> SignedSaturation(const U32& a, size_t bit_size_to_saturate_to);
- ResultAndOverflow<U32> UnsignedSaturation(const U32& a, size_t bit_size_to_saturate_to);
-
- UAny SignedSaturatedAdd(const UAny& a, const UAny& b);
- UAny SignedSaturatedDoublingMultiplyReturnHigh(const UAny& a, const UAny& b);
- UAny SignedSaturatedSub(const UAny& a, const UAny& b);
- UAny UnsignedSaturatedAdd(const UAny& a, const UAny& b);
- UAny UnsignedSaturatedSub(const UAny& a, const UAny& b);
-
- U128 VectorSignedSaturatedAdd(size_t esize, const U128& a, const U128& b);
- U128 VectorSignedSaturatedSub(size_t esize, const U128& a, const U128& b);
- U128 VectorUnsignedSaturatedAdd(size_t esize, const U128& a, const U128& b);
- U128 VectorUnsignedSaturatedSub(size_t esize, const U128& a, const U128& b);
-
- ResultAndGE<U32> PackedAddU8(const U32& a, const U32& b);
- ResultAndGE<U32> PackedAddS8(const U32& a, const U32& b);
- ResultAndGE<U32> PackedAddU16(const U32& a, const U32& b);
- ResultAndGE<U32> PackedAddS16(const U32& a, const U32& b);
- ResultAndGE<U32> PackedSubU8(const U32& a, const U32& b);
- ResultAndGE<U32> PackedSubS8(const U32& a, const U32& b);
- ResultAndGE<U32> PackedSubU16(const U32& a, const U32& b);
- ResultAndGE<U32> PackedSubS16(const U32& a, const U32& b);
- ResultAndGE<U32> PackedAddSubU16(const U32& a, const U32& b);
- ResultAndGE<U32> PackedAddSubS16(const U32& a, const U32& b);
- ResultAndGE<U32> PackedSubAddU16(const U32& a, const U32& b);
- ResultAndGE<U32> PackedSubAddS16(const U32& a, const U32& b);
- U32 PackedHalvingAddU8(const U32& a, const U32& b);
- U32 PackedHalvingAddS8(const U32& a, const U32& b);
- U32 PackedHalvingSubU8(const U32& a, const U32& b);
- U32 PackedHalvingSubS8(const U32& a, const U32& b);
- U32 PackedHalvingAddU16(const U32& a, const U32& b);
- U32 PackedHalvingAddS16(const U32& a, const U32& b);
- U32 PackedHalvingSubU16(const U32& a, const U32& b);
- U32 PackedHalvingSubS16(const U32& a, const U32& b);
- U32 PackedHalvingAddSubU16(const U32& a, const U32& b);
- U32 PackedHalvingAddSubS16(const U32& a, const U32& b);
- U32 PackedHalvingSubAddU16(const U32& a, const U32& b);
- U32 PackedHalvingSubAddS16(const U32& a, const U32& b);
- U32 PackedSaturatedAddU8(const U32& a, const U32& b);
- U32 PackedSaturatedAddS8(const U32& a, const U32& b);
- U32 PackedSaturatedSubU8(const U32& a, const U32& b);
- U32 PackedSaturatedSubS8(const U32& a, const U32& b);
- U32 PackedSaturatedAddU16(const U32& a, const U32& b);
- U32 PackedSaturatedAddS16(const U32& a, const U32& b);
- U32 PackedSaturatedSubU16(const U32& a, const U32& b);
- U32 PackedSaturatedSubS16(const U32& a, const U32& b);
- U32 PackedAbsDiffSumU8(const U32& a, const U32& b);
- U32 PackedSelect(const U32& ge, const U32& a, const U32& b);
-
- U32 CRC32Castagnoli8(const U32& a, const U32& b);
- U32 CRC32Castagnoli16(const U32& a, const U32& b);
- U32 CRC32Castagnoli32(const U32& a, const U32& b);
- U32 CRC32Castagnoli64(const U32& a, const U64& b);
- U32 CRC32ISO8(const U32& a, const U32& b);
- U32 CRC32ISO16(const U32& a, const U32& b);
- U32 CRC32ISO32(const U32& a, const U32& b);
- U32 CRC32ISO64(const U32& a, const U64& b);
-
- U128 AESDecryptSingleRound(const U128& a);
- U128 AESEncryptSingleRound(const U128& a);
- U128 AESInverseMixColumns(const U128& a);
- U128 AESMixColumns(const U128& a);
-
- U8 SM4AccessSubstitutionBox(const U8& a);
-
- U128 SHA256Hash(const U128& x, const U128& y, const U128& w, bool part1);
- U128 SHA256MessageSchedule0(const U128& x, const U128& y);
- U128 SHA256MessageSchedule1(const U128& x, const U128& y, const U128& z);
-
- UAny VectorGetElement(size_t esize, const U128& a, size_t index);
- U128 VectorSetElement(size_t esize, const U128& a, size_t index, const UAny& elem);
- U128 VectorAbs(size_t esize, const U128& a);
- U128 VectorAdd(size_t esize, const U128& a, const U128& b);
- U128 VectorAnd(const U128& a, const U128& b);
- U128 VectorAndNot(const U128& a, const U128& b);
- U128 VectorArithmeticShiftRight(size_t esize, const U128& a, u8 shift_amount);
- U128 VectorArithmeticVShift(size_t esize, const U128& a, const U128& b);
- U128 VectorBroadcast(size_t esize, const UAny& a);
- U128 VectorBroadcastLower(size_t esize, const UAny& a);
- U128 VectorBroadcastElement(size_t esize, const U128& a, size_t index);
- U128 VectorBroadcastElementLower(size_t esize, const U128& a, size_t index);
- U128 VectorCountLeadingZeros(size_t esize, const U128& a);
- U128 VectorEor(const U128& a, const U128& b);
- U128 VectorDeinterleaveEven(size_t esize, const U128& a, const U128& b);
- U128 VectorDeinterleaveEvenLower(size_t esize, const U128& a, const U128& b);
- U128 VectorDeinterleaveOdd(size_t esize, const U128& a, const U128& b);
- U128 VectorDeinterleaveOddLower(size_t esize, const U128& a, const U128& b);
- U128 VectorEqual(size_t esize, const U128& a, const U128& b);
- U128 VectorExtract(const U128& a, const U128& b, size_t position);
- U128 VectorExtractLower(const U128& a, const U128& b, size_t position);
- U128 VectorGreaterEqualSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorGreaterEqualUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorGreaterSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorGreaterUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorHalvingAddSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorHalvingAddUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorHalvingSubSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorHalvingSubUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorInterleaveLower(size_t esize, const U128& a, const U128& b);
- U128 VectorInterleaveUpper(size_t esize, const U128& a, const U128& b);
- U128 VectorLessEqualSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorLessEqualUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorLessSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorLessUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorLogicalShiftLeft(size_t esize, const U128& a, u8 shift_amount);
- U128 VectorLogicalShiftRight(size_t esize, const U128& a, u8 shift_amount);
- U128 VectorLogicalVShift(size_t esize, const U128& a, const U128& b);
- U128 VectorMaxSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorMaxUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorMinSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorMinUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorMultiply(size_t esize, const U128& a, const U128& b);
- U128 VectorMultiplySignedWiden(size_t esize, const U128& a, const U128& b);
- U128 VectorMultiplyUnsignedWiden(size_t esize, const U128& a, const U128& b);
- U128 VectorNarrow(size_t original_esize, const U128& a);
- U128 VectorNot(const U128& a);
- U128 VectorOr(const U128& a, const U128& b);
- U128 VectorPairedAdd(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedAddLower(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedAddSignedWiden(size_t original_esize, const U128& a);
- U128 VectorPairedAddUnsignedWiden(size_t original_esize, const U128& a);
- U128 VectorPairedMaxSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedMaxUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedMinSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedMinUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedMaxSignedLower(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedMaxUnsignedLower(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedMinSignedLower(size_t esize, const U128& a, const U128& b);
- U128 VectorPairedMinUnsignedLower(size_t esize, const U128& a, const U128& b);
- U128 VectorPolynomialMultiply(const U128& a, const U128& b);
- U128 VectorPolynomialMultiplyLong(size_t esize, const U128& a, const U128& b);
- U128 VectorPopulationCount(const U128& a);
- U128 VectorReverseBits(const U128& a);
- U128 VectorReverseElementsInHalfGroups(size_t esize, const U128& a);
- U128 VectorReverseElementsInWordGroups(size_t esize, const U128& a);
- U128 VectorReverseElementsInLongGroups(size_t esize, const U128& a);
- U128 VectorReduceAdd(size_t esize, const U128& a);
- U128 VectorRotateLeft(size_t esize, const U128& a, u8 amount);
- U128 VectorRotateRight(size_t esize, const U128& a, u8 amount);
- U128 VectorRotateWholeVectorRight(const U128& a, u8 amount);
- U128 VectorRoundingHalvingAddSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorRoundingHalvingAddUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorRoundingShiftLeftSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorRoundingShiftLeftUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorSignExtend(size_t original_esize, const U128& a);
- U128 VectorSignedAbsoluteDifference(size_t esize, const U128& a, const U128& b);
- UpperAndLower VectorSignedMultiply(size_t esize, const U128& a, const U128& b);
- U128 VectorSignedSaturatedAbs(size_t esize, const U128& a);
- U128 VectorSignedSaturatedAccumulateUnsigned(size_t esize, const U128& a, const U128& b);
- U128 VectorSignedSaturatedDoublingMultiplyHigh(size_t esize, const U128& a, const U128& b);
- U128 VectorSignedSaturatedDoublingMultiplyHighRounding(size_t esize, const U128& a, const U128& b);
- U128 VectorSignedSaturatedDoublingMultiplyLong(size_t esize, const U128& a, const U128& b);
- U128 VectorSignedSaturatedNarrowToSigned(size_t original_esize, const U128& a);
- U128 VectorSignedSaturatedNarrowToUnsigned(size_t original_esize, const U128& a);
- U128 VectorSignedSaturatedNeg(size_t esize, const U128& a);
- U128 VectorSignedSaturatedShiftLeft(size_t esize, const U128& a, const U128& b);
- U128 VectorSignedSaturatedShiftLeftUnsigned(size_t esize, const U128& a, u8 shift_amount);
- U128 VectorSub(size_t esize, const U128& a, const U128& b);
- Table VectorTable(std::vector<U64> values);
- Table VectorTable(std::vector<U128> values);
- U64 VectorTableLookup(const U64& defaults, const Table& table, const U64& indices);
- U128 VectorTableLookup(const U128& defaults, const Table& table, const U128& indices);
- U128 VectorTranspose(size_t esize, const U128& a, const U128& b, bool part);
- U128 VectorUnsignedAbsoluteDifference(size_t esize, const U128& a, const U128& b);
- U128 VectorUnsignedRecipEstimate(const U128& a);
- U128 VectorUnsignedRecipSqrtEstimate(const U128& a);
- U128 VectorUnsignedSaturatedAccumulateSigned(size_t esize, const U128& a, const U128& b);
- U128 VectorUnsignedSaturatedNarrow(size_t esize, const U128& a);
- U128 VectorUnsignedSaturatedShiftLeft(size_t esize, const U128& a, const U128& b);
- U128 VectorZeroExtend(size_t original_esize, const U128& a);
- U128 VectorZeroUpper(const U128& a);
- U128 ZeroVector();
-
- U16U32U64 FPAbs(const U16U32U64& a);
- U32U64 FPAdd(const U32U64& a, const U32U64& b);
- NZCV FPCompare(const U32U64& a, const U32U64& b, bool exc_on_qnan);
- U32U64 FPDiv(const U32U64& a, const U32U64& b);
- U32U64 FPMax(const U32U64& a, const U32U64& b);
- U32U64 FPMaxNumeric(const U32U64& a, const U32U64& b);
- U32U64 FPMin(const U32U64& a, const U32U64& b);
- U32U64 FPMinNumeric(const U32U64& a, const U32U64& b);
- U32U64 FPMul(const U32U64& a, const U32U64& b);
- U16U32U64 FPMulAdd(const U16U32U64& addend, const U16U32U64& op1, const U16U32U64& op2);
- U16U32U64 FPMulSub(const U16U32U64& minuend, const U16U32U64& op1, const U16U32U64& op2);
- U32U64 FPMulX(const U32U64& a, const U32U64& b);
- U16U32U64 FPNeg(const U16U32U64& a);
- U16U32U64 FPRecipEstimate(const U16U32U64& a);
- U16U32U64 FPRecipExponent(const U16U32U64& a);
- U16U32U64 FPRecipStepFused(const U16U32U64& a, const U16U32U64& b);
- U16U32U64 FPRoundInt(const U16U32U64& a, FP::RoundingMode rounding, bool exact);
- U16U32U64 FPRSqrtEstimate(const U16U32U64& a);
- U16U32U64 FPRSqrtStepFused(const U16U32U64& a, const U16U32U64& b);
- U32U64 FPSqrt(const U32U64& a);
- U32U64 FPSub(const U32U64& a, const U32U64& b);
- U16 FPDoubleToHalf(const U64& a, FP::RoundingMode rounding);
- U32 FPDoubleToSingle(const U64& a, FP::RoundingMode rounding);
- U64 FPHalfToDouble(const U16& a, FP::RoundingMode rounding);
- U32 FPHalfToSingle(const U16& a, FP::RoundingMode rounding);
- U16 FPSingleToHalf(const U32& a, FP::RoundingMode rounding);
- U64 FPSingleToDouble(const U32& a, FP::RoundingMode rounding);
- U16 FPToFixedS16(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U32 FPToFixedS32(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U64 FPToFixedS64(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U16 FPToFixedU16(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U32 FPToFixedU32(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U64 FPToFixedU64(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U32 FPSignedFixedToSingle(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U32 FPUnsignedFixedToSingle(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U64 FPSignedFixedToDouble(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
- U64 FPUnsignedFixedToDouble(const U16U32U64& a, size_t fbits, FP::RoundingMode rounding);
-
- U128 FPVectorAbs(size_t esize, const U128& a);
- U128 FPVectorAdd(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorDiv(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorEqual(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorFromHalf(size_t esize, const U128& a, FP::RoundingMode rounding, bool fpcr_controlled = true);
- U128 FPVectorFromSignedFixed(size_t esize, const U128& a, size_t fbits, FP::RoundingMode rounding, bool fpcr_controlled = true);
- U128 FPVectorFromUnsignedFixed(size_t esize, const U128& a, size_t fbits, FP::RoundingMode rounding, bool fpcr_controlled = true);
- U128 FPVectorGreater(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorGreaterEqual(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorMax(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorMaxNumeric(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorMin(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorMinNumeric(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorMul(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorMulAdd(size_t esize, const U128& addend, const U128& op1, const U128& op2, bool fpcr_controlled = true);
- U128 FPVectorMulX(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorNeg(size_t esize, const U128& a);
- U128 FPVectorPairedAdd(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorPairedAddLower(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorRecipEstimate(size_t esize, const U128& a, bool fpcr_controlled = true);
- U128 FPVectorRecipStepFused(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorRoundInt(size_t esize, const U128& operand, FP::RoundingMode rounding, bool exact, bool fpcr_controlled = true);
- U128 FPVectorRSqrtEstimate(size_t esize, const U128& a, bool fpcr_controlled = true);
- U128 FPVectorRSqrtStepFused(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorSqrt(size_t esize, const U128& a, bool fpcr_controlled = true);
- U128 FPVectorSub(size_t esize, const U128& a, const U128& b, bool fpcr_controlled = true);
- U128 FPVectorToHalf(size_t esize, const U128& a, FP::RoundingMode rounding, bool fpcr_controlled = true);
- U128 FPVectorToSignedFixed(size_t esize, const U128& a, size_t fbits, FP::RoundingMode rounding, bool fpcr_controlled = true);
- U128 FPVectorToUnsignedFixed(size_t esize, const U128& a, size_t fbits, FP::RoundingMode rounding, bool fpcr_controlled = true);
-
- void Breakpoint();
- void CallHostFunction(void (*fn)(void));
- void CallHostFunction(void (*fn)(u64), const U64& arg1);
- void CallHostFunction(void (*fn)(u64, u64), const U64& arg1, const U64& arg2);
- void CallHostFunction(void (*fn)(u64, u64, u64), const U64& arg1, const U64& arg2, const U64& arg3);
-
- void SetTerm(const Terminal& terminal);
-
- void SetInsertionPointBefore(IR::Inst* new_insertion_point) {
- insertion_point = IR::Block::iterator{*new_insertion_point};
- }
-
- void SetInsertionPointBefore(IR::Block::iterator new_insertion_point) {
- insertion_point = new_insertion_point;
- }
-
- void SetInsertionPointAfter(IR::Inst* new_insertion_point) {
- insertion_point = IR::Block::iterator{*new_insertion_point};
- ++insertion_point;
- }
-
- void SetInsertionPointAfter(IR::Block::iterator new_insertion_point) {
- insertion_point = new_insertion_point;
- ++insertion_point;
- }
-
-protected:
- IR::Block::iterator insertion_point;
-
- template<typename T = Value, typename... Args>
- T Inst(Opcode op, Args... args) {
- auto iter = block.PrependNewInst(insertion_point, op, {Value(args)...});
- return T(Value(&*iter));
- }
-};
-
-} // namespace Dynarmic::IR
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/location_descriptor.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/location_descriptor.h
deleted file mode 100644
index 48e5e32b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/location_descriptor.h
+++ /dev/null
@@ -1,64 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <functional>
-#include <string>
-
-#include <fmt/format.h>
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::IR {
-
-class LocationDescriptor {
-public:
- explicit LocationDescriptor(u64 value)
- : value(value) {}
-
- bool operator==(const LocationDescriptor& o) const {
- return value == o.Value();
- }
-
- bool operator!=(const LocationDescriptor& o) const {
- return !operator==(o);
- }
-
- u64 Value() const { return value; }
-
-private:
- u64 value;
-};
-
-std::string ToString(const LocationDescriptor& descriptor);
-
-inline bool operator<(const LocationDescriptor& x, const LocationDescriptor& y) noexcept {
- return x.Value() < y.Value();
-}
-
-} // namespace Dynarmic::IR
-
-namespace std {
-template<>
-struct less<Dynarmic::IR::LocationDescriptor> {
- bool operator()(const Dynarmic::IR::LocationDescriptor& x, const Dynarmic::IR::LocationDescriptor& y) const noexcept {
- return x < y;
- }
-};
-template<>
-struct hash<Dynarmic::IR::LocationDescriptor> {
- size_t operator()(const Dynarmic::IR::LocationDescriptor& x) const noexcept {
- return std::hash<u64>()(x.Value());
- }
-};
-} // namespace std
-
-template<>
-struct fmt::formatter<Dynarmic::IR::LocationDescriptor> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::IR::LocationDescriptor descriptor, FormatContext& ctx) const {
- return formatter<std::string>::format(ToString(descriptor), ctx);
- }
-};
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/microinstruction.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/microinstruction.h
deleted file mode 100644
index 26b6b899..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/microinstruction.h
+++ /dev/null
@@ -1,162 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-
-#include <mcl/container/intrusive_list.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::IR {
-
-enum class Opcode;
-enum class Type;
-
-constexpr size_t max_arg_count = 4;
-
-/**
- * A representation of a microinstruction. A single ARM/Thumb instruction may be
- * converted into zero or more microinstructions.
- */
-class Inst final : public mcl::intrusive_list_node<Inst> {
-public:
- explicit Inst(Opcode op)
- : op(op) {}
-
- /// Determines whether or not this instruction performs an arithmetic shift.
- bool IsArithmeticShift() const;
- /// Determines whether or not this instruction performs a logical shift.
- bool IsLogicalShift() const;
- /// Determines whether or not this instruction performs a circular shift.
- bool IsCircularShift() const;
- /// Determines whether or not this instruction performs any kind of shift.
- bool IsShift() const;
-
- /// Determines whether or not this instruction is a form of barrier.
- bool IsBarrier() const;
-
- /// Determines whether or not this instruction performs a shared memory read.
- bool IsSharedMemoryRead() const;
- /// Determines whether or not this instruction performs a shared memory write.
- bool IsSharedMemoryWrite() const;
- /// Determines whether or not this instruction performs a shared memory read or write.
- bool IsSharedMemoryReadOrWrite() const;
- /// Determines whether or not this instruction performs an atomic memory read.
- bool IsExclusiveMemoryRead() const;
- /// Determines whether or not this instruction performs an atomic memory write.
- bool IsExclusiveMemoryWrite() const;
-
- /// Determines whether or not this instruction performs any kind of memory read.
- bool IsMemoryRead() const;
- /// Determines whether or not this instruction performs any kind of memory write.
- bool IsMemoryWrite() const;
- /// Determines whether or not this instruction performs any kind of memory access.
- bool IsMemoryReadOrWrite() const;
-
- /// Determines whether or not this instruction reads from the CPSR.
- bool ReadsFromCPSR() const;
- /// Determines whether or not this instruction writes to the CPSR.
- bool WritesToCPSR() const;
-
- /// Determines whether or not this instruction writes to a system register.
- bool WritesToSystemRegister() const;
-
- /// Determines whether or not this instruction reads from a core register.
- bool ReadsFromCoreRegister() const;
- /// Determines whether or not this instruction writes to a core register.
- bool WritesToCoreRegister() const;
-
- /// Determines whether or not this instruction reads from the FPCR.
- bool ReadsFromFPCR() const;
- /// Determines whether or not this instruction writes to the FPCR.
- bool WritesToFPCR() const;
-
- /// Determines whether or not this instruction reads from the FPSR.
- bool ReadsFromFPSR() const;
- /// Determines whether or not this instruction writes to the FPSR.
- bool WritesToFPSR() const;
-
- /// Determines whether or not this instruction reads from the FPSR cumulative exception bits.
- bool ReadsFromFPSRCumulativeExceptionBits() const;
- /// Determines whether or not this instruction writes to the FPSR cumulative exception bits.
- bool WritesToFPSRCumulativeExceptionBits() const;
- /// Determines whether or not this instruction both reads from and writes to the FPSR cumulative exception bits.
- bool ReadsFromAndWritesToFPSRCumulativeExceptionBits() const;
-
- /// Determines whether or not this instruction reads from the FPSR cumulative saturation bit.
- bool ReadsFromFPSRCumulativeSaturationBit() const;
- /// Determines whether or not this instruction writes to the FPSR cumulative saturation bit.
- bool WritesToFPSRCumulativeSaturationBit() const;
-
- /// Determines whether or not this instruction alters memory-exclusivity.
- bool AltersExclusiveState() const;
-
- /// Determines whether or not this instruction accesses a coprocessor.
- bool IsCoprocessorInstruction() const;
-
- /// Determines whether or not this instruction causes a CPU exception.
- bool CausesCPUException() const;
-
- /// Determines whether or not this instruction is a SetCheckBit operation.
- bool IsSetCheckBitOperation() const;
-
- /// Determines whether or not this instruction may have side-effects.
- bool MayHaveSideEffects() const;
-
- /// Determines whether or not this instruction is a pseduo-instruction.
- /// Pseudo-instructions depend on their parent instructions for their semantics.
- bool IsAPseudoOperation() const;
-
- /// Determines whether or not this instruction supports the GetNZCVFromOp pseudo-operation.
- bool MayGetNZCVFromOp() const;
-
- /// Determines if all arguments of this instruction are immediates.
- bool AreAllArgsImmediates() const;
-
- size_t UseCount() const { return use_count; }
- bool HasUses() const { return use_count > 0; }
-
- /// Determines if there is a pseudo-operation associated with this instruction.
- bool HasAssociatedPseudoOperation() const;
- /// Gets a pseudo-operation associated with this instruction.
- Inst* GetAssociatedPseudoOperation(Opcode opcode);
-
- /// Get the microop this microinstruction represents.
- Opcode GetOpcode() const { return op; }
- /// Get the type this instruction returns.
- Type GetType() const;
- /// Get the number of arguments this instruction has.
- size_t NumArgs() const;
-
- Value GetArg(size_t index) const;
- void SetArg(size_t index, Value value);
-
- void Invalidate();
- void ClearArgs();
-
- void ReplaceUsesWith(Value replacement);
-
- // IR name (i.e. instruction number in block). This is set in the naming pass. Treat 0 as an invalid name.
- // This is used for debugging and fastmem instruction identification.
- void SetName(unsigned value) { name = value; }
- unsigned GetName() const { return name; }
-
-private:
- void Use(const Value& value);
- void UndoUse(const Value& value);
-
- Opcode op;
- unsigned use_count = 0;
- unsigned name = 0;
- std::array<Value, max_arg_count> args;
-
- // Linked list of pseudooperations associated with this instruction.
- Inst* next_pseudoop = nullptr;
-};
-
-} // namespace Dynarmic::IR
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/opcodes.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/opcodes.h
deleted file mode 100644
index 404f4cdb..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/opcodes.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string>
-
-#include <fmt/format.h>
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::IR {
-
-enum class Type;
-
-/**
- * The Opcodes of our intermediate representation.
- * Type signatures for each opcode can be found in opcodes.inc
- */
-enum class Opcode {
-#define OPCODE(name, type, ...) name,
-#define A32OPC(name, type, ...) A32##name,
-#define A64OPC(name, type, ...) A64##name,
-#include "./opcodes.inc"
-#undef OPCODE
-#undef A32OPC
-#undef A64OPC
- NUM_OPCODE
-};
-
-constexpr size_t OpcodeCount = static_cast<size_t>(Opcode::NUM_OPCODE);
-
-/// Get return type of an opcode
-Type GetTypeOf(Opcode op);
-
-/// Get the number of arguments an opcode accepts
-size_t GetNumArgsOf(Opcode op);
-
-/// Get the required type of an argument of an opcode
-Type GetArgTypeOf(Opcode op, size_t arg_index);
-
-/// Get the name of an opcode.
-std::string GetNameOf(Opcode op);
-
-} // namespace Dynarmic::IR
-
-template<>
-struct fmt::formatter<Dynarmic::IR::Opcode> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::IR::Opcode op, FormatContext& ctx) const {
- return formatter<std::string>::format(Dynarmic::IR::GetNameOf(op), ctx);
- }
-};
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/opt/ir_matcher.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/opt/ir_matcher.h
deleted file mode 100644
index 5eb1a551..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/opt/ir_matcher.h
+++ /dev/null
@@ -1,127 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2020 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <optional>
-#include <tuple>
-
-#include <mp/metafunction/apply.h>
-#include <mp/typelist/concat.h>
-#include <mp/typelist/drop.h>
-#include <mp/typelist/get.h>
-#include <mp/typelist/head.h>
-#include <mp/typelist/list.h>
-#include <mp/typelist/prepend.h>
-
-#include "dynarmic/ir/microinstruction.h"
-#include "dynarmic/ir/opcodes.h"
-#include "dynarmic/ir/value.h"
-
-namespace Dynarmic::Optimization::IRMatcher {
-
-struct CaptureValue {
- using ReturnType = std::tuple<IR::Value>;
-
- static std::optional<ReturnType> Match(IR::Value value) {
- return std::tuple(value);
- }
-};
-
-struct CaptureInst {
- using ReturnType = std::tuple<IR::Inst*>;
-
- static std::optional<ReturnType> Match(IR::Value value) {
- if (value.IsImmediate())
- return std::nullopt;
- return std::tuple(value.GetInstRecursive());
- }
-};
-
-struct CaptureUImm {
- using ReturnType = std::tuple<u64>;
-
- static std::optional<ReturnType> Match(IR::Value value) {
- return std::tuple(value.GetImmediateAsU64());
- }
-};
-
-struct CaptureSImm {
- using ReturnType = std::tuple<s64>;
-
- static std::optional<ReturnType> Match(IR::Value value) {
- return std::tuple(value.GetImmediateAsS64());
- }
-};
-
-template<u64 Value>
-struct UImm {
- using ReturnType = std::tuple<>;
-
- static std::optional<std::tuple<>> Match(IR::Value value) {
- if (value.GetImmediateAsU64() == Value)
- return std::tuple();
- return std::nullopt;
- }
-};
-
-template<s64 Value>
-struct SImm {
- using ReturnType = std::tuple<>;
-
- static std::optional<std::tuple<>> Match(IR::Value value) {
- if (value.GetImmediateAsS64() == Value)
- return std::tuple();
- return std::nullopt;
- }
-};
-
-template<IR::Opcode Opcode, typename... Args>
-struct Inst {
-public:
- using ReturnType = mp::concat<std::tuple<>, typename Args::ReturnType...>;
-
- static std::optional<ReturnType> Match(const IR::Inst& inst) {
- if (inst.GetOpcode() != Opcode)
- return std::nullopt;
- if (inst.HasAssociatedPseudoOperation())
- return std::nullopt;
- return MatchArgs<0>(inst);
- }
-
- static std::optional<ReturnType> Match(IR::Value value) {
- if (value.IsImmediate())
- return std::nullopt;
- return Match(*value.GetInstRecursive());
- }
-
-private:
- template<size_t I>
- static auto MatchArgs(const IR::Inst& inst) -> std::optional<mp::apply<mp::concat, mp::prepend<mp::drop<I, mp::list<typename Args::ReturnType...>>, std::tuple<>>>> {
- if constexpr (I >= sizeof...(Args)) {
- return std::tuple();
- } else {
- using Arg = mp::get<I, mp::list<Args...>>;
-
- if (const auto arg = Arg::Match(inst.GetArg(I))) {
- if (const auto rest = MatchArgs<I + 1>(inst)) {
- return std::tuple_cat(*arg, *rest);
- }
- }
-
- return std::nullopt;
- }
- }
-};
-
-inline bool IsSameInst(std::tuple<IR::Inst*, IR::Inst*> t) {
- return std::get<0>(t) == std::get<1>(t);
-}
-
-inline bool IsSameInst(std::tuple<IR::Inst*, IR::Inst*, IR::Inst*> t) {
- return std::get<0>(t) == std::get<1>(t) && std::get<0>(t) == std::get<2>(t);
-}
-
-} // namespace Dynarmic::Optimization::IRMatcher
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/opt/passes.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/opt/passes.h
deleted file mode 100644
index 703145b5..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/opt/passes.h
+++ /dev/null
@@ -1,47 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-namespace Dynarmic::A32 {
-struct UserCallbacks;
-}
-
-namespace Dynarmic::A64 {
-struct UserCallbacks;
-struct UserConfig;
-} // namespace Dynarmic::A64
-
-namespace Dynarmic::IR {
-class Block;
-}
-
-namespace Dynarmic::Optimization {
-
-struct PolyfillOptions {
- bool sha256 = false;
- bool vector_multiply_widen = false;
-
- bool operator==(const PolyfillOptions&) const = default;
-};
-
-struct A32GetSetEliminationOptions {
- bool convert_nzc_to_nz = false;
- bool convert_nz_to_nzc = false;
-};
-
-void PolyfillPass(IR::Block& block, const PolyfillOptions& opt);
-void A32ConstantMemoryReads(IR::Block& block, A32::UserCallbacks* cb);
-void A32GetSetElimination(IR::Block& block, A32GetSetEliminationOptions opt);
-void A64CallbackConfigPass(IR::Block& block, const A64::UserConfig& conf);
-void A64GetSetElimination(IR::Block& block);
-void A64MergeInterpretBlocksPass(IR::Block& block, A64::UserCallbacks* cb);
-void ConstantPropagation(IR::Block& block);
-void DeadCodeElimination(IR::Block& block);
-void IdentityRemovalPass(IR::Block& block);
-void VerificationPass(const IR::Block& block);
-void NamingPass(IR::Block& block);
-
-} // namespace Dynarmic::Optimization
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/terminal.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/terminal.h
deleted file mode 100644
index d437ffd5..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/terminal.h
+++ /dev/null
@@ -1,131 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <boost/variant.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/ir/cond.h"
-#include "dynarmic/ir/location_descriptor.h"
-
-namespace Dynarmic::IR {
-namespace Term {
-
-struct Invalid {};
-
-/**
- * This terminal instruction calls the interpreter, starting at `next`.
- * The interpreter must interpret exactly `num_instructions` instructions.
- */
-struct Interpret {
- explicit Interpret(const LocationDescriptor& next_)
- : next(next_) {}
- LocationDescriptor next; ///< Location at which interpretation starts.
- size_t num_instructions = 1;
-};
-
-/**
- * This terminal instruction returns control to the dispatcher.
- * The dispatcher will use the current cpu state to determine what comes next.
- */
-struct ReturnToDispatch {};
-
-/**
- * This terminal instruction jumps to the basic block described by `next` if we have enough
- * cycles remaining. If we do not have enough cycles remaining, we return to the
- * dispatcher, which will return control to the host.
- */
-struct LinkBlock {
- explicit LinkBlock(const LocationDescriptor& next_)
- : next(next_) {}
- LocationDescriptor next; ///< Location descriptor for next block.
-};
-
-/**
- * This terminal instruction jumps to the basic block described by `next` unconditionally.
- * This is an optimization and MUST only be emitted when this is guaranteed not to result
- * in hanging, even in the face of other optimizations. (In practice, this means that only
- * forward jumps to short-ish blocks would use this instruction.)
- * A backend that doesn't support this optimization may choose to implement this exactly
- * as LinkBlock.
- */
-struct LinkBlockFast {
- explicit LinkBlockFast(const LocationDescriptor& next_)
- : next(next_) {}
- LocationDescriptor next; ///< Location descriptor for next block.
-};
-
-/**
- * This terminal instruction checks the top of the Return Stack Buffer against the current
- * location descriptor. If RSB lookup fails, control is returned to the dispatcher.
- * This is an optimization for faster function calls. A backend that doesn't support
- * this optimization or doesn't have a RSB may choose to implement this exactly as
- * ReturnToDispatch.
- */
-struct PopRSBHint {};
-
-/**
- * This terminal instruction performs a lookup of the current location descriptor in the
- * fast dispatch lookup table. A backend that doesn't support this optimization may choose
- * to implement this exactly as ReturnToDispatch.
- */
-struct FastDispatchHint {};
-
-struct If;
-struct CheckBit;
-struct CheckHalt;
-/// A Terminal is the terminal instruction in a MicroBlock.
-using Terminal = boost::variant<
- Invalid,
- Interpret,
- ReturnToDispatch,
- LinkBlock,
- LinkBlockFast,
- PopRSBHint,
- FastDispatchHint,
- boost::recursive_wrapper<If>,
- boost::recursive_wrapper<CheckBit>,
- boost::recursive_wrapper<CheckHalt>>;
-
-/**
- * This terminal instruction conditionally executes one terminal or another depending
- * on the run-time state of the ARM flags.
- */
-struct If {
- If(Cond if_, Terminal then_, Terminal else_)
- : if_(if_), then_(std::move(then_)), else_(std::move(else_)) {}
- Cond if_;
- Terminal then_;
- Terminal else_;
-};
-
-/**
- * This terminal instruction conditionally executes one terminal or another depending
- * on the run-time state of the check bit.
- * then_ is executed if the check bit is non-zero, otherwise else_ is executed.
- */
-struct CheckBit {
- CheckBit(Terminal then_, Terminal else_)
- : then_(std::move(then_)), else_(std::move(else_)) {}
- Terminal then_;
- Terminal else_;
-};
-
-/**
- * This terminal instruction checks if a halt was requested. If it wasn't, else_ is
- * executed.
- */
-struct CheckHalt {
- explicit CheckHalt(Terminal else_)
- : else_(std::move(else_)) {}
- Terminal else_;
-};
-
-} // namespace Term
-
-using Term::Terminal;
-
-} // namespace Dynarmic::IR
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/type.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/type.h
deleted file mode 100644
index 65fe76dd..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/type.h
+++ /dev/null
@@ -1,60 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <string>
-
-#include <fmt/format.h>
-#include <mcl/stdint.hpp>
-
-namespace Dynarmic::IR {
-
-/**
- * The intermediate representation is typed. These are the used by our IR.
- */
-enum class Type {
- Void = 0,
- A32Reg = 1 << 0,
- A32ExtReg = 1 << 1,
- A64Reg = 1 << 2,
- A64Vec = 1 << 3,
- Opaque = 1 << 4,
- U1 = 1 << 5,
- U8 = 1 << 6,
- U16 = 1 << 7,
- U32 = 1 << 8,
- U64 = 1 << 9,
- U128 = 1 << 10,
- CoprocInfo = 1 << 11,
- NZCVFlags = 1 << 12,
- Cond = 1 << 13,
- Table = 1 << 14,
- AccType = 1 << 15,
-};
-
-constexpr Type operator|(Type a, Type b) {
- return static_cast<Type>(static_cast<size_t>(a) | static_cast<size_t>(b));
-}
-
-constexpr Type operator&(Type a, Type b) {
- return static_cast<Type>(static_cast<size_t>(a) & static_cast<size_t>(b));
-}
-
-/// Get the name of a type.
-std::string GetNameOf(Type type);
-
-/// @returns true if t1 and t2 are compatible types
-bool AreTypesCompatible(Type t1, Type t2);
-
-} // namespace Dynarmic::IR
-
-template<>
-struct fmt::formatter<Dynarmic::IR::Type> : fmt::formatter<std::string> {
- template<typename FormatContext>
- auto format(Dynarmic::IR::Type type, FormatContext& ctx) const {
- return formatter<std::string>::format(Dynarmic::IR::GetNameOf(type), ctx);
- }
-};
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/value.h b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/value.h
deleted file mode 100644
index 8f70110a..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/Headers/dynarmic/ir/value.h
+++ /dev/null
@@ -1,187 +0,0 @@
-/* This file is part of the dynarmic project.
- * Copyright (c) 2016 MerryMage
- * SPDX-License-Identifier: 0BSD
- */
-
-#pragma once
-
-#include <array>
-#include <type_traits>
-
-#include <mcl/assert.hpp>
-#include <mcl/stdint.hpp>
-
-#include "dynarmic/ir/type.h"
-
-namespace Dynarmic::A32 {
-enum class ExtReg;
-enum class Reg;
-} // namespace Dynarmic::A32
-
-namespace Dynarmic::A64 {
-enum class Reg;
-enum class Vec;
-} // namespace Dynarmic::A64
-
-namespace Dynarmic::IR {
-
-class Inst;
-enum class AccType;
-enum class Cond;
-
-/**
- * A representation of a value in the IR.
- * A value may either be an immediate or the result of a microinstruction.
- */
-class Value {
-public:
- using CoprocessorInfo = std::array<u8, 8>;
-
- Value()
- : type(Type::Void) {}
- explicit Value(Inst* value);
- explicit Value(A32::Reg value);
- explicit Value(A32::ExtReg value);
- explicit Value(A64::Reg value);
- explicit Value(A64::Vec value);
- explicit Value(bool value);
- explicit Value(u8 value);
- explicit Value(u16 value);
- explicit Value(u32 value);
- explicit Value(u64 value);
- explicit Value(CoprocessorInfo value);
- explicit Value(Cond value);
- explicit Value(AccType value);
-
- static Value EmptyNZCVImmediateMarker();
-
- bool IsIdentity() const;
- bool IsEmpty() const;
- bool IsImmediate() const;
- Type GetType() const;
-
- Inst* GetInst() const;
- Inst* GetInstRecursive() const;
- A32::Reg GetA32RegRef() const;
- A32::ExtReg GetA32ExtRegRef() const;
- A64::Reg GetA64RegRef() const;
- A64::Vec GetA64VecRef() const;
- bool GetU1() const;
- u8 GetU8() const;
- u16 GetU16() const;
- u32 GetU32() const;
- u64 GetU64() const;
- CoprocessorInfo GetCoprocInfo() const;
- Cond GetCond() const;
- AccType GetAccType() const;
-
- /**
- * Retrieves the immediate of a Value instance as a signed 64-bit value.
- *
- * @pre The value contains either a U1, U8, U16, U32, or U64 value.
- * Breaking this precondition will cause an assertion to be invoked.
- */
- s64 GetImmediateAsS64() const;
-
- /**
- * Retrieves the immediate of a Value instance as an unsigned 64-bit value.
- *
- * @pre The value contains either a U1, U8, U16, U32, or U64 value.
- * Breaking this precondition will cause an assertion to be invoked.
- */
- u64 GetImmediateAsU64() const;
-
- /**
- * Determines whether or not the contained value matches the provided signed one.
- *
- * Note that this function will always return false if the contained
- * value is not a a constant value. In other words, if IsImmediate()
- * would return false on an instance, then so will this function.
- *
- * @param value The value to check against the contained value.
- */
- bool IsSignedImmediate(s64 value) const;
-
- /**
- * Determines whether or not the contained value matches the provided unsigned one.
- *
- * Note that this function will always return false if the contained
- * value is not a a constant value. In other words, if IsImmediate()
- * would return false on an instance, then so will this function.
- *
- * @param value The value to check against the contained value.
- */
- bool IsUnsignedImmediate(u64 value) const;
-
- /**
- * Determines whether or not the contained constant value has all bits set.
- *
- * @pre The value contains either a U1, U8, U16, U32, or U64 value.
- * Breaking this precondition will cause an assertion to be invoked.
- */
- bool HasAllBitsSet() const;
-
- /**
- * Whether or not the current value contains a representation of zero.
- *
- * Note that this function will always return false if the contained
- * value is not a a constant value. In other words, if IsImmediate()
- * would return false on an instance, then so will this function.
- */
- bool IsZero() const;
-
-private:
- Type type;
-
- union {
- Inst* inst; // type == Type::Opaque
- A32::Reg imm_a32regref;
- A32::ExtReg imm_a32extregref;
- A64::Reg imm_a64regref;
- A64::Vec imm_a64vecref;
- bool imm_u1;
- u8 imm_u8;
- u16 imm_u16;
- u32 imm_u32;
- u64 imm_u64;
- CoprocessorInfo imm_coproc;
- Cond imm_cond;
- AccType imm_acctype;
- } inner;
-};
-static_assert(sizeof(Value) <= 2 * sizeof(u64), "IR::Value should be kept small in size");
-
-template<Type type_>
-class TypedValue final : public Value {
-public:
- TypedValue() = default;
-
- template<Type other_type, typename = std::enable_if_t<(other_type & type_) != Type::Void>>
- /* implicit */ TypedValue(const TypedValue<other_type>& value)
- : Value(value) {
- ASSERT((value.GetType() & type_) != Type::Void);
- }
-
- explicit TypedValue(const Value& value)
- : Value(value) {
- ASSERT((value.GetType() & type_) != Type::Void);
- }
-
- explicit TypedValue(Inst* inst)
- : TypedValue(Value(inst)) {}
-};
-
-using U1 = TypedValue<Type::U1>;
-using U8 = TypedValue<Type::U8>;
-using U16 = TypedValue<Type::U16>;
-using U32 = TypedValue<Type::U32>;
-using U64 = TypedValue<Type::U64>;
-using U128 = TypedValue<Type::U128>;
-using U32U64 = TypedValue<Type::U32 | Type::U64>;
-using U16U32U64 = TypedValue<Type::U16 | Type::U32 | Type::U64>;
-using UAny = TypedValue<Type::U8 | Type::U16 | Type::U32 | Type::U64>;
-using UAnyU128 = TypedValue<Type::U8 | Type::U16 | Type::U32 | Type::U64 | Type::U128>;
-using NZCV = TypedValue<Type::NZCVFlags>;
-using Table = TypedValue<Type::Table>;
-
-} // namespace Dynarmic::IR
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/libdynarmic.a b/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/libdynarmic.a
deleted file mode 100644
index d35086a1..00000000
Binary files a/Cores/Citra/Dependencies/XCFrameworks/libdynarmic.xcframework/tvos-arm64/libdynarmic.a and /dev/null differ
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/Info.plist b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/Info.plist
index 1121df42..537a5afc 100644
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/Info.plist
+++ b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/Info.plist
@@ -4,40 +4,6 @@
<dict>
<key>AvailableLibraries</key>
<array>
- <dict>
- <key>BinaryPath</key>
- <string>libmcl.a</string>
- <key>HeadersPath</key>
- <string>Headers</string>
- <key>LibraryIdentifier</key>
- <string>tvos-arm64</string>
- <key>LibraryPath</key>
- <string>libmcl.a</string>
- <key>SupportedArchitectures</key>
- <array>
- <string>arm64</string>
- </array>
- <key>SupportedPlatform</key>
- <string>tvos</string>
- </dict>
- <dict>
- <key>BinaryPath</key>
- <string>libmcl.a</string>
- <key>HeadersPath</key>
- <string>Headers</string>
- <key>LibraryIdentifier</key>
- <string>tvos-arm64-simulator</string>
- <key>LibraryPath</key>
- <string>libmcl.a</string>
- <key>SupportedArchitectures</key>
- <array>
- <string>arm64</string>
- </array>
- <key>SupportedPlatform</key>
- <string>tvos</string>
- <key>SupportedPlatformVariant</key>
- <string>simulator</string>
- </dict>
<dict>
<key>BinaryPath</key>
<string>libmcl.a</string>
@@ -54,24 +20,6 @@
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
- <dict>
- <key>BinaryPath</key>
- <string>libmcl.a</string>
- <key>HeadersPath</key>
- <string>Headers</string>
- <key>LibraryIdentifier</key>
- <string>ios-arm64-simulator</string>
- <key>LibraryPath</key>
- <string>libmcl.a</string>
- <key>SupportedArchitectures</key>
- <array>
- <string>arm64</string>
- </array>
- <key>SupportedPlatform</key>
- <string>ios</string>
- <key>SupportedPlatformVariant</key>
- <string>simulator</string>
- </dict>
</array>
<key>CFBundlePackageType</key>
<string>XFWK</string>
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/assert.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/assert.hpp
deleted file mode 100644
index f77dbe71..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/assert.hpp
+++ /dev/null
@@ -1,62 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <stdexcept>
-#include <type_traits>
-
-#include <fmt/format.h>
-
-#include "mcl/hint/assume.hpp"
-
-namespace mcl::detail {
-
-[[noreturn]] void assert_terminate_impl(const char* expr_str, fmt::string_view msg, fmt::format_args args);
-
-template<typename... Ts>
-[[noreturn]] void assert_terminate(const char* expr_str, fmt::string_view msg, Ts... args)
-{
- assert_terminate_impl(expr_str, msg, fmt::make_format_args(args...));
-}
-
-} // namespace mcl::detail
-
-#define UNREACHABLE() ASSERT_FALSE("Unreachable code!")
-
-#define ASSERT(expr) \
- [&] { \
- if (std::is_constant_evaluated()) { \
- if (!(expr)) { \
- throw std::logic_error{"ASSERT failed at compile time"}; \
- } \
- } else { \
- if (!(expr)) [[unlikely]] { \
- ::mcl::detail::assert_terminate(#expr, "(none)"); \
- } \
- } \
- }()
-
-#define ASSERT_MSG(expr, ...) \
- [&] { \
- if (std::is_constant_evaluated()) { \
- if (!(expr)) { \
- throw std::logic_error{"ASSERT_MSG failed at compile time"}; \
- } \
- } else { \
- if (!(expr)) [[unlikely]] { \
- ::mcl::detail::assert_terminate(#expr, __VA_ARGS__); \
- } \
- } \
- }()
-
-#define ASSERT_FALSE(...) ::mcl::detail::assert_terminate("false", __VA_ARGS__)
-
-#if defined(NDEBUG) || defined(MCL_IGNORE_ASSERTS)
-# define DEBUG_ASSERT(expr) ASSUME(expr)
-# define DEBUG_ASSERT_MSG(expr, ...) ASSUME(expr)
-#else
-# define DEBUG_ASSERT(expr) ASSERT(expr)
-# define DEBUG_ASSERT_MSG(expr, ...) ASSERT_MSG(expr, __VA_ARGS__)
-#endif
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/bit/bit_count.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/bit/bit_count.hpp
deleted file mode 100644
index 104af9c8..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/bit/bit_count.hpp
+++ /dev/null
@@ -1,58 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <bitset>
-
-#include "mcl/bitsizeof.hpp"
-#include "mcl/concepts/bit_integral.hpp"
-#include "mcl/stdint.hpp"
-
-namespace mcl::bit {
-
-template<BitIntegral T>
-inline size_t count_ones(T x)
-{
- return std::bitset<bitsizeof<T>>(x).count();
-}
-
-template<BitIntegral T>
-constexpr size_t count_leading_zeros(T x)
-{
- size_t result = bitsizeof<T>;
- while (x != 0) {
- x >>= 1;
- result--;
- }
- return result;
-}
-
-template<BitIntegral T>
-constexpr int highest_set_bit(T x)
-{
- int result = -1;
- while (x != 0) {
- x >>= 1;
- result++;
- }
- return result;
-}
-
-template<BitIntegral T>
-constexpr size_t lowest_set_bit(T x)
-{
- if (x == 0) {
- return bitsizeof<T>;
- }
-
- size_t result = 0;
- while ((x & 1) == 0) {
- x >>= 1;
- result++;
- }
- return result;
-}
-
-} // namespace mcl::bit
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/bit/bit_field.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/bit/bit_field.hpp
deleted file mode 100644
index 91e27498..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/bit/bit_field.hpp
+++ /dev/null
@@ -1,221 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/assert.hpp"
-#include "mcl/bitsizeof.hpp"
-#include "mcl/concepts/bit_integral.hpp"
-#include "mcl/stdint.hpp"
-
-namespace mcl::bit {
-
-/// Create a mask with `count` number of one bits.
-template<size_t count, BitIntegral T>
-constexpr T ones()
-{
- static_assert(count <= bitsizeof<T>, "count larger than bitsize of T");
-
- if constexpr (count == 0) {
- return 0;
- } else {
- return static_cast<T>(~static_cast<T>(0)) >> (bitsizeof<T> - count);
- }
-}
-
-/// Create a mask with `count` number of one bits.
-template<BitIntegral T>
-constexpr T ones(size_t count)
-{
- ASSERT_MSG(count <= bitsizeof<T>, "count larger than bitsize of T");
-
- if (count == 0) {
- return 0;
- }
- return static_cast<T>(~static_cast<T>(0)) >> (bitsizeof<T> - count);
-}
-
-/// Create a mask of type T for bits [begin_bit, end_bit] inclusive.
-template<size_t begin_bit, size_t end_bit, BitIntegral T>
-constexpr T mask()
-{
- static_assert(begin_bit <= end_bit, "invalid bit range (position of beginning bit cannot be greater than that of end bit)");
- static_assert(begin_bit < bitsizeof<T>, "begin_bit must be smaller than size of T");
- static_assert(end_bit < bitsizeof<T>, "end_bit must be smaller than size of T");
-
- return ones<end_bit - begin_bit + 1, T>() << begin_bit;
-}
-
-/// Create a mask of type T for bits [begin_bit, end_bit] inclusive.
-template<BitIntegral T>
-constexpr T mask(size_t begin_bit, size_t end_bit)
-{
- ASSERT_MSG(begin_bit <= end_bit, "invalid bit range (position of beginning bit cannot be greater than that of end bit)");
- ASSERT_MSG(begin_bit < bitsizeof<T>, "begin_bit must be smaller than size of T");
- ASSERT_MSG(end_bit < bitsizeof<T>, "end_bit must be smaller than size of T");
-
- return ones<T>(end_bit - begin_bit + 1) << begin_bit;
-}
-
-/// Extract bits [begin_bit, end_bit] inclusive from value of type T.
-template<size_t begin_bit, size_t end_bit, BitIntegral T>
-constexpr T get_bits(T value)
-{
- constexpr T m = mask<begin_bit, end_bit, T>();
- return (value & m) >> begin_bit;
-}
-
-/// Extract bits [begin_bit, end_bit] inclusive from value of type T.
-template<BitIntegral T>
-constexpr T get_bits(size_t begin_bit, size_t end_bit, T value)
-{
- const T m = mask<T>(begin_bit, end_bit);
- return (value & m) >> begin_bit;
-}
-
-/// Clears bits [begin_bit, end_bit] inclusive of value of type T.
-template<size_t begin_bit, size_t end_bit, BitIntegral T>
-constexpr T clear_bits(T value)
-{
- constexpr T m = mask<begin_bit, end_bit, T>();
- return value & ~m;
-}
-
-/// Clears bits [begin_bit, end_bit] inclusive of value of type T.
-template<BitIntegral T>
-constexpr T clear_bits(size_t begin_bit, size_t end_bit, T value)
-{
- const T m = mask<T>(begin_bit, end_bit);
- return value & ~m;
-}
-
-/// Modifies bits [begin_bit, end_bit] inclusive of value of type T.
-template<size_t begin_bit, size_t end_bit, BitIntegral T>
-constexpr T set_bits(T value, T new_bits)
-{
- constexpr T m = mask<begin_bit, end_bit, T>();
- return (value & ~m) | ((new_bits << begin_bit) & m);
-}
-
-/// Modifies bits [begin_bit, end_bit] inclusive of value of type T.
-template<BitIntegral T>
-constexpr T set_bits(size_t begin_bit, size_t end_bit, T value, T new_bits)
-{
- const T m = mask<T>(begin_bit, end_bit);
- return (value & ~m) | ((new_bits << begin_bit) & m);
-}
-
-/// Extract bit at bit_position from value of type T.
-template<size_t bit_position, BitIntegral T>
-constexpr bool get_bit(T value)
-{
- constexpr T m = mask<bit_position, bit_position, T>();
- return (value & m) != 0;
-}
-
-/// Extract bit at bit_position from value of type T.
-template<BitIntegral T>
-constexpr bool get_bit(size_t bit_position, T value)
-{
- const T m = mask<T>(bit_position, bit_position);
- return (value & m) != 0;
-}
-
-/// Clears bit at bit_position of value of type T.
-template<size_t bit_position, BitIntegral T>
-constexpr T clear_bit(T value)
-{
- constexpr T m = mask<bit_position, bit_position, T>();
- return value & ~m;
-}
-
-/// Clears bit at bit_position of value of type T.
-template<BitIntegral T>
-constexpr T clear_bit(size_t bit_position, T value)
-{
- const T m = mask<T>(bit_position, bit_position);
- return value & ~m;
-}
-
-/// Modifies bit at bit_position of value of type T.
-template<size_t bit_position, BitIntegral T>
-constexpr T set_bit(T value, bool new_bit)
-{
- constexpr T m = mask<bit_position, bit_position, T>();
- return (value & ~m) | (new_bit ? m : static_cast<T>(0));
-}
-
-/// Modifies bit at bit_position of value of type T.
-template<BitIntegral T>
-constexpr T set_bit(size_t bit_position, T value, bool new_bit)
-{
- const T m = mask<T>(bit_position, bit_position);
- return (value & ~m) | (new_bit ? m : static_cast<T>(0));
-}
-
-/// Sign-extends a value that has bit_count bits to the full bitwidth of type T.
-template<size_t bit_count, BitIntegral T>
-constexpr T sign_extend(T value)
-{
- static_assert(bit_count != 0, "cannot sign-extend zero-sized value");
-
- using S = std::make_signed_t<T>;
- constexpr size_t shift_amount = bitsizeof<T> - bit_count;
- return static_cast<T>(static_cast<S>(value << shift_amount) >> shift_amount);
-}
-
-/// Sign-extends a value that has bit_count bits to the full bitwidth of type T.
-template<BitIntegral T>
-constexpr T sign_extend(size_t bit_count, T value)
-{
- ASSERT_MSG(bit_count != 0, "cannot sign-extend zero-sized value");
-
- using S = std::make_signed_t<T>;
- const size_t shift_amount = bitsizeof<T> - bit_count;
- return static_cast<T>(static_cast<S>(value << shift_amount) >> shift_amount);
-}
-
-/// Replicate an element across a value of type T.
-template<size_t element_size, BitIntegral T>
-constexpr T replicate_element(T value)
-{
- static_assert(element_size <= bitsizeof<T>, "element_size is too large");
- static_assert(bitsizeof<T> % element_size == 0, "bitsize of T not divisible by element_size");
-
- if constexpr (element_size == bitsizeof<T>) {
- return value;
- } else {
- return replicate_element<element_size * 2, T>(static_cast<T>(value | (value << element_size)));
- }
-}
-
-/// Replicate an element of type U across a value of type T.
-template<BitIntegral U, BitIntegral T>
-constexpr T replicate_element(T value)
-{
- static_assert(bitsizeof<U> <= bitsizeof<T>, "element_size is too large");
-
- return replicate_element<bitsizeof<U>, T>(value);
-}
-
-/// Replicate an element across a value of type T.
-template<BitIntegral T>
-constexpr T replicate_element(size_t element_size, T value)
-{
- ASSERT_MSG(element_size <= bitsizeof<T>, "element_size is too large");
- ASSERT_MSG(bitsizeof<T> % element_size == 0, "bitsize of T not divisible by element_size");
-
- if (element_size == bitsizeof<T>) {
- return value;
- }
- return replicate_element<T>(element_size * 2, static_cast<T>(value | (value << element_size)));
-}
-
-template<BitIntegral T>
-constexpr bool most_significant_bit(T value)
-{
- return get_bit<bitsizeof<T> - 1, T>(value);
-}
-
-} // namespace mcl::bit
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/bit/rotate.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/bit/rotate.hpp
deleted file mode 100644
index cb7e7bdd..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/bit/rotate.hpp
+++ /dev/null
@@ -1,33 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/bitsizeof.hpp"
-#include "mcl/concepts/bit_integral.hpp"
-#include "mcl/stdint.hpp"
-
-namespace mcl::bit {
-
-template<BitIntegral T>
-constexpr T rotate_right(T x, size_t amount)
-{
- amount %= bitsizeof<T>;
- if (amount == 0) {
- return x;
- }
- return static_cast<T>((x >> amount) | (x << (bitsizeof<T> - amount)));
-}
-
-template<BitIntegral T>
-constexpr T rotate_left(T x, size_t amount)
-{
- amount %= bitsizeof<T>;
- if (amount == 0) {
- return x;
- }
- return static_cast<T>((x << amount) | (x >> (bitsizeof<T> - amount)));
-}
-
-} // namespace mcl::bit
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/bit/swap.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/bit/swap.hpp
deleted file mode 100644
index f96b6af3..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/bit/swap.hpp
+++ /dev/null
@@ -1,56 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/concepts/bit_integral.hpp"
-
-namespace mcl::bit {
-
-constexpr u16 swap_bytes_16(u16 value)
-{
- return static_cast<u16>(u32{value} >> 8 | u32{value} << 8);
-}
-
-constexpr u32 swap_bytes_32(u32 value)
-{
- return ((value & 0xff000000u) >> 24)
- | ((value & 0x00ff0000u) >> 8)
- | ((value & 0x0000ff00u) << 8)
- | ((value & 0x000000ffu) << 24);
-}
-
-constexpr u64 swap_bytes_64(u64 value)
-{
- return ((value & 0xff00000000000000ull) >> 56)
- | ((value & 0x00ff000000000000ull) >> 40)
- | ((value & 0x0000ff0000000000ull) >> 24)
- | ((value & 0x000000ff00000000ull) >> 8)
- | ((value & 0x00000000ff000000ull) << 8)
- | ((value & 0x0000000000ff0000ull) << 24)
- | ((value & 0x000000000000ff00ull) << 40)
- | ((value & 0x00000000000000ffull) << 56);
-}
-
-constexpr u32 swap_halves_32(u32 value)
-{
- return ((value & 0xffff0000u) >> 16)
- | ((value & 0x0000ffffu) << 16);
-}
-
-constexpr u64 swap_halves_64(u64 value)
-{
- return ((value & 0xffff000000000000ull) >> 48)
- | ((value & 0x0000ffff00000000ull) >> 16)
- | ((value & 0x00000000ffff0000ull) << 16)
- | ((value & 0x000000000000ffffull) << 48);
-}
-
-constexpr u64 swap_words_64(u64 value)
-{
- return ((value & 0xffffffff00000000ull) >> 32)
- | ((value & 0x00000000ffffffffull) << 32);
-}
-
-} // namespace mcl::bit
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/bit_cast.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/bit_cast.hpp
deleted file mode 100644
index 3eda2657..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/bit_cast.hpp
+++ /dev/null
@@ -1,38 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstring>
-#include <type_traits>
-
-namespace mcl {
-
-/// Reinterpret objects of one type as another by bit-casting between object representations.
-template<class Dest, class Source>
-inline Dest bit_cast(const Source& source) noexcept
-{
- static_assert(sizeof(Dest) == sizeof(Source), "size of destination and source objects must be equal");
- static_assert(std::is_trivially_copyable_v<Dest>, "destination type must be trivially copyable.");
- static_assert(std::is_trivially_copyable_v<Source>, "source type must be trivially copyable");
-
- std::aligned_storage_t<sizeof(Dest), alignof(Dest)> dest;
- std::memcpy(&dest, &source, sizeof(dest));
- return reinterpret_cast<Dest&>(dest);
-}
-
-/// Reinterpret objects of any arbitrary type as another type by bit-casting between object representations.
-/// Note that here we do not verify if source pointed to by source_ptr has enough bytes to read from.
-template<class Dest, class SourcePtr>
-inline Dest bit_cast_pointee(const SourcePtr source_ptr) noexcept
-{
- static_assert(sizeof(SourcePtr) == sizeof(void*), "source pointer must have size of a pointer");
- static_assert(std::is_trivially_copyable_v<Dest>, "destination type must be trivially copyable.");
-
- std::aligned_storage_t<sizeof(Dest), alignof(Dest)> dest;
- std::memcpy(&dest, bit_cast<void*>(source_ptr), sizeof(dest));
- return reinterpret_cast<Dest&>(dest);
-}
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/bitsizeof.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/bitsizeof.hpp
deleted file mode 100644
index 5d28f595..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/bitsizeof.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <climits>
-#include <cstddef>
-
-namespace mcl {
-
-template<typename T>
-constexpr std::size_t bitsizeof = CHAR_BIT * sizeof(T);
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/concepts/bit_integral.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/concepts/bit_integral.hpp
deleted file mode 100644
index caddc059..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/concepts/bit_integral.hpp
+++ /dev/null
@@ -1,16 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/concepts/is_any_of.hpp"
-#include "mcl/stdint.hpp"
-
-namespace mcl {
-
-/// Integral upon which bit operations can be safely performed.
-template<typename T>
-concept BitIntegral = IsAnyOf<T, u8, u16, u32, u64, uptr, size_t>;
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/concepts/is_any_of.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/concepts/is_any_of.hpp
deleted file mode 100644
index 3e6593db..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/concepts/is_any_of.hpp
+++ /dev/null
@@ -1,14 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/concepts/same_as.hpp"
-
-namespace mcl {
-
-template<typename T, typename... U>
-concept IsAnyOf = (SameAs<T, U> || ...);
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/concepts/same_as.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/concepts/same_as.hpp
deleted file mode 100644
index 7aaaa501..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/concepts/same_as.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl {
-
-namespace detail {
-
-template<typename T, typename U>
-concept SameHelper = std::is_same_v<T, U>;
-
-} // namespace detail
-
-template<typename T, typename U>
-concept SameAs = detail::SameHelper<T, U> && detail::SameHelper<U, T>;
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/container/detail/meta_byte.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/container/detail/meta_byte.hpp
deleted file mode 100644
index c3fc8c4e..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/container/detail/meta_byte.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/bitsizeof.hpp"
-#include "mcl/stdint.hpp"
-
-namespace mcl::detail {
-
-/// if MSB is 0, this is a full slot. remaining 7 bits is a partial hash of the key.
-/// if MSB is 1, this is a non-full slot.
-enum class meta_byte : u8 {
- empty = 0xff,
- tombstone = 0x80,
- end_sentinel = 0x88,
-};
-
-inline bool is_full(meta_byte mb)
-{
- return (static_cast<u8>(mb) & 0x80) == 0;
-}
-
-inline meta_byte meta_byte_from_hash(size_t hash)
-{
- return static_cast<meta_byte>(hash >> (bitsizeof<size_t> - 7));
-}
-
-inline size_t group_index_from_hash(size_t hash, size_t group_index_mask)
-{
- return hash & group_index_mask;
-}
-
-} // namespace mcl::detail
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/container/detail/meta_byte_group.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/container/detail/meta_byte_group.hpp
deleted file mode 100644
index 05f9ad1a..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/container/detail/meta_byte_group.hpp
+++ /dev/null
@@ -1,263 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <array>
-#include <bit>
-
-#include "mcl/assert.hpp"
-#include "mcl/container/detail/meta_byte.hpp"
-#include "mcl/macro/architecture.hpp"
-#include "mcl/stdint.hpp"
-
-#if defined(MCL_ARCHITECTURE_ARM64)
-# include <arm_neon.h>
-#elif defined(MCL_ARCHITECTURE_X86_64)
-# include <emmintrin.h>
-
-# include "mcl/bit_cast.hpp"
-#else
-# include <cstring>
-#endif
-
-namespace mcl::detail {
-
-#if defined(MCL_ARCHITECTURE_ARM64)
-
-struct meta_byte_group {
- static constexpr size_t max_group_size{16};
-
- explicit meta_byte_group(meta_byte* ptr)
- : data{vld1q_u8(reinterpret_cast<u8*>(ptr))}
- {}
-
- explicit meta_byte_group(const std::array<meta_byte, 16>& array)
- : data{vld1q_u8(reinterpret_cast<const u8*>(array.data()))}
- {}
-
- uint64x2_t match(meta_byte cmp) const
- {
- return vreinterpretq_u64_u8(vandq_u8(vceqq_u8(data,
- vdupq_n_u8(static_cast<u8>(cmp))),
- vdupq_n_u8(0x80)));
- }
-
- uint64x2_t match_empty_or_tombstone() const
- {
- return vreinterpretq_u64_u8(vandq_u8(data,
- vdupq_n_u8(0x80)));
- }
-
- bool is_any_empty() const
- {
- static_assert(meta_byte::empty == static_cast<meta_byte>(0xff), "empty must be maximal u8 value");
- return vmaxvq_u8(data) == 0xff;
- }
-
- bool is_all_empty_or_tombstone() const
- {
- return vminvq_u8(vandq_u8(data, vdupq_n_u8(0x80))) == 0x80;
- }
-
- meta_byte get(size_t index) const
- {
- return static_cast<meta_byte>(data[index]);
- }
-
- void set(size_t index, meta_byte value)
- {
- data[index] = static_cast<u8>(value);
- }
-
- uint8x16_t data;
-};
-
-# define MCL_HMAP_MATCH_META_BYTE_GROUP(MATCH, ...) \
- { \
- const uint64x2_t match_result{MATCH}; \
- \
- for (u64 match_result_v{match_result[0]}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- \
- for (u64 match_result_v{match_result[1]}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(8 + std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- }
-
-# define MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(MATCH, ...) \
- { \
- const uint64x2_t match_result{MATCH}; \
- \
- for (u64 match_result_v{match_result[0]}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- \
- for (u64 match_result_v{match_result[1] & 0x00ffffffffffffff}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(8 + std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- }
-
-#elif defined(MCL_ARCHITECTURE_X86_64)
-
-struct meta_byte_group {
- static constexpr size_t max_group_size{16};
-
- explicit meta_byte_group(meta_byte* ptr)
- : data{_mm_load_si128(reinterpret_cast<__m128i const*>(ptr))}
- {}
-
- explicit meta_byte_group(const std::array<meta_byte, 16>& array)
- : data{_mm_loadu_si128(reinterpret_cast<__m128i const*>(array.data()))}
- {}
-
- u16 match(meta_byte cmp) const
- {
- return _mm_movemask_epi8(_mm_cmpeq_epi8(data, _mm_set1_epi8(static_cast<u8>(cmp))));
- }
-
- u16 match_empty_or_tombstone() const
- {
- return _mm_movemask_epi8(data);
- }
-
- bool is_any_empty() const
- {
- return match(meta_byte::empty);
- }
-
- bool is_all_empty_or_tombstone() const
- {
- return match_empty_or_tombstone() == 0xffff;
- }
-
- meta_byte get(size_t index) const
- {
- return mcl::bit_cast<std::array<meta_byte, max_group_size>>(data)[index];
- }
-
- void set(size_t index, meta_byte value)
- {
- auto array = mcl::bit_cast<std::array<meta_byte, max_group_size>>(data);
- array[index] = value;
- data = mcl::bit_cast<__m128i>(array);
- }
-
- __m128i data;
-};
-
-# define MCL_HMAP_MATCH_META_BYTE_GROUP(MATCH, ...) \
- { \
- for (u16 match_result{MATCH}; match_result != 0; match_result &= match_result - 1) { \
- const size_t match_index{static_cast<size_t>(std::countr_zero(match_result))}; \
- __VA_ARGS__ \
- } \
- }
-
-# define MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(MATCH, ...) \
- { \
- for (u16 match_result{static_cast<u16>((MATCH) & (0x7fff))}; match_result != 0; match_result &= match_result - 1) { \
- const size_t match_index{static_cast<size_t>(std::countr_zero(match_result))}; \
- __VA_ARGS__ \
- } \
- }
-
-#else
-
-struct meta_byte_group {
- static constexpr size_t max_group_size{16};
-
- static constexpr u64 msb{0x8080808080808080};
- static constexpr u64 lsb{0x0101010101010101};
- static constexpr u64 not_msb{0x7f7f7f7f7f7f7f7f};
- static constexpr u64 not_lsb{0xfefefefefefefefe};
-
- explicit meta_byte_group(meta_byte* ptr)
- {
- std::memcpy(data.data(), ptr, sizeof(data));
- }
-
- explicit meta_byte_group(const std::array<meta_byte, 16>& array)
- : data{array}
- {}
-
- std::array<u64, 2> match(meta_byte cmp) const
- {
- DEBUG_ASSERT(is_full(cmp));
-
- const u64 vcmp{lsb * static_cast<u64>(cmp)};
- return {(msb - ((data[0] ^ vcmp) & not_msb)) & ~data[0] & msb, (msb - ((data[1] ^ vcmp) & not_msb)) & ~data[1] & msb};
- }
-
- std::array<u64, 2> match_empty_or_tombstone() const
- {
- return {data[0] & msb, data[1] & msb};
- }
-
- bool is_any_empty() const
- {
- static_assert((static_cast<u8>(meta_byte::empty) & 0xc0) == 0xc0);
- static_assert((static_cast<u8>(meta_byte::tombstone) & 0xc0) == 0x80);
-
- return (data[0] & (data[0] << 1) & msb) || (data[1] & (data[1] << 1) & msb);
- }
-
- bool is_all_empty_or_tombstone() const
- {
- return (data[0] & data[1] & msb) == msb;
- }
-
- meta_byte get(size_t index) const
- {
- return mcl::bit_cast<std::array<meta_byte, max_group_size>>(data)[index];
- }
-
- void set(size_t index, meta_byte value)
- {
- auto array = mcl::bit_cast<std::array<meta_byte, max_group_size>>(data);
- array[index] = value;
- data = mcl::bit_cast<std::array<u64, 2>>(array);
- }
-
- std::array<u64, 2> data;
-};
-
-# define MCL_HMAP_MATCH_META_BYTE_GROUP(MATCH, ...) \
- { \
- const std::array<u64, 2> match_result{MATCH}; \
- \
- for (u64 match_result_v{match_result[0]}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- \
- for (u64 match_result_v{match_result[1]}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(8 + std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- }
-
-# define MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(MATCH, ...) \
- { \
- const std::array<u64, 2> match_result{MATCH}; \
- \
- for (u64 match_result_v{match_result[0]}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- \
- for (u64 match_result_v{match_result[1] & 0x00ffffffffffffff}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(8 + std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- }
-
-#endif
-
-} // namespace mcl::detail
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/container/detail/slot_union.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/container/detail/slot_union.hpp
deleted file mode 100644
index 50385037..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/container/detail/slot_union.hpp
+++ /dev/null
@@ -1,16 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::detail {
-
-template<typename ValueType>
-union slot_union {
- slot_union() {}
- ~slot_union() {}
- ValueType value;
-};
-
-} // namespace mcl::detail
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/container/hmap.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/container/hmap.hpp
deleted file mode 100644
index f0616c89..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/container/hmap.hpp
+++ /dev/null
@@ -1,532 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstddef>
-#include <functional>
-#include <limits>
-#include <type_traits>
-#include <utility>
-
-#include "mcl/assert.hpp"
-#include "mcl/container/detail/meta_byte.hpp"
-#include "mcl/container/detail/meta_byte_group.hpp"
-#include "mcl/container/detail/slot_union.hpp"
-#include "mcl/hash/xmrx.hpp"
-#include "mcl/hint/assume.hpp"
-#include "mcl/memory/overaligned_unique_ptr.hpp"
-
-namespace mcl {
-
-template<typename KeyType, typename MappedType, typename Hash, typename Pred>
-class hmap;
-
-template<bool IsConst, typename KeyType, typename MappedType, typename Hash, typename Pred>
-class hmap_iterator {
- using base_value_type = std::pair<const KeyType, MappedType>;
- using slot_type = detail::slot_union<base_value_type>;
-
-public:
- using key_type = KeyType;
- using mapped_type = MappedType;
- using iterator_category = std::forward_iterator_tag;
- using difference_type = std::ptrdiff_t;
- using value_type = std::conditional_t<IsConst, std::add_const_t<base_value_type>, base_value_type>;
- using pointer = value_type*;
- using const_pointer = const value_type*;
- using reference = value_type&;
- using const_reference = const value_type&;
-
- hmap_iterator() = default;
- hmap_iterator(const hmap_iterator& other) = default;
- hmap_iterator& operator=(const hmap_iterator& other) = default;
-
- hmap_iterator& operator++()
- {
- if (mb_ptr == nullptr)
- return *this;
-
- ++mb_ptr;
- ++slot_ptr;
-
- skip_empty_or_tombstone();
-
- return *this;
- }
- hmap_iterator operator++(int)
- {
- hmap_iterator it(*this);
- ++*this;
- return it;
- }
-
- bool operator==(const hmap_iterator& other) const
- {
- return std::tie(mb_ptr, slot_ptr) == std::tie(other.mb_ptr, other.slot_ptr);
- }
- bool operator!=(const hmap_iterator& other) const
- {
- return !operator==(other);
- }
-
- reference operator*() const
- {
- return static_cast<reference>(slot_ptr->value);
- }
- pointer operator->() const
- {
- return std::addressof(operator*());
- }
-
-private:
- friend class hmap<KeyType, MappedType, Hash, Pred>;
-
- hmap_iterator(detail::meta_byte* mb_ptr, slot_type* slot_ptr)
- : mb_ptr{mb_ptr}, slot_ptr{slot_ptr}
- {
- ASSUME(mb_ptr != nullptr);
- ASSUME(slot_ptr != nullptr);
- }
-
- void skip_empty_or_tombstone()
- {
- if (!mb_ptr)
- return;
-
- while (*mb_ptr == detail::meta_byte::empty || *mb_ptr == detail::meta_byte::tombstone) {
- ++mb_ptr;
- ++slot_ptr;
- }
-
- if (*mb_ptr == detail::meta_byte::end_sentinel) {
- mb_ptr = nullptr;
- slot_ptr = nullptr;
- }
- }
-
- detail::meta_byte* mb_ptr{nullptr};
- slot_type* slot_ptr{nullptr};
-};
-
-template<typename KeyType, typename MappedType, typename Hash = hash::avalanche_xmrx<KeyType>, typename Pred = std::equal_to<KeyType>>
-class hmap {
-public:
- using key_type = KeyType;
- using mapped_type = MappedType;
- using hasher = Hash;
- using key_equal = Pred;
- using value_type = std::pair<const key_type, mapped_type>;
- using reference = value_type&;
- using const_reference = const value_type&;
- using pointer = value_type*;
- using const_pointer = const value_type*;
- using size_type = std::size_t;
- using difference_type = std::ptrdiff_t;
-
- using iterator = hmap_iterator<false, key_type, mapped_type, hasher, key_equal>;
- using const_iterator = hmap_iterator<true, key_type, mapped_type, hasher, key_equal>;
-
-private:
- static constexpr size_t group_size{detail::meta_byte_group::max_group_size};
- static constexpr size_t average_max_group_load{group_size - 2};
-
- using slot_type = detail::slot_union<value_type>;
- using slot_ptr = std::unique_ptr<slot_type[]>;
- using meta_byte_ptr = overaligned_unique_ptr<group_size, detail::meta_byte[]>;
- static_assert(!std::is_reference_v<key_type>);
- static_assert(!std::is_reference_v<mapped_type>);
-
-public:
- hmap()
- {
- initialize_members(1);
- }
- hmap(const hmap& other)
- {
- deep_copy(other);
- }
- hmap(hmap&& other)
- : group_index_mask{std::exchange(other.group_index_mask, 0)}
- , empty_slots{std::exchange(other.empty_slots, 0)}
- , full_slots{std::exchange(other.full_slots, 0)}
- , mbs{std::move(other.mbs)}
- , slots{std::move(other.slots)}
- {
- }
- hmap& operator=(const hmap& other)
- {
- deep_copy(other);
- return *this;
- }
- hmap& operator=(hmap&& other)
- {
- group_index_mask = std::exchange(other.group_index_mask, 0);
- empty_slots = std::exchange(other.empty_slots, 0);
- full_slots = std::exchange(other.full_slots, 0);
- mbs = std::move(other.mbs);
- slots = std::move(other.slots);
- return *this;
- }
-
- ~hmap()
- {
- if (!mbs)
- return;
-
- clear();
- }
-
- [[nodiscard]] bool empty() const noexcept { return full_slots == 0; }
- size_type size() const noexcept { return full_slots; }
- size_type max_size() const noexcept { return static_cast<size_type>(std::numeric_limits<difference_type>::max()); }
-
- iterator begin()
- {
- iterator result{iterator_at(0)};
- result.skip_empty_or_tombstone();
- return result;
- }
- iterator end()
- {
- return {};
- }
- const_iterator cbegin() const
- {
- const_iterator result{const_iterator_at(0)};
- result.skip_empty_or_tombstone();
- return result;
- }
- const_iterator cend() const
- {
- return {};
- }
- const_iterator begin() const
- {
- return cbegin();
- }
- const_iterator end() const
- {
- return cend();
- }
-
- template<typename K = key_type, typename... Args>
- std::pair<iterator, bool> try_emplace(K&& k, Args&&... args)
- {
- auto [item_index, item_found] = find_key_or_empty_slot(k);
- if (!item_found) {
- new (&slots[item_index].value) value_type(
- std::piecewise_construct,
- std::forward_as_tuple(std::forward<K>(k)),
- std::forward_as_tuple(std::forward<Args>(args)...));
- }
- return {iterator_at(item_index), !item_found};
- }
-
- template<typename K = key_type, typename V = mapped_type>
- std::pair<iterator, bool> insert_or_assign(K&& k, V&& v)
- {
- auto [item_index, item_found] = find_key_or_empty_slot(k);
- if (item_found) {
- slots[item_index].value.second = std::forward<V>(v);
- } else {
- new (&slots[item_index].value) value_type(
- std::forward<K>(k),
- std::forward<V>(v));
- }
- return {iterator_at(item_index), !item_found};
- }
-
- void erase(const_iterator position)
- {
- if (position == cend()) {
- return;
- }
-
- const std::size_t item_index{static_cast<std::size_t>(std::distance(mbs.get(), position.mb_ptr))};
- const std::size_t group_index{item_index / group_size};
- const detail::meta_byte_group g{mbs.get() + group_index * group_size};
-
- erase_impl(item_index, std::move(g));
- }
- void erase(iterator position)
- {
- if (position == end()) {
- return;
- }
-
- const std::size_t item_index{static_cast<std::size_t>(std::distance(mbs.get(), position.mb_ptr))};
- const std::size_t group_index{item_index / group_size};
- const detail::meta_byte_group g{mbs.get() + group_index * group_size};
-
- erase_impl(item_index, std::move(g));
- }
- template<typename K = key_type>
- size_t erase(const K& key)
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- detail::meta_byte_group g{mbs.get() + group_index * group_size};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP(g.match(mb), {
- const std::size_t item_index{group_index * group_size + match_index};
-
- if (key_equal{}(slots[item_index].value.first, key)) [[likely]] {
- erase_impl(item_index, std::move(g));
- return 1;
- }
- });
-
- if (g.is_any_empty()) [[likely]] {
- return 0;
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
-
- template<typename K = key_type>
- iterator find(const K& key)
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- detail::meta_byte_group g{mbs.get() + group_index * group_size};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP(g.match(mb), {
- const std::size_t item_index{group_index * group_size + match_index};
-
- if (key_equal{}(slots[item_index].value.first, key)) [[likely]] {
- return iterator_at(item_index);
- }
- });
-
- if (g.is_any_empty()) [[likely]] {
- return {};
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
- template<typename K = key_type>
- const_iterator find(const K& key) const
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- detail::meta_byte_group g{mbs.get() + group_index * group_size};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP(g.match(mb), {
- const std::size_t item_index{group_index * group_size + match_index};
-
- if (key_equal{}(slots[item_index].value.first, key)) [[likely]] {
- return const_iterator_at(item_index);
- }
- });
-
- if (g.is_any_empty()) [[likely]] {
- return {};
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
- template<typename K = key_type>
- bool contains(const K& key) const
- {
- return find(key) != end();
- }
- template<typename K = key_type>
- size_t count(const K& key) const
- {
- return contains(key) ? 1 : 0;
- }
-
- template<typename K = key_type>
- mapped_type& operator[](K&& k)
- {
- return try_emplace(std::forward<K>(k)).first->second;
- }
- template<typename K = key_type>
- mapped_type& at(K&& k)
- {
- const auto iter{find(k)};
- if (iter == end()) {
- throw std::out_of_range("hmap::at: key not found");
- }
- return iter->second;
- }
- template<typename K = key_type>
- const mapped_type& at(K&& k) const
- {
- const auto iter{find(k)};
- if (iter == end()) {
- throw std::out_of_range("hmap::at: key not found");
- }
- return iter->second;
- }
-
- void clear()
- {
- for (auto iter{begin()}; iter != end(); ++iter) {
- iter->~value_type();
- }
-
- clear_metadata();
- }
-
-private:
- iterator iterator_at(std::size_t item_index)
- {
- return {mbs.get() + item_index, slots.get() + item_index};
- }
- const_iterator const_iterator_at(std::size_t item_index) const
- {
- return {mbs.get() + item_index, slots.get() + item_index};
- }
-
- std::pair<std::size_t, bool> find_key_or_empty_slot(const key_type& key)
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- std::size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- detail::meta_byte_group g{mbs.get() + group_index * group_size};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP(g.match(mb), {
- const std::size_t item_index{group_index * group_size + match_index};
-
- if (key_equal{}(slots[item_index].value.first, key)) [[likely]] {
- return {item_index, true};
- }
- });
-
- if (g.is_any_empty()) [[likely]] {
- return {find_empty_slot_to_insert(hash), false};
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
-
- std::size_t find_empty_slot_to_insert(const std::size_t hash)
- {
- if (empty_slots == 0) [[unlikely]] {
- grow_and_rehash();
- }
-
- std::size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- detail::meta_byte_group g{mbs.get() + group_index * group_size};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP(g.match_empty_or_tombstone(), {
- const std::size_t item_index{group_index * group_size + match_index};
-
- if (mbs[item_index] == detail::meta_byte::empty) [[likely]] {
- --empty_slots;
- }
- ++full_slots;
-
- mbs[item_index] = detail::meta_byte_from_hash(hash);
-
- return item_index;
- });
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
-
- void erase_impl(std::size_t item_index, detail::meta_byte_group&& g)
- {
- slots[item_index].value->~value_type();
-
- --full_slots;
- if (g.is_any_empty()) {
- mbs[item_index] = detail::meta_byte::empty;
- ++empty_slots;
- } else {
- mbs[item_index] = detail::meta_byte::tombstone;
- }
- }
-
- void grow_and_rehash()
- {
- const std::size_t new_group_count{2 * (group_index_mask + 1)};
-
- pow2_resize(new_group_count);
- }
-
- void pow2_resize(std::size_t new_group_count)
- {
- auto iter{begin()};
-
- const auto old_mbs{std::move(mbs)};
- const auto old_slots{std::move(slots)};
-
- initialize_members(new_group_count);
-
- for (; iter != end(); ++iter) {
- const std::size_t hash{hasher{}(iter->first)};
- const std::size_t item_index{find_empty_slot_to_insert(hash)};
-
- new (&slots[item_index].value) value_type(std::move(iter.slot_ptr->value));
- iter.slot_ptr->value.~value_type();
- }
- }
-
- void deep_copy(const hmap& other)
- {
- initialize_members(other.group_index_mask + 1);
-
- for (auto iter = other.begin(); iter != other.end(); ++iter) {
- const std::size_t hash{hasher{}(iter->first)};
- const std::size_t item_index{find_empty_slot_to_insert(hash)};
-
- new (&slots[item_index].value) value_type(iter.slot_ptr->value);
- }
- }
-
- void initialize_members(std::size_t group_count)
- {
- // DEBUG_ASSERT(group_count != 0 && std::ispow2(group_count));
-
- group_index_mask = group_count - 1;
- mbs = make_overaligned_unique_ptr_array<group_size, detail::meta_byte>(group_count * group_size + 1);
- slots = slot_ptr{new slot_type[group_count * group_size]};
-
- clear_metadata();
- }
-
- void clear_metadata()
- {
- const std::size_t group_count{group_index_mask + 1};
-
- empty_slots = group_count * average_max_group_load;
- full_slots = 0;
-
- std::memset(mbs.get(), static_cast<int>(detail::meta_byte::empty), group_count * group_size);
- mbs[group_count * group_size] = detail::meta_byte::end_sentinel;
- }
-
- std::size_t group_index_mask;
- std::size_t empty_slots;
- std::size_t full_slots;
- meta_byte_ptr mbs;
- slot_ptr slots;
-};
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/container/ihmap.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/container/ihmap.hpp
deleted file mode 100644
index b50229e0..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/container/ihmap.hpp
+++ /dev/null
@@ -1,549 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <array>
-#include <cstddef>
-#include <functional>
-#include <limits>
-#include <type_traits>
-#include <utility>
-
-#include "mcl/assert.hpp"
-#include "mcl/container/detail/meta_byte.hpp"
-#include "mcl/container/detail/meta_byte_group.hpp"
-#include "mcl/container/detail/slot_union.hpp"
-#include "mcl/hash/xmrx.hpp"
-#include "mcl/hint/assume.hpp"
-
-namespace mcl {
-
-template<typename KeyType, typename MappedType, typename Hash, typename Pred>
-class ihmap;
-
-namespace detail {
-
-constexpr std::array<meta_byte, 16> ihmap_default_meta{
- meta_byte::empty, meta_byte::empty, meta_byte::empty, meta_byte::empty,
- meta_byte::empty, meta_byte::empty, meta_byte::empty, meta_byte::empty,
- meta_byte::empty, meta_byte::empty, meta_byte::empty, meta_byte::empty,
- meta_byte::empty, meta_byte::empty, meta_byte::empty, meta_byte::tombstone};
-
-template<typename KeyType, typename MappedType>
-struct ihmap_group {
- using base_value_type = std::pair<const KeyType, MappedType>;
- using slot_type = detail::slot_union<base_value_type>;
-
- static constexpr std::size_t group_size{meta_byte_group::max_group_size - 1};
-
- meta_byte_group meta{ihmap_default_meta};
- std::array<slot_type, group_size> slots{};
-};
-
-} // namespace detail
-
-template<bool IsConst, typename KeyType, typename MappedType, typename Hash, typename Pred>
-class ihmap_iterator {
- using group_type = detail::ihmap_group<KeyType, MappedType>;
- using base_value_type = typename group_type::base_value_type;
-
-public:
- using key_type = KeyType;
- using mapped_type = MappedType;
- using iterator_category = std::forward_iterator_tag;
- using difference_type = std::ptrdiff_t;
- using value_type = std::conditional_t<IsConst, std::add_const_t<base_value_type>, base_value_type>;
- using pointer = value_type*;
- using const_pointer = const value_type*;
- using reference = value_type&;
- using const_reference = const value_type&;
-
- ihmap_iterator() = default;
- ihmap_iterator(const ihmap_iterator& other) = default;
- ihmap_iterator& operator=(const ihmap_iterator& other) = default;
-
- ihmap_iterator& operator++()
- {
- if (group_ptr == nullptr)
- return *this;
-
- ++slot_index;
-
- skip_empty_or_tombstone();
-
- return *this;
- }
- ihmap_iterator operator++(int)
- {
- ihmap_iterator it(*this);
- ++*this;
- return it;
- }
-
- bool operator==(const ihmap_iterator& other) const
- {
- return std::tie(group_ptr, slot_index) == std::tie(other.group_ptr, other.slot_index);
- }
- bool operator!=(const ihmap_iterator& other) const
- {
- return !operator==(other);
- }
-
- reference operator*() const
- {
- return static_cast<reference>(group_ptr->slots[slot_index].value);
- }
- pointer operator->() const
- {
- return std::addressof(operator*());
- }
-
-private:
- friend class ihmap<KeyType, MappedType, Hash, Pred>;
-
- ihmap_iterator(group_type* group_ptr, size_t slot_index)
- : group_ptr{group_ptr}, slot_index{slot_index}
- {
- ASSUME(group_ptr != nullptr);
- }
-
- void skip_empty_or_tombstone()
- {
- if (!group_ptr)
- return;
-
- while (true) {
- const detail::meta_byte mb = group_ptr->meta.get(slot_index);
- if (slot_index == group_type::group_size) {
- slot_index = 0;
- ++group_ptr;
-
- if (mb == detail::meta_byte::end_sentinel) {
- group_ptr = nullptr;
- return;
- }
-
- continue;
- }
- if (is_full(mb)) {
- break;
- }
- ++slot_index;
- }
- }
-
- group_type* group_ptr{nullptr};
- std::size_t slot_index{0};
-};
-
-template<typename KeyType, typename MappedType, typename Hash = hash::avalanche_xmrx<KeyType>, typename Pred = std::equal_to<KeyType>>
-class ihmap {
- using group_type = detail::ihmap_group<KeyType, MappedType>;
-
-public:
- using key_type = KeyType;
- using mapped_type = MappedType;
- using hasher = Hash;
- using key_equal = Pred;
- using value_type = typename group_type::base_value_type;
- using reference = value_type&;
- using const_reference = const value_type&;
- using pointer = value_type*;
- using const_pointer = const value_type*;
- using size_type = std::size_t;
- using difference_type = std::ptrdiff_t;
-
- using iterator = ihmap_iterator<false, key_type, mapped_type, hasher, key_equal>;
- using const_iterator = ihmap_iterator<true, key_type, mapped_type, hasher, key_equal>;
-
-private:
- static_assert(!std::is_reference_v<key_type>);
- static_assert(!std::is_reference_v<mapped_type>);
-
- static constexpr std::size_t group_size{group_type::group_size};
- static constexpr std::size_t average_max_group_load{group_size - 2};
-
- struct position {
- std::size_t group_index;
- std::size_t slot_index;
- };
-
-public:
- ihmap()
- {
- initialize_members(1);
- }
- ihmap(const ihmap& other)
- {
- deep_copy(other);
- }
- ihmap(ihmap&& other)
- : group_index_mask{std::exchange(other.group_index_mask, 0)}
- , empty_slots{std::exchange(other.empty_slots, 0)}
- , full_slots{std::exchange(other.full_slots, 0)}
- , groups{std::move(other.groups)}
- {
- }
- ihmap& operator=(const ihmap& other)
- {
- deep_copy(other);
- return *this;
- }
- ihmap& operator=(ihmap&& other)
- {
- group_index_mask = std::exchange(other.group_index_mask, 0);
- empty_slots = std::exchange(other.empty_slots, 0);
- full_slots = std::exchange(other.full_slots, 0);
- groups = std::move(other.groups);
- return *this;
- }
-
- ~ihmap()
- {
- if (!groups)
- return;
-
- clear();
- }
-
- [[nodiscard]] bool empty() const noexcept { return full_slots == 0; }
- size_type size() const noexcept { return full_slots; }
- size_type max_size() const noexcept { return static_cast<size_type>(std::numeric_limits<difference_type>::max()); }
-
- iterator begin()
- {
- iterator result{iterator_at({0, 0})};
- result.skip_empty_or_tombstone();
- return result;
- }
- iterator end()
- {
- return {};
- }
- const_iterator cbegin() const
- {
- const_iterator result{const_iterator_at({0, 0})};
- result.skip_empty_or_tombstone();
- return result;
- }
- const_iterator cend() const
- {
- return {};
- }
- const_iterator begin() const
- {
- return cbegin();
- }
- const_iterator end() const
- {
- return cend();
- }
-
- template<typename K = key_type, typename... Args>
- std::pair<iterator, bool> try_emplace(K&& k, Args&&... args)
- {
- auto [pos, item_found] = find_key_or_empty_slot(k);
- if (!item_found) {
- new (&groups[pos.group_index].slots[pos.slot_index].value) value_type(
- std::piecewise_construct,
- std::forward_as_tuple(std::forward<K>(k)),
- std::forward_as_tuple(std::forward<Args>(args)...));
- }
- return {iterator_at(pos), !item_found};
- }
-
- template<typename K = key_type, typename V = mapped_type>
- std::pair<iterator, bool> insert_or_assign(K&& k, V&& v)
- {
- auto [pos, item_found] = find_key_or_empty_slot(k);
- if (item_found) {
- groups[pos.group_index].slots[pos.slot_index].value.second = std::forward<V>(v);
- } else {
- new (&groups[pos.group_index].slots[pos.slot_index].value) value_type(
- std::forward<K>(k),
- std::forward<V>(v));
- }
- return {iterator_at(pos), !item_found};
- }
-
- void erase(const_iterator iter)
- {
- if (iter == cend()) {
- return;
- }
-
- const std::size_t group_index{static_cast<std::size_t>(std::distance(groups.get(), iter.group_ptr))};
-
- erase_impl({group_index, iter.slot_index});
- }
- void erase(iterator iter)
- {
- if (iter == end()) {
- return;
- }
-
- const std::size_t group_index{static_cast<std::size_t>(std::distance(groups.get(), iter.group_ptr))};
-
- erase_impl({group_index, iter.slot_index});
- }
- template<typename K = key_type>
- std::size_t erase(const K& key)
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- std::size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- const group_type& g{groups[group_index]};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(g.meta.match(mb), {
- if (key_equal{}(g.slots[match_index].value.first, key)) [[likely]] {
- erase_impl({group_index, match_index});
- return 1;
- }
- });
-
- if (g.meta.is_any_empty()) [[likely]] {
- return 0;
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
-
- template<typename K = key_type>
- iterator find(const K& key)
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- std::size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- const group_type& g{groups[group_index]};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(g.meta.match(mb), {
- if (key_equal{}(g.slots[match_index].value.first, key)) [[likely]] {
- return iterator_at({group_index, match_index});
- }
- });
-
- if (g.meta.is_any_empty()) [[likely]] {
- return {};
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
- template<typename K = key_type>
- const_iterator find(const K& key) const
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- std::size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- const group_type& g{groups[group_index]};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(g.meta.match(mb), {
- if (key_equal{}(g.slots[match_index].value.first, key)) [[likely]] {
- return const_iterator_at({group_index, match_index});
- }
- });
-
- if (g.meta.is_any_empty()) [[likely]] {
- return {};
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
- template<typename K = key_type>
- bool contains(const K& key) const
- {
- return find(key) != end();
- }
- template<typename K = key_type>
- std::size_t count(const K& key) const
- {
- return contains(key) ? 1 : 0;
- }
-
- template<typename K = key_type>
- mapped_type& operator[](K&& k)
- {
- return try_emplace(std::forward<K>(k)).first->second;
- }
- template<typename K = key_type>
- mapped_type& at(K&& k)
- {
- const auto iter{find(k)};
- if (iter == end()) {
- throw std::out_of_range("ihmap::at: key not found");
- }
- return iter->second;
- }
- template<typename K = key_type>
- const mapped_type& at(K&& k) const
- {
- const auto iter{find(k)};
- if (iter == end()) {
- throw std::out_of_range("ihmap::at: key not found");
- }
- return iter->second;
- }
-
- void clear()
- {
- for (auto iter{begin()}; iter != end(); ++iter) {
- iter->~value_type();
- }
-
- clear_metadata();
- }
-
-private:
- iterator iterator_at(position pos)
- {
- return {groups.get() + pos.group_index, pos.slot_index};
- }
- const_iterator const_iterator_at(position pos) const
- {
- return {groups.get() + pos.group_index, pos.slot_index};
- }
-
- std::pair<position, bool> find_key_or_empty_slot(const key_type& key)
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- std::size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- const group_type& g{groups[group_index]};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(g.meta.match(mb), {
- if (key_equal{}(g.slots[match_index].value.first, key)) [[likely]] {
- return {{group_index, match_index}, true};
- }
- });
-
- if (g.meta.is_any_empty()) [[likely]] {
- return {find_empty_slot_to_insert(hash), false};
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
-
- position find_empty_slot_to_insert(const std::size_t hash)
- {
- if (empty_slots == 0) [[unlikely]] {
- grow_and_rehash();
- }
-
- std::size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- group_type& g{groups[group_index]};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(g.meta.match_empty_or_tombstone(), {
- if (g.meta.get(match_index) == detail::meta_byte::empty) [[likely]] {
- --empty_slots;
- }
- ++full_slots;
-
- g.meta.set(match_index, detail::meta_byte_from_hash(hash));
-
- return {group_index, match_index};
- });
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
-
- void erase_impl(position pos)
- {
- group_type& g{groups[pos.group_index]};
-
- g.slots[pos.slot_index].value.~value_type();
-
- --full_slots;
- if (g.meta.is_any_empty()) {
- g.meta.set(pos.slot_index, detail::meta_byte::empty);
- ++empty_slots;
- } else {
- g.meta.set(pos.slot_index, detail::meta_byte::tombstone);
- }
- }
-
- void grow_and_rehash()
- {
- const std::size_t new_group_count{2 * (group_index_mask + 1)};
-
- pow2_resize(new_group_count);
- }
-
- void pow2_resize(std::size_t new_group_count)
- {
- auto iter{begin()};
-
- const auto old_groups{std::move(groups)};
-
- initialize_members(new_group_count);
-
- for (; iter != end(); ++iter) {
- const std::size_t hash{hasher{}(iter->first)};
- const position pos{find_empty_slot_to_insert(hash)};
-
- new (&groups[pos.group_index].slots[pos.slot_index].value) value_type(std::move(iter.group_ptr->slots[iter.slot_index].value));
- iter.group_ptr->slots[iter.slot_index].value.~value_type();
- }
- }
-
- void deep_copy(const ihmap& other)
- {
- initialize_members(other.group_index_mask + 1);
-
- for (auto iter = other.begin(); iter != other.end(); ++iter) {
- const std::size_t hash{hasher{}(iter->first)};
- const position pos{find_empty_slot_to_insert(hash)};
-
- new (&groups[pos.group_index].slots[pos.slot_index].value) value_type(iter.group_ptr->slots[iter.slot_index].value);
- }
- }
-
- void initialize_members(std::size_t group_count)
- {
- // DEBUG_ASSERT(group_count != 0 && std::ispow2(group_count));
-
- group_index_mask = group_count - 1;
- groups = std::unique_ptr<group_type[]>{new group_type[group_count]};
-
- clear_metadata();
- }
-
- void clear_metadata()
- {
- const std::size_t group_count{group_index_mask + 1};
-
- empty_slots = group_count * average_max_group_load;
- full_slots = 0;
-
- for (size_t i{0}; i < group_count; ++i) {
- groups[i].meta = detail::meta_byte_group{detail::ihmap_default_meta};
- }
- groups[group_count - 1].meta.set(group_size, detail::meta_byte::end_sentinel);
- }
-
- std::size_t group_index_mask;
- std::size_t empty_slots;
- std::size_t full_slots;
- std::unique_ptr<group_type[]> groups;
-};
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/container/intrusive_list.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/container/intrusive_list.hpp
deleted file mode 100644
index 515fd891..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/container/intrusive_list.hpp
+++ /dev/null
@@ -1,408 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstddef>
-#include <iterator>
-#include <memory>
-#include <type_traits>
-
-#include "mcl/assert.hpp"
-
-namespace mcl {
-
-template<typename T>
-class intrusive_list;
-template<typename T>
-class intrusive_list_iterator;
-
-template<typename T>
-class intrusive_list_node {
-public:
- bool is_sentinel() const
- {
- return is_sentinel_;
- }
-
-protected:
- intrusive_list_node* next = nullptr;
- intrusive_list_node* prev = nullptr;
- bool is_sentinel_ = false;
-
- friend class intrusive_list<T>;
- friend class intrusive_list_iterator<T>;
- friend class intrusive_list_iterator<const T>;
-};
-
-template<typename T>
-class intrusive_list_sentinel final : public intrusive_list_node<T> {
- using intrusive_list_node<T>::next;
- using intrusive_list_node<T>::prev;
- using intrusive_list_node<T>::is_sentinel_;
-
-public:
- intrusive_list_sentinel()
- {
- next = this;
- prev = this;
- is_sentinel_ = true;
- }
-};
-
-template<typename T>
-class intrusive_list_iterator {
-public:
- using iterator_category = std::bidirectional_iterator_tag;
- using difference_type = std::ptrdiff_t;
- using value_type = T;
- using pointer = value_type*;
- using const_pointer = const value_type*;
- using reference = value_type&;
- using const_reference = const value_type&;
-
- // If value_type is const, we want "const intrusive_list_node<value_type>", not "intrusive_list_node<const value_type>"
- using node_type = std::conditional_t<std::is_const<value_type>::value,
- const intrusive_list_node<std::remove_const_t<value_type>>,
- intrusive_list_node<value_type>>;
- using node_pointer = node_type*;
- using node_reference = node_type&;
-
- intrusive_list_iterator() = default;
- intrusive_list_iterator(const intrusive_list_iterator& other) = default;
- intrusive_list_iterator& operator=(const intrusive_list_iterator& other) = default;
-
- explicit intrusive_list_iterator(node_pointer list_node)
- : node(list_node) {}
- explicit intrusive_list_iterator(pointer data)
- : node(data) {}
- explicit intrusive_list_iterator(reference data)
- : node(&data) {}
-
- intrusive_list_iterator& operator++()
- {
- node = node->next;
- return *this;
- }
- intrusive_list_iterator& operator--()
- {
- node = node->prev;
- return *this;
- }
- intrusive_list_iterator operator++(int)
- {
- intrusive_list_iterator it(*this);
- ++*this;
- return it;
- }
- intrusive_list_iterator operator--(int)
- {
- intrusive_list_iterator it(*this);
- --*this;
- return it;
- }
-
- bool operator==(const intrusive_list_iterator& other) const
- {
- return node == other.node;
- }
- bool operator!=(const intrusive_list_iterator& other) const
- {
- return !operator==(other);
- }
-
- reference operator*() const
- {
- DEBUG_ASSERT(!node->is_sentinel());
- return static_cast<reference>(*node);
- }
- pointer operator->() const
- {
- return std::addressof(operator*());
- }
-
- node_pointer AsNodePointer() const
- {
- return node;
- }
-
-private:
- friend class intrusive_list<T>;
- node_pointer node = nullptr;
-};
-
-template<typename T>
-class intrusive_list {
-public:
- using difference_type = std::ptrdiff_t;
- using size_type = std::size_t;
- using value_type = T;
- using pointer = value_type*;
- using const_pointer = const value_type*;
- using reference = value_type&;
- using const_reference = const value_type&;
- using iterator = intrusive_list_iterator<value_type>;
- using const_iterator = intrusive_list_iterator<const value_type>;
- using reverse_iterator = std::reverse_iterator<iterator>;
- using const_reverse_iterator = std::reverse_iterator<const_iterator>;
-
- /**
- * Inserts a node at the given location indicated by an iterator.
- *
- * @param location The location to insert the node.
- * @param new_node The node to add.
- */
- iterator insert(iterator location, pointer new_node)
- {
- return insert_before(location, new_node);
- }
-
- /**
- * Inserts a node at the given location, moving the previous
- * node occupant ahead of the one inserted.
- *
- * @param location The location to insert the new node.
- * @param new_node The node to insert into the list.
- */
- iterator insert_before(iterator location, pointer new_node)
- {
- auto existing_node = location.AsNodePointer();
-
- new_node->next = existing_node;
- new_node->prev = existing_node->prev;
- existing_node->prev->next = new_node;
- existing_node->prev = new_node;
-
- return iterator(new_node);
- }
-
- /**
- * Inserts a new node into the list ahead of the position indicated.
- *
- * @param position Location to insert the node in front of.
- * @param new_node The node to be inserted into the list.
- */
- iterator insert_after(iterator position, pointer new_node)
- {
- if (empty())
- return insert(begin(), new_node);
-
- return insert(++position, new_node);
- }
-
- /**
- * Add an entry to the start of the list.
- * @param node Node to add to the list.
- */
- void push_front(pointer node)
- {
- insert(begin(), node);
- }
-
- /**
- * Add an entry to the end of the list
- * @param node Node to add to the list.
- */
- void push_back(pointer node)
- {
- insert(end(), node);
- }
-
- /**
- * Erases the node at the front of the list.
- * @note Must not be called on an empty list.
- */
- void pop_front()
- {
- DEBUG_ASSERT(!empty());
- erase(begin());
- }
-
- /**
- * Erases the node at the back of the list.
- * @note Must not be called on an empty list.
- */
- void pop_back()
- {
- DEBUG_ASSERT(!empty());
- erase(--end());
- }
-
- /**
- * Removes a node from this list
- * @param it An iterator that points to the node to remove from list.
- */
- pointer remove(iterator& it)
- {
- DEBUG_ASSERT(it != end());
-
- pointer node = &*it++;
-
- node->prev->next = node->next;
- node->next->prev = node->prev;
-#if !defined(NDEBUG)
- node->next = nullptr;
- node->prev = nullptr;
-#endif
-
- return node;
- }
-
- /**
- * Removes a node from this list
- * @param it A constant iterator that points to the node to remove from list.
- */
- pointer remove(const iterator& it)
- {
- iterator copy = it;
- return remove(copy);
- }
-
- /**
- * Removes a node from this list.
- * @param node A pointer to the node to remove.
- */
- pointer remove(pointer node)
- {
- return remove(iterator(node));
- }
-
- /**
- * Removes a node from this list.
- * @param node A reference to the node to remove.
- */
- pointer remove(reference node)
- {
- return remove(iterator(node));
- }
-
- /**
- * Is this list empty?
- * @returns true if there are no nodes in this list.
- */
- bool empty() const
- {
- return root->next == root.get();
- }
-
- /**
- * Gets the total number of elements within this list.
- * @return the number of elements in this list.
- */
- size_type size() const
- {
- return static_cast<size_type>(std::distance(begin(), end()));
- }
-
- /**
- * Retrieves a reference to the node at the front of the list.
- * @note Must not be called on an empty list.
- */
- reference front()
- {
- DEBUG_ASSERT(!empty());
- return *begin();
- }
-
- /**
- * Retrieves a constant reference to the node at the front of the list.
- * @note Must not be called on an empty list.
- */
- const_reference front() const
- {
- DEBUG_ASSERT(!empty());
- return *begin();
- }
-
- /**
- * Retrieves a reference to the node at the back of the list.
- * @note Must not be called on an empty list.
- */
- reference back()
- {
- DEBUG_ASSERT(!empty());
- return *--end();
- }
-
- /**
- * Retrieves a constant reference to the node at the back of the list.
- * @note Must not be called on an empty list.
- */
- const_reference back() const
- {
- DEBUG_ASSERT(!empty());
- return *--end();
- }
-
- // Iterator interface
- iterator begin() { return iterator(root->next); }
- const_iterator begin() const { return const_iterator(root->next); }
- const_iterator cbegin() const { return begin(); }
-
- iterator end() { return iterator(root.get()); }
- const_iterator end() const { return const_iterator(root.get()); }
- const_iterator cend() const { return end(); }
-
- reverse_iterator rbegin() { return reverse_iterator(end()); }
- const_reverse_iterator rbegin() const { return const_reverse_iterator(end()); }
- const_reverse_iterator crbegin() const { return rbegin(); }
-
- reverse_iterator rend() { return reverse_iterator(begin()); }
- const_reverse_iterator rend() const { return const_reverse_iterator(begin()); }
- const_reverse_iterator crend() const { return rend(); }
-
- /**
- * Erases a node from the list, indicated by an iterator.
- * @param it The iterator that points to the node to erase.
- */
- iterator erase(iterator it)
- {
- remove(it);
- return it;
- }
-
- /**
- * Erases a node from this list.
- * @param node A pointer to the node to erase from this list.
- */
- iterator erase(pointer node)
- {
- return erase(iterator(node));
- }
-
- /**
- * Erases a node from this list.
- * @param node A reference to the node to erase from this list.
- */
- iterator erase(reference node)
- {
- return erase(iterator(node));
- }
-
- /**
- * Exchanges contents of this list with another list instance.
- * @param other The other list to swap with.
- */
- void swap(intrusive_list& other) noexcept
- {
- root.swap(other.root);
- }
-
-private:
- std::shared_ptr<intrusive_list_node<T>> root = std::make_shared<intrusive_list_sentinel<T>>();
-};
-
-/**
- * Exchanges contents of an intrusive list with another intrusive list.
- * @tparam T The type of data being kept track of by the lists.
- * @param lhs The first list.
- * @param rhs The second list.
- */
-template<typename T>
-void swap(intrusive_list<T>& lhs, intrusive_list<T>& rhs) noexcept
-{
- lhs.swap(rhs);
-}
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/hash/xmrx.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/hash/xmrx.hpp
deleted file mode 100644
index 3ba38cae..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/hash/xmrx.hpp
+++ /dev/null
@@ -1,32 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-// Reference: http://jonkagstrom.com/bit-mixer-construction/
-
-#pragma once
-
-#include <functional>
-
-#include "mcl/bit/rotate.hpp"
-#include "mcl/stdint.hpp"
-
-namespace mcl::hash {
-
-constexpr size_t xmrx(size_t x)
-{
- x ^= x >> 32;
- x *= 0xff51afd7ed558ccd;
- x ^= bit::rotate_right(x, 47) ^ bit::rotate_right(x, 23);
- return x;
-}
-
-template<typename T>
-struct avalanche_xmrx {
- size_t operator()(const T& value)
- {
- return xmrx(std::hash<T>{}(value));
- }
-};
-
-} // namespace mcl::hash
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/hint/assume.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/hint/assume.hpp
deleted file mode 100644
index ac1873f8..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/hint/assume.hpp
+++ /dev/null
@@ -1,13 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#if defined(__clang) || defined(__GNUC__)
-# define ASSUME(expr) [&] { if (!(expr)) __builtin_unreachable(); }()
-#elif defined(_MSC_VER)
-# define ASSUME(expr) __assume(expr)
-#else
-# define ASSUME(expr)
-#endif
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/iterator/reverse.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/iterator/reverse.hpp
deleted file mode 100644
index d7bdab63..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/iterator/reverse.hpp
+++ /dev/null
@@ -1,37 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <iterator>
-
-namespace mcl::iterator {
-namespace detail {
-
-template<typename T>
-struct reverse_adapter {
- T& iterable;
-
- constexpr auto begin()
- {
- using namespace std;
- return rbegin(iterable);
- }
-
- constexpr auto end()
- {
- using namespace std;
- return rend(iterable);
- }
-};
-
-} // namespace detail
-
-template<typename T>
-constexpr detail::reverse_adapter<T> reverse(T&& iterable)
-{
- return detail::reverse_adapter<T>{iterable};
-}
-
-} // namespace mcl::iterator
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/macro/anonymous_variable.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/macro/anonymous_variable.hpp
deleted file mode 100644
index 09cd48a2..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/macro/anonymous_variable.hpp
+++ /dev/null
@@ -1,13 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <mcl/macro/concatenate_tokens.hpp>
-
-#ifdef __COUNTER__
-# define ANONYMOUS_VARIABLE(str) CONCATENATE_TOKENS(str, __COUNTER__)
-#else
-# define ANONYMOUS_VARIABLE(str) CONCATENATE_TOKENS(str, __LINE__)
-#endif
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/macro/architecture.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/macro/architecture.hpp
deleted file mode 100644
index 3251d829..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/macro/architecture.hpp
+++ /dev/null
@@ -1,40 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#if defined(__ARM64__) || defined(__aarch64__) || defined(_M_ARM64)
-# define MCL_ARCHITECTURE arm64
-# define MCL_ARCHITECTURE_ARM64 1
-#elif defined(__arm__) || defined(__TARGET_ARCH_ARM) || defined(_M_ARM)
-# define MCL_ARCHITECTURE arm32
-# define MCL_ARCHITECTURE_ARM32 1
-#elif defined(__x86_64) || defined(__x86_64__) || defined(__amd64) || defined(_M_X64)
-# define MCL_ARCHITECTURE x86_64
-# define MCL_ARCHITECTURE_X86_64 1
-#elif defined(__i386) || defined(__i386__) || defined(_M_IX86)
-# define MCL_ARCHITECTURE x86_32
-# define MCL_ARCHITECTURE_X86_32 1
-#elif defined(__ia64) || defined(__ia64__) || defined(_M_IA64)
-# define MCL_ARCHITECTURE ia64
-# define MCL_ARCHITECTURE_IA64 1
-#elif defined(__mips) || defined(__mips__) || defined(_M_MRX000)
-# define MCL_ARCHITECTURE mips
-# define MCL_ARCHITECTURE_MIPS 1
-#elif defined(__ppc64__) || defined(__powerpc64__)
-# define MCL_ARCHITECTURE ppc64
-# define MCL_ARCHITECTURE_PPC64 1
-#elif defined(__ppc__) || defined(__ppc) || defined(__powerpc__) || defined(_ARCH_COM) || defined(_ARCH_PWR) || defined(_ARCH_PPC) || defined(_M_MPPC) || defined(_M_PPC)
-# define MCL_ARCHITECTURE ppc32
-# define MCL_ARCHITECTURE_PPC32 1
-#elif defined(__riscv)
-# define MCL_ARCHITECTURE riscv
-# define MCL_ARCHITECTURE_RISCV 1
-#elif defined(__EMSCRIPTEN__)
-# define MCL_ARCHITECTURE wasm
-# define MCL_ARCHITECTURE_WASM 1
-#else
-# define MCL_ARCHITECTURE generic
-# define MCL_ARCHITECTURE_GENERIC 1
-#endif
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/macro/concatenate_tokens.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/macro/concatenate_tokens.hpp
deleted file mode 100644
index 3555b23c..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/macro/concatenate_tokens.hpp
+++ /dev/null
@@ -1,8 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#define CONCATENATE_TOKENS(x, y) CONCATENATE_TOKENS_IMPL(x, y)
-#define CONCATENATE_TOKENS_IMPL(x, y) x##y
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/memory/overaligned_unique_ptr.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/memory/overaligned_unique_ptr.hpp
deleted file mode 100644
index 1e645efe..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/memory/overaligned_unique_ptr.hpp
+++ /dev/null
@@ -1,46 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <type_traits>
-
-#ifdef _MSC_VER
-# include <malloc.h>
-#else
-# include <cstdlib>
-#endif
-
-namespace mcl {
-
-namespace detail {
-struct aligned_alloc_deleter {
- template<typename T>
- void operator()(T* p) const
- {
-#ifdef _MSC_VER
- _aligned_free(const_cast<std::remove_const_t<T>*>(p));
-#else
- std::free(const_cast<std::remove_const_t<T>*>(p));
-#endif
- }
-};
-} // namespace detail
-
-template<size_t, typename T>
-using overaligned_unique_ptr = std::unique_ptr<T, detail::aligned_alloc_deleter>;
-
-template<size_t alignment, typename T>
-auto make_overaligned_unique_ptr_array(size_t element_count)
-{
- const size_t min_size = element_count * sizeof(T);
- const size_t alloc_size = (min_size + alignment - 1) / alignment * alignment;
-#ifdef _MSC_VER
- return overaligned_unique_ptr<alignment, T[]>{static_cast<T*>(_aligned_malloc(alloc_size, alignment))};
-#else
- return overaligned_unique_ptr<alignment, T[]>{static_cast<T*>(std::aligned_alloc(alignment, alloc_size))};
-#endif
-}
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metafunction/apply.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metafunction/apply.hpp
deleted file mode 100644
index e2c17141..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metafunction/apply.hpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<template<class...> class F, class L>
-struct apply_impl;
-
-template<template<class...> class F, template<class...> class LT, class... Es>
-struct apply_impl<F, LT<Es...>> {
- using type = F<Es...>;
-};
-
-} // namespace detail
-
-/// Invokes metafunction F where the arguments are all the members of list L
-template<template<class...> class F, class L>
-using apply = typename detail::apply_impl<F, L>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metafunction/bind.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metafunction/bind.hpp
deleted file mode 100644
index 2701fc95..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metafunction/bind.hpp
+++ /dev/null
@@ -1,18 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-/// Binds the first sizeof...(A) arguments of metafunction F with arguments A
-template<template<class...> class F, class... As>
-struct bind {
- template<class... Rs>
- using type = F<As..., Rs...>;
-};
-
-} // namespace mcl::mp
-
-#define MCL_MP_BIND(...) ::mcl::mp::bind<__VA_ARGS__>::template type
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metafunction/identity.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metafunction/identity.hpp
deleted file mode 100644
index 737f9ce1..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metafunction/identity.hpp
+++ /dev/null
@@ -1,22 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class T>
-struct identity_impl {
- using type = T;
-};
-
-} // namespace detail
-
-/// Identity metafunction
-template<class T>
-using identity = typename identity_impl<T>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metafunction/map.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metafunction/map.hpp
deleted file mode 100644
index 13fcaecd..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metafunction/map.hpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<template<class...> class F, class L>
-struct map_impl;
-
-template<template<class...> class F, template<class...> class LT, class... Es>
-struct map_impl<F, LT<Es...>> {
- using type = LT<F<Es>...>;
-};
-
-} // namespace detail
-
-/// Applies each element of list L to metafunction F
-template<template<class...> class F, class L>
-using map = typename detail::map_impl<F, L>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/bit_and.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/bit_and.hpp
deleted file mode 100644
index e4a98e21..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/bit_and.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/lift_value.hpp"
-
-namespace mcl::mp {
-
-/// Bitwise and of metavalues Vs
-template<class... Vs>
-using bit_and = lift_value<(Vs::value & ...)>;
-
-/// Bitwise and of metavalues Vs
-template<class... Vs>
-constexpr auto bit_and_v = (Vs::value & ...);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/bit_not.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/bit_not.hpp
deleted file mode 100644
index 5d31956d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/bit_not.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/lift_value.hpp"
-
-namespace mcl::mp {
-
-/// Bitwise not of metavalue V
-template<class V>
-using bit_not = lift_value<~V::value>;
-
-/// Bitwise not of metavalue V
-template<class V>
-constexpr auto bit_not_v = ~V::value;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/bit_or.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/bit_or.hpp
deleted file mode 100644
index 812edfb2..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/bit_or.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/lift_value.hpp"
-
-namespace mcl::mp {
-
-/// Bitwise or of metavalues Vs
-template<class... Vs>
-using bit_or = lift_value<(Vs::value | ...)>;
-
-/// Bitwise or of metavalues Vs
-template<class... Vs>
-constexpr auto bit_or_v = (Vs::value | ...);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/bit_xor.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/bit_xor.hpp
deleted file mode 100644
index 9c543d41..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/bit_xor.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/lift_value.hpp"
-
-namespace mcl::mp {
-
-/// Bitwise xor of metavalues Vs
-template<class... Vs>
-using bit_xor = lift_value<(Vs::value ^ ...)>;
-
-/// Bitwise xor of metavalues Vs
-template<class... Vs>
-constexpr auto bit_xor_v = (Vs::value ^ ...);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/conjunction.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/conjunction.hpp
deleted file mode 100644
index 71a8f67a..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/conjunction.hpp
+++ /dev/null
@@ -1,42 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/logic_if.hpp"
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class...>
-struct conjunction_impl;
-
-template<>
-struct conjunction_impl<> {
- using type = false_type;
-};
-
-template<class V>
-struct conjunction_impl<V> {
- using type = V;
-};
-
-template<class V1, class... Vs>
-struct conjunction_impl<V1, Vs...> {
- using type = logic_if<V1, typename conjunction_impl<Vs...>::type, V1>;
-};
-
-} // namespace detail
-
-/// Conjunction of metavalues Vs with short-circuiting and type preservation.
-template<class... Vs>
-using conjunction = typename detail::conjunction_impl<Vs...>::type;
-
-/// Conjunction of metavalues Vs with short-circuiting and type preservation.
-template<class... Vs>
-constexpr auto conjunction_v = conjunction<Vs...>::value;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/disjunction.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/disjunction.hpp
deleted file mode 100644
index 679a44f4..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/disjunction.hpp
+++ /dev/null
@@ -1,42 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/logic_if.hpp"
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class...>
-struct disjunction_impl;
-
-template<>
-struct disjunction_impl<> {
- using type = false_type;
-};
-
-template<class V>
-struct disjunction_impl<V> {
- using type = V;
-};
-
-template<class V1, class... Vs>
-struct disjunction_impl<V1, Vs...> {
- using type = logic_if<V1, V1, typename disjunction_impl<Vs...>::type>;
-};
-
-} // namespace detail
-
-/// Disjunction of metavalues Vs with short-circuiting and type preservation.
-template<class... Vs>
-using disjunction = typename detail::disjunction_impl<Vs...>::type;
-
-/// Disjunction of metavalues Vs with short-circuiting and type preservation.
-template<class... Vs>
-constexpr auto disjunction_v = disjunction<Vs...>::value;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/lift_value.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/lift_value.hpp
deleted file mode 100644
index bd5df322..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/lift_value.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <type_traits>
-
-namespace mcl::mp {
-
-/// Lifts a value into a type (a metavalue)
-template<auto V>
-using lift_value = std::integral_constant<decltype(V), V>;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/logic_and.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/logic_and.hpp
deleted file mode 100644
index 81c40a45..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/logic_and.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl::mp {
-
-/// Logical conjunction of metavalues Vs without short-circuiting or type presevation.
-template<class... Vs>
-using logic_and = bool_value<(true && ... && Vs::value)>;
-
-/// Logical conjunction of metavalues Vs without short-circuiting or type presevation.
-template<class... Vs>
-constexpr bool logic_and_v = (true && ... && Vs::value);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/logic_if.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/logic_if.hpp
deleted file mode 100644
index b300d267..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/logic_if.hpp
+++ /dev/null
@@ -1,21 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <type_traits>
-
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl::mp {
-
-/// Conditionally select between types T and F based on boolean metavalue V
-template<class V, class T, class F>
-using logic_if = std::conditional_t<bool(V::value), T, F>;
-
-/// Conditionally select between metavalues T and F based on boolean metavalue V
-template<class V, class TV, class FV>
-constexpr auto logic_if_v = logic_if<V, TV, FV>::value;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/logic_not.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/logic_not.hpp
deleted file mode 100644
index a7a6aee9..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/logic_not.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl::mp {
-
-/// Logical negation of metavalue V.
-template<class V>
-using logic_not = bool_value<!bool(V::value)>;
-
-/// Logical negation of metavalue V.
-template<class V>
-constexpr bool logic_not_v = !bool(V::value);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/logic_or.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/logic_or.hpp
deleted file mode 100644
index 3b46fa57..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/logic_or.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl::mp {
-
-/// Logical disjunction of metavalues Vs without short-circuiting or type presevation.
-template<class... Vs>
-using logic_or = bool_value<(false || ... || Vs::value)>;
-
-/// Logical disjunction of metavalues Vs without short-circuiting or type presevation.
-template<class... Vs>
-constexpr bool logic_or_v = (false || ... || Vs::value);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/product.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/product.hpp
deleted file mode 100644
index d40c0ce3..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/product.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/lift_value.hpp"
-
-namespace mcl::mp {
-
-/// Product of metavalues Vs
-template<class... Vs>
-using product = lift_value<(Vs::value * ...)>;
-
-/// Product of metavalues Vs
-template<class... Vs>
-constexpr auto product_v = (Vs::value * ...);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/sum.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/sum.hpp
deleted file mode 100644
index 7111c02c..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/sum.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/lift_value.hpp"
-
-namespace mcl::mp {
-
-/// Sum of metavalues Vs
-template<class... Vs>
-using sum = lift_value<(Vs::value + ...)>;
-
-/// Sum of metavalues Vs
-template<class... Vs>
-constexpr auto sum_v = (Vs::value + ...);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/value.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/value.hpp
deleted file mode 100644
index 693169d6..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/value.hpp
+++ /dev/null
@@ -1,30 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstddef>
-#include <type_traits>
-
-namespace mcl::mp {
-
-/// A metavalue (of type VT and value v).
-template<class VT, VT v>
-using value = std::integral_constant<VT, v>;
-
-/// A metavalue of type size_t (and value v).
-template<size_t v>
-using size_value = value<size_t, v>;
-
-/// A metavalue of type bool (and value v). (Aliases to std::bool_constant.)
-template<bool v>
-using bool_value = value<bool, v>;
-
-/// true metavalue (Aliases to std::true_type).
-using true_type = bool_value<true>;
-
-/// false metavalue (Aliases to std::false_type).
-using false_type = bool_value<false>;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/value_cast.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/value_cast.hpp
deleted file mode 100644
index 3b88ed7d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/value_cast.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <type_traits>
-
-namespace mcl::mp {
-
-/// Casts a metavalue from one type to another
-template<class T, class V>
-using value_cast = std::integral_constant<T, static_cast<T>(V::value)>;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/value_equal.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/value_equal.hpp
deleted file mode 100644
index a10e07f0..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/metavalue/value_equal.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <type_traits>
-
-namespace mcl::mp {
-
-/// Do two metavalues contain the same value?
-template<class V1, class V2>
-using value_equal = std::bool_constant<V1::value == V2::value>;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/misc/argument_count.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/misc/argument_count.hpp
deleted file mode 100644
index 5a30f498..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/misc/argument_count.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/lift_value.hpp"
-
-namespace mcl::mp {
-
-/// Metafunction that returns the number of arguments it has
-template<typename... Ts>
-using argument_count = lift_value<sizeof...(Ts)>;
-
-/// Metafunction that returns the number of arguments it has
-template<typename... Ts>
-constexpr auto argument_count_v = sizeof...(Ts);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/append.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/append.hpp
deleted file mode 100644
index 838b9c94..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/append.hpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class... L>
-struct append_impl;
-
-template<template<class...> class LT, class... E1s, class... E2s>
-struct append_impl<LT<E1s...>, E2s...> {
- using type = LT<E1s..., E2s...>;
-};
-
-} // namespace detail
-
-/// Append items E to list L
-template<class L, class... Es>
-using append = typename detail::append_impl<L, Es...>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/cartesian_product.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/cartesian_product.hpp
deleted file mode 100644
index 1b378c6f..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/cartesian_product.hpp
+++ /dev/null
@@ -1,47 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metafunction/bind.hpp"
-#include "mcl/mp/metafunction/map.hpp"
-#include "mcl/mp/typelist/append.hpp"
-#include "mcl/mp/typelist/concat.hpp"
-#include "mcl/mp/typelist/list.hpp"
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class... Ls>
-struct cartesian_product_impl;
-
-template<class RL>
-struct cartesian_product_impl<RL> {
- using type = RL;
-};
-
-template<template<class...> class LT, class... REs, class... E2s>
-struct cartesian_product_impl<LT<REs...>, LT<E2s...>> {
- using type = concat<
- map<MCL_MP_BIND(append, REs), list<E2s...>>...>;
-};
-
-template<class RL, class L2, class L3, class... Ls>
-struct cartesian_product_impl<RL, L2, L3, Ls...> {
- using type = typename cartesian_product_impl<
- typename cartesian_product_impl<RL, L2>::type,
- L3,
- Ls...>::type;
-};
-
-} // namespace detail
-
-/// Produces the cartesian product of a set of lists
-/// For example:
-/// cartesian_product<list<A, B>, list<D, E>> == list<list<A, D>, list<A, E>, list<B, D>, list<B, E>
-template<typename L1, typename... Ls>
-using cartesian_product = typename detail::cartesian_product_impl<map<list, L1>, Ls...>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/concat.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/concat.hpp
deleted file mode 100644
index cfdefbc1..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/concat.hpp
+++ /dev/null
@@ -1,94 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/typelist/list.hpp"
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class... Ls>
-struct concat_impl;
-
-template<>
-struct concat_impl<> {
- using type = list<>;
-};
-
-template<class L>
-struct concat_impl<L> {
- using type = L;
-};
-
-template<template<class...> class LT, class... E1s, class... E2s, class... Ls>
-struct concat_impl<LT<E1s...>, LT<E2s...>, Ls...> {
- using type = typename concat_impl<LT<E1s..., E2s...>, Ls...>::type;
-};
-
-template<template<class...> class LT,
- class... E1s,
- class... E2s,
- class... E3s,
- class... E4s,
- class... E5s,
- class... E6s,
- class... E7s,
- class... E8s,
- class... E9s,
- class... E10s,
- class... E11s,
- class... E12s,
- class... E13s,
- class... E14s,
- class... E15s,
- class... E16s,
- class... Ls>
-struct concat_impl<
- LT<E1s...>,
- LT<E2s...>,
- LT<E3s...>,
- LT<E4s...>,
- LT<E5s...>,
- LT<E6s...>,
- LT<E7s...>,
- LT<E8s...>,
- LT<E9s...>,
- LT<E10s...>,
- LT<E11s...>,
- LT<E12s...>,
- LT<E13s...>,
- LT<E14s...>,
- LT<E15s...>,
- LT<E16s...>,
- Ls...> {
- using type = typename concat_impl<
- LT<
- E1s...,
- E2s...,
- E3s...,
- E4s...,
- E5s...,
- E6s...,
- E7s...,
- E8s...,
- E9s...,
- E10s...,
- E11s...,
- E12s...,
- E13s...,
- E14s...,
- E15s...,
- E16s...>,
- Ls...>::type;
-};
-
-} // namespace detail
-
-/// Concatenate lists together
-template<class... Ls>
-using concat = typename detail::concat_impl<Ls...>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/contains.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/contains.hpp
deleted file mode 100644
index 1b7a0ed6..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/contains.hpp
+++ /dev/null
@@ -1,23 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl::mp {
-
-/// Does list L contain an element which is same as type T?
-template<class L, class T>
-struct contains;
-
-template<template<class...> class LT, class... Ts, class T>
-struct contains<LT<Ts...>, T>
- : bool_value<(false || ... || std::is_same_v<Ts, T>)> {};
-
-/// Does list L contain an element which is same as type T?
-template<class L, class T>
-constexpr bool contains_v = contains<L, T>::value;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/drop.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/drop.hpp
deleted file mode 100644
index 9c7be44b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/drop.hpp
+++ /dev/null
@@ -1,33 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstddef>
-#include <type_traits>
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<size_t N, class L>
-struct drop_impl;
-
-template<size_t N, template<class...> class LT>
-struct drop_impl<N, LT<>> {
- using type = LT<>;
-};
-
-template<size_t N, template<class...> class LT, class E1, class... Es>
-struct drop_impl<N, LT<E1, Es...>> {
- using type = std::conditional_t<N == 0, LT<E1, Es...>, typename drop_impl<N - 1, LT<Es...>>::type>;
-};
-
-} // namespace detail
-
-/// Drops the first N elements of list L
-template<std::size_t N, class L>
-using drop = typename detail::drop_impl<N, L>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/get.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/get.hpp
deleted file mode 100644
index a2ec7461..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/get.hpp
+++ /dev/null
@@ -1,18 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstddef>
-#include <tuple>
-
-#include "mcl/mp/metafunction/apply.hpp"
-
-namespace mcl::mp {
-
-/// Get element I from list L
-template<std::size_t I, class L>
-using get = std::tuple_element_t<I, apply<std::tuple, L>>;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/head.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/head.hpp
deleted file mode 100644
index 63062825..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/head.hpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class L>
-struct head_impl;
-
-template<template<class...> class LT, class E1, class... Es>
-struct head_impl<LT<E1, Es...>> {
- using type = E1;
-};
-
-} // namespace detail
-
-/// Gets the tail/cdr/all-but-the-first-element of list L
-template<class L>
-using head = typename detail::head_impl<L>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/length.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/length.hpp
deleted file mode 100644
index d5949604..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/length.hpp
+++ /dev/null
@@ -1,20 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metafunction/apply.hpp"
-#include "mcl/mp/misc/argument_count.hpp"
-
-namespace mcl::mp {
-
-/// Length of list L
-template<class L>
-using length = apply<argument_count, L>;
-
-/// Length of list L
-template<class L>
-constexpr auto length_v = length<L>::value;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/lift_sequence.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/lift_sequence.hpp
deleted file mode 100644
index ba2617b8..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/lift_sequence.hpp
+++ /dev/null
@@ -1,29 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <type_traits>
-
-#include "mcl/mp/typelist/list.hpp"
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class VL>
-struct lift_sequence_impl;
-
-template<class T, template<class, T...> class VLT, T... values>
-struct lift_sequence_impl<VLT<T, values...>> {
- using type = list<std::integral_constant<T, values>...>;
-};
-
-} // namespace detail
-
-/// Lifts values in value list VL to create a type list.
-template<class VL>
-using lift_sequence = typename detail::lift_sequence_impl<VL>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/list.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/list.hpp
deleted file mode 100644
index 48348ec7..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/list.hpp
+++ /dev/null
@@ -1,13 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-/// Contains a list of types
-template<class... E>
-struct list {};
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/lower_to_tuple.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/lower_to_tuple.hpp
deleted file mode 100644
index a9007f3b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/lower_to_tuple.hpp
+++ /dev/null
@@ -1,24 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <tuple>
-
-namespace mcl::mp {
-
-/// Converts a list of metavalues to a tuple.
-template<class L>
-struct lower_to_tuple;
-
-template<template<class...> class LT, class... Es>
-struct lower_to_tuple<LT<Es...>> {
- static constexpr auto value = std::make_tuple(static_cast<typename Es::value_type>(Es::value)...);
-};
-
-/// Converts a list of metavalues to a tuple.
-template<class L>
-constexpr auto lower_to_tuple_v = lower_to_tuple<L>::value;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/prepend.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/prepend.hpp
deleted file mode 100644
index df9aedd8..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/prepend.hpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class... L>
-struct prepend_impl;
-
-template<template<class...> class LT, class... E1s, class... E2s>
-struct prepend_impl<LT<E1s...>, E2s...> {
- using type = LT<E2s..., E1s...>;
-};
-
-} // namespace detail
-
-/// Prepend items E to list L
-template<class L, class... Es>
-using prepend = typename detail::prepend_impl<L, Es...>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/tail.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/tail.hpp
deleted file mode 100644
index 54f14c12..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/mp/typelist/tail.hpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class L>
-struct tail_impl;
-
-template<template<class...> class LT, class E1, class... Es>
-struct tail_impl<LT<E1, Es...>> {
- using type = LT<Es...>;
-};
-
-} // namespace detail
-
-/// Gets the first type of list L
-template<class L>
-using tail = typename detail::tail_impl<L>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/scope_exit.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/scope_exit.hpp
deleted file mode 100644
index d3772e90..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/scope_exit.hpp
+++ /dev/null
@@ -1,94 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <exception>
-#include <type_traits>
-#include <utility>
-
-#include <mcl/macro/anonymous_variable.hpp>
-
-namespace mcl::detail {
-
-struct scope_exit_tag {};
-struct scope_fail_tag {};
-struct scope_success_tag {};
-
-template<typename Function>
-class scope_exit final {
-public:
- explicit scope_exit(Function&& fn)
- : function(std::move(fn)) {}
-
- ~scope_exit() noexcept
- {
- function();
- }
-
-private:
- Function function;
-};
-
-template<typename Function>
-class scope_fail final {
-public:
- explicit scope_fail(Function&& fn)
- : function(std::move(fn)), exception_count(std::uncaught_exceptions()) {}
-
- ~scope_fail() noexcept
- {
- if (std::uncaught_exceptions() > exception_count) {
- function();
- }
- }
-
-private:
- Function function;
- int exception_count;
-};
-
-template<typename Function>
-class scope_success final {
-public:
- explicit scope_success(Function&& fn)
- : function(std::move(fn)), exception_count(std::uncaught_exceptions()) {}
-
- ~scope_success()
- {
- if (std::uncaught_exceptions() <= exception_count) {
- function();
- }
- }
-
-private:
- Function function;
- int exception_count;
-};
-
-// We use ->* here as it has the highest precedence of the operators we can use.
-
-template<typename Function>
-auto operator->*(scope_exit_tag, Function&& function)
-{
- return scope_exit<std::decay_t<Function>>{std::forward<Function>(function)};
-}
-
-template<typename Function>
-auto operator->*(scope_fail_tag, Function&& function)
-{
- return scope_fail<std::decay_t<Function>>{std::forward<Function>(function)};
-}
-
-template<typename Function>
-auto operator->*(scope_success_tag, Function&& function)
-{
- return scope_success<std::decay_t<Function>>{std::forward<Function>(function)};
-}
-
-} // namespace mcl::detail
-
-#define SCOPE_EXIT auto ANONYMOUS_VARIABLE(MCL_SCOPE_EXIT_VAR_) = ::mcl::detail::scope_exit_tag{}->*[&]() noexcept
-#define SCOPE_FAIL auto ANONYMOUS_VARIABLE(MCL_SCOPE_FAIL_VAR_) = ::mcl::detail::scope_fail_tag{}->*[&]() noexcept
-#define SCOPE_SUCCESS auto ANONYMOUS_VARIABLE(MCL_SCOPE_FAIL_VAR_) = ::mcl::detail::scope_success_tag{}->*[&]()
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/stdint.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/stdint.hpp
deleted file mode 100644
index 37b82a2b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/stdint.hpp
+++ /dev/null
@@ -1,27 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstddef>
-#include <cstdint>
-
-using u8 = std::uint8_t;
-using u16 = std::uint16_t;
-using u32 = std::uint32_t;
-using u64 = std::uint64_t;
-using uptr = std::uintptr_t;
-
-using s8 = std::int8_t;
-using s16 = std::int16_t;
-using s32 = std::int32_t;
-using s64 = std::int64_t;
-using sptr = std::intptr_t;
-
-using size_t = std::size_t;
-
-using f32 = float;
-using f64 = double;
-static_assert(sizeof(f32) == sizeof(u32), "f32 must be 32 bits wide");
-static_assert(sizeof(f64) == sizeof(u64), "f64 must be 64 bits wide");
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/type_traits/function_info.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/type_traits/function_info.hpp
deleted file mode 100644
index 2ac804ae..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/type_traits/function_info.hpp
+++ /dev/null
@@ -1,70 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstddef>
-#include <tuple>
-
-#include "mcl/mp/typelist/list.hpp"
-
-namespace mcl {
-
-template<class F>
-struct function_info : function_info<decltype(&F::operator())> {};
-
-template<class R, class... As>
-struct function_info<R(As...)> {
- using return_type = R;
- using parameter_list = mp::list<As...>;
- static constexpr std::size_t parameter_count = sizeof...(As);
-
- using equivalent_function_type = R(As...);
-
- template<std::size_t I>
- struct parameter {
- static_assert(I < parameter_count, "Non-existent parameter");
- using type = std::tuple_element_t<I, std::tuple<As...>>;
- };
-};
-
-template<class R, class... As>
-struct function_info<R (*)(As...)> : function_info<R(As...)> {};
-
-template<class C, class R, class... As>
-struct function_info<R (C::*)(As...)> : function_info<R(As...)> {
- using class_type = C;
-
- using equivalent_function_type_with_class = R(C*, As...);
-};
-
-template<class C, class R, class... As>
-struct function_info<R (C::*)(As...) const> : function_info<R(As...)> {
- using class_type = C;
-
- using equivalent_function_type_with_class = R(C*, As...);
-};
-
-template<class F>
-constexpr size_t parameter_count_v = function_info<F>::parameter_count;
-
-template<class F>
-using parameter_list = typename function_info<F>::parameter_list;
-
-template<class F, std::size_t I>
-using get_parameter = typename function_info<F>::template parameter<I>::type;
-
-template<class F>
-using equivalent_function_type = typename function_info<F>::equivalent_function_type;
-
-template<class F>
-using equivalent_function_type_with_class = typename function_info<F>::equivalent_function_type_with_class;
-
-template<class F>
-using return_type = typename function_info<F>::return_type;
-
-template<class F>
-using class_type = typename function_info<F>::class_type;
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/type_traits/integer_of_size.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/type_traits/integer_of_size.hpp
deleted file mode 100644
index e37995ea..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/type_traits/integer_of_size.hpp
+++ /dev/null
@@ -1,48 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/stdint.hpp"
-
-namespace mcl {
-
-namespace detail {
-
-template<size_t size>
-struct integer_of_size_impl {};
-
-template<>
-struct integer_of_size_impl<8> {
- using unsigned_type = u8;
- using signed_type = s8;
-};
-
-template<>
-struct integer_of_size_impl<16> {
- using unsigned_type = u16;
- using signed_type = s16;
-};
-
-template<>
-struct integer_of_size_impl<32> {
- using unsigned_type = u32;
- using signed_type = s32;
-};
-
-template<>
-struct integer_of_size_impl<64> {
- using unsigned_type = u64;
- using signed_type = s64;
-};
-
-} // namespace detail
-
-template<size_t size>
-using unsigned_integer_of_size = typename detail::integer_of_size_impl<size>::unsigned_type;
-
-template<size_t size>
-using signed_integer_of_size = typename detail::integer_of_size_impl<size>::signed_type;
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/type_traits/is_instance_of_template.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/type_traits/is_instance_of_template.hpp
deleted file mode 100644
index 8a7fc33a..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/Headers/mcl/type_traits/is_instance_of_template.hpp
+++ /dev/null
@@ -1,22 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl {
-
-/// Is type T an instance of template class C?
-template<template<class...> class, class>
-struct is_instance_of_template : mp::false_type {};
-
-template<template<class...> class C, class... As>
-struct is_instance_of_template<C, C<As...>> : mp::true_type {};
-
-/// Is type T an instance of template class C?
-template<template<class...> class C, class T>
-constexpr bool is_instance_of_template_v = is_instance_of_template<C, T>::value;
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/libmcl.a b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/libmcl.a
deleted file mode 100644
index df3c1976..00000000
Binary files a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64-simulator/libmcl.a and /dev/null differ
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64/Headers/mcl/hash/xmrx.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64/Headers/mcl/hash/xmrx.hpp
index 3ba38cae..2f2c976a 100644
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64/Headers/mcl/hash/xmrx.hpp
+++ b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64/Headers/mcl/hash/xmrx.hpp
@@ -23,7 +23,7 @@ constexpr size_t xmrx(size_t x)
template<typename T>
struct avalanche_xmrx {
- size_t operator()(const T& value)
+ size_t operator()(const T& value) const
{
return xmrx(std::hash<T>{}(value));
}
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64/Headers/mcl/memory/literals.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64/Headers/mcl/memory/literals.hpp
new file mode 100644
index 00000000..3345f7c6
--- /dev/null
+++ b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64/Headers/mcl/memory/literals.hpp
@@ -0,0 +1,36 @@
+// This file is part of the mcl project.
+// Copyright (c) 2022 merryhime
+// SPDX-License-Identifier: MIT
+
+#pragma once
+
+#include "mcl/stdint.hpp"
+
+namespace mcl::memory::literals {
+
+constexpr u64 operator""_KiB(unsigned long long int x)
+{
+ return 1024ULL * x;
+}
+
+constexpr u64 operator""_MiB(unsigned long long int x)
+{
+ return 1024_KiB * x;
+}
+
+constexpr u64 operator""_GiB(unsigned long long int x)
+{
+ return 1024_MiB * x;
+}
+
+constexpr u64 operator""_TiB(unsigned long long int x)
+{
+ return 1024_GiB * x;
+}
+
+constexpr u64 operator""_PiB(unsigned long long int x)
+{
+ return 1024_TiB * x;
+}
+
+} // namespace mcl::memory::literals
\ No newline at end of file
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64/Headers/mcl/mp/typelist/lift_sequence.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64/Headers/mcl/mp/typelist/lift_sequence.hpp
index ba2617b8..d1070dfa 100644
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64/Headers/mcl/mp/typelist/lift_sequence.hpp
+++ b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64/Headers/mcl/mp/typelist/lift_sequence.hpp
@@ -5,6 +5,7 @@
#pragma once
#include <type_traits>
+#include <utility>
#include "mcl/mp/typelist/list.hpp"
@@ -20,6 +21,11 @@ struct lift_sequence_impl<VLT<T, values...>> {
using type = list<std::integral_constant<T, values>...>;
};
+template<class T, T... values>
+struct lift_sequence_impl<std::integer_sequence<T, values...>> {
+ using type = list<std::integral_constant<T, values>...>;
+};
+
} // namespace detail
/// Lifts values in value list VL to create a type list.
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64/libmcl.a b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64/libmcl.a
index 6d08b676..3749ffb4 100644
Binary files a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64/libmcl.a and b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/ios-arm64/libmcl.a differ
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/assert.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/assert.hpp
deleted file mode 100644
index f77dbe71..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/assert.hpp
+++ /dev/null
@@ -1,62 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <stdexcept>
-#include <type_traits>
-
-#include <fmt/format.h>
-
-#include "mcl/hint/assume.hpp"
-
-namespace mcl::detail {
-
-[[noreturn]] void assert_terminate_impl(const char* expr_str, fmt::string_view msg, fmt::format_args args);
-
-template<typename... Ts>
-[[noreturn]] void assert_terminate(const char* expr_str, fmt::string_view msg, Ts... args)
-{
- assert_terminate_impl(expr_str, msg, fmt::make_format_args(args...));
-}
-
-} // namespace mcl::detail
-
-#define UNREACHABLE() ASSERT_FALSE("Unreachable code!")
-
-#define ASSERT(expr) \
- [&] { \
- if (std::is_constant_evaluated()) { \
- if (!(expr)) { \
- throw std::logic_error{"ASSERT failed at compile time"}; \
- } \
- } else { \
- if (!(expr)) [[unlikely]] { \
- ::mcl::detail::assert_terminate(#expr, "(none)"); \
- } \
- } \
- }()
-
-#define ASSERT_MSG(expr, ...) \
- [&] { \
- if (std::is_constant_evaluated()) { \
- if (!(expr)) { \
- throw std::logic_error{"ASSERT_MSG failed at compile time"}; \
- } \
- } else { \
- if (!(expr)) [[unlikely]] { \
- ::mcl::detail::assert_terminate(#expr, __VA_ARGS__); \
- } \
- } \
- }()
-
-#define ASSERT_FALSE(...) ::mcl::detail::assert_terminate("false", __VA_ARGS__)
-
-#if defined(NDEBUG) || defined(MCL_IGNORE_ASSERTS)
-# define DEBUG_ASSERT(expr) ASSUME(expr)
-# define DEBUG_ASSERT_MSG(expr, ...) ASSUME(expr)
-#else
-# define DEBUG_ASSERT(expr) ASSERT(expr)
-# define DEBUG_ASSERT_MSG(expr, ...) ASSERT_MSG(expr, __VA_ARGS__)
-#endif
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/bit/bit_count.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/bit/bit_count.hpp
deleted file mode 100644
index 104af9c8..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/bit/bit_count.hpp
+++ /dev/null
@@ -1,58 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <bitset>
-
-#include "mcl/bitsizeof.hpp"
-#include "mcl/concepts/bit_integral.hpp"
-#include "mcl/stdint.hpp"
-
-namespace mcl::bit {
-
-template<BitIntegral T>
-inline size_t count_ones(T x)
-{
- return std::bitset<bitsizeof<T>>(x).count();
-}
-
-template<BitIntegral T>
-constexpr size_t count_leading_zeros(T x)
-{
- size_t result = bitsizeof<T>;
- while (x != 0) {
- x >>= 1;
- result--;
- }
- return result;
-}
-
-template<BitIntegral T>
-constexpr int highest_set_bit(T x)
-{
- int result = -1;
- while (x != 0) {
- x >>= 1;
- result++;
- }
- return result;
-}
-
-template<BitIntegral T>
-constexpr size_t lowest_set_bit(T x)
-{
- if (x == 0) {
- return bitsizeof<T>;
- }
-
- size_t result = 0;
- while ((x & 1) == 0) {
- x >>= 1;
- result++;
- }
- return result;
-}
-
-} // namespace mcl::bit
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/bit/bit_field.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/bit/bit_field.hpp
deleted file mode 100644
index 91e27498..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/bit/bit_field.hpp
+++ /dev/null
@@ -1,221 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/assert.hpp"
-#include "mcl/bitsizeof.hpp"
-#include "mcl/concepts/bit_integral.hpp"
-#include "mcl/stdint.hpp"
-
-namespace mcl::bit {
-
-/// Create a mask with `count` number of one bits.
-template<size_t count, BitIntegral T>
-constexpr T ones()
-{
- static_assert(count <= bitsizeof<T>, "count larger than bitsize of T");
-
- if constexpr (count == 0) {
- return 0;
- } else {
- return static_cast<T>(~static_cast<T>(0)) >> (bitsizeof<T> - count);
- }
-}
-
-/// Create a mask with `count` number of one bits.
-template<BitIntegral T>
-constexpr T ones(size_t count)
-{
- ASSERT_MSG(count <= bitsizeof<T>, "count larger than bitsize of T");
-
- if (count == 0) {
- return 0;
- }
- return static_cast<T>(~static_cast<T>(0)) >> (bitsizeof<T> - count);
-}
-
-/// Create a mask of type T for bits [begin_bit, end_bit] inclusive.
-template<size_t begin_bit, size_t end_bit, BitIntegral T>
-constexpr T mask()
-{
- static_assert(begin_bit <= end_bit, "invalid bit range (position of beginning bit cannot be greater than that of end bit)");
- static_assert(begin_bit < bitsizeof<T>, "begin_bit must be smaller than size of T");
- static_assert(end_bit < bitsizeof<T>, "end_bit must be smaller than size of T");
-
- return ones<end_bit - begin_bit + 1, T>() << begin_bit;
-}
-
-/// Create a mask of type T for bits [begin_bit, end_bit] inclusive.
-template<BitIntegral T>
-constexpr T mask(size_t begin_bit, size_t end_bit)
-{
- ASSERT_MSG(begin_bit <= end_bit, "invalid bit range (position of beginning bit cannot be greater than that of end bit)");
- ASSERT_MSG(begin_bit < bitsizeof<T>, "begin_bit must be smaller than size of T");
- ASSERT_MSG(end_bit < bitsizeof<T>, "end_bit must be smaller than size of T");
-
- return ones<T>(end_bit - begin_bit + 1) << begin_bit;
-}
-
-/// Extract bits [begin_bit, end_bit] inclusive from value of type T.
-template<size_t begin_bit, size_t end_bit, BitIntegral T>
-constexpr T get_bits(T value)
-{
- constexpr T m = mask<begin_bit, end_bit, T>();
- return (value & m) >> begin_bit;
-}
-
-/// Extract bits [begin_bit, end_bit] inclusive from value of type T.
-template<BitIntegral T>
-constexpr T get_bits(size_t begin_bit, size_t end_bit, T value)
-{
- const T m = mask<T>(begin_bit, end_bit);
- return (value & m) >> begin_bit;
-}
-
-/// Clears bits [begin_bit, end_bit] inclusive of value of type T.
-template<size_t begin_bit, size_t end_bit, BitIntegral T>
-constexpr T clear_bits(T value)
-{
- constexpr T m = mask<begin_bit, end_bit, T>();
- return value & ~m;
-}
-
-/// Clears bits [begin_bit, end_bit] inclusive of value of type T.
-template<BitIntegral T>
-constexpr T clear_bits(size_t begin_bit, size_t end_bit, T value)
-{
- const T m = mask<T>(begin_bit, end_bit);
- return value & ~m;
-}
-
-/// Modifies bits [begin_bit, end_bit] inclusive of value of type T.
-template<size_t begin_bit, size_t end_bit, BitIntegral T>
-constexpr T set_bits(T value, T new_bits)
-{
- constexpr T m = mask<begin_bit, end_bit, T>();
- return (value & ~m) | ((new_bits << begin_bit) & m);
-}
-
-/// Modifies bits [begin_bit, end_bit] inclusive of value of type T.
-template<BitIntegral T>
-constexpr T set_bits(size_t begin_bit, size_t end_bit, T value, T new_bits)
-{
- const T m = mask<T>(begin_bit, end_bit);
- return (value & ~m) | ((new_bits << begin_bit) & m);
-}
-
-/// Extract bit at bit_position from value of type T.
-template<size_t bit_position, BitIntegral T>
-constexpr bool get_bit(T value)
-{
- constexpr T m = mask<bit_position, bit_position, T>();
- return (value & m) != 0;
-}
-
-/// Extract bit at bit_position from value of type T.
-template<BitIntegral T>
-constexpr bool get_bit(size_t bit_position, T value)
-{
- const T m = mask<T>(bit_position, bit_position);
- return (value & m) != 0;
-}
-
-/// Clears bit at bit_position of value of type T.
-template<size_t bit_position, BitIntegral T>
-constexpr T clear_bit(T value)
-{
- constexpr T m = mask<bit_position, bit_position, T>();
- return value & ~m;
-}
-
-/// Clears bit at bit_position of value of type T.
-template<BitIntegral T>
-constexpr T clear_bit(size_t bit_position, T value)
-{
- const T m = mask<T>(bit_position, bit_position);
- return value & ~m;
-}
-
-/// Modifies bit at bit_position of value of type T.
-template<size_t bit_position, BitIntegral T>
-constexpr T set_bit(T value, bool new_bit)
-{
- constexpr T m = mask<bit_position, bit_position, T>();
- return (value & ~m) | (new_bit ? m : static_cast<T>(0));
-}
-
-/// Modifies bit at bit_position of value of type T.
-template<BitIntegral T>
-constexpr T set_bit(size_t bit_position, T value, bool new_bit)
-{
- const T m = mask<T>(bit_position, bit_position);
- return (value & ~m) | (new_bit ? m : static_cast<T>(0));
-}
-
-/// Sign-extends a value that has bit_count bits to the full bitwidth of type T.
-template<size_t bit_count, BitIntegral T>
-constexpr T sign_extend(T value)
-{
- static_assert(bit_count != 0, "cannot sign-extend zero-sized value");
-
- using S = std::make_signed_t<T>;
- constexpr size_t shift_amount = bitsizeof<T> - bit_count;
- return static_cast<T>(static_cast<S>(value << shift_amount) >> shift_amount);
-}
-
-/// Sign-extends a value that has bit_count bits to the full bitwidth of type T.
-template<BitIntegral T>
-constexpr T sign_extend(size_t bit_count, T value)
-{
- ASSERT_MSG(bit_count != 0, "cannot sign-extend zero-sized value");
-
- using S = std::make_signed_t<T>;
- const size_t shift_amount = bitsizeof<T> - bit_count;
- return static_cast<T>(static_cast<S>(value << shift_amount) >> shift_amount);
-}
-
-/// Replicate an element across a value of type T.
-template<size_t element_size, BitIntegral T>
-constexpr T replicate_element(T value)
-{
- static_assert(element_size <= bitsizeof<T>, "element_size is too large");
- static_assert(bitsizeof<T> % element_size == 0, "bitsize of T not divisible by element_size");
-
- if constexpr (element_size == bitsizeof<T>) {
- return value;
- } else {
- return replicate_element<element_size * 2, T>(static_cast<T>(value | (value << element_size)));
- }
-}
-
-/// Replicate an element of type U across a value of type T.
-template<BitIntegral U, BitIntegral T>
-constexpr T replicate_element(T value)
-{
- static_assert(bitsizeof<U> <= bitsizeof<T>, "element_size is too large");
-
- return replicate_element<bitsizeof<U>, T>(value);
-}
-
-/// Replicate an element across a value of type T.
-template<BitIntegral T>
-constexpr T replicate_element(size_t element_size, T value)
-{
- ASSERT_MSG(element_size <= bitsizeof<T>, "element_size is too large");
- ASSERT_MSG(bitsizeof<T> % element_size == 0, "bitsize of T not divisible by element_size");
-
- if (element_size == bitsizeof<T>) {
- return value;
- }
- return replicate_element<T>(element_size * 2, static_cast<T>(value | (value << element_size)));
-}
-
-template<BitIntegral T>
-constexpr bool most_significant_bit(T value)
-{
- return get_bit<bitsizeof<T> - 1, T>(value);
-}
-
-} // namespace mcl::bit
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/bit/rotate.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/bit/rotate.hpp
deleted file mode 100644
index cb7e7bdd..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/bit/rotate.hpp
+++ /dev/null
@@ -1,33 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/bitsizeof.hpp"
-#include "mcl/concepts/bit_integral.hpp"
-#include "mcl/stdint.hpp"
-
-namespace mcl::bit {
-
-template<BitIntegral T>
-constexpr T rotate_right(T x, size_t amount)
-{
- amount %= bitsizeof<T>;
- if (amount == 0) {
- return x;
- }
- return static_cast<T>((x >> amount) | (x << (bitsizeof<T> - amount)));
-}
-
-template<BitIntegral T>
-constexpr T rotate_left(T x, size_t amount)
-{
- amount %= bitsizeof<T>;
- if (amount == 0) {
- return x;
- }
- return static_cast<T>((x << amount) | (x >> (bitsizeof<T> - amount)));
-}
-
-} // namespace mcl::bit
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/bit/swap.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/bit/swap.hpp
deleted file mode 100644
index f96b6af3..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/bit/swap.hpp
+++ /dev/null
@@ -1,56 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/concepts/bit_integral.hpp"
-
-namespace mcl::bit {
-
-constexpr u16 swap_bytes_16(u16 value)
-{
- return static_cast<u16>(u32{value} >> 8 | u32{value} << 8);
-}
-
-constexpr u32 swap_bytes_32(u32 value)
-{
- return ((value & 0xff000000u) >> 24)
- | ((value & 0x00ff0000u) >> 8)
- | ((value & 0x0000ff00u) << 8)
- | ((value & 0x000000ffu) << 24);
-}
-
-constexpr u64 swap_bytes_64(u64 value)
-{
- return ((value & 0xff00000000000000ull) >> 56)
- | ((value & 0x00ff000000000000ull) >> 40)
- | ((value & 0x0000ff0000000000ull) >> 24)
- | ((value & 0x000000ff00000000ull) >> 8)
- | ((value & 0x00000000ff000000ull) << 8)
- | ((value & 0x0000000000ff0000ull) << 24)
- | ((value & 0x000000000000ff00ull) << 40)
- | ((value & 0x00000000000000ffull) << 56);
-}
-
-constexpr u32 swap_halves_32(u32 value)
-{
- return ((value & 0xffff0000u) >> 16)
- | ((value & 0x0000ffffu) << 16);
-}
-
-constexpr u64 swap_halves_64(u64 value)
-{
- return ((value & 0xffff000000000000ull) >> 48)
- | ((value & 0x0000ffff00000000ull) >> 16)
- | ((value & 0x00000000ffff0000ull) << 16)
- | ((value & 0x000000000000ffffull) << 48);
-}
-
-constexpr u64 swap_words_64(u64 value)
-{
- return ((value & 0xffffffff00000000ull) >> 32)
- | ((value & 0x00000000ffffffffull) << 32);
-}
-
-} // namespace mcl::bit
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/bit_cast.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/bit_cast.hpp
deleted file mode 100644
index 3eda2657..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/bit_cast.hpp
+++ /dev/null
@@ -1,38 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstring>
-#include <type_traits>
-
-namespace mcl {
-
-/// Reinterpret objects of one type as another by bit-casting between object representations.
-template<class Dest, class Source>
-inline Dest bit_cast(const Source& source) noexcept
-{
- static_assert(sizeof(Dest) == sizeof(Source), "size of destination and source objects must be equal");
- static_assert(std::is_trivially_copyable_v<Dest>, "destination type must be trivially copyable.");
- static_assert(std::is_trivially_copyable_v<Source>, "source type must be trivially copyable");
-
- std::aligned_storage_t<sizeof(Dest), alignof(Dest)> dest;
- std::memcpy(&dest, &source, sizeof(dest));
- return reinterpret_cast<Dest&>(dest);
-}
-
-/// Reinterpret objects of any arbitrary type as another type by bit-casting between object representations.
-/// Note that here we do not verify if source pointed to by source_ptr has enough bytes to read from.
-template<class Dest, class SourcePtr>
-inline Dest bit_cast_pointee(const SourcePtr source_ptr) noexcept
-{
- static_assert(sizeof(SourcePtr) == sizeof(void*), "source pointer must have size of a pointer");
- static_assert(std::is_trivially_copyable_v<Dest>, "destination type must be trivially copyable.");
-
- std::aligned_storage_t<sizeof(Dest), alignof(Dest)> dest;
- std::memcpy(&dest, bit_cast<void*>(source_ptr), sizeof(dest));
- return reinterpret_cast<Dest&>(dest);
-}
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/bitsizeof.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/bitsizeof.hpp
deleted file mode 100644
index 5d28f595..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/bitsizeof.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <climits>
-#include <cstddef>
-
-namespace mcl {
-
-template<typename T>
-constexpr std::size_t bitsizeof = CHAR_BIT * sizeof(T);
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/concepts/bit_integral.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/concepts/bit_integral.hpp
deleted file mode 100644
index caddc059..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/concepts/bit_integral.hpp
+++ /dev/null
@@ -1,16 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/concepts/is_any_of.hpp"
-#include "mcl/stdint.hpp"
-
-namespace mcl {
-
-/// Integral upon which bit operations can be safely performed.
-template<typename T>
-concept BitIntegral = IsAnyOf<T, u8, u16, u32, u64, uptr, size_t>;
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/concepts/is_any_of.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/concepts/is_any_of.hpp
deleted file mode 100644
index 3e6593db..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/concepts/is_any_of.hpp
+++ /dev/null
@@ -1,14 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/concepts/same_as.hpp"
-
-namespace mcl {
-
-template<typename T, typename... U>
-concept IsAnyOf = (SameAs<T, U> || ...);
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/concepts/same_as.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/concepts/same_as.hpp
deleted file mode 100644
index 7aaaa501..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/concepts/same_as.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl {
-
-namespace detail {
-
-template<typename T, typename U>
-concept SameHelper = std::is_same_v<T, U>;
-
-} // namespace detail
-
-template<typename T, typename U>
-concept SameAs = detail::SameHelper<T, U> && detail::SameHelper<U, T>;
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/container/detail/meta_byte.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/container/detail/meta_byte.hpp
deleted file mode 100644
index c3fc8c4e..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/container/detail/meta_byte.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/bitsizeof.hpp"
-#include "mcl/stdint.hpp"
-
-namespace mcl::detail {
-
-/// if MSB is 0, this is a full slot. remaining 7 bits is a partial hash of the key.
-/// if MSB is 1, this is a non-full slot.
-enum class meta_byte : u8 {
- empty = 0xff,
- tombstone = 0x80,
- end_sentinel = 0x88,
-};
-
-inline bool is_full(meta_byte mb)
-{
- return (static_cast<u8>(mb) & 0x80) == 0;
-}
-
-inline meta_byte meta_byte_from_hash(size_t hash)
-{
- return static_cast<meta_byte>(hash >> (bitsizeof<size_t> - 7));
-}
-
-inline size_t group_index_from_hash(size_t hash, size_t group_index_mask)
-{
- return hash & group_index_mask;
-}
-
-} // namespace mcl::detail
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/container/detail/meta_byte_group.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/container/detail/meta_byte_group.hpp
deleted file mode 100644
index 05f9ad1a..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/container/detail/meta_byte_group.hpp
+++ /dev/null
@@ -1,263 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <array>
-#include <bit>
-
-#include "mcl/assert.hpp"
-#include "mcl/container/detail/meta_byte.hpp"
-#include "mcl/macro/architecture.hpp"
-#include "mcl/stdint.hpp"
-
-#if defined(MCL_ARCHITECTURE_ARM64)
-# include <arm_neon.h>
-#elif defined(MCL_ARCHITECTURE_X86_64)
-# include <emmintrin.h>
-
-# include "mcl/bit_cast.hpp"
-#else
-# include <cstring>
-#endif
-
-namespace mcl::detail {
-
-#if defined(MCL_ARCHITECTURE_ARM64)
-
-struct meta_byte_group {
- static constexpr size_t max_group_size{16};
-
- explicit meta_byte_group(meta_byte* ptr)
- : data{vld1q_u8(reinterpret_cast<u8*>(ptr))}
- {}
-
- explicit meta_byte_group(const std::array<meta_byte, 16>& array)
- : data{vld1q_u8(reinterpret_cast<const u8*>(array.data()))}
- {}
-
- uint64x2_t match(meta_byte cmp) const
- {
- return vreinterpretq_u64_u8(vandq_u8(vceqq_u8(data,
- vdupq_n_u8(static_cast<u8>(cmp))),
- vdupq_n_u8(0x80)));
- }
-
- uint64x2_t match_empty_or_tombstone() const
- {
- return vreinterpretq_u64_u8(vandq_u8(data,
- vdupq_n_u8(0x80)));
- }
-
- bool is_any_empty() const
- {
- static_assert(meta_byte::empty == static_cast<meta_byte>(0xff), "empty must be maximal u8 value");
- return vmaxvq_u8(data) == 0xff;
- }
-
- bool is_all_empty_or_tombstone() const
- {
- return vminvq_u8(vandq_u8(data, vdupq_n_u8(0x80))) == 0x80;
- }
-
- meta_byte get(size_t index) const
- {
- return static_cast<meta_byte>(data[index]);
- }
-
- void set(size_t index, meta_byte value)
- {
- data[index] = static_cast<u8>(value);
- }
-
- uint8x16_t data;
-};
-
-# define MCL_HMAP_MATCH_META_BYTE_GROUP(MATCH, ...) \
- { \
- const uint64x2_t match_result{MATCH}; \
- \
- for (u64 match_result_v{match_result[0]}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- \
- for (u64 match_result_v{match_result[1]}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(8 + std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- }
-
-# define MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(MATCH, ...) \
- { \
- const uint64x2_t match_result{MATCH}; \
- \
- for (u64 match_result_v{match_result[0]}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- \
- for (u64 match_result_v{match_result[1] & 0x00ffffffffffffff}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(8 + std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- }
-
-#elif defined(MCL_ARCHITECTURE_X86_64)
-
-struct meta_byte_group {
- static constexpr size_t max_group_size{16};
-
- explicit meta_byte_group(meta_byte* ptr)
- : data{_mm_load_si128(reinterpret_cast<__m128i const*>(ptr))}
- {}
-
- explicit meta_byte_group(const std::array<meta_byte, 16>& array)
- : data{_mm_loadu_si128(reinterpret_cast<__m128i const*>(array.data()))}
- {}
-
- u16 match(meta_byte cmp) const
- {
- return _mm_movemask_epi8(_mm_cmpeq_epi8(data, _mm_set1_epi8(static_cast<u8>(cmp))));
- }
-
- u16 match_empty_or_tombstone() const
- {
- return _mm_movemask_epi8(data);
- }
-
- bool is_any_empty() const
- {
- return match(meta_byte::empty);
- }
-
- bool is_all_empty_or_tombstone() const
- {
- return match_empty_or_tombstone() == 0xffff;
- }
-
- meta_byte get(size_t index) const
- {
- return mcl::bit_cast<std::array<meta_byte, max_group_size>>(data)[index];
- }
-
- void set(size_t index, meta_byte value)
- {
- auto array = mcl::bit_cast<std::array<meta_byte, max_group_size>>(data);
- array[index] = value;
- data = mcl::bit_cast<__m128i>(array);
- }
-
- __m128i data;
-};
-
-# define MCL_HMAP_MATCH_META_BYTE_GROUP(MATCH, ...) \
- { \
- for (u16 match_result{MATCH}; match_result != 0; match_result &= match_result - 1) { \
- const size_t match_index{static_cast<size_t>(std::countr_zero(match_result))}; \
- __VA_ARGS__ \
- } \
- }
-
-# define MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(MATCH, ...) \
- { \
- for (u16 match_result{static_cast<u16>((MATCH) & (0x7fff))}; match_result != 0; match_result &= match_result - 1) { \
- const size_t match_index{static_cast<size_t>(std::countr_zero(match_result))}; \
- __VA_ARGS__ \
- } \
- }
-
-#else
-
-struct meta_byte_group {
- static constexpr size_t max_group_size{16};
-
- static constexpr u64 msb{0x8080808080808080};
- static constexpr u64 lsb{0x0101010101010101};
- static constexpr u64 not_msb{0x7f7f7f7f7f7f7f7f};
- static constexpr u64 not_lsb{0xfefefefefefefefe};
-
- explicit meta_byte_group(meta_byte* ptr)
- {
- std::memcpy(data.data(), ptr, sizeof(data));
- }
-
- explicit meta_byte_group(const std::array<meta_byte, 16>& array)
- : data{array}
- {}
-
- std::array<u64, 2> match(meta_byte cmp) const
- {
- DEBUG_ASSERT(is_full(cmp));
-
- const u64 vcmp{lsb * static_cast<u64>(cmp)};
- return {(msb - ((data[0] ^ vcmp) & not_msb)) & ~data[0] & msb, (msb - ((data[1] ^ vcmp) & not_msb)) & ~data[1] & msb};
- }
-
- std::array<u64, 2> match_empty_or_tombstone() const
- {
- return {data[0] & msb, data[1] & msb};
- }
-
- bool is_any_empty() const
- {
- static_assert((static_cast<u8>(meta_byte::empty) & 0xc0) == 0xc0);
- static_assert((static_cast<u8>(meta_byte::tombstone) & 0xc0) == 0x80);
-
- return (data[0] & (data[0] << 1) & msb) || (data[1] & (data[1] << 1) & msb);
- }
-
- bool is_all_empty_or_tombstone() const
- {
- return (data[0] & data[1] & msb) == msb;
- }
-
- meta_byte get(size_t index) const
- {
- return mcl::bit_cast<std::array<meta_byte, max_group_size>>(data)[index];
- }
-
- void set(size_t index, meta_byte value)
- {
- auto array = mcl::bit_cast<std::array<meta_byte, max_group_size>>(data);
- array[index] = value;
- data = mcl::bit_cast<std::array<u64, 2>>(array);
- }
-
- std::array<u64, 2> data;
-};
-
-# define MCL_HMAP_MATCH_META_BYTE_GROUP(MATCH, ...) \
- { \
- const std::array<u64, 2> match_result{MATCH}; \
- \
- for (u64 match_result_v{match_result[0]}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- \
- for (u64 match_result_v{match_result[1]}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(8 + std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- }
-
-# define MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(MATCH, ...) \
- { \
- const std::array<u64, 2> match_result{MATCH}; \
- \
- for (u64 match_result_v{match_result[0]}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- \
- for (u64 match_result_v{match_result[1] & 0x00ffffffffffffff}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(8 + std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- }
-
-#endif
-
-} // namespace mcl::detail
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/container/detail/slot_union.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/container/detail/slot_union.hpp
deleted file mode 100644
index 50385037..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/container/detail/slot_union.hpp
+++ /dev/null
@@ -1,16 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::detail {
-
-template<typename ValueType>
-union slot_union {
- slot_union() {}
- ~slot_union() {}
- ValueType value;
-};
-
-} // namespace mcl::detail
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/container/hmap.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/container/hmap.hpp
deleted file mode 100644
index f0616c89..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/container/hmap.hpp
+++ /dev/null
@@ -1,532 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstddef>
-#include <functional>
-#include <limits>
-#include <type_traits>
-#include <utility>
-
-#include "mcl/assert.hpp"
-#include "mcl/container/detail/meta_byte.hpp"
-#include "mcl/container/detail/meta_byte_group.hpp"
-#include "mcl/container/detail/slot_union.hpp"
-#include "mcl/hash/xmrx.hpp"
-#include "mcl/hint/assume.hpp"
-#include "mcl/memory/overaligned_unique_ptr.hpp"
-
-namespace mcl {
-
-template<typename KeyType, typename MappedType, typename Hash, typename Pred>
-class hmap;
-
-template<bool IsConst, typename KeyType, typename MappedType, typename Hash, typename Pred>
-class hmap_iterator {
- using base_value_type = std::pair<const KeyType, MappedType>;
- using slot_type = detail::slot_union<base_value_type>;
-
-public:
- using key_type = KeyType;
- using mapped_type = MappedType;
- using iterator_category = std::forward_iterator_tag;
- using difference_type = std::ptrdiff_t;
- using value_type = std::conditional_t<IsConst, std::add_const_t<base_value_type>, base_value_type>;
- using pointer = value_type*;
- using const_pointer = const value_type*;
- using reference = value_type&;
- using const_reference = const value_type&;
-
- hmap_iterator() = default;
- hmap_iterator(const hmap_iterator& other) = default;
- hmap_iterator& operator=(const hmap_iterator& other) = default;
-
- hmap_iterator& operator++()
- {
- if (mb_ptr == nullptr)
- return *this;
-
- ++mb_ptr;
- ++slot_ptr;
-
- skip_empty_or_tombstone();
-
- return *this;
- }
- hmap_iterator operator++(int)
- {
- hmap_iterator it(*this);
- ++*this;
- return it;
- }
-
- bool operator==(const hmap_iterator& other) const
- {
- return std::tie(mb_ptr, slot_ptr) == std::tie(other.mb_ptr, other.slot_ptr);
- }
- bool operator!=(const hmap_iterator& other) const
- {
- return !operator==(other);
- }
-
- reference operator*() const
- {
- return static_cast<reference>(slot_ptr->value);
- }
- pointer operator->() const
- {
- return std::addressof(operator*());
- }
-
-private:
- friend class hmap<KeyType, MappedType, Hash, Pred>;
-
- hmap_iterator(detail::meta_byte* mb_ptr, slot_type* slot_ptr)
- : mb_ptr{mb_ptr}, slot_ptr{slot_ptr}
- {
- ASSUME(mb_ptr != nullptr);
- ASSUME(slot_ptr != nullptr);
- }
-
- void skip_empty_or_tombstone()
- {
- if (!mb_ptr)
- return;
-
- while (*mb_ptr == detail::meta_byte::empty || *mb_ptr == detail::meta_byte::tombstone) {
- ++mb_ptr;
- ++slot_ptr;
- }
-
- if (*mb_ptr == detail::meta_byte::end_sentinel) {
- mb_ptr = nullptr;
- slot_ptr = nullptr;
- }
- }
-
- detail::meta_byte* mb_ptr{nullptr};
- slot_type* slot_ptr{nullptr};
-};
-
-template<typename KeyType, typename MappedType, typename Hash = hash::avalanche_xmrx<KeyType>, typename Pred = std::equal_to<KeyType>>
-class hmap {
-public:
- using key_type = KeyType;
- using mapped_type = MappedType;
- using hasher = Hash;
- using key_equal = Pred;
- using value_type = std::pair<const key_type, mapped_type>;
- using reference = value_type&;
- using const_reference = const value_type&;
- using pointer = value_type*;
- using const_pointer = const value_type*;
- using size_type = std::size_t;
- using difference_type = std::ptrdiff_t;
-
- using iterator = hmap_iterator<false, key_type, mapped_type, hasher, key_equal>;
- using const_iterator = hmap_iterator<true, key_type, mapped_type, hasher, key_equal>;
-
-private:
- static constexpr size_t group_size{detail::meta_byte_group::max_group_size};
- static constexpr size_t average_max_group_load{group_size - 2};
-
- using slot_type = detail::slot_union<value_type>;
- using slot_ptr = std::unique_ptr<slot_type[]>;
- using meta_byte_ptr = overaligned_unique_ptr<group_size, detail::meta_byte[]>;
- static_assert(!std::is_reference_v<key_type>);
- static_assert(!std::is_reference_v<mapped_type>);
-
-public:
- hmap()
- {
- initialize_members(1);
- }
- hmap(const hmap& other)
- {
- deep_copy(other);
- }
- hmap(hmap&& other)
- : group_index_mask{std::exchange(other.group_index_mask, 0)}
- , empty_slots{std::exchange(other.empty_slots, 0)}
- , full_slots{std::exchange(other.full_slots, 0)}
- , mbs{std::move(other.mbs)}
- , slots{std::move(other.slots)}
- {
- }
- hmap& operator=(const hmap& other)
- {
- deep_copy(other);
- return *this;
- }
- hmap& operator=(hmap&& other)
- {
- group_index_mask = std::exchange(other.group_index_mask, 0);
- empty_slots = std::exchange(other.empty_slots, 0);
- full_slots = std::exchange(other.full_slots, 0);
- mbs = std::move(other.mbs);
- slots = std::move(other.slots);
- return *this;
- }
-
- ~hmap()
- {
- if (!mbs)
- return;
-
- clear();
- }
-
- [[nodiscard]] bool empty() const noexcept { return full_slots == 0; }
- size_type size() const noexcept { return full_slots; }
- size_type max_size() const noexcept { return static_cast<size_type>(std::numeric_limits<difference_type>::max()); }
-
- iterator begin()
- {
- iterator result{iterator_at(0)};
- result.skip_empty_or_tombstone();
- return result;
- }
- iterator end()
- {
- return {};
- }
- const_iterator cbegin() const
- {
- const_iterator result{const_iterator_at(0)};
- result.skip_empty_or_tombstone();
- return result;
- }
- const_iterator cend() const
- {
- return {};
- }
- const_iterator begin() const
- {
- return cbegin();
- }
- const_iterator end() const
- {
- return cend();
- }
-
- template<typename K = key_type, typename... Args>
- std::pair<iterator, bool> try_emplace(K&& k, Args&&... args)
- {
- auto [item_index, item_found] = find_key_or_empty_slot(k);
- if (!item_found) {
- new (&slots[item_index].value) value_type(
- std::piecewise_construct,
- std::forward_as_tuple(std::forward<K>(k)),
- std::forward_as_tuple(std::forward<Args>(args)...));
- }
- return {iterator_at(item_index), !item_found};
- }
-
- template<typename K = key_type, typename V = mapped_type>
- std::pair<iterator, bool> insert_or_assign(K&& k, V&& v)
- {
- auto [item_index, item_found] = find_key_or_empty_slot(k);
- if (item_found) {
- slots[item_index].value.second = std::forward<V>(v);
- } else {
- new (&slots[item_index].value) value_type(
- std::forward<K>(k),
- std::forward<V>(v));
- }
- return {iterator_at(item_index), !item_found};
- }
-
- void erase(const_iterator position)
- {
- if (position == cend()) {
- return;
- }
-
- const std::size_t item_index{static_cast<std::size_t>(std::distance(mbs.get(), position.mb_ptr))};
- const std::size_t group_index{item_index / group_size};
- const detail::meta_byte_group g{mbs.get() + group_index * group_size};
-
- erase_impl(item_index, std::move(g));
- }
- void erase(iterator position)
- {
- if (position == end()) {
- return;
- }
-
- const std::size_t item_index{static_cast<std::size_t>(std::distance(mbs.get(), position.mb_ptr))};
- const std::size_t group_index{item_index / group_size};
- const detail::meta_byte_group g{mbs.get() + group_index * group_size};
-
- erase_impl(item_index, std::move(g));
- }
- template<typename K = key_type>
- size_t erase(const K& key)
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- detail::meta_byte_group g{mbs.get() + group_index * group_size};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP(g.match(mb), {
- const std::size_t item_index{group_index * group_size + match_index};
-
- if (key_equal{}(slots[item_index].value.first, key)) [[likely]] {
- erase_impl(item_index, std::move(g));
- return 1;
- }
- });
-
- if (g.is_any_empty()) [[likely]] {
- return 0;
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
-
- template<typename K = key_type>
- iterator find(const K& key)
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- detail::meta_byte_group g{mbs.get() + group_index * group_size};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP(g.match(mb), {
- const std::size_t item_index{group_index * group_size + match_index};
-
- if (key_equal{}(slots[item_index].value.first, key)) [[likely]] {
- return iterator_at(item_index);
- }
- });
-
- if (g.is_any_empty()) [[likely]] {
- return {};
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
- template<typename K = key_type>
- const_iterator find(const K& key) const
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- detail::meta_byte_group g{mbs.get() + group_index * group_size};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP(g.match(mb), {
- const std::size_t item_index{group_index * group_size + match_index};
-
- if (key_equal{}(slots[item_index].value.first, key)) [[likely]] {
- return const_iterator_at(item_index);
- }
- });
-
- if (g.is_any_empty()) [[likely]] {
- return {};
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
- template<typename K = key_type>
- bool contains(const K& key) const
- {
- return find(key) != end();
- }
- template<typename K = key_type>
- size_t count(const K& key) const
- {
- return contains(key) ? 1 : 0;
- }
-
- template<typename K = key_type>
- mapped_type& operator[](K&& k)
- {
- return try_emplace(std::forward<K>(k)).first->second;
- }
- template<typename K = key_type>
- mapped_type& at(K&& k)
- {
- const auto iter{find(k)};
- if (iter == end()) {
- throw std::out_of_range("hmap::at: key not found");
- }
- return iter->second;
- }
- template<typename K = key_type>
- const mapped_type& at(K&& k) const
- {
- const auto iter{find(k)};
- if (iter == end()) {
- throw std::out_of_range("hmap::at: key not found");
- }
- return iter->second;
- }
-
- void clear()
- {
- for (auto iter{begin()}; iter != end(); ++iter) {
- iter->~value_type();
- }
-
- clear_metadata();
- }
-
-private:
- iterator iterator_at(std::size_t item_index)
- {
- return {mbs.get() + item_index, slots.get() + item_index};
- }
- const_iterator const_iterator_at(std::size_t item_index) const
- {
- return {mbs.get() + item_index, slots.get() + item_index};
- }
-
- std::pair<std::size_t, bool> find_key_or_empty_slot(const key_type& key)
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- std::size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- detail::meta_byte_group g{mbs.get() + group_index * group_size};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP(g.match(mb), {
- const std::size_t item_index{group_index * group_size + match_index};
-
- if (key_equal{}(slots[item_index].value.first, key)) [[likely]] {
- return {item_index, true};
- }
- });
-
- if (g.is_any_empty()) [[likely]] {
- return {find_empty_slot_to_insert(hash), false};
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
-
- std::size_t find_empty_slot_to_insert(const std::size_t hash)
- {
- if (empty_slots == 0) [[unlikely]] {
- grow_and_rehash();
- }
-
- std::size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- detail::meta_byte_group g{mbs.get() + group_index * group_size};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP(g.match_empty_or_tombstone(), {
- const std::size_t item_index{group_index * group_size + match_index};
-
- if (mbs[item_index] == detail::meta_byte::empty) [[likely]] {
- --empty_slots;
- }
- ++full_slots;
-
- mbs[item_index] = detail::meta_byte_from_hash(hash);
-
- return item_index;
- });
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
-
- void erase_impl(std::size_t item_index, detail::meta_byte_group&& g)
- {
- slots[item_index].value->~value_type();
-
- --full_slots;
- if (g.is_any_empty()) {
- mbs[item_index] = detail::meta_byte::empty;
- ++empty_slots;
- } else {
- mbs[item_index] = detail::meta_byte::tombstone;
- }
- }
-
- void grow_and_rehash()
- {
- const std::size_t new_group_count{2 * (group_index_mask + 1)};
-
- pow2_resize(new_group_count);
- }
-
- void pow2_resize(std::size_t new_group_count)
- {
- auto iter{begin()};
-
- const auto old_mbs{std::move(mbs)};
- const auto old_slots{std::move(slots)};
-
- initialize_members(new_group_count);
-
- for (; iter != end(); ++iter) {
- const std::size_t hash{hasher{}(iter->first)};
- const std::size_t item_index{find_empty_slot_to_insert(hash)};
-
- new (&slots[item_index].value) value_type(std::move(iter.slot_ptr->value));
- iter.slot_ptr->value.~value_type();
- }
- }
-
- void deep_copy(const hmap& other)
- {
- initialize_members(other.group_index_mask + 1);
-
- for (auto iter = other.begin(); iter != other.end(); ++iter) {
- const std::size_t hash{hasher{}(iter->first)};
- const std::size_t item_index{find_empty_slot_to_insert(hash)};
-
- new (&slots[item_index].value) value_type(iter.slot_ptr->value);
- }
- }
-
- void initialize_members(std::size_t group_count)
- {
- // DEBUG_ASSERT(group_count != 0 && std::ispow2(group_count));
-
- group_index_mask = group_count - 1;
- mbs = make_overaligned_unique_ptr_array<group_size, detail::meta_byte>(group_count * group_size + 1);
- slots = slot_ptr{new slot_type[group_count * group_size]};
-
- clear_metadata();
- }
-
- void clear_metadata()
- {
- const std::size_t group_count{group_index_mask + 1};
-
- empty_slots = group_count * average_max_group_load;
- full_slots = 0;
-
- std::memset(mbs.get(), static_cast<int>(detail::meta_byte::empty), group_count * group_size);
- mbs[group_count * group_size] = detail::meta_byte::end_sentinel;
- }
-
- std::size_t group_index_mask;
- std::size_t empty_slots;
- std::size_t full_slots;
- meta_byte_ptr mbs;
- slot_ptr slots;
-};
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/container/ihmap.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/container/ihmap.hpp
deleted file mode 100644
index b50229e0..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/container/ihmap.hpp
+++ /dev/null
@@ -1,549 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <array>
-#include <cstddef>
-#include <functional>
-#include <limits>
-#include <type_traits>
-#include <utility>
-
-#include "mcl/assert.hpp"
-#include "mcl/container/detail/meta_byte.hpp"
-#include "mcl/container/detail/meta_byte_group.hpp"
-#include "mcl/container/detail/slot_union.hpp"
-#include "mcl/hash/xmrx.hpp"
-#include "mcl/hint/assume.hpp"
-
-namespace mcl {
-
-template<typename KeyType, typename MappedType, typename Hash, typename Pred>
-class ihmap;
-
-namespace detail {
-
-constexpr std::array<meta_byte, 16> ihmap_default_meta{
- meta_byte::empty, meta_byte::empty, meta_byte::empty, meta_byte::empty,
- meta_byte::empty, meta_byte::empty, meta_byte::empty, meta_byte::empty,
- meta_byte::empty, meta_byte::empty, meta_byte::empty, meta_byte::empty,
- meta_byte::empty, meta_byte::empty, meta_byte::empty, meta_byte::tombstone};
-
-template<typename KeyType, typename MappedType>
-struct ihmap_group {
- using base_value_type = std::pair<const KeyType, MappedType>;
- using slot_type = detail::slot_union<base_value_type>;
-
- static constexpr std::size_t group_size{meta_byte_group::max_group_size - 1};
-
- meta_byte_group meta{ihmap_default_meta};
- std::array<slot_type, group_size> slots{};
-};
-
-} // namespace detail
-
-template<bool IsConst, typename KeyType, typename MappedType, typename Hash, typename Pred>
-class ihmap_iterator {
- using group_type = detail::ihmap_group<KeyType, MappedType>;
- using base_value_type = typename group_type::base_value_type;
-
-public:
- using key_type = KeyType;
- using mapped_type = MappedType;
- using iterator_category = std::forward_iterator_tag;
- using difference_type = std::ptrdiff_t;
- using value_type = std::conditional_t<IsConst, std::add_const_t<base_value_type>, base_value_type>;
- using pointer = value_type*;
- using const_pointer = const value_type*;
- using reference = value_type&;
- using const_reference = const value_type&;
-
- ihmap_iterator() = default;
- ihmap_iterator(const ihmap_iterator& other) = default;
- ihmap_iterator& operator=(const ihmap_iterator& other) = default;
-
- ihmap_iterator& operator++()
- {
- if (group_ptr == nullptr)
- return *this;
-
- ++slot_index;
-
- skip_empty_or_tombstone();
-
- return *this;
- }
- ihmap_iterator operator++(int)
- {
- ihmap_iterator it(*this);
- ++*this;
- return it;
- }
-
- bool operator==(const ihmap_iterator& other) const
- {
- return std::tie(group_ptr, slot_index) == std::tie(other.group_ptr, other.slot_index);
- }
- bool operator!=(const ihmap_iterator& other) const
- {
- return !operator==(other);
- }
-
- reference operator*() const
- {
- return static_cast<reference>(group_ptr->slots[slot_index].value);
- }
- pointer operator->() const
- {
- return std::addressof(operator*());
- }
-
-private:
- friend class ihmap<KeyType, MappedType, Hash, Pred>;
-
- ihmap_iterator(group_type* group_ptr, size_t slot_index)
- : group_ptr{group_ptr}, slot_index{slot_index}
- {
- ASSUME(group_ptr != nullptr);
- }
-
- void skip_empty_or_tombstone()
- {
- if (!group_ptr)
- return;
-
- while (true) {
- const detail::meta_byte mb = group_ptr->meta.get(slot_index);
- if (slot_index == group_type::group_size) {
- slot_index = 0;
- ++group_ptr;
-
- if (mb == detail::meta_byte::end_sentinel) {
- group_ptr = nullptr;
- return;
- }
-
- continue;
- }
- if (is_full(mb)) {
- break;
- }
- ++slot_index;
- }
- }
-
- group_type* group_ptr{nullptr};
- std::size_t slot_index{0};
-};
-
-template<typename KeyType, typename MappedType, typename Hash = hash::avalanche_xmrx<KeyType>, typename Pred = std::equal_to<KeyType>>
-class ihmap {
- using group_type = detail::ihmap_group<KeyType, MappedType>;
-
-public:
- using key_type = KeyType;
- using mapped_type = MappedType;
- using hasher = Hash;
- using key_equal = Pred;
- using value_type = typename group_type::base_value_type;
- using reference = value_type&;
- using const_reference = const value_type&;
- using pointer = value_type*;
- using const_pointer = const value_type*;
- using size_type = std::size_t;
- using difference_type = std::ptrdiff_t;
-
- using iterator = ihmap_iterator<false, key_type, mapped_type, hasher, key_equal>;
- using const_iterator = ihmap_iterator<true, key_type, mapped_type, hasher, key_equal>;
-
-private:
- static_assert(!std::is_reference_v<key_type>);
- static_assert(!std::is_reference_v<mapped_type>);
-
- static constexpr std::size_t group_size{group_type::group_size};
- static constexpr std::size_t average_max_group_load{group_size - 2};
-
- struct position {
- std::size_t group_index;
- std::size_t slot_index;
- };
-
-public:
- ihmap()
- {
- initialize_members(1);
- }
- ihmap(const ihmap& other)
- {
- deep_copy(other);
- }
- ihmap(ihmap&& other)
- : group_index_mask{std::exchange(other.group_index_mask, 0)}
- , empty_slots{std::exchange(other.empty_slots, 0)}
- , full_slots{std::exchange(other.full_slots, 0)}
- , groups{std::move(other.groups)}
- {
- }
- ihmap& operator=(const ihmap& other)
- {
- deep_copy(other);
- return *this;
- }
- ihmap& operator=(ihmap&& other)
- {
- group_index_mask = std::exchange(other.group_index_mask, 0);
- empty_slots = std::exchange(other.empty_slots, 0);
- full_slots = std::exchange(other.full_slots, 0);
- groups = std::move(other.groups);
- return *this;
- }
-
- ~ihmap()
- {
- if (!groups)
- return;
-
- clear();
- }
-
- [[nodiscard]] bool empty() const noexcept { return full_slots == 0; }
- size_type size() const noexcept { return full_slots; }
- size_type max_size() const noexcept { return static_cast<size_type>(std::numeric_limits<difference_type>::max()); }
-
- iterator begin()
- {
- iterator result{iterator_at({0, 0})};
- result.skip_empty_or_tombstone();
- return result;
- }
- iterator end()
- {
- return {};
- }
- const_iterator cbegin() const
- {
- const_iterator result{const_iterator_at({0, 0})};
- result.skip_empty_or_tombstone();
- return result;
- }
- const_iterator cend() const
- {
- return {};
- }
- const_iterator begin() const
- {
- return cbegin();
- }
- const_iterator end() const
- {
- return cend();
- }
-
- template<typename K = key_type, typename... Args>
- std::pair<iterator, bool> try_emplace(K&& k, Args&&... args)
- {
- auto [pos, item_found] = find_key_or_empty_slot(k);
- if (!item_found) {
- new (&groups[pos.group_index].slots[pos.slot_index].value) value_type(
- std::piecewise_construct,
- std::forward_as_tuple(std::forward<K>(k)),
- std::forward_as_tuple(std::forward<Args>(args)...));
- }
- return {iterator_at(pos), !item_found};
- }
-
- template<typename K = key_type, typename V = mapped_type>
- std::pair<iterator, bool> insert_or_assign(K&& k, V&& v)
- {
- auto [pos, item_found] = find_key_or_empty_slot(k);
- if (item_found) {
- groups[pos.group_index].slots[pos.slot_index].value.second = std::forward<V>(v);
- } else {
- new (&groups[pos.group_index].slots[pos.slot_index].value) value_type(
- std::forward<K>(k),
- std::forward<V>(v));
- }
- return {iterator_at(pos), !item_found};
- }
-
- void erase(const_iterator iter)
- {
- if (iter == cend()) {
- return;
- }
-
- const std::size_t group_index{static_cast<std::size_t>(std::distance(groups.get(), iter.group_ptr))};
-
- erase_impl({group_index, iter.slot_index});
- }
- void erase(iterator iter)
- {
- if (iter == end()) {
- return;
- }
-
- const std::size_t group_index{static_cast<std::size_t>(std::distance(groups.get(), iter.group_ptr))};
-
- erase_impl({group_index, iter.slot_index});
- }
- template<typename K = key_type>
- std::size_t erase(const K& key)
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- std::size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- const group_type& g{groups[group_index]};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(g.meta.match(mb), {
- if (key_equal{}(g.slots[match_index].value.first, key)) [[likely]] {
- erase_impl({group_index, match_index});
- return 1;
- }
- });
-
- if (g.meta.is_any_empty()) [[likely]] {
- return 0;
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
-
- template<typename K = key_type>
- iterator find(const K& key)
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- std::size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- const group_type& g{groups[group_index]};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(g.meta.match(mb), {
- if (key_equal{}(g.slots[match_index].value.first, key)) [[likely]] {
- return iterator_at({group_index, match_index});
- }
- });
-
- if (g.meta.is_any_empty()) [[likely]] {
- return {};
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
- template<typename K = key_type>
- const_iterator find(const K& key) const
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- std::size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- const group_type& g{groups[group_index]};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(g.meta.match(mb), {
- if (key_equal{}(g.slots[match_index].value.first, key)) [[likely]] {
- return const_iterator_at({group_index, match_index});
- }
- });
-
- if (g.meta.is_any_empty()) [[likely]] {
- return {};
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
- template<typename K = key_type>
- bool contains(const K& key) const
- {
- return find(key) != end();
- }
- template<typename K = key_type>
- std::size_t count(const K& key) const
- {
- return contains(key) ? 1 : 0;
- }
-
- template<typename K = key_type>
- mapped_type& operator[](K&& k)
- {
- return try_emplace(std::forward<K>(k)).first->second;
- }
- template<typename K = key_type>
- mapped_type& at(K&& k)
- {
- const auto iter{find(k)};
- if (iter == end()) {
- throw std::out_of_range("ihmap::at: key not found");
- }
- return iter->second;
- }
- template<typename K = key_type>
- const mapped_type& at(K&& k) const
- {
- const auto iter{find(k)};
- if (iter == end()) {
- throw std::out_of_range("ihmap::at: key not found");
- }
- return iter->second;
- }
-
- void clear()
- {
- for (auto iter{begin()}; iter != end(); ++iter) {
- iter->~value_type();
- }
-
- clear_metadata();
- }
-
-private:
- iterator iterator_at(position pos)
- {
- return {groups.get() + pos.group_index, pos.slot_index};
- }
- const_iterator const_iterator_at(position pos) const
- {
- return {groups.get() + pos.group_index, pos.slot_index};
- }
-
- std::pair<position, bool> find_key_or_empty_slot(const key_type& key)
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- std::size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- const group_type& g{groups[group_index]};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(g.meta.match(mb), {
- if (key_equal{}(g.slots[match_index].value.first, key)) [[likely]] {
- return {{group_index, match_index}, true};
- }
- });
-
- if (g.meta.is_any_empty()) [[likely]] {
- return {find_empty_slot_to_insert(hash), false};
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
-
- position find_empty_slot_to_insert(const std::size_t hash)
- {
- if (empty_slots == 0) [[unlikely]] {
- grow_and_rehash();
- }
-
- std::size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- group_type& g{groups[group_index]};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(g.meta.match_empty_or_tombstone(), {
- if (g.meta.get(match_index) == detail::meta_byte::empty) [[likely]] {
- --empty_slots;
- }
- ++full_slots;
-
- g.meta.set(match_index, detail::meta_byte_from_hash(hash));
-
- return {group_index, match_index};
- });
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
-
- void erase_impl(position pos)
- {
- group_type& g{groups[pos.group_index]};
-
- g.slots[pos.slot_index].value.~value_type();
-
- --full_slots;
- if (g.meta.is_any_empty()) {
- g.meta.set(pos.slot_index, detail::meta_byte::empty);
- ++empty_slots;
- } else {
- g.meta.set(pos.slot_index, detail::meta_byte::tombstone);
- }
- }
-
- void grow_and_rehash()
- {
- const std::size_t new_group_count{2 * (group_index_mask + 1)};
-
- pow2_resize(new_group_count);
- }
-
- void pow2_resize(std::size_t new_group_count)
- {
- auto iter{begin()};
-
- const auto old_groups{std::move(groups)};
-
- initialize_members(new_group_count);
-
- for (; iter != end(); ++iter) {
- const std::size_t hash{hasher{}(iter->first)};
- const position pos{find_empty_slot_to_insert(hash)};
-
- new (&groups[pos.group_index].slots[pos.slot_index].value) value_type(std::move(iter.group_ptr->slots[iter.slot_index].value));
- iter.group_ptr->slots[iter.slot_index].value.~value_type();
- }
- }
-
- void deep_copy(const ihmap& other)
- {
- initialize_members(other.group_index_mask + 1);
-
- for (auto iter = other.begin(); iter != other.end(); ++iter) {
- const std::size_t hash{hasher{}(iter->first)};
- const position pos{find_empty_slot_to_insert(hash)};
-
- new (&groups[pos.group_index].slots[pos.slot_index].value) value_type(iter.group_ptr->slots[iter.slot_index].value);
- }
- }
-
- void initialize_members(std::size_t group_count)
- {
- // DEBUG_ASSERT(group_count != 0 && std::ispow2(group_count));
-
- group_index_mask = group_count - 1;
- groups = std::unique_ptr<group_type[]>{new group_type[group_count]};
-
- clear_metadata();
- }
-
- void clear_metadata()
- {
- const std::size_t group_count{group_index_mask + 1};
-
- empty_slots = group_count * average_max_group_load;
- full_slots = 0;
-
- for (size_t i{0}; i < group_count; ++i) {
- groups[i].meta = detail::meta_byte_group{detail::ihmap_default_meta};
- }
- groups[group_count - 1].meta.set(group_size, detail::meta_byte::end_sentinel);
- }
-
- std::size_t group_index_mask;
- std::size_t empty_slots;
- std::size_t full_slots;
- std::unique_ptr<group_type[]> groups;
-};
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/container/intrusive_list.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/container/intrusive_list.hpp
deleted file mode 100644
index 515fd891..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/container/intrusive_list.hpp
+++ /dev/null
@@ -1,408 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstddef>
-#include <iterator>
-#include <memory>
-#include <type_traits>
-
-#include "mcl/assert.hpp"
-
-namespace mcl {
-
-template<typename T>
-class intrusive_list;
-template<typename T>
-class intrusive_list_iterator;
-
-template<typename T>
-class intrusive_list_node {
-public:
- bool is_sentinel() const
- {
- return is_sentinel_;
- }
-
-protected:
- intrusive_list_node* next = nullptr;
- intrusive_list_node* prev = nullptr;
- bool is_sentinel_ = false;
-
- friend class intrusive_list<T>;
- friend class intrusive_list_iterator<T>;
- friend class intrusive_list_iterator<const T>;
-};
-
-template<typename T>
-class intrusive_list_sentinel final : public intrusive_list_node<T> {
- using intrusive_list_node<T>::next;
- using intrusive_list_node<T>::prev;
- using intrusive_list_node<T>::is_sentinel_;
-
-public:
- intrusive_list_sentinel()
- {
- next = this;
- prev = this;
- is_sentinel_ = true;
- }
-};
-
-template<typename T>
-class intrusive_list_iterator {
-public:
- using iterator_category = std::bidirectional_iterator_tag;
- using difference_type = std::ptrdiff_t;
- using value_type = T;
- using pointer = value_type*;
- using const_pointer = const value_type*;
- using reference = value_type&;
- using const_reference = const value_type&;
-
- // If value_type is const, we want "const intrusive_list_node<value_type>", not "intrusive_list_node<const value_type>"
- using node_type = std::conditional_t<std::is_const<value_type>::value,
- const intrusive_list_node<std::remove_const_t<value_type>>,
- intrusive_list_node<value_type>>;
- using node_pointer = node_type*;
- using node_reference = node_type&;
-
- intrusive_list_iterator() = default;
- intrusive_list_iterator(const intrusive_list_iterator& other) = default;
- intrusive_list_iterator& operator=(const intrusive_list_iterator& other) = default;
-
- explicit intrusive_list_iterator(node_pointer list_node)
- : node(list_node) {}
- explicit intrusive_list_iterator(pointer data)
- : node(data) {}
- explicit intrusive_list_iterator(reference data)
- : node(&data) {}
-
- intrusive_list_iterator& operator++()
- {
- node = node->next;
- return *this;
- }
- intrusive_list_iterator& operator--()
- {
- node = node->prev;
- return *this;
- }
- intrusive_list_iterator operator++(int)
- {
- intrusive_list_iterator it(*this);
- ++*this;
- return it;
- }
- intrusive_list_iterator operator--(int)
- {
- intrusive_list_iterator it(*this);
- --*this;
- return it;
- }
-
- bool operator==(const intrusive_list_iterator& other) const
- {
- return node == other.node;
- }
- bool operator!=(const intrusive_list_iterator& other) const
- {
- return !operator==(other);
- }
-
- reference operator*() const
- {
- DEBUG_ASSERT(!node->is_sentinel());
- return static_cast<reference>(*node);
- }
- pointer operator->() const
- {
- return std::addressof(operator*());
- }
-
- node_pointer AsNodePointer() const
- {
- return node;
- }
-
-private:
- friend class intrusive_list<T>;
- node_pointer node = nullptr;
-};
-
-template<typename T>
-class intrusive_list {
-public:
- using difference_type = std::ptrdiff_t;
- using size_type = std::size_t;
- using value_type = T;
- using pointer = value_type*;
- using const_pointer = const value_type*;
- using reference = value_type&;
- using const_reference = const value_type&;
- using iterator = intrusive_list_iterator<value_type>;
- using const_iterator = intrusive_list_iterator<const value_type>;
- using reverse_iterator = std::reverse_iterator<iterator>;
- using const_reverse_iterator = std::reverse_iterator<const_iterator>;
-
- /**
- * Inserts a node at the given location indicated by an iterator.
- *
- * @param location The location to insert the node.
- * @param new_node The node to add.
- */
- iterator insert(iterator location, pointer new_node)
- {
- return insert_before(location, new_node);
- }
-
- /**
- * Inserts a node at the given location, moving the previous
- * node occupant ahead of the one inserted.
- *
- * @param location The location to insert the new node.
- * @param new_node The node to insert into the list.
- */
- iterator insert_before(iterator location, pointer new_node)
- {
- auto existing_node = location.AsNodePointer();
-
- new_node->next = existing_node;
- new_node->prev = existing_node->prev;
- existing_node->prev->next = new_node;
- existing_node->prev = new_node;
-
- return iterator(new_node);
- }
-
- /**
- * Inserts a new node into the list ahead of the position indicated.
- *
- * @param position Location to insert the node in front of.
- * @param new_node The node to be inserted into the list.
- */
- iterator insert_after(iterator position, pointer new_node)
- {
- if (empty())
- return insert(begin(), new_node);
-
- return insert(++position, new_node);
- }
-
- /**
- * Add an entry to the start of the list.
- * @param node Node to add to the list.
- */
- void push_front(pointer node)
- {
- insert(begin(), node);
- }
-
- /**
- * Add an entry to the end of the list
- * @param node Node to add to the list.
- */
- void push_back(pointer node)
- {
- insert(end(), node);
- }
-
- /**
- * Erases the node at the front of the list.
- * @note Must not be called on an empty list.
- */
- void pop_front()
- {
- DEBUG_ASSERT(!empty());
- erase(begin());
- }
-
- /**
- * Erases the node at the back of the list.
- * @note Must not be called on an empty list.
- */
- void pop_back()
- {
- DEBUG_ASSERT(!empty());
- erase(--end());
- }
-
- /**
- * Removes a node from this list
- * @param it An iterator that points to the node to remove from list.
- */
- pointer remove(iterator& it)
- {
- DEBUG_ASSERT(it != end());
-
- pointer node = &*it++;
-
- node->prev->next = node->next;
- node->next->prev = node->prev;
-#if !defined(NDEBUG)
- node->next = nullptr;
- node->prev = nullptr;
-#endif
-
- return node;
- }
-
- /**
- * Removes a node from this list
- * @param it A constant iterator that points to the node to remove from list.
- */
- pointer remove(const iterator& it)
- {
- iterator copy = it;
- return remove(copy);
- }
-
- /**
- * Removes a node from this list.
- * @param node A pointer to the node to remove.
- */
- pointer remove(pointer node)
- {
- return remove(iterator(node));
- }
-
- /**
- * Removes a node from this list.
- * @param node A reference to the node to remove.
- */
- pointer remove(reference node)
- {
- return remove(iterator(node));
- }
-
- /**
- * Is this list empty?
- * @returns true if there are no nodes in this list.
- */
- bool empty() const
- {
- return root->next == root.get();
- }
-
- /**
- * Gets the total number of elements within this list.
- * @return the number of elements in this list.
- */
- size_type size() const
- {
- return static_cast<size_type>(std::distance(begin(), end()));
- }
-
- /**
- * Retrieves a reference to the node at the front of the list.
- * @note Must not be called on an empty list.
- */
- reference front()
- {
- DEBUG_ASSERT(!empty());
- return *begin();
- }
-
- /**
- * Retrieves a constant reference to the node at the front of the list.
- * @note Must not be called on an empty list.
- */
- const_reference front() const
- {
- DEBUG_ASSERT(!empty());
- return *begin();
- }
-
- /**
- * Retrieves a reference to the node at the back of the list.
- * @note Must not be called on an empty list.
- */
- reference back()
- {
- DEBUG_ASSERT(!empty());
- return *--end();
- }
-
- /**
- * Retrieves a constant reference to the node at the back of the list.
- * @note Must not be called on an empty list.
- */
- const_reference back() const
- {
- DEBUG_ASSERT(!empty());
- return *--end();
- }
-
- // Iterator interface
- iterator begin() { return iterator(root->next); }
- const_iterator begin() const { return const_iterator(root->next); }
- const_iterator cbegin() const { return begin(); }
-
- iterator end() { return iterator(root.get()); }
- const_iterator end() const { return const_iterator(root.get()); }
- const_iterator cend() const { return end(); }
-
- reverse_iterator rbegin() { return reverse_iterator(end()); }
- const_reverse_iterator rbegin() const { return const_reverse_iterator(end()); }
- const_reverse_iterator crbegin() const { return rbegin(); }
-
- reverse_iterator rend() { return reverse_iterator(begin()); }
- const_reverse_iterator rend() const { return const_reverse_iterator(begin()); }
- const_reverse_iterator crend() const { return rend(); }
-
- /**
- * Erases a node from the list, indicated by an iterator.
- * @param it The iterator that points to the node to erase.
- */
- iterator erase(iterator it)
- {
- remove(it);
- return it;
- }
-
- /**
- * Erases a node from this list.
- * @param node A pointer to the node to erase from this list.
- */
- iterator erase(pointer node)
- {
- return erase(iterator(node));
- }
-
- /**
- * Erases a node from this list.
- * @param node A reference to the node to erase from this list.
- */
- iterator erase(reference node)
- {
- return erase(iterator(node));
- }
-
- /**
- * Exchanges contents of this list with another list instance.
- * @param other The other list to swap with.
- */
- void swap(intrusive_list& other) noexcept
- {
- root.swap(other.root);
- }
-
-private:
- std::shared_ptr<intrusive_list_node<T>> root = std::make_shared<intrusive_list_sentinel<T>>();
-};
-
-/**
- * Exchanges contents of an intrusive list with another intrusive list.
- * @tparam T The type of data being kept track of by the lists.
- * @param lhs The first list.
- * @param rhs The second list.
- */
-template<typename T>
-void swap(intrusive_list<T>& lhs, intrusive_list<T>& rhs) noexcept
-{
- lhs.swap(rhs);
-}
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/hash/xmrx.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/hash/xmrx.hpp
deleted file mode 100644
index 3ba38cae..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/hash/xmrx.hpp
+++ /dev/null
@@ -1,32 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-// Reference: http://jonkagstrom.com/bit-mixer-construction/
-
-#pragma once
-
-#include <functional>
-
-#include "mcl/bit/rotate.hpp"
-#include "mcl/stdint.hpp"
-
-namespace mcl::hash {
-
-constexpr size_t xmrx(size_t x)
-{
- x ^= x >> 32;
- x *= 0xff51afd7ed558ccd;
- x ^= bit::rotate_right(x, 47) ^ bit::rotate_right(x, 23);
- return x;
-}
-
-template<typename T>
-struct avalanche_xmrx {
- size_t operator()(const T& value)
- {
- return xmrx(std::hash<T>{}(value));
- }
-};
-
-} // namespace mcl::hash
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/hint/assume.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/hint/assume.hpp
deleted file mode 100644
index ac1873f8..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/hint/assume.hpp
+++ /dev/null
@@ -1,13 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#if defined(__clang) || defined(__GNUC__)
-# define ASSUME(expr) [&] { if (!(expr)) __builtin_unreachable(); }()
-#elif defined(_MSC_VER)
-# define ASSUME(expr) __assume(expr)
-#else
-# define ASSUME(expr)
-#endif
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/iterator/reverse.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/iterator/reverse.hpp
deleted file mode 100644
index d7bdab63..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/iterator/reverse.hpp
+++ /dev/null
@@ -1,37 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <iterator>
-
-namespace mcl::iterator {
-namespace detail {
-
-template<typename T>
-struct reverse_adapter {
- T& iterable;
-
- constexpr auto begin()
- {
- using namespace std;
- return rbegin(iterable);
- }
-
- constexpr auto end()
- {
- using namespace std;
- return rend(iterable);
- }
-};
-
-} // namespace detail
-
-template<typename T>
-constexpr detail::reverse_adapter<T> reverse(T&& iterable)
-{
- return detail::reverse_adapter<T>{iterable};
-}
-
-} // namespace mcl::iterator
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/macro/anonymous_variable.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/macro/anonymous_variable.hpp
deleted file mode 100644
index 09cd48a2..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/macro/anonymous_variable.hpp
+++ /dev/null
@@ -1,13 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <mcl/macro/concatenate_tokens.hpp>
-
-#ifdef __COUNTER__
-# define ANONYMOUS_VARIABLE(str) CONCATENATE_TOKENS(str, __COUNTER__)
-#else
-# define ANONYMOUS_VARIABLE(str) CONCATENATE_TOKENS(str, __LINE__)
-#endif
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/macro/architecture.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/macro/architecture.hpp
deleted file mode 100644
index 3251d829..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/macro/architecture.hpp
+++ /dev/null
@@ -1,40 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#if defined(__ARM64__) || defined(__aarch64__) || defined(_M_ARM64)
-# define MCL_ARCHITECTURE arm64
-# define MCL_ARCHITECTURE_ARM64 1
-#elif defined(__arm__) || defined(__TARGET_ARCH_ARM) || defined(_M_ARM)
-# define MCL_ARCHITECTURE arm32
-# define MCL_ARCHITECTURE_ARM32 1
-#elif defined(__x86_64) || defined(__x86_64__) || defined(__amd64) || defined(_M_X64)
-# define MCL_ARCHITECTURE x86_64
-# define MCL_ARCHITECTURE_X86_64 1
-#elif defined(__i386) || defined(__i386__) || defined(_M_IX86)
-# define MCL_ARCHITECTURE x86_32
-# define MCL_ARCHITECTURE_X86_32 1
-#elif defined(__ia64) || defined(__ia64__) || defined(_M_IA64)
-# define MCL_ARCHITECTURE ia64
-# define MCL_ARCHITECTURE_IA64 1
-#elif defined(__mips) || defined(__mips__) || defined(_M_MRX000)
-# define MCL_ARCHITECTURE mips
-# define MCL_ARCHITECTURE_MIPS 1
-#elif defined(__ppc64__) || defined(__powerpc64__)
-# define MCL_ARCHITECTURE ppc64
-# define MCL_ARCHITECTURE_PPC64 1
-#elif defined(__ppc__) || defined(__ppc) || defined(__powerpc__) || defined(_ARCH_COM) || defined(_ARCH_PWR) || defined(_ARCH_PPC) || defined(_M_MPPC) || defined(_M_PPC)
-# define MCL_ARCHITECTURE ppc32
-# define MCL_ARCHITECTURE_PPC32 1
-#elif defined(__riscv)
-# define MCL_ARCHITECTURE riscv
-# define MCL_ARCHITECTURE_RISCV 1
-#elif defined(__EMSCRIPTEN__)
-# define MCL_ARCHITECTURE wasm
-# define MCL_ARCHITECTURE_WASM 1
-#else
-# define MCL_ARCHITECTURE generic
-# define MCL_ARCHITECTURE_GENERIC 1
-#endif
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/macro/concatenate_tokens.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/macro/concatenate_tokens.hpp
deleted file mode 100644
index 3555b23c..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/macro/concatenate_tokens.hpp
+++ /dev/null
@@ -1,8 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#define CONCATENATE_TOKENS(x, y) CONCATENATE_TOKENS_IMPL(x, y)
-#define CONCATENATE_TOKENS_IMPL(x, y) x##y
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/memory/overaligned_unique_ptr.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/memory/overaligned_unique_ptr.hpp
deleted file mode 100644
index 1e645efe..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/memory/overaligned_unique_ptr.hpp
+++ /dev/null
@@ -1,46 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <type_traits>
-
-#ifdef _MSC_VER
-# include <malloc.h>
-#else
-# include <cstdlib>
-#endif
-
-namespace mcl {
-
-namespace detail {
-struct aligned_alloc_deleter {
- template<typename T>
- void operator()(T* p) const
- {
-#ifdef _MSC_VER
- _aligned_free(const_cast<std::remove_const_t<T>*>(p));
-#else
- std::free(const_cast<std::remove_const_t<T>*>(p));
-#endif
- }
-};
-} // namespace detail
-
-template<size_t, typename T>
-using overaligned_unique_ptr = std::unique_ptr<T, detail::aligned_alloc_deleter>;
-
-template<size_t alignment, typename T>
-auto make_overaligned_unique_ptr_array(size_t element_count)
-{
- const size_t min_size = element_count * sizeof(T);
- const size_t alloc_size = (min_size + alignment - 1) / alignment * alignment;
-#ifdef _MSC_VER
- return overaligned_unique_ptr<alignment, T[]>{static_cast<T*>(_aligned_malloc(alloc_size, alignment))};
-#else
- return overaligned_unique_ptr<alignment, T[]>{static_cast<T*>(std::aligned_alloc(alignment, alloc_size))};
-#endif
-}
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metafunction/apply.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metafunction/apply.hpp
deleted file mode 100644
index e2c17141..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metafunction/apply.hpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<template<class...> class F, class L>
-struct apply_impl;
-
-template<template<class...> class F, template<class...> class LT, class... Es>
-struct apply_impl<F, LT<Es...>> {
- using type = F<Es...>;
-};
-
-} // namespace detail
-
-/// Invokes metafunction F where the arguments are all the members of list L
-template<template<class...> class F, class L>
-using apply = typename detail::apply_impl<F, L>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metafunction/bind.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metafunction/bind.hpp
deleted file mode 100644
index 2701fc95..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metafunction/bind.hpp
+++ /dev/null
@@ -1,18 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-/// Binds the first sizeof...(A) arguments of metafunction F with arguments A
-template<template<class...> class F, class... As>
-struct bind {
- template<class... Rs>
- using type = F<As..., Rs...>;
-};
-
-} // namespace mcl::mp
-
-#define MCL_MP_BIND(...) ::mcl::mp::bind<__VA_ARGS__>::template type
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metafunction/identity.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metafunction/identity.hpp
deleted file mode 100644
index 737f9ce1..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metafunction/identity.hpp
+++ /dev/null
@@ -1,22 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class T>
-struct identity_impl {
- using type = T;
-};
-
-} // namespace detail
-
-/// Identity metafunction
-template<class T>
-using identity = typename identity_impl<T>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metafunction/map.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metafunction/map.hpp
deleted file mode 100644
index 13fcaecd..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metafunction/map.hpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<template<class...> class F, class L>
-struct map_impl;
-
-template<template<class...> class F, template<class...> class LT, class... Es>
-struct map_impl<F, LT<Es...>> {
- using type = LT<F<Es>...>;
-};
-
-} // namespace detail
-
-/// Applies each element of list L to metafunction F
-template<template<class...> class F, class L>
-using map = typename detail::map_impl<F, L>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/bit_and.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/bit_and.hpp
deleted file mode 100644
index e4a98e21..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/bit_and.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/lift_value.hpp"
-
-namespace mcl::mp {
-
-/// Bitwise and of metavalues Vs
-template<class... Vs>
-using bit_and = lift_value<(Vs::value & ...)>;
-
-/// Bitwise and of metavalues Vs
-template<class... Vs>
-constexpr auto bit_and_v = (Vs::value & ...);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/bit_not.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/bit_not.hpp
deleted file mode 100644
index 5d31956d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/bit_not.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/lift_value.hpp"
-
-namespace mcl::mp {
-
-/// Bitwise not of metavalue V
-template<class V>
-using bit_not = lift_value<~V::value>;
-
-/// Bitwise not of metavalue V
-template<class V>
-constexpr auto bit_not_v = ~V::value;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/bit_or.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/bit_or.hpp
deleted file mode 100644
index 812edfb2..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/bit_or.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/lift_value.hpp"
-
-namespace mcl::mp {
-
-/// Bitwise or of metavalues Vs
-template<class... Vs>
-using bit_or = lift_value<(Vs::value | ...)>;
-
-/// Bitwise or of metavalues Vs
-template<class... Vs>
-constexpr auto bit_or_v = (Vs::value | ...);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/bit_xor.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/bit_xor.hpp
deleted file mode 100644
index 9c543d41..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/bit_xor.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/lift_value.hpp"
-
-namespace mcl::mp {
-
-/// Bitwise xor of metavalues Vs
-template<class... Vs>
-using bit_xor = lift_value<(Vs::value ^ ...)>;
-
-/// Bitwise xor of metavalues Vs
-template<class... Vs>
-constexpr auto bit_xor_v = (Vs::value ^ ...);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/conjunction.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/conjunction.hpp
deleted file mode 100644
index 71a8f67a..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/conjunction.hpp
+++ /dev/null
@@ -1,42 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/logic_if.hpp"
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class...>
-struct conjunction_impl;
-
-template<>
-struct conjunction_impl<> {
- using type = false_type;
-};
-
-template<class V>
-struct conjunction_impl<V> {
- using type = V;
-};
-
-template<class V1, class... Vs>
-struct conjunction_impl<V1, Vs...> {
- using type = logic_if<V1, typename conjunction_impl<Vs...>::type, V1>;
-};
-
-} // namespace detail
-
-/// Conjunction of metavalues Vs with short-circuiting and type preservation.
-template<class... Vs>
-using conjunction = typename detail::conjunction_impl<Vs...>::type;
-
-/// Conjunction of metavalues Vs with short-circuiting and type preservation.
-template<class... Vs>
-constexpr auto conjunction_v = conjunction<Vs...>::value;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/disjunction.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/disjunction.hpp
deleted file mode 100644
index 679a44f4..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/disjunction.hpp
+++ /dev/null
@@ -1,42 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/logic_if.hpp"
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class...>
-struct disjunction_impl;
-
-template<>
-struct disjunction_impl<> {
- using type = false_type;
-};
-
-template<class V>
-struct disjunction_impl<V> {
- using type = V;
-};
-
-template<class V1, class... Vs>
-struct disjunction_impl<V1, Vs...> {
- using type = logic_if<V1, V1, typename disjunction_impl<Vs...>::type>;
-};
-
-} // namespace detail
-
-/// Disjunction of metavalues Vs with short-circuiting and type preservation.
-template<class... Vs>
-using disjunction = typename detail::disjunction_impl<Vs...>::type;
-
-/// Disjunction of metavalues Vs with short-circuiting and type preservation.
-template<class... Vs>
-constexpr auto disjunction_v = disjunction<Vs...>::value;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/lift_value.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/lift_value.hpp
deleted file mode 100644
index bd5df322..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/lift_value.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <type_traits>
-
-namespace mcl::mp {
-
-/// Lifts a value into a type (a metavalue)
-template<auto V>
-using lift_value = std::integral_constant<decltype(V), V>;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/logic_and.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/logic_and.hpp
deleted file mode 100644
index 81c40a45..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/logic_and.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl::mp {
-
-/// Logical conjunction of metavalues Vs without short-circuiting or type presevation.
-template<class... Vs>
-using logic_and = bool_value<(true && ... && Vs::value)>;
-
-/// Logical conjunction of metavalues Vs without short-circuiting or type presevation.
-template<class... Vs>
-constexpr bool logic_and_v = (true && ... && Vs::value);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/logic_if.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/logic_if.hpp
deleted file mode 100644
index b300d267..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/logic_if.hpp
+++ /dev/null
@@ -1,21 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <type_traits>
-
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl::mp {
-
-/// Conditionally select between types T and F based on boolean metavalue V
-template<class V, class T, class F>
-using logic_if = std::conditional_t<bool(V::value), T, F>;
-
-/// Conditionally select between metavalues T and F based on boolean metavalue V
-template<class V, class TV, class FV>
-constexpr auto logic_if_v = logic_if<V, TV, FV>::value;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/logic_not.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/logic_not.hpp
deleted file mode 100644
index a7a6aee9..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/logic_not.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl::mp {
-
-/// Logical negation of metavalue V.
-template<class V>
-using logic_not = bool_value<!bool(V::value)>;
-
-/// Logical negation of metavalue V.
-template<class V>
-constexpr bool logic_not_v = !bool(V::value);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/logic_or.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/logic_or.hpp
deleted file mode 100644
index 3b46fa57..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/logic_or.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl::mp {
-
-/// Logical disjunction of metavalues Vs without short-circuiting or type presevation.
-template<class... Vs>
-using logic_or = bool_value<(false || ... || Vs::value)>;
-
-/// Logical disjunction of metavalues Vs without short-circuiting or type presevation.
-template<class... Vs>
-constexpr bool logic_or_v = (false || ... || Vs::value);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/product.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/product.hpp
deleted file mode 100644
index d40c0ce3..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/product.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/lift_value.hpp"
-
-namespace mcl::mp {
-
-/// Product of metavalues Vs
-template<class... Vs>
-using product = lift_value<(Vs::value * ...)>;
-
-/// Product of metavalues Vs
-template<class... Vs>
-constexpr auto product_v = (Vs::value * ...);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/sum.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/sum.hpp
deleted file mode 100644
index 7111c02c..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/sum.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/lift_value.hpp"
-
-namespace mcl::mp {
-
-/// Sum of metavalues Vs
-template<class... Vs>
-using sum = lift_value<(Vs::value + ...)>;
-
-/// Sum of metavalues Vs
-template<class... Vs>
-constexpr auto sum_v = (Vs::value + ...);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/value.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/value.hpp
deleted file mode 100644
index 693169d6..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/value.hpp
+++ /dev/null
@@ -1,30 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstddef>
-#include <type_traits>
-
-namespace mcl::mp {
-
-/// A metavalue (of type VT and value v).
-template<class VT, VT v>
-using value = std::integral_constant<VT, v>;
-
-/// A metavalue of type size_t (and value v).
-template<size_t v>
-using size_value = value<size_t, v>;
-
-/// A metavalue of type bool (and value v). (Aliases to std::bool_constant.)
-template<bool v>
-using bool_value = value<bool, v>;
-
-/// true metavalue (Aliases to std::true_type).
-using true_type = bool_value<true>;
-
-/// false metavalue (Aliases to std::false_type).
-using false_type = bool_value<false>;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/value_cast.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/value_cast.hpp
deleted file mode 100644
index 3b88ed7d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/value_cast.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <type_traits>
-
-namespace mcl::mp {
-
-/// Casts a metavalue from one type to another
-template<class T, class V>
-using value_cast = std::integral_constant<T, static_cast<T>(V::value)>;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/value_equal.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/value_equal.hpp
deleted file mode 100644
index a10e07f0..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/metavalue/value_equal.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <type_traits>
-
-namespace mcl::mp {
-
-/// Do two metavalues contain the same value?
-template<class V1, class V2>
-using value_equal = std::bool_constant<V1::value == V2::value>;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/misc/argument_count.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/misc/argument_count.hpp
deleted file mode 100644
index 5a30f498..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/misc/argument_count.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/lift_value.hpp"
-
-namespace mcl::mp {
-
-/// Metafunction that returns the number of arguments it has
-template<typename... Ts>
-using argument_count = lift_value<sizeof...(Ts)>;
-
-/// Metafunction that returns the number of arguments it has
-template<typename... Ts>
-constexpr auto argument_count_v = sizeof...(Ts);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/append.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/append.hpp
deleted file mode 100644
index 838b9c94..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/append.hpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class... L>
-struct append_impl;
-
-template<template<class...> class LT, class... E1s, class... E2s>
-struct append_impl<LT<E1s...>, E2s...> {
- using type = LT<E1s..., E2s...>;
-};
-
-} // namespace detail
-
-/// Append items E to list L
-template<class L, class... Es>
-using append = typename detail::append_impl<L, Es...>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/cartesian_product.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/cartesian_product.hpp
deleted file mode 100644
index 1b378c6f..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/cartesian_product.hpp
+++ /dev/null
@@ -1,47 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metafunction/bind.hpp"
-#include "mcl/mp/metafunction/map.hpp"
-#include "mcl/mp/typelist/append.hpp"
-#include "mcl/mp/typelist/concat.hpp"
-#include "mcl/mp/typelist/list.hpp"
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class... Ls>
-struct cartesian_product_impl;
-
-template<class RL>
-struct cartesian_product_impl<RL> {
- using type = RL;
-};
-
-template<template<class...> class LT, class... REs, class... E2s>
-struct cartesian_product_impl<LT<REs...>, LT<E2s...>> {
- using type = concat<
- map<MCL_MP_BIND(append, REs), list<E2s...>>...>;
-};
-
-template<class RL, class L2, class L3, class... Ls>
-struct cartesian_product_impl<RL, L2, L3, Ls...> {
- using type = typename cartesian_product_impl<
- typename cartesian_product_impl<RL, L2>::type,
- L3,
- Ls...>::type;
-};
-
-} // namespace detail
-
-/// Produces the cartesian product of a set of lists
-/// For example:
-/// cartesian_product<list<A, B>, list<D, E>> == list<list<A, D>, list<A, E>, list<B, D>, list<B, E>
-template<typename L1, typename... Ls>
-using cartesian_product = typename detail::cartesian_product_impl<map<list, L1>, Ls...>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/concat.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/concat.hpp
deleted file mode 100644
index cfdefbc1..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/concat.hpp
+++ /dev/null
@@ -1,94 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/typelist/list.hpp"
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class... Ls>
-struct concat_impl;
-
-template<>
-struct concat_impl<> {
- using type = list<>;
-};
-
-template<class L>
-struct concat_impl<L> {
- using type = L;
-};
-
-template<template<class...> class LT, class... E1s, class... E2s, class... Ls>
-struct concat_impl<LT<E1s...>, LT<E2s...>, Ls...> {
- using type = typename concat_impl<LT<E1s..., E2s...>, Ls...>::type;
-};
-
-template<template<class...> class LT,
- class... E1s,
- class... E2s,
- class... E3s,
- class... E4s,
- class... E5s,
- class... E6s,
- class... E7s,
- class... E8s,
- class... E9s,
- class... E10s,
- class... E11s,
- class... E12s,
- class... E13s,
- class... E14s,
- class... E15s,
- class... E16s,
- class... Ls>
-struct concat_impl<
- LT<E1s...>,
- LT<E2s...>,
- LT<E3s...>,
- LT<E4s...>,
- LT<E5s...>,
- LT<E6s...>,
- LT<E7s...>,
- LT<E8s...>,
- LT<E9s...>,
- LT<E10s...>,
- LT<E11s...>,
- LT<E12s...>,
- LT<E13s...>,
- LT<E14s...>,
- LT<E15s...>,
- LT<E16s...>,
- Ls...> {
- using type = typename concat_impl<
- LT<
- E1s...,
- E2s...,
- E3s...,
- E4s...,
- E5s...,
- E6s...,
- E7s...,
- E8s...,
- E9s...,
- E10s...,
- E11s...,
- E12s...,
- E13s...,
- E14s...,
- E15s...,
- E16s...>,
- Ls...>::type;
-};
-
-} // namespace detail
-
-/// Concatenate lists together
-template<class... Ls>
-using concat = typename detail::concat_impl<Ls...>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/contains.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/contains.hpp
deleted file mode 100644
index 1b7a0ed6..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/contains.hpp
+++ /dev/null
@@ -1,23 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl::mp {
-
-/// Does list L contain an element which is same as type T?
-template<class L, class T>
-struct contains;
-
-template<template<class...> class LT, class... Ts, class T>
-struct contains<LT<Ts...>, T>
- : bool_value<(false || ... || std::is_same_v<Ts, T>)> {};
-
-/// Does list L contain an element which is same as type T?
-template<class L, class T>
-constexpr bool contains_v = contains<L, T>::value;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/drop.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/drop.hpp
deleted file mode 100644
index 9c7be44b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/drop.hpp
+++ /dev/null
@@ -1,33 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstddef>
-#include <type_traits>
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<size_t N, class L>
-struct drop_impl;
-
-template<size_t N, template<class...> class LT>
-struct drop_impl<N, LT<>> {
- using type = LT<>;
-};
-
-template<size_t N, template<class...> class LT, class E1, class... Es>
-struct drop_impl<N, LT<E1, Es...>> {
- using type = std::conditional_t<N == 0, LT<E1, Es...>, typename drop_impl<N - 1, LT<Es...>>::type>;
-};
-
-} // namespace detail
-
-/// Drops the first N elements of list L
-template<std::size_t N, class L>
-using drop = typename detail::drop_impl<N, L>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/get.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/get.hpp
deleted file mode 100644
index a2ec7461..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/get.hpp
+++ /dev/null
@@ -1,18 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstddef>
-#include <tuple>
-
-#include "mcl/mp/metafunction/apply.hpp"
-
-namespace mcl::mp {
-
-/// Get element I from list L
-template<std::size_t I, class L>
-using get = std::tuple_element_t<I, apply<std::tuple, L>>;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/head.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/head.hpp
deleted file mode 100644
index 63062825..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/head.hpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class L>
-struct head_impl;
-
-template<template<class...> class LT, class E1, class... Es>
-struct head_impl<LT<E1, Es...>> {
- using type = E1;
-};
-
-} // namespace detail
-
-/// Gets the tail/cdr/all-but-the-first-element of list L
-template<class L>
-using head = typename detail::head_impl<L>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/length.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/length.hpp
deleted file mode 100644
index d5949604..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/length.hpp
+++ /dev/null
@@ -1,20 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metafunction/apply.hpp"
-#include "mcl/mp/misc/argument_count.hpp"
-
-namespace mcl::mp {
-
-/// Length of list L
-template<class L>
-using length = apply<argument_count, L>;
-
-/// Length of list L
-template<class L>
-constexpr auto length_v = length<L>::value;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/lift_sequence.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/lift_sequence.hpp
deleted file mode 100644
index ba2617b8..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/lift_sequence.hpp
+++ /dev/null
@@ -1,29 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <type_traits>
-
-#include "mcl/mp/typelist/list.hpp"
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class VL>
-struct lift_sequence_impl;
-
-template<class T, template<class, T...> class VLT, T... values>
-struct lift_sequence_impl<VLT<T, values...>> {
- using type = list<std::integral_constant<T, values>...>;
-};
-
-} // namespace detail
-
-/// Lifts values in value list VL to create a type list.
-template<class VL>
-using lift_sequence = typename detail::lift_sequence_impl<VL>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/list.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/list.hpp
deleted file mode 100644
index 48348ec7..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/list.hpp
+++ /dev/null
@@ -1,13 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-/// Contains a list of types
-template<class... E>
-struct list {};
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/lower_to_tuple.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/lower_to_tuple.hpp
deleted file mode 100644
index a9007f3b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/lower_to_tuple.hpp
+++ /dev/null
@@ -1,24 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <tuple>
-
-namespace mcl::mp {
-
-/// Converts a list of metavalues to a tuple.
-template<class L>
-struct lower_to_tuple;
-
-template<template<class...> class LT, class... Es>
-struct lower_to_tuple<LT<Es...>> {
- static constexpr auto value = std::make_tuple(static_cast<typename Es::value_type>(Es::value)...);
-};
-
-/// Converts a list of metavalues to a tuple.
-template<class L>
-constexpr auto lower_to_tuple_v = lower_to_tuple<L>::value;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/prepend.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/prepend.hpp
deleted file mode 100644
index df9aedd8..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/prepend.hpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class... L>
-struct prepend_impl;
-
-template<template<class...> class LT, class... E1s, class... E2s>
-struct prepend_impl<LT<E1s...>, E2s...> {
- using type = LT<E2s..., E1s...>;
-};
-
-} // namespace detail
-
-/// Prepend items E to list L
-template<class L, class... Es>
-using prepend = typename detail::prepend_impl<L, Es...>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/tail.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/tail.hpp
deleted file mode 100644
index 54f14c12..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/mp/typelist/tail.hpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class L>
-struct tail_impl;
-
-template<template<class...> class LT, class E1, class... Es>
-struct tail_impl<LT<E1, Es...>> {
- using type = LT<Es...>;
-};
-
-} // namespace detail
-
-/// Gets the first type of list L
-template<class L>
-using tail = typename detail::tail_impl<L>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/scope_exit.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/scope_exit.hpp
deleted file mode 100644
index d3772e90..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/scope_exit.hpp
+++ /dev/null
@@ -1,94 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <exception>
-#include <type_traits>
-#include <utility>
-
-#include <mcl/macro/anonymous_variable.hpp>
-
-namespace mcl::detail {
-
-struct scope_exit_tag {};
-struct scope_fail_tag {};
-struct scope_success_tag {};
-
-template<typename Function>
-class scope_exit final {
-public:
- explicit scope_exit(Function&& fn)
- : function(std::move(fn)) {}
-
- ~scope_exit() noexcept
- {
- function();
- }
-
-private:
- Function function;
-};
-
-template<typename Function>
-class scope_fail final {
-public:
- explicit scope_fail(Function&& fn)
- : function(std::move(fn)), exception_count(std::uncaught_exceptions()) {}
-
- ~scope_fail() noexcept
- {
- if (std::uncaught_exceptions() > exception_count) {
- function();
- }
- }
-
-private:
- Function function;
- int exception_count;
-};
-
-template<typename Function>
-class scope_success final {
-public:
- explicit scope_success(Function&& fn)
- : function(std::move(fn)), exception_count(std::uncaught_exceptions()) {}
-
- ~scope_success()
- {
- if (std::uncaught_exceptions() <= exception_count) {
- function();
- }
- }
-
-private:
- Function function;
- int exception_count;
-};
-
-// We use ->* here as it has the highest precedence of the operators we can use.
-
-template<typename Function>
-auto operator->*(scope_exit_tag, Function&& function)
-{
- return scope_exit<std::decay_t<Function>>{std::forward<Function>(function)};
-}
-
-template<typename Function>
-auto operator->*(scope_fail_tag, Function&& function)
-{
- return scope_fail<std::decay_t<Function>>{std::forward<Function>(function)};
-}
-
-template<typename Function>
-auto operator->*(scope_success_tag, Function&& function)
-{
- return scope_success<std::decay_t<Function>>{std::forward<Function>(function)};
-}
-
-} // namespace mcl::detail
-
-#define SCOPE_EXIT auto ANONYMOUS_VARIABLE(MCL_SCOPE_EXIT_VAR_) = ::mcl::detail::scope_exit_tag{}->*[&]() noexcept
-#define SCOPE_FAIL auto ANONYMOUS_VARIABLE(MCL_SCOPE_FAIL_VAR_) = ::mcl::detail::scope_fail_tag{}->*[&]() noexcept
-#define SCOPE_SUCCESS auto ANONYMOUS_VARIABLE(MCL_SCOPE_FAIL_VAR_) = ::mcl::detail::scope_success_tag{}->*[&]()
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/stdint.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/stdint.hpp
deleted file mode 100644
index 37b82a2b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/stdint.hpp
+++ /dev/null
@@ -1,27 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstddef>
-#include <cstdint>
-
-using u8 = std::uint8_t;
-using u16 = std::uint16_t;
-using u32 = std::uint32_t;
-using u64 = std::uint64_t;
-using uptr = std::uintptr_t;
-
-using s8 = std::int8_t;
-using s16 = std::int16_t;
-using s32 = std::int32_t;
-using s64 = std::int64_t;
-using sptr = std::intptr_t;
-
-using size_t = std::size_t;
-
-using f32 = float;
-using f64 = double;
-static_assert(sizeof(f32) == sizeof(u32), "f32 must be 32 bits wide");
-static_assert(sizeof(f64) == sizeof(u64), "f64 must be 64 bits wide");
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/type_traits/function_info.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/type_traits/function_info.hpp
deleted file mode 100644
index 2ac804ae..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/type_traits/function_info.hpp
+++ /dev/null
@@ -1,70 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstddef>
-#include <tuple>
-
-#include "mcl/mp/typelist/list.hpp"
-
-namespace mcl {
-
-template<class F>
-struct function_info : function_info<decltype(&F::operator())> {};
-
-template<class R, class... As>
-struct function_info<R(As...)> {
- using return_type = R;
- using parameter_list = mp::list<As...>;
- static constexpr std::size_t parameter_count = sizeof...(As);
-
- using equivalent_function_type = R(As...);
-
- template<std::size_t I>
- struct parameter {
- static_assert(I < parameter_count, "Non-existent parameter");
- using type = std::tuple_element_t<I, std::tuple<As...>>;
- };
-};
-
-template<class R, class... As>
-struct function_info<R (*)(As...)> : function_info<R(As...)> {};
-
-template<class C, class R, class... As>
-struct function_info<R (C::*)(As...)> : function_info<R(As...)> {
- using class_type = C;
-
- using equivalent_function_type_with_class = R(C*, As...);
-};
-
-template<class C, class R, class... As>
-struct function_info<R (C::*)(As...) const> : function_info<R(As...)> {
- using class_type = C;
-
- using equivalent_function_type_with_class = R(C*, As...);
-};
-
-template<class F>
-constexpr size_t parameter_count_v = function_info<F>::parameter_count;
-
-template<class F>
-using parameter_list = typename function_info<F>::parameter_list;
-
-template<class F, std::size_t I>
-using get_parameter = typename function_info<F>::template parameter<I>::type;
-
-template<class F>
-using equivalent_function_type = typename function_info<F>::equivalent_function_type;
-
-template<class F>
-using equivalent_function_type_with_class = typename function_info<F>::equivalent_function_type_with_class;
-
-template<class F>
-using return_type = typename function_info<F>::return_type;
-
-template<class F>
-using class_type = typename function_info<F>::class_type;
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/type_traits/integer_of_size.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/type_traits/integer_of_size.hpp
deleted file mode 100644
index e37995ea..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/type_traits/integer_of_size.hpp
+++ /dev/null
@@ -1,48 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/stdint.hpp"
-
-namespace mcl {
-
-namespace detail {
-
-template<size_t size>
-struct integer_of_size_impl {};
-
-template<>
-struct integer_of_size_impl<8> {
- using unsigned_type = u8;
- using signed_type = s8;
-};
-
-template<>
-struct integer_of_size_impl<16> {
- using unsigned_type = u16;
- using signed_type = s16;
-};
-
-template<>
-struct integer_of_size_impl<32> {
- using unsigned_type = u32;
- using signed_type = s32;
-};
-
-template<>
-struct integer_of_size_impl<64> {
- using unsigned_type = u64;
- using signed_type = s64;
-};
-
-} // namespace detail
-
-template<size_t size>
-using unsigned_integer_of_size = typename detail::integer_of_size_impl<size>::unsigned_type;
-
-template<size_t size>
-using signed_integer_of_size = typename detail::integer_of_size_impl<size>::signed_type;
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/type_traits/is_instance_of_template.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/type_traits/is_instance_of_template.hpp
deleted file mode 100644
index 8a7fc33a..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/Headers/mcl/type_traits/is_instance_of_template.hpp
+++ /dev/null
@@ -1,22 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl {
-
-/// Is type T an instance of template class C?
-template<template<class...> class, class>
-struct is_instance_of_template : mp::false_type {};
-
-template<template<class...> class C, class... As>
-struct is_instance_of_template<C, C<As...>> : mp::true_type {};
-
-/// Is type T an instance of template class C?
-template<template<class...> class C, class T>
-constexpr bool is_instance_of_template_v = is_instance_of_template<C, T>::value;
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/libmcl.a b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/libmcl.a
deleted file mode 100644
index 70d5fd18..00000000
Binary files a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64-simulator/libmcl.a and /dev/null differ
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/assert.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/assert.hpp
deleted file mode 100644
index f77dbe71..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/assert.hpp
+++ /dev/null
@@ -1,62 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <stdexcept>
-#include <type_traits>
-
-#include <fmt/format.h>
-
-#include "mcl/hint/assume.hpp"
-
-namespace mcl::detail {
-
-[[noreturn]] void assert_terminate_impl(const char* expr_str, fmt::string_view msg, fmt::format_args args);
-
-template<typename... Ts>
-[[noreturn]] void assert_terminate(const char* expr_str, fmt::string_view msg, Ts... args)
-{
- assert_terminate_impl(expr_str, msg, fmt::make_format_args(args...));
-}
-
-} // namespace mcl::detail
-
-#define UNREACHABLE() ASSERT_FALSE("Unreachable code!")
-
-#define ASSERT(expr) \
- [&] { \
- if (std::is_constant_evaluated()) { \
- if (!(expr)) { \
- throw std::logic_error{"ASSERT failed at compile time"}; \
- } \
- } else { \
- if (!(expr)) [[unlikely]] { \
- ::mcl::detail::assert_terminate(#expr, "(none)"); \
- } \
- } \
- }()
-
-#define ASSERT_MSG(expr, ...) \
- [&] { \
- if (std::is_constant_evaluated()) { \
- if (!(expr)) { \
- throw std::logic_error{"ASSERT_MSG failed at compile time"}; \
- } \
- } else { \
- if (!(expr)) [[unlikely]] { \
- ::mcl::detail::assert_terminate(#expr, __VA_ARGS__); \
- } \
- } \
- }()
-
-#define ASSERT_FALSE(...) ::mcl::detail::assert_terminate("false", __VA_ARGS__)
-
-#if defined(NDEBUG) || defined(MCL_IGNORE_ASSERTS)
-# define DEBUG_ASSERT(expr) ASSUME(expr)
-# define DEBUG_ASSERT_MSG(expr, ...) ASSUME(expr)
-#else
-# define DEBUG_ASSERT(expr) ASSERT(expr)
-# define DEBUG_ASSERT_MSG(expr, ...) ASSERT_MSG(expr, __VA_ARGS__)
-#endif
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/bit/bit_count.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/bit/bit_count.hpp
deleted file mode 100644
index 104af9c8..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/bit/bit_count.hpp
+++ /dev/null
@@ -1,58 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <bitset>
-
-#include "mcl/bitsizeof.hpp"
-#include "mcl/concepts/bit_integral.hpp"
-#include "mcl/stdint.hpp"
-
-namespace mcl::bit {
-
-template<BitIntegral T>
-inline size_t count_ones(T x)
-{
- return std::bitset<bitsizeof<T>>(x).count();
-}
-
-template<BitIntegral T>
-constexpr size_t count_leading_zeros(T x)
-{
- size_t result = bitsizeof<T>;
- while (x != 0) {
- x >>= 1;
- result--;
- }
- return result;
-}
-
-template<BitIntegral T>
-constexpr int highest_set_bit(T x)
-{
- int result = -1;
- while (x != 0) {
- x >>= 1;
- result++;
- }
- return result;
-}
-
-template<BitIntegral T>
-constexpr size_t lowest_set_bit(T x)
-{
- if (x == 0) {
- return bitsizeof<T>;
- }
-
- size_t result = 0;
- while ((x & 1) == 0) {
- x >>= 1;
- result++;
- }
- return result;
-}
-
-} // namespace mcl::bit
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/bit/bit_field.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/bit/bit_field.hpp
deleted file mode 100644
index 91e27498..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/bit/bit_field.hpp
+++ /dev/null
@@ -1,221 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/assert.hpp"
-#include "mcl/bitsizeof.hpp"
-#include "mcl/concepts/bit_integral.hpp"
-#include "mcl/stdint.hpp"
-
-namespace mcl::bit {
-
-/// Create a mask with `count` number of one bits.
-template<size_t count, BitIntegral T>
-constexpr T ones()
-{
- static_assert(count <= bitsizeof<T>, "count larger than bitsize of T");
-
- if constexpr (count == 0) {
- return 0;
- } else {
- return static_cast<T>(~static_cast<T>(0)) >> (bitsizeof<T> - count);
- }
-}
-
-/// Create a mask with `count` number of one bits.
-template<BitIntegral T>
-constexpr T ones(size_t count)
-{
- ASSERT_MSG(count <= bitsizeof<T>, "count larger than bitsize of T");
-
- if (count == 0) {
- return 0;
- }
- return static_cast<T>(~static_cast<T>(0)) >> (bitsizeof<T> - count);
-}
-
-/// Create a mask of type T for bits [begin_bit, end_bit] inclusive.
-template<size_t begin_bit, size_t end_bit, BitIntegral T>
-constexpr T mask()
-{
- static_assert(begin_bit <= end_bit, "invalid bit range (position of beginning bit cannot be greater than that of end bit)");
- static_assert(begin_bit < bitsizeof<T>, "begin_bit must be smaller than size of T");
- static_assert(end_bit < bitsizeof<T>, "end_bit must be smaller than size of T");
-
- return ones<end_bit - begin_bit + 1, T>() << begin_bit;
-}
-
-/// Create a mask of type T for bits [begin_bit, end_bit] inclusive.
-template<BitIntegral T>
-constexpr T mask(size_t begin_bit, size_t end_bit)
-{
- ASSERT_MSG(begin_bit <= end_bit, "invalid bit range (position of beginning bit cannot be greater than that of end bit)");
- ASSERT_MSG(begin_bit < bitsizeof<T>, "begin_bit must be smaller than size of T");
- ASSERT_MSG(end_bit < bitsizeof<T>, "end_bit must be smaller than size of T");
-
- return ones<T>(end_bit - begin_bit + 1) << begin_bit;
-}
-
-/// Extract bits [begin_bit, end_bit] inclusive from value of type T.
-template<size_t begin_bit, size_t end_bit, BitIntegral T>
-constexpr T get_bits(T value)
-{
- constexpr T m = mask<begin_bit, end_bit, T>();
- return (value & m) >> begin_bit;
-}
-
-/// Extract bits [begin_bit, end_bit] inclusive from value of type T.
-template<BitIntegral T>
-constexpr T get_bits(size_t begin_bit, size_t end_bit, T value)
-{
- const T m = mask<T>(begin_bit, end_bit);
- return (value & m) >> begin_bit;
-}
-
-/// Clears bits [begin_bit, end_bit] inclusive of value of type T.
-template<size_t begin_bit, size_t end_bit, BitIntegral T>
-constexpr T clear_bits(T value)
-{
- constexpr T m = mask<begin_bit, end_bit, T>();
- return value & ~m;
-}
-
-/// Clears bits [begin_bit, end_bit] inclusive of value of type T.
-template<BitIntegral T>
-constexpr T clear_bits(size_t begin_bit, size_t end_bit, T value)
-{
- const T m = mask<T>(begin_bit, end_bit);
- return value & ~m;
-}
-
-/// Modifies bits [begin_bit, end_bit] inclusive of value of type T.
-template<size_t begin_bit, size_t end_bit, BitIntegral T>
-constexpr T set_bits(T value, T new_bits)
-{
- constexpr T m = mask<begin_bit, end_bit, T>();
- return (value & ~m) | ((new_bits << begin_bit) & m);
-}
-
-/// Modifies bits [begin_bit, end_bit] inclusive of value of type T.
-template<BitIntegral T>
-constexpr T set_bits(size_t begin_bit, size_t end_bit, T value, T new_bits)
-{
- const T m = mask<T>(begin_bit, end_bit);
- return (value & ~m) | ((new_bits << begin_bit) & m);
-}
-
-/// Extract bit at bit_position from value of type T.
-template<size_t bit_position, BitIntegral T>
-constexpr bool get_bit(T value)
-{
- constexpr T m = mask<bit_position, bit_position, T>();
- return (value & m) != 0;
-}
-
-/// Extract bit at bit_position from value of type T.
-template<BitIntegral T>
-constexpr bool get_bit(size_t bit_position, T value)
-{
- const T m = mask<T>(bit_position, bit_position);
- return (value & m) != 0;
-}
-
-/// Clears bit at bit_position of value of type T.
-template<size_t bit_position, BitIntegral T>
-constexpr T clear_bit(T value)
-{
- constexpr T m = mask<bit_position, bit_position, T>();
- return value & ~m;
-}
-
-/// Clears bit at bit_position of value of type T.
-template<BitIntegral T>
-constexpr T clear_bit(size_t bit_position, T value)
-{
- const T m = mask<T>(bit_position, bit_position);
- return value & ~m;
-}
-
-/// Modifies bit at bit_position of value of type T.
-template<size_t bit_position, BitIntegral T>
-constexpr T set_bit(T value, bool new_bit)
-{
- constexpr T m = mask<bit_position, bit_position, T>();
- return (value & ~m) | (new_bit ? m : static_cast<T>(0));
-}
-
-/// Modifies bit at bit_position of value of type T.
-template<BitIntegral T>
-constexpr T set_bit(size_t bit_position, T value, bool new_bit)
-{
- const T m = mask<T>(bit_position, bit_position);
- return (value & ~m) | (new_bit ? m : static_cast<T>(0));
-}
-
-/// Sign-extends a value that has bit_count bits to the full bitwidth of type T.
-template<size_t bit_count, BitIntegral T>
-constexpr T sign_extend(T value)
-{
- static_assert(bit_count != 0, "cannot sign-extend zero-sized value");
-
- using S = std::make_signed_t<T>;
- constexpr size_t shift_amount = bitsizeof<T> - bit_count;
- return static_cast<T>(static_cast<S>(value << shift_amount) >> shift_amount);
-}
-
-/// Sign-extends a value that has bit_count bits to the full bitwidth of type T.
-template<BitIntegral T>
-constexpr T sign_extend(size_t bit_count, T value)
-{
- ASSERT_MSG(bit_count != 0, "cannot sign-extend zero-sized value");
-
- using S = std::make_signed_t<T>;
- const size_t shift_amount = bitsizeof<T> - bit_count;
- return static_cast<T>(static_cast<S>(value << shift_amount) >> shift_amount);
-}
-
-/// Replicate an element across a value of type T.
-template<size_t element_size, BitIntegral T>
-constexpr T replicate_element(T value)
-{
- static_assert(element_size <= bitsizeof<T>, "element_size is too large");
- static_assert(bitsizeof<T> % element_size == 0, "bitsize of T not divisible by element_size");
-
- if constexpr (element_size == bitsizeof<T>) {
- return value;
- } else {
- return replicate_element<element_size * 2, T>(static_cast<T>(value | (value << element_size)));
- }
-}
-
-/// Replicate an element of type U across a value of type T.
-template<BitIntegral U, BitIntegral T>
-constexpr T replicate_element(T value)
-{
- static_assert(bitsizeof<U> <= bitsizeof<T>, "element_size is too large");
-
- return replicate_element<bitsizeof<U>, T>(value);
-}
-
-/// Replicate an element across a value of type T.
-template<BitIntegral T>
-constexpr T replicate_element(size_t element_size, T value)
-{
- ASSERT_MSG(element_size <= bitsizeof<T>, "element_size is too large");
- ASSERT_MSG(bitsizeof<T> % element_size == 0, "bitsize of T not divisible by element_size");
-
- if (element_size == bitsizeof<T>) {
- return value;
- }
- return replicate_element<T>(element_size * 2, static_cast<T>(value | (value << element_size)));
-}
-
-template<BitIntegral T>
-constexpr bool most_significant_bit(T value)
-{
- return get_bit<bitsizeof<T> - 1, T>(value);
-}
-
-} // namespace mcl::bit
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/bit/rotate.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/bit/rotate.hpp
deleted file mode 100644
index cb7e7bdd..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/bit/rotate.hpp
+++ /dev/null
@@ -1,33 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/bitsizeof.hpp"
-#include "mcl/concepts/bit_integral.hpp"
-#include "mcl/stdint.hpp"
-
-namespace mcl::bit {
-
-template<BitIntegral T>
-constexpr T rotate_right(T x, size_t amount)
-{
- amount %= bitsizeof<T>;
- if (amount == 0) {
- return x;
- }
- return static_cast<T>((x >> amount) | (x << (bitsizeof<T> - amount)));
-}
-
-template<BitIntegral T>
-constexpr T rotate_left(T x, size_t amount)
-{
- amount %= bitsizeof<T>;
- if (amount == 0) {
- return x;
- }
- return static_cast<T>((x << amount) | (x >> (bitsizeof<T> - amount)));
-}
-
-} // namespace mcl::bit
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/bit/swap.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/bit/swap.hpp
deleted file mode 100644
index f96b6af3..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/bit/swap.hpp
+++ /dev/null
@@ -1,56 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/concepts/bit_integral.hpp"
-
-namespace mcl::bit {
-
-constexpr u16 swap_bytes_16(u16 value)
-{
- return static_cast<u16>(u32{value} >> 8 | u32{value} << 8);
-}
-
-constexpr u32 swap_bytes_32(u32 value)
-{
- return ((value & 0xff000000u) >> 24)
- | ((value & 0x00ff0000u) >> 8)
- | ((value & 0x0000ff00u) << 8)
- | ((value & 0x000000ffu) << 24);
-}
-
-constexpr u64 swap_bytes_64(u64 value)
-{
- return ((value & 0xff00000000000000ull) >> 56)
- | ((value & 0x00ff000000000000ull) >> 40)
- | ((value & 0x0000ff0000000000ull) >> 24)
- | ((value & 0x000000ff00000000ull) >> 8)
- | ((value & 0x00000000ff000000ull) << 8)
- | ((value & 0x0000000000ff0000ull) << 24)
- | ((value & 0x000000000000ff00ull) << 40)
- | ((value & 0x00000000000000ffull) << 56);
-}
-
-constexpr u32 swap_halves_32(u32 value)
-{
- return ((value & 0xffff0000u) >> 16)
- | ((value & 0x0000ffffu) << 16);
-}
-
-constexpr u64 swap_halves_64(u64 value)
-{
- return ((value & 0xffff000000000000ull) >> 48)
- | ((value & 0x0000ffff00000000ull) >> 16)
- | ((value & 0x00000000ffff0000ull) << 16)
- | ((value & 0x000000000000ffffull) << 48);
-}
-
-constexpr u64 swap_words_64(u64 value)
-{
- return ((value & 0xffffffff00000000ull) >> 32)
- | ((value & 0x00000000ffffffffull) << 32);
-}
-
-} // namespace mcl::bit
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/bit_cast.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/bit_cast.hpp
deleted file mode 100644
index 3eda2657..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/bit_cast.hpp
+++ /dev/null
@@ -1,38 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstring>
-#include <type_traits>
-
-namespace mcl {
-
-/// Reinterpret objects of one type as another by bit-casting between object representations.
-template<class Dest, class Source>
-inline Dest bit_cast(const Source& source) noexcept
-{
- static_assert(sizeof(Dest) == sizeof(Source), "size of destination and source objects must be equal");
- static_assert(std::is_trivially_copyable_v<Dest>, "destination type must be trivially copyable.");
- static_assert(std::is_trivially_copyable_v<Source>, "source type must be trivially copyable");
-
- std::aligned_storage_t<sizeof(Dest), alignof(Dest)> dest;
- std::memcpy(&dest, &source, sizeof(dest));
- return reinterpret_cast<Dest&>(dest);
-}
-
-/// Reinterpret objects of any arbitrary type as another type by bit-casting between object representations.
-/// Note that here we do not verify if source pointed to by source_ptr has enough bytes to read from.
-template<class Dest, class SourcePtr>
-inline Dest bit_cast_pointee(const SourcePtr source_ptr) noexcept
-{
- static_assert(sizeof(SourcePtr) == sizeof(void*), "source pointer must have size of a pointer");
- static_assert(std::is_trivially_copyable_v<Dest>, "destination type must be trivially copyable.");
-
- std::aligned_storage_t<sizeof(Dest), alignof(Dest)> dest;
- std::memcpy(&dest, bit_cast<void*>(source_ptr), sizeof(dest));
- return reinterpret_cast<Dest&>(dest);
-}
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/bitsizeof.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/bitsizeof.hpp
deleted file mode 100644
index 5d28f595..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/bitsizeof.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <climits>
-#include <cstddef>
-
-namespace mcl {
-
-template<typename T>
-constexpr std::size_t bitsizeof = CHAR_BIT * sizeof(T);
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/concepts/bit_integral.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/concepts/bit_integral.hpp
deleted file mode 100644
index caddc059..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/concepts/bit_integral.hpp
+++ /dev/null
@@ -1,16 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/concepts/is_any_of.hpp"
-#include "mcl/stdint.hpp"
-
-namespace mcl {
-
-/// Integral upon which bit operations can be safely performed.
-template<typename T>
-concept BitIntegral = IsAnyOf<T, u8, u16, u32, u64, uptr, size_t>;
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/concepts/is_any_of.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/concepts/is_any_of.hpp
deleted file mode 100644
index 3e6593db..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/concepts/is_any_of.hpp
+++ /dev/null
@@ -1,14 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/concepts/same_as.hpp"
-
-namespace mcl {
-
-template<typename T, typename... U>
-concept IsAnyOf = (SameAs<T, U> || ...);
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/concepts/same_as.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/concepts/same_as.hpp
deleted file mode 100644
index 7aaaa501..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/concepts/same_as.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl {
-
-namespace detail {
-
-template<typename T, typename U>
-concept SameHelper = std::is_same_v<T, U>;
-
-} // namespace detail
-
-template<typename T, typename U>
-concept SameAs = detail::SameHelper<T, U> && detail::SameHelper<U, T>;
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/container/detail/meta_byte.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/container/detail/meta_byte.hpp
deleted file mode 100644
index c3fc8c4e..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/container/detail/meta_byte.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/bitsizeof.hpp"
-#include "mcl/stdint.hpp"
-
-namespace mcl::detail {
-
-/// if MSB is 0, this is a full slot. remaining 7 bits is a partial hash of the key.
-/// if MSB is 1, this is a non-full slot.
-enum class meta_byte : u8 {
- empty = 0xff,
- tombstone = 0x80,
- end_sentinel = 0x88,
-};
-
-inline bool is_full(meta_byte mb)
-{
- return (static_cast<u8>(mb) & 0x80) == 0;
-}
-
-inline meta_byte meta_byte_from_hash(size_t hash)
-{
- return static_cast<meta_byte>(hash >> (bitsizeof<size_t> - 7));
-}
-
-inline size_t group_index_from_hash(size_t hash, size_t group_index_mask)
-{
- return hash & group_index_mask;
-}
-
-} // namespace mcl::detail
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/container/detail/meta_byte_group.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/container/detail/meta_byte_group.hpp
deleted file mode 100644
index 05f9ad1a..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/container/detail/meta_byte_group.hpp
+++ /dev/null
@@ -1,263 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <array>
-#include <bit>
-
-#include "mcl/assert.hpp"
-#include "mcl/container/detail/meta_byte.hpp"
-#include "mcl/macro/architecture.hpp"
-#include "mcl/stdint.hpp"
-
-#if defined(MCL_ARCHITECTURE_ARM64)
-# include <arm_neon.h>
-#elif defined(MCL_ARCHITECTURE_X86_64)
-# include <emmintrin.h>
-
-# include "mcl/bit_cast.hpp"
-#else
-# include <cstring>
-#endif
-
-namespace mcl::detail {
-
-#if defined(MCL_ARCHITECTURE_ARM64)
-
-struct meta_byte_group {
- static constexpr size_t max_group_size{16};
-
- explicit meta_byte_group(meta_byte* ptr)
- : data{vld1q_u8(reinterpret_cast<u8*>(ptr))}
- {}
-
- explicit meta_byte_group(const std::array<meta_byte, 16>& array)
- : data{vld1q_u8(reinterpret_cast<const u8*>(array.data()))}
- {}
-
- uint64x2_t match(meta_byte cmp) const
- {
- return vreinterpretq_u64_u8(vandq_u8(vceqq_u8(data,
- vdupq_n_u8(static_cast<u8>(cmp))),
- vdupq_n_u8(0x80)));
- }
-
- uint64x2_t match_empty_or_tombstone() const
- {
- return vreinterpretq_u64_u8(vandq_u8(data,
- vdupq_n_u8(0x80)));
- }
-
- bool is_any_empty() const
- {
- static_assert(meta_byte::empty == static_cast<meta_byte>(0xff), "empty must be maximal u8 value");
- return vmaxvq_u8(data) == 0xff;
- }
-
- bool is_all_empty_or_tombstone() const
- {
- return vminvq_u8(vandq_u8(data, vdupq_n_u8(0x80))) == 0x80;
- }
-
- meta_byte get(size_t index) const
- {
- return static_cast<meta_byte>(data[index]);
- }
-
- void set(size_t index, meta_byte value)
- {
- data[index] = static_cast<u8>(value);
- }
-
- uint8x16_t data;
-};
-
-# define MCL_HMAP_MATCH_META_BYTE_GROUP(MATCH, ...) \
- { \
- const uint64x2_t match_result{MATCH}; \
- \
- for (u64 match_result_v{match_result[0]}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- \
- for (u64 match_result_v{match_result[1]}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(8 + std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- }
-
-# define MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(MATCH, ...) \
- { \
- const uint64x2_t match_result{MATCH}; \
- \
- for (u64 match_result_v{match_result[0]}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- \
- for (u64 match_result_v{match_result[1] & 0x00ffffffffffffff}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(8 + std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- }
-
-#elif defined(MCL_ARCHITECTURE_X86_64)
-
-struct meta_byte_group {
- static constexpr size_t max_group_size{16};
-
- explicit meta_byte_group(meta_byte* ptr)
- : data{_mm_load_si128(reinterpret_cast<__m128i const*>(ptr))}
- {}
-
- explicit meta_byte_group(const std::array<meta_byte, 16>& array)
- : data{_mm_loadu_si128(reinterpret_cast<__m128i const*>(array.data()))}
- {}
-
- u16 match(meta_byte cmp) const
- {
- return _mm_movemask_epi8(_mm_cmpeq_epi8(data, _mm_set1_epi8(static_cast<u8>(cmp))));
- }
-
- u16 match_empty_or_tombstone() const
- {
- return _mm_movemask_epi8(data);
- }
-
- bool is_any_empty() const
- {
- return match(meta_byte::empty);
- }
-
- bool is_all_empty_or_tombstone() const
- {
- return match_empty_or_tombstone() == 0xffff;
- }
-
- meta_byte get(size_t index) const
- {
- return mcl::bit_cast<std::array<meta_byte, max_group_size>>(data)[index];
- }
-
- void set(size_t index, meta_byte value)
- {
- auto array = mcl::bit_cast<std::array<meta_byte, max_group_size>>(data);
- array[index] = value;
- data = mcl::bit_cast<__m128i>(array);
- }
-
- __m128i data;
-};
-
-# define MCL_HMAP_MATCH_META_BYTE_GROUP(MATCH, ...) \
- { \
- for (u16 match_result{MATCH}; match_result != 0; match_result &= match_result - 1) { \
- const size_t match_index{static_cast<size_t>(std::countr_zero(match_result))}; \
- __VA_ARGS__ \
- } \
- }
-
-# define MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(MATCH, ...) \
- { \
- for (u16 match_result{static_cast<u16>((MATCH) & (0x7fff))}; match_result != 0; match_result &= match_result - 1) { \
- const size_t match_index{static_cast<size_t>(std::countr_zero(match_result))}; \
- __VA_ARGS__ \
- } \
- }
-
-#else
-
-struct meta_byte_group {
- static constexpr size_t max_group_size{16};
-
- static constexpr u64 msb{0x8080808080808080};
- static constexpr u64 lsb{0x0101010101010101};
- static constexpr u64 not_msb{0x7f7f7f7f7f7f7f7f};
- static constexpr u64 not_lsb{0xfefefefefefefefe};
-
- explicit meta_byte_group(meta_byte* ptr)
- {
- std::memcpy(data.data(), ptr, sizeof(data));
- }
-
- explicit meta_byte_group(const std::array<meta_byte, 16>& array)
- : data{array}
- {}
-
- std::array<u64, 2> match(meta_byte cmp) const
- {
- DEBUG_ASSERT(is_full(cmp));
-
- const u64 vcmp{lsb * static_cast<u64>(cmp)};
- return {(msb - ((data[0] ^ vcmp) & not_msb)) & ~data[0] & msb, (msb - ((data[1] ^ vcmp) & not_msb)) & ~data[1] & msb};
- }
-
- std::array<u64, 2> match_empty_or_tombstone() const
- {
- return {data[0] & msb, data[1] & msb};
- }
-
- bool is_any_empty() const
- {
- static_assert((static_cast<u8>(meta_byte::empty) & 0xc0) == 0xc0);
- static_assert((static_cast<u8>(meta_byte::tombstone) & 0xc0) == 0x80);
-
- return (data[0] & (data[0] << 1) & msb) || (data[1] & (data[1] << 1) & msb);
- }
-
- bool is_all_empty_or_tombstone() const
- {
- return (data[0] & data[1] & msb) == msb;
- }
-
- meta_byte get(size_t index) const
- {
- return mcl::bit_cast<std::array<meta_byte, max_group_size>>(data)[index];
- }
-
- void set(size_t index, meta_byte value)
- {
- auto array = mcl::bit_cast<std::array<meta_byte, max_group_size>>(data);
- array[index] = value;
- data = mcl::bit_cast<std::array<u64, 2>>(array);
- }
-
- std::array<u64, 2> data;
-};
-
-# define MCL_HMAP_MATCH_META_BYTE_GROUP(MATCH, ...) \
- { \
- const std::array<u64, 2> match_result{MATCH}; \
- \
- for (u64 match_result_v{match_result[0]}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- \
- for (u64 match_result_v{match_result[1]}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(8 + std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- }
-
-# define MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(MATCH, ...) \
- { \
- const std::array<u64, 2> match_result{MATCH}; \
- \
- for (u64 match_result_v{match_result[0]}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- \
- for (u64 match_result_v{match_result[1] & 0x00ffffffffffffff}; match_result_v != 0; match_result_v &= match_result_v - 1) { \
- const size_t match_index{static_cast<size_t>(8 + std::countr_zero(match_result_v) / 8)}; \
- __VA_ARGS__ \
- } \
- }
-
-#endif
-
-} // namespace mcl::detail
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/container/detail/slot_union.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/container/detail/slot_union.hpp
deleted file mode 100644
index 50385037..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/container/detail/slot_union.hpp
+++ /dev/null
@@ -1,16 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::detail {
-
-template<typename ValueType>
-union slot_union {
- slot_union() {}
- ~slot_union() {}
- ValueType value;
-};
-
-} // namespace mcl::detail
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/container/hmap.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/container/hmap.hpp
deleted file mode 100644
index f0616c89..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/container/hmap.hpp
+++ /dev/null
@@ -1,532 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstddef>
-#include <functional>
-#include <limits>
-#include <type_traits>
-#include <utility>
-
-#include "mcl/assert.hpp"
-#include "mcl/container/detail/meta_byte.hpp"
-#include "mcl/container/detail/meta_byte_group.hpp"
-#include "mcl/container/detail/slot_union.hpp"
-#include "mcl/hash/xmrx.hpp"
-#include "mcl/hint/assume.hpp"
-#include "mcl/memory/overaligned_unique_ptr.hpp"
-
-namespace mcl {
-
-template<typename KeyType, typename MappedType, typename Hash, typename Pred>
-class hmap;
-
-template<bool IsConst, typename KeyType, typename MappedType, typename Hash, typename Pred>
-class hmap_iterator {
- using base_value_type = std::pair<const KeyType, MappedType>;
- using slot_type = detail::slot_union<base_value_type>;
-
-public:
- using key_type = KeyType;
- using mapped_type = MappedType;
- using iterator_category = std::forward_iterator_tag;
- using difference_type = std::ptrdiff_t;
- using value_type = std::conditional_t<IsConst, std::add_const_t<base_value_type>, base_value_type>;
- using pointer = value_type*;
- using const_pointer = const value_type*;
- using reference = value_type&;
- using const_reference = const value_type&;
-
- hmap_iterator() = default;
- hmap_iterator(const hmap_iterator& other) = default;
- hmap_iterator& operator=(const hmap_iterator& other) = default;
-
- hmap_iterator& operator++()
- {
- if (mb_ptr == nullptr)
- return *this;
-
- ++mb_ptr;
- ++slot_ptr;
-
- skip_empty_or_tombstone();
-
- return *this;
- }
- hmap_iterator operator++(int)
- {
- hmap_iterator it(*this);
- ++*this;
- return it;
- }
-
- bool operator==(const hmap_iterator& other) const
- {
- return std::tie(mb_ptr, slot_ptr) == std::tie(other.mb_ptr, other.slot_ptr);
- }
- bool operator!=(const hmap_iterator& other) const
- {
- return !operator==(other);
- }
-
- reference operator*() const
- {
- return static_cast<reference>(slot_ptr->value);
- }
- pointer operator->() const
- {
- return std::addressof(operator*());
- }
-
-private:
- friend class hmap<KeyType, MappedType, Hash, Pred>;
-
- hmap_iterator(detail::meta_byte* mb_ptr, slot_type* slot_ptr)
- : mb_ptr{mb_ptr}, slot_ptr{slot_ptr}
- {
- ASSUME(mb_ptr != nullptr);
- ASSUME(slot_ptr != nullptr);
- }
-
- void skip_empty_or_tombstone()
- {
- if (!mb_ptr)
- return;
-
- while (*mb_ptr == detail::meta_byte::empty || *mb_ptr == detail::meta_byte::tombstone) {
- ++mb_ptr;
- ++slot_ptr;
- }
-
- if (*mb_ptr == detail::meta_byte::end_sentinel) {
- mb_ptr = nullptr;
- slot_ptr = nullptr;
- }
- }
-
- detail::meta_byte* mb_ptr{nullptr};
- slot_type* slot_ptr{nullptr};
-};
-
-template<typename KeyType, typename MappedType, typename Hash = hash::avalanche_xmrx<KeyType>, typename Pred = std::equal_to<KeyType>>
-class hmap {
-public:
- using key_type = KeyType;
- using mapped_type = MappedType;
- using hasher = Hash;
- using key_equal = Pred;
- using value_type = std::pair<const key_type, mapped_type>;
- using reference = value_type&;
- using const_reference = const value_type&;
- using pointer = value_type*;
- using const_pointer = const value_type*;
- using size_type = std::size_t;
- using difference_type = std::ptrdiff_t;
-
- using iterator = hmap_iterator<false, key_type, mapped_type, hasher, key_equal>;
- using const_iterator = hmap_iterator<true, key_type, mapped_type, hasher, key_equal>;
-
-private:
- static constexpr size_t group_size{detail::meta_byte_group::max_group_size};
- static constexpr size_t average_max_group_load{group_size - 2};
-
- using slot_type = detail::slot_union<value_type>;
- using slot_ptr = std::unique_ptr<slot_type[]>;
- using meta_byte_ptr = overaligned_unique_ptr<group_size, detail::meta_byte[]>;
- static_assert(!std::is_reference_v<key_type>);
- static_assert(!std::is_reference_v<mapped_type>);
-
-public:
- hmap()
- {
- initialize_members(1);
- }
- hmap(const hmap& other)
- {
- deep_copy(other);
- }
- hmap(hmap&& other)
- : group_index_mask{std::exchange(other.group_index_mask, 0)}
- , empty_slots{std::exchange(other.empty_slots, 0)}
- , full_slots{std::exchange(other.full_slots, 0)}
- , mbs{std::move(other.mbs)}
- , slots{std::move(other.slots)}
- {
- }
- hmap& operator=(const hmap& other)
- {
- deep_copy(other);
- return *this;
- }
- hmap& operator=(hmap&& other)
- {
- group_index_mask = std::exchange(other.group_index_mask, 0);
- empty_slots = std::exchange(other.empty_slots, 0);
- full_slots = std::exchange(other.full_slots, 0);
- mbs = std::move(other.mbs);
- slots = std::move(other.slots);
- return *this;
- }
-
- ~hmap()
- {
- if (!mbs)
- return;
-
- clear();
- }
-
- [[nodiscard]] bool empty() const noexcept { return full_slots == 0; }
- size_type size() const noexcept { return full_slots; }
- size_type max_size() const noexcept { return static_cast<size_type>(std::numeric_limits<difference_type>::max()); }
-
- iterator begin()
- {
- iterator result{iterator_at(0)};
- result.skip_empty_or_tombstone();
- return result;
- }
- iterator end()
- {
- return {};
- }
- const_iterator cbegin() const
- {
- const_iterator result{const_iterator_at(0)};
- result.skip_empty_or_tombstone();
- return result;
- }
- const_iterator cend() const
- {
- return {};
- }
- const_iterator begin() const
- {
- return cbegin();
- }
- const_iterator end() const
- {
- return cend();
- }
-
- template<typename K = key_type, typename... Args>
- std::pair<iterator, bool> try_emplace(K&& k, Args&&... args)
- {
- auto [item_index, item_found] = find_key_or_empty_slot(k);
- if (!item_found) {
- new (&slots[item_index].value) value_type(
- std::piecewise_construct,
- std::forward_as_tuple(std::forward<K>(k)),
- std::forward_as_tuple(std::forward<Args>(args)...));
- }
- return {iterator_at(item_index), !item_found};
- }
-
- template<typename K = key_type, typename V = mapped_type>
- std::pair<iterator, bool> insert_or_assign(K&& k, V&& v)
- {
- auto [item_index, item_found] = find_key_or_empty_slot(k);
- if (item_found) {
- slots[item_index].value.second = std::forward<V>(v);
- } else {
- new (&slots[item_index].value) value_type(
- std::forward<K>(k),
- std::forward<V>(v));
- }
- return {iterator_at(item_index), !item_found};
- }
-
- void erase(const_iterator position)
- {
- if (position == cend()) {
- return;
- }
-
- const std::size_t item_index{static_cast<std::size_t>(std::distance(mbs.get(), position.mb_ptr))};
- const std::size_t group_index{item_index / group_size};
- const detail::meta_byte_group g{mbs.get() + group_index * group_size};
-
- erase_impl(item_index, std::move(g));
- }
- void erase(iterator position)
- {
- if (position == end()) {
- return;
- }
-
- const std::size_t item_index{static_cast<std::size_t>(std::distance(mbs.get(), position.mb_ptr))};
- const std::size_t group_index{item_index / group_size};
- const detail::meta_byte_group g{mbs.get() + group_index * group_size};
-
- erase_impl(item_index, std::move(g));
- }
- template<typename K = key_type>
- size_t erase(const K& key)
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- detail::meta_byte_group g{mbs.get() + group_index * group_size};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP(g.match(mb), {
- const std::size_t item_index{group_index * group_size + match_index};
-
- if (key_equal{}(slots[item_index].value.first, key)) [[likely]] {
- erase_impl(item_index, std::move(g));
- return 1;
- }
- });
-
- if (g.is_any_empty()) [[likely]] {
- return 0;
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
-
- template<typename K = key_type>
- iterator find(const K& key)
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- detail::meta_byte_group g{mbs.get() + group_index * group_size};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP(g.match(mb), {
- const std::size_t item_index{group_index * group_size + match_index};
-
- if (key_equal{}(slots[item_index].value.first, key)) [[likely]] {
- return iterator_at(item_index);
- }
- });
-
- if (g.is_any_empty()) [[likely]] {
- return {};
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
- template<typename K = key_type>
- const_iterator find(const K& key) const
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- detail::meta_byte_group g{mbs.get() + group_index * group_size};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP(g.match(mb), {
- const std::size_t item_index{group_index * group_size + match_index};
-
- if (key_equal{}(slots[item_index].value.first, key)) [[likely]] {
- return const_iterator_at(item_index);
- }
- });
-
- if (g.is_any_empty()) [[likely]] {
- return {};
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
- template<typename K = key_type>
- bool contains(const K& key) const
- {
- return find(key) != end();
- }
- template<typename K = key_type>
- size_t count(const K& key) const
- {
- return contains(key) ? 1 : 0;
- }
-
- template<typename K = key_type>
- mapped_type& operator[](K&& k)
- {
- return try_emplace(std::forward<K>(k)).first->second;
- }
- template<typename K = key_type>
- mapped_type& at(K&& k)
- {
- const auto iter{find(k)};
- if (iter == end()) {
- throw std::out_of_range("hmap::at: key not found");
- }
- return iter->second;
- }
- template<typename K = key_type>
- const mapped_type& at(K&& k) const
- {
- const auto iter{find(k)};
- if (iter == end()) {
- throw std::out_of_range("hmap::at: key not found");
- }
- return iter->second;
- }
-
- void clear()
- {
- for (auto iter{begin()}; iter != end(); ++iter) {
- iter->~value_type();
- }
-
- clear_metadata();
- }
-
-private:
- iterator iterator_at(std::size_t item_index)
- {
- return {mbs.get() + item_index, slots.get() + item_index};
- }
- const_iterator const_iterator_at(std::size_t item_index) const
- {
- return {mbs.get() + item_index, slots.get() + item_index};
- }
-
- std::pair<std::size_t, bool> find_key_or_empty_slot(const key_type& key)
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- std::size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- detail::meta_byte_group g{mbs.get() + group_index * group_size};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP(g.match(mb), {
- const std::size_t item_index{group_index * group_size + match_index};
-
- if (key_equal{}(slots[item_index].value.first, key)) [[likely]] {
- return {item_index, true};
- }
- });
-
- if (g.is_any_empty()) [[likely]] {
- return {find_empty_slot_to_insert(hash), false};
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
-
- std::size_t find_empty_slot_to_insert(const std::size_t hash)
- {
- if (empty_slots == 0) [[unlikely]] {
- grow_and_rehash();
- }
-
- std::size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- detail::meta_byte_group g{mbs.get() + group_index * group_size};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP(g.match_empty_or_tombstone(), {
- const std::size_t item_index{group_index * group_size + match_index};
-
- if (mbs[item_index] == detail::meta_byte::empty) [[likely]] {
- --empty_slots;
- }
- ++full_slots;
-
- mbs[item_index] = detail::meta_byte_from_hash(hash);
-
- return item_index;
- });
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
-
- void erase_impl(std::size_t item_index, detail::meta_byte_group&& g)
- {
- slots[item_index].value->~value_type();
-
- --full_slots;
- if (g.is_any_empty()) {
- mbs[item_index] = detail::meta_byte::empty;
- ++empty_slots;
- } else {
- mbs[item_index] = detail::meta_byte::tombstone;
- }
- }
-
- void grow_and_rehash()
- {
- const std::size_t new_group_count{2 * (group_index_mask + 1)};
-
- pow2_resize(new_group_count);
- }
-
- void pow2_resize(std::size_t new_group_count)
- {
- auto iter{begin()};
-
- const auto old_mbs{std::move(mbs)};
- const auto old_slots{std::move(slots)};
-
- initialize_members(new_group_count);
-
- for (; iter != end(); ++iter) {
- const std::size_t hash{hasher{}(iter->first)};
- const std::size_t item_index{find_empty_slot_to_insert(hash)};
-
- new (&slots[item_index].value) value_type(std::move(iter.slot_ptr->value));
- iter.slot_ptr->value.~value_type();
- }
- }
-
- void deep_copy(const hmap& other)
- {
- initialize_members(other.group_index_mask + 1);
-
- for (auto iter = other.begin(); iter != other.end(); ++iter) {
- const std::size_t hash{hasher{}(iter->first)};
- const std::size_t item_index{find_empty_slot_to_insert(hash)};
-
- new (&slots[item_index].value) value_type(iter.slot_ptr->value);
- }
- }
-
- void initialize_members(std::size_t group_count)
- {
- // DEBUG_ASSERT(group_count != 0 && std::ispow2(group_count));
-
- group_index_mask = group_count - 1;
- mbs = make_overaligned_unique_ptr_array<group_size, detail::meta_byte>(group_count * group_size + 1);
- slots = slot_ptr{new slot_type[group_count * group_size]};
-
- clear_metadata();
- }
-
- void clear_metadata()
- {
- const std::size_t group_count{group_index_mask + 1};
-
- empty_slots = group_count * average_max_group_load;
- full_slots = 0;
-
- std::memset(mbs.get(), static_cast<int>(detail::meta_byte::empty), group_count * group_size);
- mbs[group_count * group_size] = detail::meta_byte::end_sentinel;
- }
-
- std::size_t group_index_mask;
- std::size_t empty_slots;
- std::size_t full_slots;
- meta_byte_ptr mbs;
- slot_ptr slots;
-};
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/container/ihmap.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/container/ihmap.hpp
deleted file mode 100644
index b50229e0..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/container/ihmap.hpp
+++ /dev/null
@@ -1,549 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <array>
-#include <cstddef>
-#include <functional>
-#include <limits>
-#include <type_traits>
-#include <utility>
-
-#include "mcl/assert.hpp"
-#include "mcl/container/detail/meta_byte.hpp"
-#include "mcl/container/detail/meta_byte_group.hpp"
-#include "mcl/container/detail/slot_union.hpp"
-#include "mcl/hash/xmrx.hpp"
-#include "mcl/hint/assume.hpp"
-
-namespace mcl {
-
-template<typename KeyType, typename MappedType, typename Hash, typename Pred>
-class ihmap;
-
-namespace detail {
-
-constexpr std::array<meta_byte, 16> ihmap_default_meta{
- meta_byte::empty, meta_byte::empty, meta_byte::empty, meta_byte::empty,
- meta_byte::empty, meta_byte::empty, meta_byte::empty, meta_byte::empty,
- meta_byte::empty, meta_byte::empty, meta_byte::empty, meta_byte::empty,
- meta_byte::empty, meta_byte::empty, meta_byte::empty, meta_byte::tombstone};
-
-template<typename KeyType, typename MappedType>
-struct ihmap_group {
- using base_value_type = std::pair<const KeyType, MappedType>;
- using slot_type = detail::slot_union<base_value_type>;
-
- static constexpr std::size_t group_size{meta_byte_group::max_group_size - 1};
-
- meta_byte_group meta{ihmap_default_meta};
- std::array<slot_type, group_size> slots{};
-};
-
-} // namespace detail
-
-template<bool IsConst, typename KeyType, typename MappedType, typename Hash, typename Pred>
-class ihmap_iterator {
- using group_type = detail::ihmap_group<KeyType, MappedType>;
- using base_value_type = typename group_type::base_value_type;
-
-public:
- using key_type = KeyType;
- using mapped_type = MappedType;
- using iterator_category = std::forward_iterator_tag;
- using difference_type = std::ptrdiff_t;
- using value_type = std::conditional_t<IsConst, std::add_const_t<base_value_type>, base_value_type>;
- using pointer = value_type*;
- using const_pointer = const value_type*;
- using reference = value_type&;
- using const_reference = const value_type&;
-
- ihmap_iterator() = default;
- ihmap_iterator(const ihmap_iterator& other) = default;
- ihmap_iterator& operator=(const ihmap_iterator& other) = default;
-
- ihmap_iterator& operator++()
- {
- if (group_ptr == nullptr)
- return *this;
-
- ++slot_index;
-
- skip_empty_or_tombstone();
-
- return *this;
- }
- ihmap_iterator operator++(int)
- {
- ihmap_iterator it(*this);
- ++*this;
- return it;
- }
-
- bool operator==(const ihmap_iterator& other) const
- {
- return std::tie(group_ptr, slot_index) == std::tie(other.group_ptr, other.slot_index);
- }
- bool operator!=(const ihmap_iterator& other) const
- {
- return !operator==(other);
- }
-
- reference operator*() const
- {
- return static_cast<reference>(group_ptr->slots[slot_index].value);
- }
- pointer operator->() const
- {
- return std::addressof(operator*());
- }
-
-private:
- friend class ihmap<KeyType, MappedType, Hash, Pred>;
-
- ihmap_iterator(group_type* group_ptr, size_t slot_index)
- : group_ptr{group_ptr}, slot_index{slot_index}
- {
- ASSUME(group_ptr != nullptr);
- }
-
- void skip_empty_or_tombstone()
- {
- if (!group_ptr)
- return;
-
- while (true) {
- const detail::meta_byte mb = group_ptr->meta.get(slot_index);
- if (slot_index == group_type::group_size) {
- slot_index = 0;
- ++group_ptr;
-
- if (mb == detail::meta_byte::end_sentinel) {
- group_ptr = nullptr;
- return;
- }
-
- continue;
- }
- if (is_full(mb)) {
- break;
- }
- ++slot_index;
- }
- }
-
- group_type* group_ptr{nullptr};
- std::size_t slot_index{0};
-};
-
-template<typename KeyType, typename MappedType, typename Hash = hash::avalanche_xmrx<KeyType>, typename Pred = std::equal_to<KeyType>>
-class ihmap {
- using group_type = detail::ihmap_group<KeyType, MappedType>;
-
-public:
- using key_type = KeyType;
- using mapped_type = MappedType;
- using hasher = Hash;
- using key_equal = Pred;
- using value_type = typename group_type::base_value_type;
- using reference = value_type&;
- using const_reference = const value_type&;
- using pointer = value_type*;
- using const_pointer = const value_type*;
- using size_type = std::size_t;
- using difference_type = std::ptrdiff_t;
-
- using iterator = ihmap_iterator<false, key_type, mapped_type, hasher, key_equal>;
- using const_iterator = ihmap_iterator<true, key_type, mapped_type, hasher, key_equal>;
-
-private:
- static_assert(!std::is_reference_v<key_type>);
- static_assert(!std::is_reference_v<mapped_type>);
-
- static constexpr std::size_t group_size{group_type::group_size};
- static constexpr std::size_t average_max_group_load{group_size - 2};
-
- struct position {
- std::size_t group_index;
- std::size_t slot_index;
- };
-
-public:
- ihmap()
- {
- initialize_members(1);
- }
- ihmap(const ihmap& other)
- {
- deep_copy(other);
- }
- ihmap(ihmap&& other)
- : group_index_mask{std::exchange(other.group_index_mask, 0)}
- , empty_slots{std::exchange(other.empty_slots, 0)}
- , full_slots{std::exchange(other.full_slots, 0)}
- , groups{std::move(other.groups)}
- {
- }
- ihmap& operator=(const ihmap& other)
- {
- deep_copy(other);
- return *this;
- }
- ihmap& operator=(ihmap&& other)
- {
- group_index_mask = std::exchange(other.group_index_mask, 0);
- empty_slots = std::exchange(other.empty_slots, 0);
- full_slots = std::exchange(other.full_slots, 0);
- groups = std::move(other.groups);
- return *this;
- }
-
- ~ihmap()
- {
- if (!groups)
- return;
-
- clear();
- }
-
- [[nodiscard]] bool empty() const noexcept { return full_slots == 0; }
- size_type size() const noexcept { return full_slots; }
- size_type max_size() const noexcept { return static_cast<size_type>(std::numeric_limits<difference_type>::max()); }
-
- iterator begin()
- {
- iterator result{iterator_at({0, 0})};
- result.skip_empty_or_tombstone();
- return result;
- }
- iterator end()
- {
- return {};
- }
- const_iterator cbegin() const
- {
- const_iterator result{const_iterator_at({0, 0})};
- result.skip_empty_or_tombstone();
- return result;
- }
- const_iterator cend() const
- {
- return {};
- }
- const_iterator begin() const
- {
- return cbegin();
- }
- const_iterator end() const
- {
- return cend();
- }
-
- template<typename K = key_type, typename... Args>
- std::pair<iterator, bool> try_emplace(K&& k, Args&&... args)
- {
- auto [pos, item_found] = find_key_or_empty_slot(k);
- if (!item_found) {
- new (&groups[pos.group_index].slots[pos.slot_index].value) value_type(
- std::piecewise_construct,
- std::forward_as_tuple(std::forward<K>(k)),
- std::forward_as_tuple(std::forward<Args>(args)...));
- }
- return {iterator_at(pos), !item_found};
- }
-
- template<typename K = key_type, typename V = mapped_type>
- std::pair<iterator, bool> insert_or_assign(K&& k, V&& v)
- {
- auto [pos, item_found] = find_key_or_empty_slot(k);
- if (item_found) {
- groups[pos.group_index].slots[pos.slot_index].value.second = std::forward<V>(v);
- } else {
- new (&groups[pos.group_index].slots[pos.slot_index].value) value_type(
- std::forward<K>(k),
- std::forward<V>(v));
- }
- return {iterator_at(pos), !item_found};
- }
-
- void erase(const_iterator iter)
- {
- if (iter == cend()) {
- return;
- }
-
- const std::size_t group_index{static_cast<std::size_t>(std::distance(groups.get(), iter.group_ptr))};
-
- erase_impl({group_index, iter.slot_index});
- }
- void erase(iterator iter)
- {
- if (iter == end()) {
- return;
- }
-
- const std::size_t group_index{static_cast<std::size_t>(std::distance(groups.get(), iter.group_ptr))};
-
- erase_impl({group_index, iter.slot_index});
- }
- template<typename K = key_type>
- std::size_t erase(const K& key)
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- std::size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- const group_type& g{groups[group_index]};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(g.meta.match(mb), {
- if (key_equal{}(g.slots[match_index].value.first, key)) [[likely]] {
- erase_impl({group_index, match_index});
- return 1;
- }
- });
-
- if (g.meta.is_any_empty()) [[likely]] {
- return 0;
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
-
- template<typename K = key_type>
- iterator find(const K& key)
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- std::size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- const group_type& g{groups[group_index]};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(g.meta.match(mb), {
- if (key_equal{}(g.slots[match_index].value.first, key)) [[likely]] {
- return iterator_at({group_index, match_index});
- }
- });
-
- if (g.meta.is_any_empty()) [[likely]] {
- return {};
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
- template<typename K = key_type>
- const_iterator find(const K& key) const
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- std::size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- const group_type& g{groups[group_index]};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(g.meta.match(mb), {
- if (key_equal{}(g.slots[match_index].value.first, key)) [[likely]] {
- return const_iterator_at({group_index, match_index});
- }
- });
-
- if (g.meta.is_any_empty()) [[likely]] {
- return {};
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
- template<typename K = key_type>
- bool contains(const K& key) const
- {
- return find(key) != end();
- }
- template<typename K = key_type>
- std::size_t count(const K& key) const
- {
- return contains(key) ? 1 : 0;
- }
-
- template<typename K = key_type>
- mapped_type& operator[](K&& k)
- {
- return try_emplace(std::forward<K>(k)).first->second;
- }
- template<typename K = key_type>
- mapped_type& at(K&& k)
- {
- const auto iter{find(k)};
- if (iter == end()) {
- throw std::out_of_range("ihmap::at: key not found");
- }
- return iter->second;
- }
- template<typename K = key_type>
- const mapped_type& at(K&& k) const
- {
- const auto iter{find(k)};
- if (iter == end()) {
- throw std::out_of_range("ihmap::at: key not found");
- }
- return iter->second;
- }
-
- void clear()
- {
- for (auto iter{begin()}; iter != end(); ++iter) {
- iter->~value_type();
- }
-
- clear_metadata();
- }
-
-private:
- iterator iterator_at(position pos)
- {
- return {groups.get() + pos.group_index, pos.slot_index};
- }
- const_iterator const_iterator_at(position pos) const
- {
- return {groups.get() + pos.group_index, pos.slot_index};
- }
-
- std::pair<position, bool> find_key_or_empty_slot(const key_type& key)
- {
- const std::size_t hash{hasher{}(key)};
- const detail::meta_byte mb{detail::meta_byte_from_hash(hash)};
-
- std::size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- const group_type& g{groups[group_index]};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(g.meta.match(mb), {
- if (key_equal{}(g.slots[match_index].value.first, key)) [[likely]] {
- return {{group_index, match_index}, true};
- }
- });
-
- if (g.meta.is_any_empty()) [[likely]] {
- return {find_empty_slot_to_insert(hash), false};
- }
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
-
- position find_empty_slot_to_insert(const std::size_t hash)
- {
- if (empty_slots == 0) [[unlikely]] {
- grow_and_rehash();
- }
-
- std::size_t group_index{detail::group_index_from_hash(hash, group_index_mask)};
-
- while (true) {
- group_type& g{groups[group_index]};
-
- MCL_HMAP_MATCH_META_BYTE_GROUP_EXCEPT_LAST(g.meta.match_empty_or_tombstone(), {
- if (g.meta.get(match_index) == detail::meta_byte::empty) [[likely]] {
- --empty_slots;
- }
- ++full_slots;
-
- g.meta.set(match_index, detail::meta_byte_from_hash(hash));
-
- return {group_index, match_index};
- });
-
- group_index = (group_index + 1) & group_index_mask;
- }
- }
-
- void erase_impl(position pos)
- {
- group_type& g{groups[pos.group_index]};
-
- g.slots[pos.slot_index].value.~value_type();
-
- --full_slots;
- if (g.meta.is_any_empty()) {
- g.meta.set(pos.slot_index, detail::meta_byte::empty);
- ++empty_slots;
- } else {
- g.meta.set(pos.slot_index, detail::meta_byte::tombstone);
- }
- }
-
- void grow_and_rehash()
- {
- const std::size_t new_group_count{2 * (group_index_mask + 1)};
-
- pow2_resize(new_group_count);
- }
-
- void pow2_resize(std::size_t new_group_count)
- {
- auto iter{begin()};
-
- const auto old_groups{std::move(groups)};
-
- initialize_members(new_group_count);
-
- for (; iter != end(); ++iter) {
- const std::size_t hash{hasher{}(iter->first)};
- const position pos{find_empty_slot_to_insert(hash)};
-
- new (&groups[pos.group_index].slots[pos.slot_index].value) value_type(std::move(iter.group_ptr->slots[iter.slot_index].value));
- iter.group_ptr->slots[iter.slot_index].value.~value_type();
- }
- }
-
- void deep_copy(const ihmap& other)
- {
- initialize_members(other.group_index_mask + 1);
-
- for (auto iter = other.begin(); iter != other.end(); ++iter) {
- const std::size_t hash{hasher{}(iter->first)};
- const position pos{find_empty_slot_to_insert(hash)};
-
- new (&groups[pos.group_index].slots[pos.slot_index].value) value_type(iter.group_ptr->slots[iter.slot_index].value);
- }
- }
-
- void initialize_members(std::size_t group_count)
- {
- // DEBUG_ASSERT(group_count != 0 && std::ispow2(group_count));
-
- group_index_mask = group_count - 1;
- groups = std::unique_ptr<group_type[]>{new group_type[group_count]};
-
- clear_metadata();
- }
-
- void clear_metadata()
- {
- const std::size_t group_count{group_index_mask + 1};
-
- empty_slots = group_count * average_max_group_load;
- full_slots = 0;
-
- for (size_t i{0}; i < group_count; ++i) {
- groups[i].meta = detail::meta_byte_group{detail::ihmap_default_meta};
- }
- groups[group_count - 1].meta.set(group_size, detail::meta_byte::end_sentinel);
- }
-
- std::size_t group_index_mask;
- std::size_t empty_slots;
- std::size_t full_slots;
- std::unique_ptr<group_type[]> groups;
-};
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/container/intrusive_list.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/container/intrusive_list.hpp
deleted file mode 100644
index 515fd891..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/container/intrusive_list.hpp
+++ /dev/null
@@ -1,408 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstddef>
-#include <iterator>
-#include <memory>
-#include <type_traits>
-
-#include "mcl/assert.hpp"
-
-namespace mcl {
-
-template<typename T>
-class intrusive_list;
-template<typename T>
-class intrusive_list_iterator;
-
-template<typename T>
-class intrusive_list_node {
-public:
- bool is_sentinel() const
- {
- return is_sentinel_;
- }
-
-protected:
- intrusive_list_node* next = nullptr;
- intrusive_list_node* prev = nullptr;
- bool is_sentinel_ = false;
-
- friend class intrusive_list<T>;
- friend class intrusive_list_iterator<T>;
- friend class intrusive_list_iterator<const T>;
-};
-
-template<typename T>
-class intrusive_list_sentinel final : public intrusive_list_node<T> {
- using intrusive_list_node<T>::next;
- using intrusive_list_node<T>::prev;
- using intrusive_list_node<T>::is_sentinel_;
-
-public:
- intrusive_list_sentinel()
- {
- next = this;
- prev = this;
- is_sentinel_ = true;
- }
-};
-
-template<typename T>
-class intrusive_list_iterator {
-public:
- using iterator_category = std::bidirectional_iterator_tag;
- using difference_type = std::ptrdiff_t;
- using value_type = T;
- using pointer = value_type*;
- using const_pointer = const value_type*;
- using reference = value_type&;
- using const_reference = const value_type&;
-
- // If value_type is const, we want "const intrusive_list_node<value_type>", not "intrusive_list_node<const value_type>"
- using node_type = std::conditional_t<std::is_const<value_type>::value,
- const intrusive_list_node<std::remove_const_t<value_type>>,
- intrusive_list_node<value_type>>;
- using node_pointer = node_type*;
- using node_reference = node_type&;
-
- intrusive_list_iterator() = default;
- intrusive_list_iterator(const intrusive_list_iterator& other) = default;
- intrusive_list_iterator& operator=(const intrusive_list_iterator& other) = default;
-
- explicit intrusive_list_iterator(node_pointer list_node)
- : node(list_node) {}
- explicit intrusive_list_iterator(pointer data)
- : node(data) {}
- explicit intrusive_list_iterator(reference data)
- : node(&data) {}
-
- intrusive_list_iterator& operator++()
- {
- node = node->next;
- return *this;
- }
- intrusive_list_iterator& operator--()
- {
- node = node->prev;
- return *this;
- }
- intrusive_list_iterator operator++(int)
- {
- intrusive_list_iterator it(*this);
- ++*this;
- return it;
- }
- intrusive_list_iterator operator--(int)
- {
- intrusive_list_iterator it(*this);
- --*this;
- return it;
- }
-
- bool operator==(const intrusive_list_iterator& other) const
- {
- return node == other.node;
- }
- bool operator!=(const intrusive_list_iterator& other) const
- {
- return !operator==(other);
- }
-
- reference operator*() const
- {
- DEBUG_ASSERT(!node->is_sentinel());
- return static_cast<reference>(*node);
- }
- pointer operator->() const
- {
- return std::addressof(operator*());
- }
-
- node_pointer AsNodePointer() const
- {
- return node;
- }
-
-private:
- friend class intrusive_list<T>;
- node_pointer node = nullptr;
-};
-
-template<typename T>
-class intrusive_list {
-public:
- using difference_type = std::ptrdiff_t;
- using size_type = std::size_t;
- using value_type = T;
- using pointer = value_type*;
- using const_pointer = const value_type*;
- using reference = value_type&;
- using const_reference = const value_type&;
- using iterator = intrusive_list_iterator<value_type>;
- using const_iterator = intrusive_list_iterator<const value_type>;
- using reverse_iterator = std::reverse_iterator<iterator>;
- using const_reverse_iterator = std::reverse_iterator<const_iterator>;
-
- /**
- * Inserts a node at the given location indicated by an iterator.
- *
- * @param location The location to insert the node.
- * @param new_node The node to add.
- */
- iterator insert(iterator location, pointer new_node)
- {
- return insert_before(location, new_node);
- }
-
- /**
- * Inserts a node at the given location, moving the previous
- * node occupant ahead of the one inserted.
- *
- * @param location The location to insert the new node.
- * @param new_node The node to insert into the list.
- */
- iterator insert_before(iterator location, pointer new_node)
- {
- auto existing_node = location.AsNodePointer();
-
- new_node->next = existing_node;
- new_node->prev = existing_node->prev;
- existing_node->prev->next = new_node;
- existing_node->prev = new_node;
-
- return iterator(new_node);
- }
-
- /**
- * Inserts a new node into the list ahead of the position indicated.
- *
- * @param position Location to insert the node in front of.
- * @param new_node The node to be inserted into the list.
- */
- iterator insert_after(iterator position, pointer new_node)
- {
- if (empty())
- return insert(begin(), new_node);
-
- return insert(++position, new_node);
- }
-
- /**
- * Add an entry to the start of the list.
- * @param node Node to add to the list.
- */
- void push_front(pointer node)
- {
- insert(begin(), node);
- }
-
- /**
- * Add an entry to the end of the list
- * @param node Node to add to the list.
- */
- void push_back(pointer node)
- {
- insert(end(), node);
- }
-
- /**
- * Erases the node at the front of the list.
- * @note Must not be called on an empty list.
- */
- void pop_front()
- {
- DEBUG_ASSERT(!empty());
- erase(begin());
- }
-
- /**
- * Erases the node at the back of the list.
- * @note Must not be called on an empty list.
- */
- void pop_back()
- {
- DEBUG_ASSERT(!empty());
- erase(--end());
- }
-
- /**
- * Removes a node from this list
- * @param it An iterator that points to the node to remove from list.
- */
- pointer remove(iterator& it)
- {
- DEBUG_ASSERT(it != end());
-
- pointer node = &*it++;
-
- node->prev->next = node->next;
- node->next->prev = node->prev;
-#if !defined(NDEBUG)
- node->next = nullptr;
- node->prev = nullptr;
-#endif
-
- return node;
- }
-
- /**
- * Removes a node from this list
- * @param it A constant iterator that points to the node to remove from list.
- */
- pointer remove(const iterator& it)
- {
- iterator copy = it;
- return remove(copy);
- }
-
- /**
- * Removes a node from this list.
- * @param node A pointer to the node to remove.
- */
- pointer remove(pointer node)
- {
- return remove(iterator(node));
- }
-
- /**
- * Removes a node from this list.
- * @param node A reference to the node to remove.
- */
- pointer remove(reference node)
- {
- return remove(iterator(node));
- }
-
- /**
- * Is this list empty?
- * @returns true if there are no nodes in this list.
- */
- bool empty() const
- {
- return root->next == root.get();
- }
-
- /**
- * Gets the total number of elements within this list.
- * @return the number of elements in this list.
- */
- size_type size() const
- {
- return static_cast<size_type>(std::distance(begin(), end()));
- }
-
- /**
- * Retrieves a reference to the node at the front of the list.
- * @note Must not be called on an empty list.
- */
- reference front()
- {
- DEBUG_ASSERT(!empty());
- return *begin();
- }
-
- /**
- * Retrieves a constant reference to the node at the front of the list.
- * @note Must not be called on an empty list.
- */
- const_reference front() const
- {
- DEBUG_ASSERT(!empty());
- return *begin();
- }
-
- /**
- * Retrieves a reference to the node at the back of the list.
- * @note Must not be called on an empty list.
- */
- reference back()
- {
- DEBUG_ASSERT(!empty());
- return *--end();
- }
-
- /**
- * Retrieves a constant reference to the node at the back of the list.
- * @note Must not be called on an empty list.
- */
- const_reference back() const
- {
- DEBUG_ASSERT(!empty());
- return *--end();
- }
-
- // Iterator interface
- iterator begin() { return iterator(root->next); }
- const_iterator begin() const { return const_iterator(root->next); }
- const_iterator cbegin() const { return begin(); }
-
- iterator end() { return iterator(root.get()); }
- const_iterator end() const { return const_iterator(root.get()); }
- const_iterator cend() const { return end(); }
-
- reverse_iterator rbegin() { return reverse_iterator(end()); }
- const_reverse_iterator rbegin() const { return const_reverse_iterator(end()); }
- const_reverse_iterator crbegin() const { return rbegin(); }
-
- reverse_iterator rend() { return reverse_iterator(begin()); }
- const_reverse_iterator rend() const { return const_reverse_iterator(begin()); }
- const_reverse_iterator crend() const { return rend(); }
-
- /**
- * Erases a node from the list, indicated by an iterator.
- * @param it The iterator that points to the node to erase.
- */
- iterator erase(iterator it)
- {
- remove(it);
- return it;
- }
-
- /**
- * Erases a node from this list.
- * @param node A pointer to the node to erase from this list.
- */
- iterator erase(pointer node)
- {
- return erase(iterator(node));
- }
-
- /**
- * Erases a node from this list.
- * @param node A reference to the node to erase from this list.
- */
- iterator erase(reference node)
- {
- return erase(iterator(node));
- }
-
- /**
- * Exchanges contents of this list with another list instance.
- * @param other The other list to swap with.
- */
- void swap(intrusive_list& other) noexcept
- {
- root.swap(other.root);
- }
-
-private:
- std::shared_ptr<intrusive_list_node<T>> root = std::make_shared<intrusive_list_sentinel<T>>();
-};
-
-/**
- * Exchanges contents of an intrusive list with another intrusive list.
- * @tparam T The type of data being kept track of by the lists.
- * @param lhs The first list.
- * @param rhs The second list.
- */
-template<typename T>
-void swap(intrusive_list<T>& lhs, intrusive_list<T>& rhs) noexcept
-{
- lhs.swap(rhs);
-}
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/hash/xmrx.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/hash/xmrx.hpp
deleted file mode 100644
index 3ba38cae..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/hash/xmrx.hpp
+++ /dev/null
@@ -1,32 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-// Reference: http://jonkagstrom.com/bit-mixer-construction/
-
-#pragma once
-
-#include <functional>
-
-#include "mcl/bit/rotate.hpp"
-#include "mcl/stdint.hpp"
-
-namespace mcl::hash {
-
-constexpr size_t xmrx(size_t x)
-{
- x ^= x >> 32;
- x *= 0xff51afd7ed558ccd;
- x ^= bit::rotate_right(x, 47) ^ bit::rotate_right(x, 23);
- return x;
-}
-
-template<typename T>
-struct avalanche_xmrx {
- size_t operator()(const T& value)
- {
- return xmrx(std::hash<T>{}(value));
- }
-};
-
-} // namespace mcl::hash
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/hint/assume.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/hint/assume.hpp
deleted file mode 100644
index ac1873f8..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/hint/assume.hpp
+++ /dev/null
@@ -1,13 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#if defined(__clang) || defined(__GNUC__)
-# define ASSUME(expr) [&] { if (!(expr)) __builtin_unreachable(); }()
-#elif defined(_MSC_VER)
-# define ASSUME(expr) __assume(expr)
-#else
-# define ASSUME(expr)
-#endif
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/iterator/reverse.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/iterator/reverse.hpp
deleted file mode 100644
index d7bdab63..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/iterator/reverse.hpp
+++ /dev/null
@@ -1,37 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <iterator>
-
-namespace mcl::iterator {
-namespace detail {
-
-template<typename T>
-struct reverse_adapter {
- T& iterable;
-
- constexpr auto begin()
- {
- using namespace std;
- return rbegin(iterable);
- }
-
- constexpr auto end()
- {
- using namespace std;
- return rend(iterable);
- }
-};
-
-} // namespace detail
-
-template<typename T>
-constexpr detail::reverse_adapter<T> reverse(T&& iterable)
-{
- return detail::reverse_adapter<T>{iterable};
-}
-
-} // namespace mcl::iterator
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/macro/anonymous_variable.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/macro/anonymous_variable.hpp
deleted file mode 100644
index 09cd48a2..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/macro/anonymous_variable.hpp
+++ /dev/null
@@ -1,13 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <mcl/macro/concatenate_tokens.hpp>
-
-#ifdef __COUNTER__
-# define ANONYMOUS_VARIABLE(str) CONCATENATE_TOKENS(str, __COUNTER__)
-#else
-# define ANONYMOUS_VARIABLE(str) CONCATENATE_TOKENS(str, __LINE__)
-#endif
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/macro/architecture.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/macro/architecture.hpp
deleted file mode 100644
index 3251d829..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/macro/architecture.hpp
+++ /dev/null
@@ -1,40 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#if defined(__ARM64__) || defined(__aarch64__) || defined(_M_ARM64)
-# define MCL_ARCHITECTURE arm64
-# define MCL_ARCHITECTURE_ARM64 1
-#elif defined(__arm__) || defined(__TARGET_ARCH_ARM) || defined(_M_ARM)
-# define MCL_ARCHITECTURE arm32
-# define MCL_ARCHITECTURE_ARM32 1
-#elif defined(__x86_64) || defined(__x86_64__) || defined(__amd64) || defined(_M_X64)
-# define MCL_ARCHITECTURE x86_64
-# define MCL_ARCHITECTURE_X86_64 1
-#elif defined(__i386) || defined(__i386__) || defined(_M_IX86)
-# define MCL_ARCHITECTURE x86_32
-# define MCL_ARCHITECTURE_X86_32 1
-#elif defined(__ia64) || defined(__ia64__) || defined(_M_IA64)
-# define MCL_ARCHITECTURE ia64
-# define MCL_ARCHITECTURE_IA64 1
-#elif defined(__mips) || defined(__mips__) || defined(_M_MRX000)
-# define MCL_ARCHITECTURE mips
-# define MCL_ARCHITECTURE_MIPS 1
-#elif defined(__ppc64__) || defined(__powerpc64__)
-# define MCL_ARCHITECTURE ppc64
-# define MCL_ARCHITECTURE_PPC64 1
-#elif defined(__ppc__) || defined(__ppc) || defined(__powerpc__) || defined(_ARCH_COM) || defined(_ARCH_PWR) || defined(_ARCH_PPC) || defined(_M_MPPC) || defined(_M_PPC)
-# define MCL_ARCHITECTURE ppc32
-# define MCL_ARCHITECTURE_PPC32 1
-#elif defined(__riscv)
-# define MCL_ARCHITECTURE riscv
-# define MCL_ARCHITECTURE_RISCV 1
-#elif defined(__EMSCRIPTEN__)
-# define MCL_ARCHITECTURE wasm
-# define MCL_ARCHITECTURE_WASM 1
-#else
-# define MCL_ARCHITECTURE generic
-# define MCL_ARCHITECTURE_GENERIC 1
-#endif
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/macro/concatenate_tokens.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/macro/concatenate_tokens.hpp
deleted file mode 100644
index 3555b23c..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/macro/concatenate_tokens.hpp
+++ /dev/null
@@ -1,8 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#define CONCATENATE_TOKENS(x, y) CONCATENATE_TOKENS_IMPL(x, y)
-#define CONCATENATE_TOKENS_IMPL(x, y) x##y
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/memory/overaligned_unique_ptr.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/memory/overaligned_unique_ptr.hpp
deleted file mode 100644
index 1e645efe..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/memory/overaligned_unique_ptr.hpp
+++ /dev/null
@@ -1,46 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <type_traits>
-
-#ifdef _MSC_VER
-# include <malloc.h>
-#else
-# include <cstdlib>
-#endif
-
-namespace mcl {
-
-namespace detail {
-struct aligned_alloc_deleter {
- template<typename T>
- void operator()(T* p) const
- {
-#ifdef _MSC_VER
- _aligned_free(const_cast<std::remove_const_t<T>*>(p));
-#else
- std::free(const_cast<std::remove_const_t<T>*>(p));
-#endif
- }
-};
-} // namespace detail
-
-template<size_t, typename T>
-using overaligned_unique_ptr = std::unique_ptr<T, detail::aligned_alloc_deleter>;
-
-template<size_t alignment, typename T>
-auto make_overaligned_unique_ptr_array(size_t element_count)
-{
- const size_t min_size = element_count * sizeof(T);
- const size_t alloc_size = (min_size + alignment - 1) / alignment * alignment;
-#ifdef _MSC_VER
- return overaligned_unique_ptr<alignment, T[]>{static_cast<T*>(_aligned_malloc(alloc_size, alignment))};
-#else
- return overaligned_unique_ptr<alignment, T[]>{static_cast<T*>(std::aligned_alloc(alignment, alloc_size))};
-#endif
-}
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metafunction/apply.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metafunction/apply.hpp
deleted file mode 100644
index e2c17141..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metafunction/apply.hpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<template<class...> class F, class L>
-struct apply_impl;
-
-template<template<class...> class F, template<class...> class LT, class... Es>
-struct apply_impl<F, LT<Es...>> {
- using type = F<Es...>;
-};
-
-} // namespace detail
-
-/// Invokes metafunction F where the arguments are all the members of list L
-template<template<class...> class F, class L>
-using apply = typename detail::apply_impl<F, L>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metafunction/bind.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metafunction/bind.hpp
deleted file mode 100644
index 2701fc95..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metafunction/bind.hpp
+++ /dev/null
@@ -1,18 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-/// Binds the first sizeof...(A) arguments of metafunction F with arguments A
-template<template<class...> class F, class... As>
-struct bind {
- template<class... Rs>
- using type = F<As..., Rs...>;
-};
-
-} // namespace mcl::mp
-
-#define MCL_MP_BIND(...) ::mcl::mp::bind<__VA_ARGS__>::template type
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metafunction/identity.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metafunction/identity.hpp
deleted file mode 100644
index 737f9ce1..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metafunction/identity.hpp
+++ /dev/null
@@ -1,22 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class T>
-struct identity_impl {
- using type = T;
-};
-
-} // namespace detail
-
-/// Identity metafunction
-template<class T>
-using identity = typename identity_impl<T>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metafunction/map.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metafunction/map.hpp
deleted file mode 100644
index 13fcaecd..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metafunction/map.hpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<template<class...> class F, class L>
-struct map_impl;
-
-template<template<class...> class F, template<class...> class LT, class... Es>
-struct map_impl<F, LT<Es...>> {
- using type = LT<F<Es>...>;
-};
-
-} // namespace detail
-
-/// Applies each element of list L to metafunction F
-template<template<class...> class F, class L>
-using map = typename detail::map_impl<F, L>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/bit_and.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/bit_and.hpp
deleted file mode 100644
index e4a98e21..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/bit_and.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/lift_value.hpp"
-
-namespace mcl::mp {
-
-/// Bitwise and of metavalues Vs
-template<class... Vs>
-using bit_and = lift_value<(Vs::value & ...)>;
-
-/// Bitwise and of metavalues Vs
-template<class... Vs>
-constexpr auto bit_and_v = (Vs::value & ...);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/bit_not.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/bit_not.hpp
deleted file mode 100644
index 5d31956d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/bit_not.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/lift_value.hpp"
-
-namespace mcl::mp {
-
-/// Bitwise not of metavalue V
-template<class V>
-using bit_not = lift_value<~V::value>;
-
-/// Bitwise not of metavalue V
-template<class V>
-constexpr auto bit_not_v = ~V::value;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/bit_or.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/bit_or.hpp
deleted file mode 100644
index 812edfb2..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/bit_or.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/lift_value.hpp"
-
-namespace mcl::mp {
-
-/// Bitwise or of metavalues Vs
-template<class... Vs>
-using bit_or = lift_value<(Vs::value | ...)>;
-
-/// Bitwise or of metavalues Vs
-template<class... Vs>
-constexpr auto bit_or_v = (Vs::value | ...);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/bit_xor.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/bit_xor.hpp
deleted file mode 100644
index 9c543d41..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/bit_xor.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/lift_value.hpp"
-
-namespace mcl::mp {
-
-/// Bitwise xor of metavalues Vs
-template<class... Vs>
-using bit_xor = lift_value<(Vs::value ^ ...)>;
-
-/// Bitwise xor of metavalues Vs
-template<class... Vs>
-constexpr auto bit_xor_v = (Vs::value ^ ...);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/conjunction.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/conjunction.hpp
deleted file mode 100644
index 71a8f67a..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/conjunction.hpp
+++ /dev/null
@@ -1,42 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/logic_if.hpp"
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class...>
-struct conjunction_impl;
-
-template<>
-struct conjunction_impl<> {
- using type = false_type;
-};
-
-template<class V>
-struct conjunction_impl<V> {
- using type = V;
-};
-
-template<class V1, class... Vs>
-struct conjunction_impl<V1, Vs...> {
- using type = logic_if<V1, typename conjunction_impl<Vs...>::type, V1>;
-};
-
-} // namespace detail
-
-/// Conjunction of metavalues Vs with short-circuiting and type preservation.
-template<class... Vs>
-using conjunction = typename detail::conjunction_impl<Vs...>::type;
-
-/// Conjunction of metavalues Vs with short-circuiting and type preservation.
-template<class... Vs>
-constexpr auto conjunction_v = conjunction<Vs...>::value;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/disjunction.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/disjunction.hpp
deleted file mode 100644
index 679a44f4..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/disjunction.hpp
+++ /dev/null
@@ -1,42 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/logic_if.hpp"
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class...>
-struct disjunction_impl;
-
-template<>
-struct disjunction_impl<> {
- using type = false_type;
-};
-
-template<class V>
-struct disjunction_impl<V> {
- using type = V;
-};
-
-template<class V1, class... Vs>
-struct disjunction_impl<V1, Vs...> {
- using type = logic_if<V1, V1, typename disjunction_impl<Vs...>::type>;
-};
-
-} // namespace detail
-
-/// Disjunction of metavalues Vs with short-circuiting and type preservation.
-template<class... Vs>
-using disjunction = typename detail::disjunction_impl<Vs...>::type;
-
-/// Disjunction of metavalues Vs with short-circuiting and type preservation.
-template<class... Vs>
-constexpr auto disjunction_v = disjunction<Vs...>::value;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/lift_value.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/lift_value.hpp
deleted file mode 100644
index bd5df322..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/lift_value.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <type_traits>
-
-namespace mcl::mp {
-
-/// Lifts a value into a type (a metavalue)
-template<auto V>
-using lift_value = std::integral_constant<decltype(V), V>;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/logic_and.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/logic_and.hpp
deleted file mode 100644
index 81c40a45..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/logic_and.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl::mp {
-
-/// Logical conjunction of metavalues Vs without short-circuiting or type presevation.
-template<class... Vs>
-using logic_and = bool_value<(true && ... && Vs::value)>;
-
-/// Logical conjunction of metavalues Vs without short-circuiting or type presevation.
-template<class... Vs>
-constexpr bool logic_and_v = (true && ... && Vs::value);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/logic_if.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/logic_if.hpp
deleted file mode 100644
index b300d267..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/logic_if.hpp
+++ /dev/null
@@ -1,21 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <type_traits>
-
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl::mp {
-
-/// Conditionally select between types T and F based on boolean metavalue V
-template<class V, class T, class F>
-using logic_if = std::conditional_t<bool(V::value), T, F>;
-
-/// Conditionally select between metavalues T and F based on boolean metavalue V
-template<class V, class TV, class FV>
-constexpr auto logic_if_v = logic_if<V, TV, FV>::value;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/logic_not.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/logic_not.hpp
deleted file mode 100644
index a7a6aee9..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/logic_not.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl::mp {
-
-/// Logical negation of metavalue V.
-template<class V>
-using logic_not = bool_value<!bool(V::value)>;
-
-/// Logical negation of metavalue V.
-template<class V>
-constexpr bool logic_not_v = !bool(V::value);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/logic_or.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/logic_or.hpp
deleted file mode 100644
index 3b46fa57..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/logic_or.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl::mp {
-
-/// Logical disjunction of metavalues Vs without short-circuiting or type presevation.
-template<class... Vs>
-using logic_or = bool_value<(false || ... || Vs::value)>;
-
-/// Logical disjunction of metavalues Vs without short-circuiting or type presevation.
-template<class... Vs>
-constexpr bool logic_or_v = (false || ... || Vs::value);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/product.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/product.hpp
deleted file mode 100644
index d40c0ce3..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/product.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/lift_value.hpp"
-
-namespace mcl::mp {
-
-/// Product of metavalues Vs
-template<class... Vs>
-using product = lift_value<(Vs::value * ...)>;
-
-/// Product of metavalues Vs
-template<class... Vs>
-constexpr auto product_v = (Vs::value * ...);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/sum.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/sum.hpp
deleted file mode 100644
index 7111c02c..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/sum.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/lift_value.hpp"
-
-namespace mcl::mp {
-
-/// Sum of metavalues Vs
-template<class... Vs>
-using sum = lift_value<(Vs::value + ...)>;
-
-/// Sum of metavalues Vs
-template<class... Vs>
-constexpr auto sum_v = (Vs::value + ...);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/value.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/value.hpp
deleted file mode 100644
index 693169d6..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/value.hpp
+++ /dev/null
@@ -1,30 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstddef>
-#include <type_traits>
-
-namespace mcl::mp {
-
-/// A metavalue (of type VT and value v).
-template<class VT, VT v>
-using value = std::integral_constant<VT, v>;
-
-/// A metavalue of type size_t (and value v).
-template<size_t v>
-using size_value = value<size_t, v>;
-
-/// A metavalue of type bool (and value v). (Aliases to std::bool_constant.)
-template<bool v>
-using bool_value = value<bool, v>;
-
-/// true metavalue (Aliases to std::true_type).
-using true_type = bool_value<true>;
-
-/// false metavalue (Aliases to std::false_type).
-using false_type = bool_value<false>;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/value_cast.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/value_cast.hpp
deleted file mode 100644
index 3b88ed7d..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/value_cast.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <type_traits>
-
-namespace mcl::mp {
-
-/// Casts a metavalue from one type to another
-template<class T, class V>
-using value_cast = std::integral_constant<T, static_cast<T>(V::value)>;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/value_equal.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/value_equal.hpp
deleted file mode 100644
index a10e07f0..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/metavalue/value_equal.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <type_traits>
-
-namespace mcl::mp {
-
-/// Do two metavalues contain the same value?
-template<class V1, class V2>
-using value_equal = std::bool_constant<V1::value == V2::value>;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/misc/argument_count.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/misc/argument_count.hpp
deleted file mode 100644
index 5a30f498..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/misc/argument_count.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/lift_value.hpp"
-
-namespace mcl::mp {
-
-/// Metafunction that returns the number of arguments it has
-template<typename... Ts>
-using argument_count = lift_value<sizeof...(Ts)>;
-
-/// Metafunction that returns the number of arguments it has
-template<typename... Ts>
-constexpr auto argument_count_v = sizeof...(Ts);
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/append.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/append.hpp
deleted file mode 100644
index 838b9c94..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/append.hpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class... L>
-struct append_impl;
-
-template<template<class...> class LT, class... E1s, class... E2s>
-struct append_impl<LT<E1s...>, E2s...> {
- using type = LT<E1s..., E2s...>;
-};
-
-} // namespace detail
-
-/// Append items E to list L
-template<class L, class... Es>
-using append = typename detail::append_impl<L, Es...>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/cartesian_product.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/cartesian_product.hpp
deleted file mode 100644
index 1b378c6f..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/cartesian_product.hpp
+++ /dev/null
@@ -1,47 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metafunction/bind.hpp"
-#include "mcl/mp/metafunction/map.hpp"
-#include "mcl/mp/typelist/append.hpp"
-#include "mcl/mp/typelist/concat.hpp"
-#include "mcl/mp/typelist/list.hpp"
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class... Ls>
-struct cartesian_product_impl;
-
-template<class RL>
-struct cartesian_product_impl<RL> {
- using type = RL;
-};
-
-template<template<class...> class LT, class... REs, class... E2s>
-struct cartesian_product_impl<LT<REs...>, LT<E2s...>> {
- using type = concat<
- map<MCL_MP_BIND(append, REs), list<E2s...>>...>;
-};
-
-template<class RL, class L2, class L3, class... Ls>
-struct cartesian_product_impl<RL, L2, L3, Ls...> {
- using type = typename cartesian_product_impl<
- typename cartesian_product_impl<RL, L2>::type,
- L3,
- Ls...>::type;
-};
-
-} // namespace detail
-
-/// Produces the cartesian product of a set of lists
-/// For example:
-/// cartesian_product<list<A, B>, list<D, E>> == list<list<A, D>, list<A, E>, list<B, D>, list<B, E>
-template<typename L1, typename... Ls>
-using cartesian_product = typename detail::cartesian_product_impl<map<list, L1>, Ls...>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/concat.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/concat.hpp
deleted file mode 100644
index cfdefbc1..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/concat.hpp
+++ /dev/null
@@ -1,94 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/typelist/list.hpp"
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class... Ls>
-struct concat_impl;
-
-template<>
-struct concat_impl<> {
- using type = list<>;
-};
-
-template<class L>
-struct concat_impl<L> {
- using type = L;
-};
-
-template<template<class...> class LT, class... E1s, class... E2s, class... Ls>
-struct concat_impl<LT<E1s...>, LT<E2s...>, Ls...> {
- using type = typename concat_impl<LT<E1s..., E2s...>, Ls...>::type;
-};
-
-template<template<class...> class LT,
- class... E1s,
- class... E2s,
- class... E3s,
- class... E4s,
- class... E5s,
- class... E6s,
- class... E7s,
- class... E8s,
- class... E9s,
- class... E10s,
- class... E11s,
- class... E12s,
- class... E13s,
- class... E14s,
- class... E15s,
- class... E16s,
- class... Ls>
-struct concat_impl<
- LT<E1s...>,
- LT<E2s...>,
- LT<E3s...>,
- LT<E4s...>,
- LT<E5s...>,
- LT<E6s...>,
- LT<E7s...>,
- LT<E8s...>,
- LT<E9s...>,
- LT<E10s...>,
- LT<E11s...>,
- LT<E12s...>,
- LT<E13s...>,
- LT<E14s...>,
- LT<E15s...>,
- LT<E16s...>,
- Ls...> {
- using type = typename concat_impl<
- LT<
- E1s...,
- E2s...,
- E3s...,
- E4s...,
- E5s...,
- E6s...,
- E7s...,
- E8s...,
- E9s...,
- E10s...,
- E11s...,
- E12s...,
- E13s...,
- E14s...,
- E15s...,
- E16s...>,
- Ls...>::type;
-};
-
-} // namespace detail
-
-/// Concatenate lists together
-template<class... Ls>
-using concat = typename detail::concat_impl<Ls...>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/contains.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/contains.hpp
deleted file mode 100644
index 1b7a0ed6..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/contains.hpp
+++ /dev/null
@@ -1,23 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl::mp {
-
-/// Does list L contain an element which is same as type T?
-template<class L, class T>
-struct contains;
-
-template<template<class...> class LT, class... Ts, class T>
-struct contains<LT<Ts...>, T>
- : bool_value<(false || ... || std::is_same_v<Ts, T>)> {};
-
-/// Does list L contain an element which is same as type T?
-template<class L, class T>
-constexpr bool contains_v = contains<L, T>::value;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/drop.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/drop.hpp
deleted file mode 100644
index 9c7be44b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/drop.hpp
+++ /dev/null
@@ -1,33 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstddef>
-#include <type_traits>
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<size_t N, class L>
-struct drop_impl;
-
-template<size_t N, template<class...> class LT>
-struct drop_impl<N, LT<>> {
- using type = LT<>;
-};
-
-template<size_t N, template<class...> class LT, class E1, class... Es>
-struct drop_impl<N, LT<E1, Es...>> {
- using type = std::conditional_t<N == 0, LT<E1, Es...>, typename drop_impl<N - 1, LT<Es...>>::type>;
-};
-
-} // namespace detail
-
-/// Drops the first N elements of list L
-template<std::size_t N, class L>
-using drop = typename detail::drop_impl<N, L>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/get.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/get.hpp
deleted file mode 100644
index a2ec7461..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/get.hpp
+++ /dev/null
@@ -1,18 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstddef>
-#include <tuple>
-
-#include "mcl/mp/metafunction/apply.hpp"
-
-namespace mcl::mp {
-
-/// Get element I from list L
-template<std::size_t I, class L>
-using get = std::tuple_element_t<I, apply<std::tuple, L>>;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/head.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/head.hpp
deleted file mode 100644
index 63062825..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/head.hpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class L>
-struct head_impl;
-
-template<template<class...> class LT, class E1, class... Es>
-struct head_impl<LT<E1, Es...>> {
- using type = E1;
-};
-
-} // namespace detail
-
-/// Gets the tail/cdr/all-but-the-first-element of list L
-template<class L>
-using head = typename detail::head_impl<L>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/length.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/length.hpp
deleted file mode 100644
index d5949604..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/length.hpp
+++ /dev/null
@@ -1,20 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metafunction/apply.hpp"
-#include "mcl/mp/misc/argument_count.hpp"
-
-namespace mcl::mp {
-
-/// Length of list L
-template<class L>
-using length = apply<argument_count, L>;
-
-/// Length of list L
-template<class L>
-constexpr auto length_v = length<L>::value;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/lift_sequence.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/lift_sequence.hpp
deleted file mode 100644
index ba2617b8..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/lift_sequence.hpp
+++ /dev/null
@@ -1,29 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <type_traits>
-
-#include "mcl/mp/typelist/list.hpp"
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class VL>
-struct lift_sequence_impl;
-
-template<class T, template<class, T...> class VLT, T... values>
-struct lift_sequence_impl<VLT<T, values...>> {
- using type = list<std::integral_constant<T, values>...>;
-};
-
-} // namespace detail
-
-/// Lifts values in value list VL to create a type list.
-template<class VL>
-using lift_sequence = typename detail::lift_sequence_impl<VL>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/list.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/list.hpp
deleted file mode 100644
index 48348ec7..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/list.hpp
+++ /dev/null
@@ -1,13 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-/// Contains a list of types
-template<class... E>
-struct list {};
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/lower_to_tuple.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/lower_to_tuple.hpp
deleted file mode 100644
index a9007f3b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/lower_to_tuple.hpp
+++ /dev/null
@@ -1,24 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <tuple>
-
-namespace mcl::mp {
-
-/// Converts a list of metavalues to a tuple.
-template<class L>
-struct lower_to_tuple;
-
-template<template<class...> class LT, class... Es>
-struct lower_to_tuple<LT<Es...>> {
- static constexpr auto value = std::make_tuple(static_cast<typename Es::value_type>(Es::value)...);
-};
-
-/// Converts a list of metavalues to a tuple.
-template<class L>
-constexpr auto lower_to_tuple_v = lower_to_tuple<L>::value;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/prepend.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/prepend.hpp
deleted file mode 100644
index df9aedd8..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/prepend.hpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class... L>
-struct prepend_impl;
-
-template<template<class...> class LT, class... E1s, class... E2s>
-struct prepend_impl<LT<E1s...>, E2s...> {
- using type = LT<E2s..., E1s...>;
-};
-
-} // namespace detail
-
-/// Prepend items E to list L
-template<class L, class... Es>
-using prepend = typename detail::prepend_impl<L, Es...>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/tail.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/tail.hpp
deleted file mode 100644
index 54f14c12..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/mp/typelist/tail.hpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-namespace mcl::mp {
-
-namespace detail {
-
-template<class L>
-struct tail_impl;
-
-template<template<class...> class LT, class E1, class... Es>
-struct tail_impl<LT<E1, Es...>> {
- using type = LT<Es...>;
-};
-
-} // namespace detail
-
-/// Gets the first type of list L
-template<class L>
-using tail = typename detail::tail_impl<L>::type;
-
-} // namespace mcl::mp
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/scope_exit.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/scope_exit.hpp
deleted file mode 100644
index d3772e90..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/scope_exit.hpp
+++ /dev/null
@@ -1,94 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <exception>
-#include <type_traits>
-#include <utility>
-
-#include <mcl/macro/anonymous_variable.hpp>
-
-namespace mcl::detail {
-
-struct scope_exit_tag {};
-struct scope_fail_tag {};
-struct scope_success_tag {};
-
-template<typename Function>
-class scope_exit final {
-public:
- explicit scope_exit(Function&& fn)
- : function(std::move(fn)) {}
-
- ~scope_exit() noexcept
- {
- function();
- }
-
-private:
- Function function;
-};
-
-template<typename Function>
-class scope_fail final {
-public:
- explicit scope_fail(Function&& fn)
- : function(std::move(fn)), exception_count(std::uncaught_exceptions()) {}
-
- ~scope_fail() noexcept
- {
- if (std::uncaught_exceptions() > exception_count) {
- function();
- }
- }
-
-private:
- Function function;
- int exception_count;
-};
-
-template<typename Function>
-class scope_success final {
-public:
- explicit scope_success(Function&& fn)
- : function(std::move(fn)), exception_count(std::uncaught_exceptions()) {}
-
- ~scope_success()
- {
- if (std::uncaught_exceptions() <= exception_count) {
- function();
- }
- }
-
-private:
- Function function;
- int exception_count;
-};
-
-// We use ->* here as it has the highest precedence of the operators we can use.
-
-template<typename Function>
-auto operator->*(scope_exit_tag, Function&& function)
-{
- return scope_exit<std::decay_t<Function>>{std::forward<Function>(function)};
-}
-
-template<typename Function>
-auto operator->*(scope_fail_tag, Function&& function)
-{
- return scope_fail<std::decay_t<Function>>{std::forward<Function>(function)};
-}
-
-template<typename Function>
-auto operator->*(scope_success_tag, Function&& function)
-{
- return scope_success<std::decay_t<Function>>{std::forward<Function>(function)};
-}
-
-} // namespace mcl::detail
-
-#define SCOPE_EXIT auto ANONYMOUS_VARIABLE(MCL_SCOPE_EXIT_VAR_) = ::mcl::detail::scope_exit_tag{}->*[&]() noexcept
-#define SCOPE_FAIL auto ANONYMOUS_VARIABLE(MCL_SCOPE_FAIL_VAR_) = ::mcl::detail::scope_fail_tag{}->*[&]() noexcept
-#define SCOPE_SUCCESS auto ANONYMOUS_VARIABLE(MCL_SCOPE_FAIL_VAR_) = ::mcl::detail::scope_success_tag{}->*[&]()
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/stdint.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/stdint.hpp
deleted file mode 100644
index 37b82a2b..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/stdint.hpp
+++ /dev/null
@@ -1,27 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstddef>
-#include <cstdint>
-
-using u8 = std::uint8_t;
-using u16 = std::uint16_t;
-using u32 = std::uint32_t;
-using u64 = std::uint64_t;
-using uptr = std::uintptr_t;
-
-using s8 = std::int8_t;
-using s16 = std::int16_t;
-using s32 = std::int32_t;
-using s64 = std::int64_t;
-using sptr = std::intptr_t;
-
-using size_t = std::size_t;
-
-using f32 = float;
-using f64 = double;
-static_assert(sizeof(f32) == sizeof(u32), "f32 must be 32 bits wide");
-static_assert(sizeof(f64) == sizeof(u64), "f64 must be 64 bits wide");
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/type_traits/function_info.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/type_traits/function_info.hpp
deleted file mode 100644
index 2ac804ae..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/type_traits/function_info.hpp
+++ /dev/null
@@ -1,70 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include <cstddef>
-#include <tuple>
-
-#include "mcl/mp/typelist/list.hpp"
-
-namespace mcl {
-
-template<class F>
-struct function_info : function_info<decltype(&F::operator())> {};
-
-template<class R, class... As>
-struct function_info<R(As...)> {
- using return_type = R;
- using parameter_list = mp::list<As...>;
- static constexpr std::size_t parameter_count = sizeof...(As);
-
- using equivalent_function_type = R(As...);
-
- template<std::size_t I>
- struct parameter {
- static_assert(I < parameter_count, "Non-existent parameter");
- using type = std::tuple_element_t<I, std::tuple<As...>>;
- };
-};
-
-template<class R, class... As>
-struct function_info<R (*)(As...)> : function_info<R(As...)> {};
-
-template<class C, class R, class... As>
-struct function_info<R (C::*)(As...)> : function_info<R(As...)> {
- using class_type = C;
-
- using equivalent_function_type_with_class = R(C*, As...);
-};
-
-template<class C, class R, class... As>
-struct function_info<R (C::*)(As...) const> : function_info<R(As...)> {
- using class_type = C;
-
- using equivalent_function_type_with_class = R(C*, As...);
-};
-
-template<class F>
-constexpr size_t parameter_count_v = function_info<F>::parameter_count;
-
-template<class F>
-using parameter_list = typename function_info<F>::parameter_list;
-
-template<class F, std::size_t I>
-using get_parameter = typename function_info<F>::template parameter<I>::type;
-
-template<class F>
-using equivalent_function_type = typename function_info<F>::equivalent_function_type;
-
-template<class F>
-using equivalent_function_type_with_class = typename function_info<F>::equivalent_function_type_with_class;
-
-template<class F>
-using return_type = typename function_info<F>::return_type;
-
-template<class F>
-using class_type = typename function_info<F>::class_type;
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/type_traits/integer_of_size.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/type_traits/integer_of_size.hpp
deleted file mode 100644
index e37995ea..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/type_traits/integer_of_size.hpp
+++ /dev/null
@@ -1,48 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/stdint.hpp"
-
-namespace mcl {
-
-namespace detail {
-
-template<size_t size>
-struct integer_of_size_impl {};
-
-template<>
-struct integer_of_size_impl<8> {
- using unsigned_type = u8;
- using signed_type = s8;
-};
-
-template<>
-struct integer_of_size_impl<16> {
- using unsigned_type = u16;
- using signed_type = s16;
-};
-
-template<>
-struct integer_of_size_impl<32> {
- using unsigned_type = u32;
- using signed_type = s32;
-};
-
-template<>
-struct integer_of_size_impl<64> {
- using unsigned_type = u64;
- using signed_type = s64;
-};
-
-} // namespace detail
-
-template<size_t size>
-using unsigned_integer_of_size = typename detail::integer_of_size_impl<size>::unsigned_type;
-
-template<size_t size>
-using signed_integer_of_size = typename detail::integer_of_size_impl<size>::signed_type;
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/type_traits/is_instance_of_template.hpp b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/type_traits/is_instance_of_template.hpp
deleted file mode 100644
index 8a7fc33a..00000000
--- a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/Headers/mcl/type_traits/is_instance_of_template.hpp
+++ /dev/null
@@ -1,22 +0,0 @@
-// This file is part of the mcl project.
-// Copyright (c) 2022 merryhime
-// SPDX-License-Identifier: MIT
-
-#pragma once
-
-#include "mcl/mp/metavalue/value.hpp"
-
-namespace mcl {
-
-/// Is type T an instance of template class C?
-template<template<class...> class, class>
-struct is_instance_of_template : mp::false_type {};
-
-template<template<class...> class C, class... As>
-struct is_instance_of_template<C, C<As...>> : mp::true_type {};
-
-/// Is type T an instance of template class C?
-template<template<class...> class C, class T>
-constexpr bool is_instance_of_template_v = is_instance_of_template<C, T>::value;
-
-} // namespace mcl
diff --git a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/libmcl.a b/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/libmcl.a
deleted file mode 100644
index 726772a4..00000000
Binary files a/Cores/Citra/Dependencies/XCFrameworks/libmcl.xcframework/tvos-arm64/libmcl.a and /dev/null differ
diff --git a/Cores/Citra/Dependencies/oaknut/code_block.hpp b/Cores/Citra/Dependencies/oaknut/code_block.hpp
index bfa87d96..117a8efb 100644
--- a/Cores/Citra/Dependencies/oaknut/code_block.hpp
+++ b/Cores/Citra/Dependencies/oaknut/code_block.hpp
@@ -6,7 +6,10 @@
#include <algorithm>
#include <cstddef>
#include <cstdint>
+#include <cstdio>
+#include <cstdlib>
#include <new>
+#include <cerrno>
#if defined(_WIN32)
# define NOMINMAX
@@ -16,26 +19,439 @@
# include <libkern/OSCacheControl.h>
# include <pthread.h>
# include <sys/mman.h>
+# include <sys/sysctl.h>
# include <unistd.h>
+# include <mach/mach.h>
+# include <mach/vm_map.h>
+# include <dlfcn.h>
+# include <dirent.h>
+# include <cstring>
+
+// Mach constants for iOS 26 JIT
+#ifndef MAP_MEM_NAMED_CREATE
+# define MAP_MEM_NAMED_CREATE 0x020000
+#endif
+#ifndef MAP_MEM_LEDGER_TAGGED
+# define MAP_MEM_LEDGER_TAGGED 0x002000
+#endif
+#ifndef VM_LEDGER_TAG_DEFAULT
+# define VM_LEDGER_TAG_DEFAULT 0x00000001
+#endif
+#ifndef VM_LEDGER_FLAG_NO_FOOTPRINT
+# define VM_LEDGER_FLAG_NO_FOOTPRINT 0x00000001
+#endif
+
+// mach_memory_entry_ownership may not be declared in all SDK versions
+extern "C" {
+ kern_return_t mach_memory_entry_ownership(
+ mem_entry_name_port_t mem_entry,
+ mach_port_t owner,
+ int ledger_tag,
+ int ledger_flags) __attribute__((weak_import));
+}
#else
# include <sys/mman.h>
#endif
namespace oaknut {
+// Detect iOS ARM64 platform - supports both SDK macros and build system macros
+#if defined(__APPLE__) && defined(__arm64__)
+# if TARGET_OS_IPHONE || defined(IOS)
+# define OAKNUT_IOS_ARM64 1
+# endif
+#endif
+
+#ifdef __APPLE__
+#include <os/log.h>
+static os_log_t oaknut_log = os_log_create("com.citra.oaknut", "CodeBlock");
+#endif
+
+#ifdef OAKNUT_IOS_ARM64
+
+// CS_OPS constants
+#define OAKNUT_CS_OPS_STATUS 0
+#define OAKNUT_CS_DEBUGGED 0x10000000
+
+extern "C" int csops(pid_t pid, unsigned int ops, void* useraddr, size_t usersize);
+
+// Check if process is being debugged
+inline bool CodeBlockIsProcessDebugged() {
+ int flags = 0;
+ if (csops(getpid(), OAKNUT_CS_OPS_STATUS, &flags, sizeof(flags)) != 0) {
+ os_log(oaknut_log, "%{public}s", "[>>oaknut CodeBlock] csops call failed");
+ return false;
+ }
+ bool debugged = (flags & OAKNUT_CS_DEBUGGED) != 0;
+ os_log(oaknut_log, "%{public}s %{public}s (flags=0x%08X)", "[>>oaknut CodeBlock] Debug status:", debugged ? "attached" : "not attached", flags);
+ return debugged;
+}
+
+// Get major version number
+inline int CodeBlockGetIOSMajorVersion() {
+ char version_str[256] = {0};
+ size_t size = sizeof(version_str);
+
+ if (sysctlbyname("kern.osproductversion", version_str, &size, nullptr, 0) == 0) {
+ int major = std::atoi(version_str);
+ os_log(oaknut_log, "%{public}s %{public}s (major: %d)", "[>>oaknut CodeBlock] System version:", version_str, major);
+ return major;
+ }
+ return 0;
+}
+
+// Check if iOS version is 26 or later
+inline bool CodeBlockIsIOS26OrLater() {
+ static bool checked = false;
+ static bool is_ios26 = false;
+
+ if (checked) return is_ios26;
+ checked = true;
+
+#if __has_builtin(__builtin_available)
+ if (__builtin_available(iOS 26, *)) {
+ is_ios26 = true;
+ os_log(oaknut_log, "%{public}s", "[>>oaknut CodeBlock] Version check: iOS 26+ (builtin)");
+ return true;
+ }
+#endif
+
+ int major_version = CodeBlockGetIOSMajorVersion();
+ if (major_version >= 26) {
+ is_ios26 = true;
+ os_log(oaknut_log, "%{public}s", "[>>oaknut CodeBlock] Version check: iOS 26+ (sysctl)");
+ return true;
+ }
+
+ os_log(oaknut_log, "%{public}s", "[>>oaknut CodeBlock] Version check: iOS < 26");
+ return false;
+}
+
+// Helper function: find entry with specified length in path
+inline bool CodeBlockFindPathWithLength(const char* base_path, size_t target_length, char* out_path, size_t out_size) {
+ DIR* dir = opendir(base_path);
+ if (!dir) return false;
+
+ struct dirent* entry;
+ while ((entry = readdir(dir)) != nullptr) {
+ if (strlen(entry->d_name) == target_length) {
+ snprintf(out_path, out_size, "%s/%s", base_path, entry->d_name);
+ closedir(dir);
+ return true;
+ }
+ }
+ closedir(dir);
+ return false;
+}
+
+// Check if device uses TXM
+inline bool CodeBlockDeviceHasTXM() {
+ static bool checked = false;
+ static bool has_txm = false;
+
+ if (checked) return has_txm;
+ checked = true;
+
+ os_log(oaknut_log, "%{public}s", "[>>oaknut CodeBlock] Detecting TXM...");
+
+ // Method 1
+ char boot_uuid_path[512];
+ if (CodeBlockFindPathWithLength("/System/Volumes/Preboot", 36, boot_uuid_path, sizeof(boot_uuid_path))) {
+ char boot_dir[512];
+ snprintf(boot_dir, sizeof(boot_dir), "%s/boot", boot_uuid_path);
+
+ char ninety_six_path[512];
+ if (CodeBlockFindPathWithLength(boot_dir, 96, ninety_six_path, sizeof(ninety_six_path))) {
+ char txm_path[1024];
+ snprintf(txm_path, sizeof(txm_path),
+ "%s/usr/standalone/firmware/FUD/Ap,TrustedExecutionMonitor.img4",
+ ninety_six_path);
+
+ if (access(txm_path, F_OK) == 0) {
+ has_txm = true;
+ os_log(oaknut_log, "%{public}s", "[>>oaknut CodeBlock] TXM detection: TXM found");
+ return true;
+ }
+ }
+ }
+
+ // Method 2
+ char fallback_path[512];
+ if (CodeBlockFindPathWithLength("/private/preboot", 96, fallback_path, sizeof(fallback_path))) {
+ char txm_path[1024];
+ snprintf(txm_path, sizeof(txm_path),
+ "%s/usr/standalone/firmware/FUD/Ap,TrustedExecutionMonitor.img4",
+ fallback_path);
+
+ if (access(txm_path, F_OK) == 0) {
+ has_txm = true;
+ os_log(oaknut_log, "%{public}s", "[>>oaknut CodeBlock] TXM detection: TXM found");
+ return true;
+ }
+ }
+
+ os_log(oaknut_log, "%{public}s", "[>>oaknut CodeBlock] TXM detection: Device does not use TXM (PPL)");
+ return false;
+}
+
+// Get system page size
+inline std::size_t CodeBlockGetPageSize() {
+ static std::size_t page_size = 0;
+ if (page_size == 0) {
+ page_size = static_cast<std::size_t>(sysconf(_SC_PAGESIZE));
+ if (page_size == 0) page_size = 16384; // Default 16KB for iOS
+ }
+ return page_size;
+}
+
+// Align to page size
+inline std::size_t CodeBlockAlignToPage(std::size_t size) {
+ std::size_t page_size = CodeBlockGetPageSize();
+ return (size + page_size - 1) & ~(page_size - 1);
+}
+
+#endif // OAKNUT_IOS_ARM64
+
class CodeBlock {
public:
explicit CodeBlock(std::size_t size)
: m_size(size)
{
+#ifdef __APPLE__
+ os_log(oaknut_log, "%{public}s size=%zu", "[>>oaknut CodeBlock] Constructor started,", size);
+#endif
+
#if defined(_WIN32)
m_memory = (std::uint32_t*)VirtualAlloc(nullptr, size, MEM_COMMIT, PAGE_EXECUTE_READWRITE);
#elif defined(__APPLE__)
+
+#ifdef OAKNUT_IOS_ARM64
+ os_log(oaknut_log, "%{public}s", "[>>oaknut CodeBlock] iOS ARM64: OAKNUT_IOS_ARM64 defined");
+
+ bool is_ios26 = CodeBlockIsIOS26OrLater();
+ bool has_txm = false;
+
+ if (is_ios26) {
+ has_txm = CodeBlockDeviceHasTXM();
+ }
+
+ // iOS 26 TXM mode: use dual mapping, rx for execution, rw for writing
+ const bool use_txm_for_this_block = is_ios26 && has_txm;
+ // iOS 26 NoTXM/PPL mode: also use dual mapping
+ const bool use_no_txm_for_this_block = is_ios26 && !has_txm;
+
+ if (use_txm_for_this_block) {
+ // iOS 26+ TXM device - use mach_make_memory_entry_64 method
+ std::size_t page_size = CodeBlockGetPageSize();
+ std::size_t aligned_size = CodeBlockAlignToPage(size);
+
+ os_log(oaknut_log, "%{public}s requested=%zu, page_aligned=%zu, page_size=%zu",
+ "[>>oaknut CodeBlock] TXM mode:", size, aligned_size, page_size);
+
+ // Step 1: Create memory entry
+ memory_object_size_t memory_size = aligned_size;
+ mach_port_t memory_entry = MACH_PORT_NULL;
+
+ kern_return_t ret = mach_make_memory_entry_64(
+ mach_task_self(),
+ &memory_size,
+ 0,
+ MAP_MEM_NAMED_CREATE | MAP_MEM_LEDGER_TAGGED |
+ VM_PROT_READ | VM_PROT_WRITE | VM_PROT_EXECUTE,
+ &memory_entry,
+ MACH_PORT_NULL
+ );
+
+ if (ret != KERN_SUCCESS || memory_size < aligned_size) {
+ os_log(oaknut_log, "%{public}s ret=0x%x, memory_size=%llu, expected=%zu",
+ "[>>oaknut CodeBlock] TXM: [FATAL] mach_make_memory_entry_64 failed,",
+ ret, (unsigned long long)memory_size, aligned_size);
+ if (memory_entry != MACH_PORT_NULL) {
+ mach_port_deallocate(mach_task_self(), memory_entry);
+ }
+ throw std::bad_alloc{};
+ }
+
+ std::size_t actual_size = static_cast<std::size_t>(memory_size);
+ os_log(oaknut_log, "%{public}s actual_size=%zu", "[>>oaknut CodeBlock] TXM: mach_make_memory_entry_64 succeeded,", actual_size);
+
+ // Step 2: Set ownership to avoid memory footprint (optional)
+ if (mach_memory_entry_ownership != nullptr) {
+ ret = mach_memory_entry_ownership(
+ memory_entry,
+ MACH_PORT_NULL,
+ VM_LEDGER_TAG_DEFAULT,
+ VM_LEDGER_FLAG_NO_FOOTPRINT
+ );
+ if (ret != KERN_SUCCESS) {
+ os_log(oaknut_log, "%{public}s ret=0x%x", "[>>oaknut CodeBlock] TXM: mach_memory_entry_ownership failed (non-fatal),", ret);
+ }
+ }
+
+ // Step 3: Map rx region
+ vm_address_t rx_addr = 0;
+ ret = vm_map(
+ mach_task_self(),
+ &rx_addr,
+ actual_size,
+ 0,
+ VM_FLAGS_ANYWHERE,
+ memory_entry,
+ 0,
+ FALSE,
+ VM_PROT_READ | VM_PROT_EXECUTE,
+ VM_PROT_READ | VM_PROT_WRITE | VM_PROT_EXECUTE,
+ VM_INHERIT_COPY
+ );
+
+ // Release memory_entry port (regardless of success)
+ mach_port_deallocate(mach_task_self(), memory_entry);
+
+ if (ret != KERN_SUCCESS) {
+ os_log(oaknut_log, "%{public}s ret=0x%x", "[>>oaknut CodeBlock] TXM: [FATAL] vm_map rx failed,", ret);
+ throw std::bad_alloc{};
+ }
+
+ os_log(oaknut_log, "%{public}s addr=0x%llx, size=%zu", "[>>oaknut CodeBlock] TXM: vm_map rx succeeded:", (unsigned long long)rx_addr, actual_size);
+
+ // Execute brk #0xf00d to notify StikDebug to mark memory as executable
+ const char* skip_brk = getenv("CITRA_SKIP_BRK");
+ if (skip_brk && std::atoi(skip_brk) != 0) {
+ os_log(oaknut_log, "%{public}s", "[>>oaknut CodeBlock] TXM: Skipping brk #0xf00d (CITRA_SKIP_BRK is set)");
+ } else {
+ os_log(oaknut_log, "%{public}s addr=0x%llx, size=%zu", "[>>oaknut CodeBlock] TXM: Executing brk #0xf00d,", (unsigned long long)rx_addr, actual_size);
+ __asm__ volatile (
+ "mov x0, %0\n"
+ "mov x1, %1\n"
+ "mov x16, #1\n"
+ "brk #0xf00d"
+ :
+ : "r" (rx_addr), "r" (actual_size)
+ : "x0", "x1", "x16"
+ );
+ os_log(oaknut_log, "%{public}s", "[>>oaknut CodeBlock] TXM: brk #0xf00d completed");
+ }
+
+ // Step 4: Use vm_remap to create rw mirror
+ vm_address_t rw_addr = 0;
+ vm_prot_t cur_prot = 0, max_prot = 0;
+
+ ret = vm_remap(
+ mach_task_self(),
+ &rw_addr,
+ actual_size,
+ 0,
+ VM_FLAGS_ANYWHERE,
+ mach_task_self(),
+ rx_addr,
+ FALSE,
+ &cur_prot,
+ &max_prot,
+ VM_INHERIT_NONE
+ );
+
+ if (ret != KERN_SUCCESS) {
+ os_log(oaknut_log, "%{public}s ret=0x%x", "[>>oaknut CodeBlock] TXM: [FATAL] vm_remap failed,", ret);
+ vm_deallocate(mach_task_self(), rx_addr, actual_size);
+ throw std::bad_alloc{};
+ }
+
+ os_log(oaknut_log, "%{public}s rw=0x%llx, cur_prot=0x%x, max_prot=0x%x",
+ "[>>oaknut CodeBlock] TXM: vm_remap succeeded:", (unsigned long long)rw_addr, cur_prot, max_prot);
+
+ // Step 5: Set rw permissions
+ if (mprotect((void*)rw_addr, actual_size, PROT_READ | PROT_WRITE) != 0) {
+ os_log(oaknut_log, "%{public}s errno=%d", "[>>oaknut CodeBlock] TXM: [FATAL] mprotect rw failed,", errno);
+ vm_deallocate(mach_task_self(), rw_addr, actual_size);
+ vm_deallocate(mach_task_self(), rx_addr, actual_size);
+ throw std::bad_alloc{};
+ }
+
+ m_memory = reinterpret_cast<std::uint32_t*>(rx_addr);
+ m_rw_memory = reinterpret_cast<std::uint32_t*>(rw_addr);
+ m_is_txm = true;
+ m_size = actual_size;
+
+ std::ptrdiff_t diff = reinterpret_cast<std::uint8_t*>(m_rw_memory) - reinterpret_cast<std::uint8_t*>(m_memory);
+ os_log(oaknut_log, "%{public}s rx=0x%llx rw=0x%llx size=%zu diff=%td",
+ "[>>oaknut CodeBlock] TXM: Init succeeded!", (unsigned long long)m_memory, (unsigned long long)m_rw_memory, actual_size, diff);
+ return;
+ }
+
+ if (use_no_txm_for_this_block) {
+ // iOS 26+ PPL device - use dual mapping mode
+ std::size_t aligned_size = CodeBlockAlignToPage(size);
+ os_log(oaknut_log, "%{public}s requested=%zu, page_aligned=%zu", "[>>oaknut CodeBlock] NoTXM/PPL mode:", size, aligned_size);
+
+ void* rx_ptr = mmap(nullptr, aligned_size, PROT_READ | PROT_EXEC, MAP_ANON | MAP_PRIVATE, -1, 0);
+ if (rx_ptr == MAP_FAILED) {
+ os_log(oaknut_log, "%{public}s errno=%d", "[>>oaknut CodeBlock] NoTXM: mmap r-x failed,", errno);
+ throw std::bad_alloc{};
+ }
+
+ os_log(oaknut_log, "%{public}s addr=0x%llx, size=%zu", "[>>oaknut CodeBlock] NoTXM: mmap r-x succeeded:", (unsigned long long)rx_ptr, aligned_size);
+
+ // Create rw mirror
+ vm_address_t rw_addr = 0;
+ vm_prot_t cur_prot = 0, max_prot = 0;
+
+ kern_return_t ret = vm_remap(
+ mach_task_self(),
+ &rw_addr,
+ aligned_size,
+ 0,
+ VM_FLAGS_ANYWHERE,
+ mach_task_self(),
+ (vm_address_t)rx_ptr,
+ FALSE,
+ &cur_prot,
+ &max_prot,
+ VM_INHERIT_NONE
+ );
+
+ if (ret != KERN_SUCCESS) {
+ os_log(oaknut_log, "%{public}s ret=0x%x", "[>>oaknut CodeBlock] NoTXM: vm_remap failed,", ret);
+ munmap(rx_ptr, aligned_size);
+ throw std::bad_alloc{};
+ }
+
+ if (mprotect((void*)rw_addr, aligned_size, PROT_READ | PROT_WRITE) != 0) {
+ os_log(oaknut_log, "%{public}s errno=%d", "[>>oaknut CodeBlock] NoTXM: mprotect failed,", errno);
+ vm_deallocate(mach_task_self(), rw_addr, aligned_size);
+ munmap(rx_ptr, aligned_size);
+ throw std::bad_alloc{};
+ }
+
+ m_memory = reinterpret_cast<std::uint32_t*>(rx_ptr);
+ m_rw_memory = reinterpret_cast<std::uint32_t*>(rw_addr);
+ m_is_no_txm = true;
+ m_size = aligned_size;
+
+ os_log(oaknut_log, "%{public}s rx=0x%llx rw=0x%llx size=%zu",
+ "[>>oaknut CodeBlock] NoTXM: Init succeeded!", (unsigned long long)m_memory, (unsigned long long)m_rw_memory, aligned_size);
+ return;
+ }
+
+ // Legacy mode (iOS < 26) - single mapping, use mprotect to switch permissions
+ os_log(oaknut_log, "%{public}s", "[>>oaknut CodeBlock] Legacy mode (iOS < 26)");
+ m_memory = (std::uint32_t*)mmap(nullptr, size, PROT_READ | PROT_EXEC, MAP_ANON | MAP_PRIVATE, -1, 0);
+ if (m_memory == MAP_FAILED) {
+ os_log(oaknut_log, "%{public}s errno=%d", "[>>oaknut CodeBlock] Legacy: mmap failed,", errno);
+ m_memory = nullptr;
+ throw std::bad_alloc{};
+ }
+ os_log(oaknut_log, "%{public}s rx=0x%llx size=%zu", "[>>oaknut CodeBlock] Legacy: mmap succeeded,", (unsigned long long)m_memory, size);
+ // Legacy mode doesn't need m_rw_memory, wptr() will return m_memory
+#else
+ // macOS or other Apple platforms (OAKNUT_IOS_ARM64 not defined)
+ os_log(oaknut_log, "%{public}s", "[>>oaknut CodeBlock] OAKNUT_IOS_ARM64 not defined, using default path");
# if TARGET_OS_IPHONE
m_memory = (std::uint32_t*)mmap(nullptr, size, PROT_READ | PROT_EXEC, MAP_ANON | MAP_PRIVATE, -1, 0);
# else
m_memory = (std::uint32_t*)mmap(nullptr, size, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_ANON | MAP_PRIVATE | MAP_JIT, -1, 0);
# endif
+#endif // OAKNUT_IOS_ARM64
+
#elif defined(__NetBSD__)
m_memory = (std::uint32_t*)mmap(nullptr, size, PROT_MPROTECT(PROT_READ | PROT_WRITE | PROT_EXEC), MAP_ANON | MAP_PRIVATE, -1, 0);
#elif defined(__OpenBSD__)
@@ -55,6 +471,30 @@ public:
#if defined(_WIN32)
VirtualFree((void*)m_memory, 0, MEM_RELEASE);
+#elif defined(__APPLE__) && defined(OAKNUT_IOS_ARM64)
+ if (m_is_txm) {
+ if (m_rw_memory) {
+ os_log(oaknut_log, "%{public}s 0x%llx", "[>>oaknut CodeBlock] TXM: Releasing rw mapping", (unsigned long long)m_rw_memory);
+ vm_deallocate(mach_task_self(), (vm_address_t)m_rw_memory, m_size);
+ }
+ os_log(oaknut_log, "%{public}s 0x%llx", "[>>oaknut CodeBlock] TXM: Releasing rx mapping", (unsigned long long)m_memory);
+ vm_deallocate(mach_task_self(), (vm_address_t)m_memory, m_size);
+ return;
+ }
+
+ if (m_is_no_txm) {
+ if (m_rw_memory) {
+ os_log(oaknut_log, "%{public}s 0x%llx", "[>>oaknut CodeBlock] NoTXM: Releasing rw mapping", (unsigned long long)m_rw_memory);
+ vm_deallocate(mach_task_self(), (vm_address_t)m_rw_memory, m_size);
+ }
+ os_log(oaknut_log, "%{public}s 0x%llx", "[>>oaknut CodeBlock] NoTXM: Releasing rx mapping", (unsigned long long)m_memory);
+ munmap(m_memory, m_size);
+ return;
+ }
+
+ // Legacy mode (iOS < 26)
+ os_log(oaknut_log, "%{public}s 0x%llx", "[>>oaknut CodeBlock] Legacy: Releasing memory", (unsigned long long)m_memory);
+ munmap(m_memory, m_size);
#else
munmap(m_memory, m_size);
#endif
@@ -65,15 +505,49 @@ public:
CodeBlock(CodeBlock&&) = delete;
CodeBlock& operator=(CodeBlock&&) = delete;
+ /// Get executable memory pointer (for executing JIT code and getting function entry points)
std::uint32_t* ptr() const
{
return m_memory;
}
+ /// Get writable memory pointer (for writing JIT code)
+ /// - iOS 26+ dual mapping mode: returns rw mapping pointer
+ /// - iOS < 26 Legacy mode: returns same pointer as ptr() (requires unprotect/protect)
+ /// - macOS: returns same pointer as ptr() (with pthread_jit_write_protect_np)
+ std::uint32_t* wptr() const
+ {
+#ifdef OAKNUT_IOS_ARM64
+ // iOS 26+ dual mapping mode: return rw mapping
+ if (m_rw_memory) {
+ return m_rw_memory;
+ }
+ // Legacy mode: return m_memory (requires unprotect before writing)
+#endif
+ return m_memory;
+ }
+
+ /// Check if using dual mapping mode (iOS 26+)
+ bool is_dual_mapping() const
+ {
+#ifdef OAKNUT_IOS_ARM64
+ return m_is_txm || m_is_no_txm;
+#else
+ return false;
+#endif
+ }
+
void protect()
{
-#if defined(__APPLE__) && !TARGET_OS_IPHONE
+#if defined(__APPLE__) && !defined(OAKNUT_IOS_ARM64)
pthread_jit_write_protect_np(1);
+#elif defined(OAKNUT_IOS_ARM64)
+ // iOS 26+ dual mapping mode doesn't need protection switching, rx and rw are separate mappings
+ if (m_is_txm || m_is_no_txm) {
+ return;
+ }
+ // Legacy mode (iOS < 26): switch to read-only + execute
+ mprotect(m_memory, m_size, PROT_READ | PROT_EXEC);
#elif defined(__APPLE__) || defined(__NetBSD__) || defined(__OpenBSD__)
mprotect(m_memory, m_size, PROT_READ | PROT_EXEC);
#endif
@@ -81,8 +555,15 @@ public:
void unprotect()
{
-#if defined(__APPLE__) && !TARGET_OS_IPHONE
+#if defined(__APPLE__) && !defined(OAKNUT_IOS_ARM64)
pthread_jit_write_protect_np(0);
+#elif defined(OAKNUT_IOS_ARM64)
+ // iOS 26+ dual mapping mode doesn't need protection switching
+ if (m_is_txm || m_is_no_txm) {
+ return;
+ }
+ // Legacy mode (iOS < 26): switch to read-write
+ mprotect(m_memory, m_size, PROT_READ | PROT_WRITE);
#elif defined(__APPLE__) || defined(__NetBSD__) || defined(__OpenBSD__)
mprotect(m_memory, m_size, PROT_READ | PROT_WRITE);
#endif
@@ -91,6 +572,29 @@ public:
void invalidate(std::uint32_t* mem, std::size_t size)
{
#if defined(__APPLE__)
+#ifdef OAKNUT_IOS_ARM64
+ // iOS 26+ dual mapping mode: need to use rx pointer for invalidate
+ if (m_is_txm || m_is_no_txm) {
+ // If passed rw pointer, need to convert to rx pointer
+ std::uint8_t* mem_byte = reinterpret_cast<std::uint8_t*>(mem);
+ std::uint8_t* rx_base = reinterpret_cast<std::uint8_t*>(m_memory);
+ std::uint8_t* rw_base = reinterpret_cast<std::uint8_t*>(m_rw_memory);
+
+ // Calculate offset and convert to rx address
+ std::uint32_t* invalidate_ptr;
+ if (m_rw_memory && mem_byte >= rw_base && mem_byte < rw_base + m_size) {
+ // mem is rw address, convert to rx address
+ std::ptrdiff_t offset = mem_byte - rw_base;
+ invalidate_ptr = reinterpret_cast<std::uint32_t*>(rx_base + offset);
+ } else {
+ // mem is already rx address
+ invalidate_ptr = mem;
+ }
+
+ sys_icache_invalidate(invalidate_ptr, size);
+ return;
+ }
+#endif
sys_icache_invalidate(mem, size);
#elif defined(_WIN32)
FlushInstructionCache(GetCurrentProcess(), mem, size);
@@ -136,7 +640,12 @@ public:
}
protected:
- std::uint32_t* m_memory;
+ std::uint32_t* m_memory = nullptr;
+#ifdef OAKNUT_IOS_ARM64
+ std::uint32_t* m_rw_memory = nullptr;
+ bool m_is_txm = false;
+ bool m_is_no_txm = false;
+#endif
std::size_t m_size = 0;
};
diff --git a/Cores/azahar.libretro.framework/Info.plist b/Cores/azahar.libretro.framework/Info.plist
deleted file mode 100644
index 4f31ffe5..00000000
--- a/Cores/azahar.libretro.framework/Info.plist
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:bf0e341eaf990c20ce7f6cc51d30240905102d18b17e77f4f8d60d9a1c1b7cd3
-size 1006
diff --git a/Cores/azahar.libretro.framework/_CodeSignature/CodeResources b/Cores/azahar.libretro.framework/_CodeSignature/CodeResources
deleted file mode 100644
index b1795273..00000000
--- a/Cores/azahar.libretro.framework/_CodeSignature/CodeResources
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:203ba94b59517d3fe7c203ea18bbe5033c3a1591736e75b5231184035dae5d64
-size 1798
diff --git a/Cores/azahar.libretro.framework/azahar.libretro b/Cores/azahar.libretro.framework/azahar.libretro
deleted file mode 100755
index a80d4c9f..00000000
--- a/Cores/azahar.libretro.framework/azahar.libretro
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:b6075444e91bec6caa452777c865e4930bc981167a982fc43b9c577c0ed051ce
-size 28214432
diff --git a/ManicEmu/ManicEmu.xcodeproj/project.pbxproj b/ManicEmu/ManicEmu.xcodeproj/project.pbxproj
index e33f5e72..ef1ae39f 100644
--- a/ManicEmu/ManicEmu.xcodeproj/project.pbxproj
+++ b/ManicEmu/ManicEmu.xcodeproj/project.pbxproj
@@ -53,7 +53,6 @@
571748392DA26F1E007CCE25 /* CoreBluetooth.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571748382DA26F1E007CCE25 /* CoreBluetooth.framework */; };
571BB8072DA4357D00830134 /* ThreeDS.swift in Sources */ = {isa = PBXBuildFile; fileRef = 571BB8062DA4357900830134 /* ThreeDS.swift */; };
571BB93A2DA44D6B00830134 /* SDL in Frameworks */ = {isa = PBXBuildFile; productRef = 571BB9392DA44D6B00830134 /* SDL */; };
- 571F835A2ECF485500D52663 /* azahar.libretro.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 571F83582ECF484700D52663 /* azahar.libretro.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
571F837B2ECFFE4900D52663 /* AzaharAdvancedSettingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 571F83782ECFFE4100D52663 /* AzaharAdvancedSettingViewController.swift */; };
571F83D12ED1B02F00D52663 /* flycast-jitless-fuse.libretro.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 571F83CF2ED1B02300D52663 /* flycast-jitless-fuse.libretro.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
5720CACC2DB555990090C0F6 /* ThreeDSKeyboardView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5720CACB2DB5558B0090C0F6 /* ThreeDSKeyboardView.swift */; };
@@ -617,6 +616,8 @@
5771C20A2E6569BE0062EDE0 /* LeaderboardView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5771C2092E6569B60062EDE0 /* LeaderboardView.swift */; };
5771C28B2E6986C00062EDE0 /* DC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5771C28A2E6986BE0062EDE0 /* DC.swift */; };
5771C2922E699C930062EDE0 /* flycast.libretro.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 5771C2902E699C880062EDE0 /* flycast.libretro.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
+ 577EC5602F7E561900E8E3EB /* UniversalScript.swift in Sources */ = {isa = PBXBuildFile; fileRef = 577EC55F2F7E561900E8E3EB /* UniversalScript.swift */; };
+ 577EC5AB2F7E566700E8E3EB /* UniversalScript.c in Sources */ = {isa = PBXBuildFile; fileRef = 577EC5AA2F7E566700E8E3EB /* UniversalScript.c */; };
5781F4572EECF7CF00916D8B /* LibretroShaders.m in Sources */ = {isa = PBXBuildFile; fileRef = 5781F4552EECF7CF00916D8B /* LibretroShaders.m */; };
5781F4612EED62E200916D8B /* ShadersListCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5781F45F2EED62DA00916D8B /* ShadersListCell.swift */; };
5781F4652EED639F00916D8B /* ShadersListBlankSlateView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5781F4642EED639C00916D8B /* ShadersListBlankSlateView.swift */; };
@@ -632,6 +633,7 @@
5781F5AE2EF45C8200916D8B /* JGenesisView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5781F5AB2EF45C6900916D8B /* JGenesisView.swift */; };
578452BA2F6A79370020A88F /* DOS.swift in Sources */ = {isa = PBXBuildFile; fileRef = 578452B92F6A79340020A88F /* DOS.swift */; };
578452C02F6A7F500020A88F /* dosbox.pure.libretro.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 578452BE2F6A7F380020A88F /* dosbox.pure.libretro.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
+ 578F24032F7A75AC00C8D834 /* azahar.libretro.framework/azahar.libretro in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 578F23C22F7A759300C8D834 /* azahar.libretro.framework/azahar.libretro */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
578F287E2F37805000D2D998 /* WFCSettingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 578F287C2F37804600D2D998 /* WFCSettingViewController.swift */; };
578F28832F3780BC00D2D998 /* WFCSettingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 578F28812F3780B700D2D998 /* WFCSettingView.swift */; };
578F288E2F37838300D2D998 /* OnlinePlayCollectionCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 578F288C2F37837B00D2D998 /* OnlinePlayCollectionCell.swift */; };
@@ -887,6 +889,321 @@
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
+ 578F23A72F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 0980F17D22094E62B84BB637;
+ remoteInfo = GenericCodeGen;
+ };
+ 578F23A92F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 829931EC4294453782DBE9B1;
+ remoteInfo = MachineIndependent;
+ };
+ 578F23AB2F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 6520BECA99224092BA74B530;
+ remoteInfo = OSDependent;
+ };
+ 578F23AD2F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 492BA9EF27F2417B8F5BD913;
+ remoteInfo = SPIRV;
+ };
+ 578F23AF2F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 5A07BE1EDDF5437B95CAFA56;
+ remoteInfo = "SPIRV-Tools-diff";
+ };
+ 578F23B12F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 498D85D32B064A868C97E0F3;
+ remoteInfo = "SPIRV-Tools-link";
+ };
+ 578F23B32F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 15DC5C47C9024BF6B9426C10;
+ remoteInfo = "SPIRV-Tools-lint";
+ };
+ 578F23B52F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 9C9CACAD0E3749419AF26B87;
+ remoteInfo = "SPIRV-Tools-opt";
+ };
+ 578F23B72F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = E399EECA9D0F4E6EBF4B1B22;
+ remoteInfo = "SPIRV-Tools-reduce";
+ };
+ 578F23B92F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 48F4801A1EEC466BB0D5EE4E;
+ remoteInfo = "SPIRV-Tools-shared";
+ };
+ 578F23BB2F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = FFAE4657F42C426E9186C8B3;
+ remoteInfo = "SPIRV-Tools-static";
+ };
+ 578F23BD2F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 92FB7B8EC4574BFD99EBC598;
+ remoteInfo = SoundTouch;
+ };
+ 578F23BF2F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 51432B86FA8148E99305259E;
+ remoteInfo = audio_core;
+ };
+ 578F23C12F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 66CBC979597942179D87887C;
+ remoteInfo = azahar_libretro;
+ };
+ 578F23C32F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 0A58A0C599D442E28E55AB95;
+ remoteInfo = azahar_libretro_common;
+ };
+ 578F23C52F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 0645CDBCD8754C45A923DC6C;
+ remoteInfo = boost_iostreams;
+ };
+ 578F23C72F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 570EFAD613C1411F85D0F5A9;
+ remoteInfo = boost_serialization;
+ };
+ 578F23C92F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = C071244D41FC4537940B4F7F;
+ remoteInfo = bs_obj;
+ };
+ 578F23CB2F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 112B2B18BC1B44B08BBDA0C0;
+ remoteInfo = citra_common;
+ };
+ 578F23CD2F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 39186B2C55E04A0380B6259F;
+ remoteInfo = citra_core;
+ };
+ 578F23CF2F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 70605AFEBB2242C1813A051E;
+ remoteInfo = crypto;
+ };
+ 578F23D12F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 6D05751091DA40F58832ED30;
+ remoteInfo = crypto_obj;
+ };
+ 578F23D32F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = FC9F30C593244937933D95D8;
+ remoteInfo = cryptopp;
+ };
+ 578F23D52F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 7B419D1D439A495C817E8FD2;
+ remoteInfo = dynarmic;
+ };
+ 578F23D72F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 0AC62F23A42C4CE08DE0C14B;
+ remoteInfo = enet;
+ };
+ 578F23D92F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 194475BF60DF4789899C7FBC;
+ remoteInfo = faad2;
+ };
+ 578F23DB2F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 302C36246AD44774B26D9917;
+ remoteInfo = fmt;
+ };
+ 578F23DD2F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 0D5D5E007336462E9ECBA0D9;
+ remoteInfo = glslang;
+ };
+ 578F23DF2F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 05F1390D62C54D47A9303439;
+ remoteInfo = "glslang-default-resource-limits";
+ };
+ 578F23E12F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 52AF2ABE92604201807388C5;
+ remoteInfo = inih;
+ };
+ 578F23E32F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = B1CDED58A5774BB083B2EDE5;
+ remoteInfo = input_common;
+ };
+ 578F23E52F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 3EB9C7F9BD1F4D8DB30F60A4;
+ remoteInfo = libzstd_static;
+ };
+ 578F23E72F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 4187C426559442B18DA8D958;
+ remoteInfo = lodepng;
+ };
+ 578F23E92F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 000A38E11F72480297F80008;
+ remoteInfo = mcl;
+ };
+ 578F23EB2F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 455E6C7A1163437FBF10C4DA;
+ remoteInfo = network;
+ };
+ 578F23ED2F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = C174493B86A24731B843E59E;
+ remoteInfo = sirit;
+ };
+ 578F23EF2F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 83E68252D85A4650BA2F3CF4;
+ remoteInfo = ssl;
+ };
+ 578F23F12F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 9EEE3D73954C47AE93711CAE;
+ remoteInfo = ssl_obj;
+ };
+ 578F23F32F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 93E961F2259A465EA2588E22;
+ remoteInfo = teakra;
+ };
+ 578F23F52F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = CF244138353F48A0B4F5313E;
+ remoteInfo = teakra_c;
+ };
+ 578F23F72F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 4E1FD28AE8CA4E66AEC2C24C;
+ remoteInfo = tls;
+ };
+ 578F23F92F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 7287DFE1E06B4E0280FC264F;
+ remoteInfo = tls_obj;
+ };
+ 578F23FB2F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 156B8EE2B36B48768BE2FDDF;
+ remoteInfo = video_core;
+ };
+ 578F23FD2F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 303E8A6C5DCA46479E0F27F2;
+ remoteInfo = xxhash;
+ };
+ 578F23FF2F7A759300C8D834 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 63FC4E6773984CDE910F2494;
+ remoteInfo = zstd_seekable;
+ };
57BFBEB02DD489C700AABF98 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = A5A001E724555A5F006E0F0E /* Project object */;
@@ -912,6 +1229,7 @@
dstPath = "";
dstSubfolderSpec = 10;
files = (
+ 578F24032F7A75AC00C8D834 /* azahar.libretro.framework/azahar.libretro in Embed Frameworks */,
578452C02F6A7F500020A88F /* dosbox.pure.libretro.framework in Embed Frameworks */,
D90358FF409D7405F5E406CC /* prboom.libretro.framework in Embed Frameworks */,
573CEEAB2F23408400EA24F1 /* virtualjaguar.libretro.framework in Embed Frameworks */,
@@ -920,7 +1238,6 @@
573CEEA22F23405800EA24F1 /* atari800.libretro.framework in Embed Frameworks */,
573CEE9F2F23404B00EA24F1 /* stella.libretro.framework in Embed Frameworks */,
573CED7E2F1CE2D900EA24F1 /* desmume.libretro.framework in Embed Frameworks */,
- 571F835A2ECF485500D52663 /* azahar.libretro.framework in Embed Frameworks */,
57B5E34A2ECE0A2800DE17E9 /* fbneo.libretro.framework in Embed Frameworks */,
57B5E31B2ECC738500DE17E9 /* mame.libretro.framework in Embed Frameworks */,
57A481682E7F05AB001D4598 /* melondsds.libretro.framework in Embed Frameworks */,
@@ -1005,7 +1322,6 @@
571744142DA2637F007CCE25 /* libThreeDS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libThreeDS.a; sourceTree = BUILT_PRODUCTS_DIR; };
571748382DA26F1E007CCE25 /* CoreBluetooth.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreBluetooth.framework; path = System/Library/Frameworks/CoreBluetooth.framework; sourceTree = SDKROOT; };
571BB8062DA4357900830134 /* ThreeDS.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ThreeDS.swift; sourceTree = "<group>"; };
- 571F83582ECF484700D52663 /* azahar.libretro.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = azahar.libretro.framework; path = ../Cores/azahar.libretro.framework; sourceTree = SOURCE_ROOT; };
571F83782ECFFE4100D52663 /* AzaharAdvancedSettingViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AzaharAdvancedSettingViewController.swift; sourceTree = "<group>"; };
571F83CF2ED1B02300D52663 /* flycast-jitless-fuse.libretro.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "flycast-jitless-fuse.libretro.framework"; path = "../Cores/flycast-jitless-fuse.libretro.framework"; sourceTree = SOURCE_ROOT; };
5720CACB2DB5558B0090C0F6 /* ThreeDSKeyboardView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ThreeDSKeyboardView.swift; sourceTree = "<group>"; };
@@ -1684,6 +2000,8 @@
5771C2092E6569B60062EDE0 /* LeaderboardView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LeaderboardView.swift; sourceTree = "<group>"; };
5771C28A2E6986BE0062EDE0 /* DC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DC.swift; sourceTree = "<group>"; };
5771C2902E699C880062EDE0 /* flycast.libretro.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = flycast.libretro.framework; path = ../Cores/flycast.libretro.framework; sourceTree = SOURCE_ROOT; };
+ 577EC55F2F7E561900E8E3EB /* UniversalScript.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UniversalScript.swift; sourceTree = "<group>"; };
+ 577EC5AA2F7E566700E8E3EB /* UniversalScript.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = UniversalScript.c; sourceTree = "<group>"; };
5780E7F42D9586FB005130D5 /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/InfoPlist.strings; sourceTree = "<group>"; };
5780E7F52D9586FB005130D5 /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/Localizable.strings; sourceTree = "<group>"; };
5780E7F72D958D6F005130D5 /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/InfoPlist.strings; sourceTree = "<group>"; };
@@ -1770,6 +2088,8 @@
5781F5AB2EF45C6900916D8B /* JGenesisView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JGenesisView.swift; sourceTree = "<group>"; };
578452B92F6A79340020A88F /* DOS.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DOS.swift; sourceTree = "<group>"; };
578452BE2F6A7F380020A88F /* dosbox.pure.libretro.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = dosbox.pure.libretro.framework; path = ../Cores/dosbox.pure.libretro.framework; sourceTree = SOURCE_ROOT; };
+ 578F23542F7A748100C8D834 /* azahar.libretro.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = azahar.libretro.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ 578F235B2F7A759300C8D834 /* azahar.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = azahar.xcodeproj; path = "../Cores/Azahar/build/ios-arm64-xcode/azahar.xcodeproj"; sourceTree = SOURCE_ROOT; };
578F287C2F37804600D2D998 /* WFCSettingViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WFCSettingViewController.swift; sourceTree = "<group>"; };
578F28812F3780B700D2D998 /* WFCSettingView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WFCSettingView.swift; sourceTree = "<group>"; };
578F288C2F37837B00D2D998 /* OnlinePlayCollectionCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OnlinePlayCollectionCell.swift; sourceTree = "<group>"; };
@@ -3865,6 +4185,58 @@
path = Models;
sourceTree = "<group>";
};
+ 578F235E2F7A759300C8D834 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 578F23A82F7A759300C8D834 /* libGenericCodeGen.a */,
+ 578F23AA2F7A759300C8D834 /* libMachineIndependent.a */,
+ 578F23AC2F7A759300C8D834 /* libOSDependent.a */,
+ 578F23AE2F7A759300C8D834 /* libSPIRV.a */,
+ 578F23B02F7A759300C8D834 /* libSPIRV-Tools-diff.a */,
+ 578F23B22F7A759300C8D834 /* libSPIRV-Tools-link.a */,
+ 578F23B42F7A759300C8D834 /* libSPIRV-Tools-lint.a */,
+ 578F23B62F7A759300C8D834 /* libSPIRV-Tools-opt.a */,
+ 578F23B82F7A759300C8D834 /* libSPIRV-Tools-reduce.a */,
+ 578F23BA2F7A759300C8D834 /* libSPIRV-Tools-shared.dylib */,
+ 578F23BC2F7A759300C8D834 /* libSPIRV-Tools.a */,
+ 578F23BE2F7A759300C8D834 /* libSoundTouch.a */,
+ 578F23C02F7A759300C8D834 /* libaudio_core.a */,
+ 578F23C22F7A759300C8D834 /* azahar.libretro.framework/azahar.libretro */,
+ 578F23C42F7A759300C8D834 /* libazahar_libretro_common.a */,
+ 578F23C62F7A759300C8D834 /* libboost_iostreams.a */,
+ 578F23C82F7A759300C8D834 /* libboost_serialization.a */,
+ 578F23CA2F7A759300C8D834 /* libbs_obj.a */,
+ 578F23CC2F7A759300C8D834 /* libcitra_common.a */,
+ 578F23CE2F7A759300C8D834 /* libcitra_core.a */,
+ 578F23D02F7A759300C8D834 /* libcrypto.a */,
+ 578F23D22F7A759300C8D834 /* libcrypto_obj.a */,
+ 578F23D42F7A759300C8D834 /* libcryptopp.a */,
+ 578F23D62F7A759300C8D834 /* libdynarmic.a */,
+ 578F23D82F7A759300C8D834 /* libenet.a */,
+ 578F23DA2F7A759300C8D834 /* libfaad2.a */,
+ 578F23DC2F7A759300C8D834 /* libfmtd.a */,
+ 578F23DE2F7A759300C8D834 /* libglslang.a */,
+ 578F23E02F7A759300C8D834 /* libglslang-default-resource-limits.a */,
+ 578F23E22F7A759300C8D834 /* libinih.a */,
+ 578F23E42F7A759300C8D834 /* libinput_common.a */,
+ 578F23E62F7A759300C8D834 /* libzstd.a */,
+ 578F23E82F7A759300C8D834 /* liblodepng.a */,
+ 578F23EA2F7A759300C8D834 /* libmcl.a */,
+ 578F23EC2F7A759300C8D834 /* libnetwork.a */,
+ 578F23EE2F7A759300C8D834 /* libsirit.a */,
+ 578F23F02F7A759300C8D834 /* libssl.a */,
+ 578F23F22F7A759300C8D834 /* libssl_obj.a */,
+ 578F23F42F7A759300C8D834 /* libteakra.a */,
+ 578F23F62F7A759300C8D834 /* libteakra_c.a */,
+ 578F23F82F7A759300C8D834 /* libtls.a */,
+ 578F23FA2F7A759300C8D834 /* libtls_obj.a */,
+ 578F23FC2F7A759300C8D834 /* libvideo_core.a */,
+ 578F23FE2F7A759300C8D834 /* libxxhash.a */,
+ 578F24002F7A759300C8D834 /* libzstd_seekable.a */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
578F28712F377FBB00D2D998 /* OnlinePlay */ = {
isa = PBXGroup;
children = (
@@ -4078,7 +4450,6 @@
573CEE9C2F23403100EA24F1 /* stella.libretro.framework */,
573CEE9D2F23403100EA24F1 /* virtualjaguar.libretro.framework */,
573CED7C2F1CE2C100EA24F1 /* desmume.libretro.framework */,
- 571F83582ECF484700D52663 /* azahar.libretro.framework */,
57B5E3482ECE0A1A00DE17E9 /* fbneo.libretro.framework */,
57B5E3192ECC735D00DE17E9 /* mame.libretro.framework */,
57A481672E7F059D001D4598 /* melondsds.libretro.framework */,
@@ -4516,6 +4887,7 @@
A5A001F124555A5F006E0F0E /* ManicEmu */,
5768F8272DAE005F009974D1 /* ThreeDS */,
57BFBE482DD3321A00AABF98 /* Libretro */,
+ 578F235B2F7A759300C8D834 /* azahar.xcodeproj */,
A5A001F024555A5F006E0F0E /* Products */,
20137E78C79666610E451EFB /* Pods */,
E2E460DE79D75653B9E6B44C /* Frameworks */,
@@ -4566,6 +4938,8 @@
A5A69BA9256E56FF00D51C09 /* Others */ = {
isa = PBXGroup;
children = (
+ 577EC55F2F7E561900E8E3EB /* UniversalScript.swift */,
+ 577EC5AA2F7E566700E8E3EB /* UniversalScript.c */,
57DC7FFB2F52EC38004B6FFD /* WeakScriptMessageHandler.swift */,
57A912022F3B765B00628B04 /* NDSSaveConverter.swift */,
578F28C02F39A9CA00D2D998 /* BonjourKit.swift */,
@@ -4684,6 +5058,7 @@
E2E460DE79D75653B9E6B44C /* Frameworks */ = {
isa = PBXGroup;
children = (
+ 578F23542F7A748100C8D834 /* azahar.libretro.framework */,
5720CF3A2DB776100090C0F6 /* MobileCoreServices.framework */,
5720CF382DB776090090C0F6 /* CFNetwork.framework */,
5720CF362DB775FA0090C0F6 /* libz.tbd */,
@@ -4881,6 +5256,12 @@
);
productRefGroup = A5A001F024555A5F006E0F0E /* Products */;
projectDirPath = "";
+ projectReferences = (
+ {
+ ProductGroup = 578F235E2F7A759300C8D834 /* Products */;
+ ProjectRef = 578F235B2F7A759300C8D834 /* azahar.xcodeproj */;
+ },
+ );
projectRoot = "";
targets = (
A5A001EE24555A5F006E0F0E /* ManicEmu */,
@@ -4890,6 +5271,325 @@
};
/* End PBXProject section */
+/* Begin PBXReferenceProxy section */
+ 578F23A82F7A759300C8D834 /* libGenericCodeGen.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libGenericCodeGen.a;
+ remoteRef = 578F23A72F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23AA2F7A759300C8D834 /* libMachineIndependent.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libMachineIndependent.a;
+ remoteRef = 578F23A92F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23AC2F7A759300C8D834 /* libOSDependent.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libOSDependent.a;
+ remoteRef = 578F23AB2F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23AE2F7A759300C8D834 /* libSPIRV.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libSPIRV.a;
+ remoteRef = 578F23AD2F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23B02F7A759300C8D834 /* libSPIRV-Tools-diff.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = "libSPIRV-Tools-diff.a";
+ remoteRef = 578F23AF2F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23B22F7A759300C8D834 /* libSPIRV-Tools-link.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = "libSPIRV-Tools-link.a";
+ remoteRef = 578F23B12F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23B42F7A759300C8D834 /* libSPIRV-Tools-lint.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = "libSPIRV-Tools-lint.a";
+ remoteRef = 578F23B32F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23B62F7A759300C8D834 /* libSPIRV-Tools-opt.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = "libSPIRV-Tools-opt.a";
+ remoteRef = 578F23B52F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23B82F7A759300C8D834 /* libSPIRV-Tools-reduce.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = "libSPIRV-Tools-reduce.a";
+ remoteRef = 578F23B72F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23BA2F7A759300C8D834 /* libSPIRV-Tools-shared.dylib */ = {
+ isa = PBXReferenceProxy;
+ fileType = "compiled.mach-o.dylib";
+ path = "libSPIRV-Tools-shared.dylib";
+ remoteRef = 578F23B92F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23BC2F7A759300C8D834 /* libSPIRV-Tools.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = "libSPIRV-Tools.a";
+ remoteRef = 578F23BB2F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23BE2F7A759300C8D834 /* libSoundTouch.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libSoundTouch.a;
+ remoteRef = 578F23BD2F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23C02F7A759300C8D834 /* libaudio_core.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libaudio_core.a;
+ remoteRef = 578F23BF2F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23C22F7A759300C8D834 /* azahar.libretro.framework/azahar.libretro */ = {
+ isa = PBXReferenceProxy;
+ fileType = wrapper.framework;
+ name = azahar.libretro.framework/azahar.libretro;
+ path = azahar.libretro.framework;
+ remoteRef = 578F23C12F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23C42F7A759300C8D834 /* libazahar_libretro_common.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libazahar_libretro_common.a;
+ remoteRef = 578F23C32F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23C62F7A759300C8D834 /* libboost_iostreams.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libboost_iostreams.a;
+ remoteRef = 578F23C52F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23C82F7A759300C8D834 /* libboost_serialization.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libboost_serialization.a;
+ remoteRef = 578F23C72F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23CA2F7A759300C8D834 /* libbs_obj.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libbs_obj.a;
+ remoteRef = 578F23C92F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23CC2F7A759300C8D834 /* libcitra_common.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libcitra_common.a;
+ remoteRef = 578F23CB2F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23CE2F7A759300C8D834 /* libcitra_core.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libcitra_core.a;
+ remoteRef = 578F23CD2F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23D02F7A759300C8D834 /* libcrypto.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libcrypto.a;
+ remoteRef = 578F23CF2F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23D22F7A759300C8D834 /* libcrypto_obj.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libcrypto_obj.a;
+ remoteRef = 578F23D12F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23D42F7A759300C8D834 /* libcryptopp.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libcryptopp.a;
+ remoteRef = 578F23D32F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23D62F7A759300C8D834 /* libdynarmic.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libdynarmic.a;
+ remoteRef = 578F23D52F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23D82F7A759300C8D834 /* libenet.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libenet.a;
+ remoteRef = 578F23D72F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23DA2F7A759300C8D834 /* libfaad2.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libfaad2.a;
+ remoteRef = 578F23D92F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23DC2F7A759300C8D834 /* libfmtd.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libfmtd.a;
+ remoteRef = 578F23DB2F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23DE2F7A759300C8D834 /* libglslang.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libglslang.a;
+ remoteRef = 578F23DD2F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23E02F7A759300C8D834 /* libglslang-default-resource-limits.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = "libglslang-default-resource-limits.a";
+ remoteRef = 578F23DF2F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23E22F7A759300C8D834 /* libinih.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libinih.a;
+ remoteRef = 578F23E12F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23E42F7A759300C8D834 /* libinput_common.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libinput_common.a;
+ remoteRef = 578F23E32F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23E62F7A759300C8D834 /* libzstd.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libzstd.a;
+ remoteRef = 578F23E52F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23E82F7A759300C8D834 /* liblodepng.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = liblodepng.a;
+ remoteRef = 578F23E72F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23EA2F7A759300C8D834 /* libmcl.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libmcl.a;
+ remoteRef = 578F23E92F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23EC2F7A759300C8D834 /* libnetwork.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libnetwork.a;
+ remoteRef = 578F23EB2F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23EE2F7A759300C8D834 /* libsirit.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libsirit.a;
+ remoteRef = 578F23ED2F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23F02F7A759300C8D834 /* libssl.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libssl.a;
+ remoteRef = 578F23EF2F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23F22F7A759300C8D834 /* libssl_obj.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libssl_obj.a;
+ remoteRef = 578F23F12F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23F42F7A759300C8D834 /* libteakra.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libteakra.a;
+ remoteRef = 578F23F32F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23F62F7A759300C8D834 /* libteakra_c.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libteakra_c.a;
+ remoteRef = 578F23F52F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23F82F7A759300C8D834 /* libtls.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libtls.a;
+ remoteRef = 578F23F72F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23FA2F7A759300C8D834 /* libtls_obj.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libtls_obj.a;
+ remoteRef = 578F23F92F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23FC2F7A759300C8D834 /* libvideo_core.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libvideo_core.a;
+ remoteRef = 578F23FB2F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F23FE2F7A759300C8D834 /* libxxhash.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libxxhash.a;
+ remoteRef = 578F23FD2F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 578F24002F7A759300C8D834 /* libzstd_seekable.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libzstd_seekable.a;
+ remoteRef = 578F23FF2F7A759300C8D834 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+/* End PBXReferenceProxy section */
+
/* Begin PBXResourcesBuildPhase section */
57BFBE152DD32F7700AABF98 /* Resources */ = {
isa = PBXResourcesBuildPhase;
@@ -5415,6 +6115,7 @@
5726FEDD2D71BF0400041AD5 /* SettingsItemCollectionViewCell.swift in Sources */,
5720E76D2E540FDB00EC0DA5 /* RetroAchievementsProfileView.swift in Sources */,
57605FFE2D20F29000A98B0C /* SettingsViewController.swift in Sources */,
+ 577EC5602F7E561900E8E3EB /* UniversalScript.swift in Sources */,
573BECBD2D1D3F6B008AD18D /* HomeTabBar.swift in Sources */,
57EED0772ECB817C003971BD /* IconView.swift in Sources */,
5781F46F2EED6DC100916D8B /* Shader.swift in Sources */,
@@ -5674,6 +6375,7 @@
57BA59B52E3F13D100110849 /* LibretroCoreExtensions.swift in Sources */,
577006892D438F1100762E8F /* GameListView.swift in Sources */,
57D7CF862EA88AC100F41540 /* TriggerButton.swift in Sources */,
+ 577EC5AB2F7E566700E8E3EB /* UniversalScript.c in Sources */,
5781F47E2EEE572A00916D8B /* ShaderInfoView.swift in Sources */,
57F632FE2D718236007270E8 /* SettingsListView.swift in Sources */,
5744C6CF2E360AF00088081A /* UIControllerKit.swift in Sources */,
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/Contents.json
deleted file mode 100644
index 73c00596..00000000
--- a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/Contents.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "info" : {
- "author" : "xcode",
- "version" : 1
- }
-}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/best_wish.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/best_wish.imageset/Contents.json
deleted file mode 100644
index 0d97fc6e..00000000
--- a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/best_wish.imageset/Contents.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "images" : [
- {
- "idiom" : "universal",
- "scale" : "1x"
- },
- {
- "appearances" : [
- {
- "appearance" : "luminosity",
- "value" : "dark"
- }
- ],
- "idiom" : "universal",
- "scale" : "1x"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "universal",
- "scale" : "2x"
- },
- {
- "appearances" : [
- {
- "appearance" : "luminosity",
- "value" : "dark"
- }
- ],
- "filename" : "[email protected]",
- "idiom" : "universal",
- "scale" : "2x"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "universal",
- "scale" : "3x"
- },
- {
- "appearances" : [
- {
- "appearance" : "luminosity",
- "value" : "dark"
- }
- ],
- "filename" : "[email protected]",
- "idiom" : "universal",
- "scale" : "3x"
- }
- ],
- "info" : {
- "author" : "xcode",
- "version" : 1
- }
-}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/best_wish.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/best_wish.imageset/[email protected]
deleted file mode 100644
index 4e718d89..00000000
Binary files a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/best_wish.imageset/[email protected] and /dev/null differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/best_wish.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/best_wish.imageset/[email protected]
deleted file mode 100644
index a2d467b2..00000000
Binary files a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/best_wish.imageset/[email protected] and /dev/null differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/best_wish.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/best_wish.imageset/[email protected]
deleted file mode 100644
index 8ee1ced0..00000000
Binary files a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/best_wish.imageset/[email protected] and /dev/null differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/best_wish.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/best_wish.imageset/[email protected]
deleted file mode 100644
index 59bc6233..00000000
Binary files a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/best_wish.imageset/[email protected] and /dev/null differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_bg.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_bg.imageset/Contents.json
deleted file mode 100644
index 6f35cc24..00000000
--- a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_bg.imageset/Contents.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "images" : [
- {
- "idiom" : "universal",
- "scale" : "1x"
- },
- {
- "appearances" : [
- {
- "appearance" : "luminosity",
- "value" : "dark"
- }
- ],
- "idiom" : "universal",
- "scale" : "1x"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "universal",
- "scale" : "2x"
- },
- {
- "appearances" : [
- {
- "appearance" : "luminosity",
- "value" : "dark"
- }
- ],
- "filename" : "[email protected]",
- "idiom" : "universal",
- "scale" : "2x"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "universal",
- "scale" : "3x"
- },
- {
- "appearances" : [
- {
- "appearance" : "luminosity",
- "value" : "dark"
- }
- ],
- "filename" : "[email protected]",
- "idiom" : "universal",
- "scale" : "3x"
- }
- ],
- "info" : {
- "author" : "xcode",
- "version" : 1
- }
-}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_bg.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_bg.imageset/[email protected]
deleted file mode 100644
index 1c645b27..00000000
Binary files a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_bg.imageset/[email protected] and /dev/null differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_bg.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_bg.imageset/[email protected]
deleted file mode 100644
index 299d29f8..00000000
Binary files a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_bg.imageset/[email protected] and /dev/null differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_bg.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_bg.imageset/[email protected]
deleted file mode 100644
index ba9e5030..00000000
Binary files a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_bg.imageset/[email protected] and /dev/null differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_bg.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_bg.imageset/[email protected]
deleted file mode 100644
index d06cb0a8..00000000
Binary files a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_bg.imageset/[email protected] and /dev/null differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_icon.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_icon.imageset/Contents.json
deleted file mode 100644
index f1b714d9..00000000
--- a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_icon.imageset/Contents.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "images" : [
- {
- "idiom" : "universal",
- "scale" : "1x"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "universal",
- "scale" : "2x"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "universal",
- "scale" : "3x"
- }
- ],
- "info" : {
- "author" : "xcode",
- "version" : 1
- }
-}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_icon.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_icon.imageset/[email protected]
deleted file mode 100644
index d8c27d8c..00000000
Binary files a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_icon.imageset/[email protected] and /dev/null differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_icon.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_icon.imageset/[email protected]
deleted file mode 100644
index 260eff30..00000000
Binary files a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_icon.imageset/[email protected] and /dev/null differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_paper.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_paper.imageset/Contents.json
deleted file mode 100644
index 2f53b19e..00000000
--- a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_paper.imageset/Contents.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "images" : [
- {
- "idiom" : "universal",
- "scale" : "1x"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "universal",
- "scale" : "2x"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "universal",
- "scale" : "3x"
- }
- ],
- "info" : {
- "author" : "xcode",
- "version" : 1
- }
-}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_paper.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_paper.imageset/[email protected]
deleted file mode 100644
index d30276e3..00000000
Binary files a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_paper.imageset/[email protected] and /dev/null differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_paper.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_paper.imageset/[email protected]
deleted file mode 100644
index 404a57c8..00000000
Binary files a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/letter_paper.imageset/[email protected] and /dev/null differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/surprise_box.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/surprise_box.imageset/Contents.json
deleted file mode 100644
index 5fc5fee7..00000000
--- a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/surprise_box.imageset/Contents.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "images" : [
- {
- "idiom" : "universal",
- "scale" : "1x"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "universal",
- "scale" : "2x"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "universal",
- "scale" : "3x"
- }
- ],
- "info" : {
- "author" : "xcode",
- "version" : 1
- }
-}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/surprise_box.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/surprise_box.imageset/[email protected]
deleted file mode 100644
index 96bf3a35..00000000
Binary files a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/surprise_box.imageset/[email protected] and /dev/null differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/surprise_box.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/surprise_box.imageset/[email protected]
deleted file mode 100644
index e720165b..00000000
Binary files a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/celebration/surprise_box.imageset/[email protected] and /dev/null differ
diff --git a/ManicEmu/ManicEmu/Sources/Base/ApplicationSceneDelegate.swift b/ManicEmu/ManicEmu/Sources/Base/ApplicationSceneDelegate.swift
index 68a8668e..ebd97d23 100644
--- a/ManicEmu/ManicEmu/Sources/Base/ApplicationSceneDelegate.swift
+++ b/ManicEmu/ManicEmu/Sources/Base/ApplicationSceneDelegate.swift
@@ -56,10 +56,6 @@ class ApplicationSceneDelegate: UIResponder, UIWindowSceneDelegate {
AchievementsUser.updateUser(username: u, password: p, token: t)
}
})
-
- DispatchQueue.main.asyncAfter(delay: 3) {
- CelebrationView.showFirstAnniversaryLetterIfNeed()
- }
}
}
let dropInteraction = UIDropInteraction(delegate: self)
diff --git a/ManicEmu/ManicEmu/Sources/Base/Constants.swift b/ManicEmu/ManicEmu/Sources/Base/Constants.swift
index 4c686a67..890627ae 100644
--- a/ManicEmu/ManicEmu/Sources/Base/Constants.swift
+++ b/ManicEmu/ManicEmu/Sources/Base/Constants.swift
@@ -362,7 +362,6 @@ struct Constants {
static let ShowRequestReviewDate = "ShowRequestReviewDate"
static let SystemCoreVersion = "SystemCoreVersion"
static let SystemCoreBuildVersion = "SystemCoreBuildVersion"
- static let HasShow3DSPlayAlert = "HasShow3DSPlayAlert"
static let HasShow3DSNotSupportAlert = "HasShow3DSNotSupportAlert"
static let FlexSkinFirstTimeGuide = "FlexSkinFirstTimeGuide"
static let HasShowSSPlayAlert = "HasShowSSPlayAlert"
@@ -620,6 +619,7 @@ struct Constants {
case .ps1: return URL(string: "\(deltastyles)/systems/ps1")!
case .dc: return URL(string: "\(deltastyles)/systems/dreamcast")!
case .arcade: return URL(string: "\(deltastyles)/systems/arcade")!
+ case .a2600, .a5200, .a7800, .lynx, .jaguar: return URL(string: "\(deltastyles)/systems/atari")!
default: return URL(string: deltastyles)!
}
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Common/Views/CelebrationView.swift b/ManicEmu/ManicEmu/Sources/Business/Common/Views/CelebrationView.swift
index 605e5956..3751596c 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Common/Views/CelebrationView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Common/Views/CelebrationView.swift
@@ -8,327 +8,327 @@
import ProHUD
struct CelebrationView {
- static func showFirstAnniversaryLetterIfNeed() {
- var calendar = Calendar(identifier: .gregorian)
- calendar.timeZone = TimeZone(identifier: "Asia/Shanghai")!
-
- // beginDate
- var startComponents = DateComponents()
- startComponents.year = 2026
- startComponents.month = 4
- startComponents.day = 3
- startComponents.hour = 0
- startComponents.minute = 0
- startComponents.second = 0
- let startDate = calendar.date(from: startComponents)!
-
- // endDate
- var endComponents = DateComponents()
- endComponents.year = 2026
- endComponents.month = 4
- endComponents.day = 4
- endComponents.hour = 0
- let endDate = calendar.date(from: endComponents)!
-
- let now = Date()
-
- if now >= startDate &&
- now < endDate &&
- !UserDefaults.standard.bool(forKey: Constants.DefaultKey.HasShowFirstAnniversaryLetter) {
- UserDefaults.standard.set(true, forKey: Constants.DefaultKey.HasShowFirstAnniversaryLetter)
- DispatchQueue.main.asyncAfter(delay: 0.35) {
- CheersView.makeNormalCheers(userTopWindow: true)
- }
-
- Sheet.lazyPush(identifier: String(describing: CelebrationView.self)) { sheet in
- sheet.configGamePlayingStyle(hideCompletion: nil)
- sheet.onTappedBackground(action: { _ in })
-
- sheet.config.backgroundViewMask { mask in
- mask.backgroundColor = .black.withAlphaComponent(0.5)
- }
-
- let view = UIView()
- let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || PlayViewController.menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
- containerView.makeBlur()
- view.addSubview(containerView)
- containerView.snp.makeConstraints { make in
- make.edges.equalToSuperview()
- make.height.equalTo(406)
- }
- view.addPanGesture { [weak view, weak sheet] gesture in
- guard let view = view, let sheet = sheet else { return }
- let point = gesture.translation(in: gesture.view)
- view.transform = .init(translationX: 0, y: point.y <= 0 ? 0 : point.y)
- if gesture.state == .recognized {
- let v = gesture.velocity(in: gesture.view)
- if (view.y > view.height*2/3 && v.y > 0) || v.y > 1200 {
- // 达到移除的速度
- sheet.pop()
- }
- UIView.animate(withDuration: 0.8, delay: 0, usingSpringWithDamping: 1, initialSpringVelocity: 0.5, options: [.allowUserInteraction, .curveEaseOut], animations: {
- view.transform = .identity
- })
- }
- }
-
- let backgroundImageView = UIImageView(image: R.image.letter_bg())
- containerView.addSubview(backgroundImageView)
- backgroundImageView.snp.makeConstraints { make in
- make.edges.equalToSuperview()
- }
-
-
- let topView = UIImageView()
- topView.isUserInteractionEnabled = true
- containerView.addSubview(topView)
- topView.snp.makeConstraints { make in
- make.leading.top.trailing.equalToSuperview()
- make.height.equalTo(Constants.Size.ItemHeightMid)
- }
-
- let closeButton = SymbolButton(image: UIImage(symbol: .xmark, font: Constants.Font.body(weight: .bold)))
- closeButton.addTapGesture { [weak sheet] gesture in
- sheet?.pop()
- }
- closeButton.enableRoundCorner = true
- topView.addSubview(closeButton)
- closeButton.snp.makeConstraints { make in
- make.centerY.equalToSuperview()
- make.size.equalTo(Constants.Size.IconSizeMid)
- make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMax)
- }
-
- let letterView = UIView()
- letterView.alpha = 0
- containerView.addSubview(letterView)
- letterView.snp.makeConstraints { make in
- make.leading.bottom.trailing.equalToSuperview()
- make.top.equalTo(topView.snp.bottom)
- }
-
- let avatarView = UIView()
- avatarView.layerCornerRadius = 28
- avatarView.backgroundColor = Constants.Color.Border
- letterView.addSubview(avatarView)
- avatarView.snp.makeConstraints { make in
- make.size.equalTo(56)
- make.leading.top.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
-
- }
-
- let avatarImageView = IconView()
- avatarImageView.layerCornerRadius = 24
- avatarImageView.image = R.image.appicon()?.scaled(toSize: .init(48))
- avatarView.addSubview(avatarImageView)
- avatarImageView.snp.makeConstraints { make in
- make.edges.equalToSuperview().inset(4)
- }
-
- let teamLabel = UILabel()
- teamLabel.numberOfLines = 0
- let matt = NSMutableAttributedString(string: "Manic EMU Team", attributes: [.font: Constants.Font.title(size: .s), .foregroundColor: Constants.Color.LabelPrimary])
- matt.append(NSAttributedString(string: "\n\(Date.now.dateString(ofStyle: .medium))",
- attributes: [
- .font: UIFont(descriptor: UIFont.systemFont(ofSize: 12).fontDescriptor.withSymbolicTraits(.traitItalic)!, size: 12),
- .foregroundColor: Constants.Color.LabelSecondary
- ]))
- let style = NSMutableParagraphStyle()
- style.lineSpacing = Constants.Size.ContentSpaceUltraTiny/2
- style.alignment = .left
- teamLabel.attributedText = matt.applying(attributes: [.paragraphStyle: style])
- letterView.addSubview(teamLabel)
- teamLabel.snp.makeConstraints { make in
- make.centerY.equalTo(avatarView)
- make.leading.equalTo(avatarView.snp.trailing).offset(8)
- make.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
- }
-
- let letterPaperView = UIImageView(image: R.image.letter_paper())
- letterView.addSubview(letterPaperView)
- letterPaperView.snp.makeConstraints { make in
- make.leading.trailing.equalToSuperview().inset(24)
- make.top.equalTo(avatarView.snp.bottom).offset(25)
- }
-
- let letterLabel = UITextView()
- letterLabel.backgroundColor = .clear
- letterLabel.showsVerticalScrollIndicator = false
- letterLabel.showsHorizontalScrollIndicator = false
- letterLabel.isEditable = false
- letterLabel.font = Constants.Font.body(size: .l)
- letterLabel.textColor = Constants.Color.LabelPrimary.forceStyle(.light)
- if let lettersData = try? Data(contentsOf: Bundle.main.url(forResource: "letter", withExtension: "json")!),
- let letters = try? JSONSerialization.jsonObject(with: lettersData) as? [String: String] {
- let language = Locale.preferredLanguages.first ?? "en"
- letterLabel.text = letters[language] ?? letters["en"]
- }
-
- letterView.addSubview(letterLabel)
- letterLabel.snp.makeConstraints { make in
- make.edges.equalTo(letterPaperView).inset(24)
- }
-
- let bestWishImageView = UIImageView(image: R.image.best_wish())
- letterView.addSubview(bestWishImageView)
- bestWishImageView.snp.makeConstraints { make in
- make.centerX.equalToSuperview()
- make.top.equalTo(letterPaperView.snp.bottom).offset(40)
- }
-
- let envolopeImageView = UIImageView(image: R.image.letter_icon())
- envolopeImageView.isUserInteractionEnabled = true
- envolopeImageView.enableInteractive = true
- containerView.addSubview(envolopeImageView)
- envolopeImageView.snp.makeConstraints { make in
- make.center.equalToSuperview()
- }
-
- let bottomLabel = UILabel()
- bottomLabel.text = R.string.localizable.firstAnniversary()
- bottomLabel.numberOfLines = 0
- bottomLabel.font = Constants.Font.body(size: .l)
- bottomLabel.textColor = Constants.Color.LabelPrimary
- bottomLabel.textAlignment = .center
- containerView.addSubview(bottomLabel)
- bottomLabel.snp.makeConstraints { make in
- make.centerX.equalToSuperview()
- make.top.equalTo(envolopeImageView.snp.bottom).offset(10)
- }
-
- envolopeImageView.addTapGesture { [weak containerView, weak sheet, weak view, weak envolopeImageView] gesture in
- guard let containerView, let sheet else { return }
- containerView.snp.updateConstraints { make in
- make.height.equalTo(sheet.config.cardMaxHeight!)
- }
- if UIDevice.isPhone, UIDevice.isLandscape {
- letterLabel.snp.updateConstraints { make in
- make.bottom.equalTo(letterPaperView).inset( UIDevice.isProMaxPhone ? 224 : 244)
- }
- }
- UIView.springAnimate {
- view?.layoutIfNeeded()
- backgroundImageView.alpha = 0
- envolopeImageView?.alpha = 0
- bottomLabel.alpha = 0
- letterView.alpha = 1
- topView.image = R.image.navigation_bar_bg()
- }
- }
-
- sheet.set(customView: view).snp.makeConstraints { make in
- make.edges.equalToSuperview()
- }
- }
- }
- }
+// static func showFirstAnniversaryLetterIfNeed() {
+// var calendar = Calendar(identifier: .gregorian)
+// calendar.timeZone = TimeZone(identifier: "Asia/Shanghai")!
+//
+// // beginDate
+// var startComponents = DateComponents()
+// startComponents.year = 2026
+// startComponents.month = 4
+// startComponents.day = 3
+// startComponents.hour = 0
+// startComponents.minute = 0
+// startComponents.second = 0
+// let startDate = calendar.date(from: startComponents)!
+//
+// // endDate
+// var endComponents = DateComponents()
+// endComponents.year = 2026
+// endComponents.month = 4
+// endComponents.day = 4
+// endComponents.hour = 0
+// let endDate = calendar.date(from: endComponents)!
+//
+// let now = Date()
+//
+// if now >= startDate &&
+// now < endDate &&
+// !UserDefaults.standard.bool(forKey: Constants.DefaultKey.HasShowFirstAnniversaryLetter) {
+// UserDefaults.standard.set(true, forKey: Constants.DefaultKey.HasShowFirstAnniversaryLetter)
+// DispatchQueue.main.asyncAfter(delay: 0.35) {
+// CheersView.makeNormalCheers(userTopWindow: true)
+// }
+//
+// Sheet.lazyPush(identifier: String(describing: CelebrationView.self)) { sheet in
+// sheet.configGamePlayingStyle(hideCompletion: nil)
+// sheet.onTappedBackground(action: { _ in })
+//
+// sheet.config.backgroundViewMask { mask in
+// mask.backgroundColor = .black.withAlphaComponent(0.5)
+// }
+//
+// let view = UIView()
+// let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || PlayViewController.menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
+// containerView.makeBlur()
+// view.addSubview(containerView)
+// containerView.snp.makeConstraints { make in
+// make.edges.equalToSuperview()
+// make.height.equalTo(406)
+// }
+// view.addPanGesture { [weak view, weak sheet] gesture in
+// guard let view = view, let sheet = sheet else { return }
+// let point = gesture.translation(in: gesture.view)
+// view.transform = .init(translationX: 0, y: point.y <= 0 ? 0 : point.y)
+// if gesture.state == .recognized {
+// let v = gesture.velocity(in: gesture.view)
+// if (view.y > view.height*2/3 && v.y > 0) || v.y > 1200 {
+// // 达到移除的速度
+// sheet.pop()
+// }
+// UIView.animate(withDuration: 0.8, delay: 0, usingSpringWithDamping: 1, initialSpringVelocity: 0.5, options: [.allowUserInteraction, .curveEaseOut], animations: {
+// view.transform = .identity
+// })
+// }
+// }
+//
+// let backgroundImageView = UIImageView(image: R.image.letter_bg())
+// containerView.addSubview(backgroundImageView)
+// backgroundImageView.snp.makeConstraints { make in
+// make.edges.equalToSuperview()
+// }
+//
+//
+// let topView = UIImageView()
+// topView.isUserInteractionEnabled = true
+// containerView.addSubview(topView)
+// topView.snp.makeConstraints { make in
+// make.leading.top.trailing.equalToSuperview()
+// make.height.equalTo(Constants.Size.ItemHeightMid)
+// }
+//
+// let closeButton = SymbolButton(image: UIImage(symbol: .xmark, font: Constants.Font.body(weight: .bold)))
+// closeButton.addTapGesture { [weak sheet] gesture in
+// sheet?.pop()
+// }
+// closeButton.enableRoundCorner = true
+// topView.addSubview(closeButton)
+// closeButton.snp.makeConstraints { make in
+// make.centerY.equalToSuperview()
+// make.size.equalTo(Constants.Size.IconSizeMid)
+// make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMax)
+// }
+//
+// let letterView = UIView()
+// letterView.alpha = 0
+// containerView.addSubview(letterView)
+// letterView.snp.makeConstraints { make in
+// make.leading.bottom.trailing.equalToSuperview()
+// make.top.equalTo(topView.snp.bottom)
+// }
+//
+// let avatarView = UIView()
+// avatarView.layerCornerRadius = 28
+// avatarView.backgroundColor = Constants.Color.Border
+// letterView.addSubview(avatarView)
+// avatarView.snp.makeConstraints { make in
+// make.size.equalTo(56)
+// make.leading.top.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+//
+// }
+//
+// let avatarImageView = IconView()
+// avatarImageView.layerCornerRadius = 24
+// avatarImageView.image = R.image.appicon()?.scaled(toSize: .init(48))
+// avatarView.addSubview(avatarImageView)
+// avatarImageView.snp.makeConstraints { make in
+// make.edges.equalToSuperview().inset(4)
+// }
+//
+// let teamLabel = UILabel()
+// teamLabel.numberOfLines = 0
+// let matt = NSMutableAttributedString(string: "Manic EMU Team", attributes: [.font: Constants.Font.title(size: .s), .foregroundColor: Constants.Color.LabelPrimary])
+// matt.append(NSAttributedString(string: "\n\(Date.now.dateString(ofStyle: .medium))",
+// attributes: [
+// .font: UIFont(descriptor: UIFont.systemFont(ofSize: 12).fontDescriptor.withSymbolicTraits(.traitItalic)!, size: 12),
+// .foregroundColor: Constants.Color.LabelSecondary
+// ]))
+// let style = NSMutableParagraphStyle()
+// style.lineSpacing = Constants.Size.ContentSpaceUltraTiny/2
+// style.alignment = .left
+// teamLabel.attributedText = matt.applying(attributes: [.paragraphStyle: style])
+// letterView.addSubview(teamLabel)
+// teamLabel.snp.makeConstraints { make in
+// make.centerY.equalTo(avatarView)
+// make.leading.equalTo(avatarView.snp.trailing).offset(8)
+// make.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+// }
+//
+// let letterPaperView = UIImageView(image: R.image.letter_paper())
+// letterView.addSubview(letterPaperView)
+// letterPaperView.snp.makeConstraints { make in
+// make.leading.trailing.equalToSuperview().inset(24)
+// make.top.equalTo(avatarView.snp.bottom).offset(25)
+// }
+//
+// let letterLabel = UITextView()
+// letterLabel.backgroundColor = .clear
+// letterLabel.showsVerticalScrollIndicator = false
+// letterLabel.showsHorizontalScrollIndicator = false
+// letterLabel.isEditable = false
+// letterLabel.font = Constants.Font.body(size: .l)
+// letterLabel.textColor = Constants.Color.LabelPrimary.forceStyle(.light)
+// if let lettersData = try? Data(contentsOf: Bundle.main.url(forResource: "letter", withExtension: "json")!),
+// let letters = try? JSONSerialization.jsonObject(with: lettersData) as? [String: String] {
+// let language = Locale.preferredLanguages.first ?? "en"
+// letterLabel.text = letters[language] ?? letters["en"]
+// }
+//
+// letterView.addSubview(letterLabel)
+// letterLabel.snp.makeConstraints { make in
+// make.edges.equalTo(letterPaperView).inset(24)
+// }
+//
+// let bestWishImageView = UIImageView(image: R.image.best_wish())
+// letterView.addSubview(bestWishImageView)
+// bestWishImageView.snp.makeConstraints { make in
+// make.centerX.equalToSuperview()
+// make.top.equalTo(letterPaperView.snp.bottom).offset(40)
+// }
+//
+// let envolopeImageView = UIImageView(image: R.image.letter_icon())
+// envolopeImageView.isUserInteractionEnabled = true
+// envolopeImageView.enableInteractive = true
+// containerView.addSubview(envolopeImageView)
+// envolopeImageView.snp.makeConstraints { make in
+// make.center.equalToSuperview()
+// }
+//
+// let bottomLabel = UILabel()
+// bottomLabel.text = R.string.localizable.firstAnniversary()
+// bottomLabel.numberOfLines = 0
+// bottomLabel.font = Constants.Font.body(size: .l)
+// bottomLabel.textColor = Constants.Color.LabelPrimary
+// bottomLabel.textAlignment = .center
+// containerView.addSubview(bottomLabel)
+// bottomLabel.snp.makeConstraints { make in
+// make.centerX.equalToSuperview()
+// make.top.equalTo(envolopeImageView.snp.bottom).offset(10)
+// }
+//
+// envolopeImageView.addTapGesture { [weak containerView, weak sheet, weak view, weak envolopeImageView] gesture in
+// guard let containerView, let sheet else { return }
+// containerView.snp.updateConstraints { make in
+// make.height.equalTo(sheet.config.cardMaxHeight!)
+// }
+// if UIDevice.isPhone, UIDevice.isLandscape {
+// letterLabel.snp.updateConstraints { make in
+// make.bottom.equalTo(letterPaperView).inset( UIDevice.isProMaxPhone ? 224 : 244)
+// }
+// }
+// UIView.springAnimate {
+// view?.layoutIfNeeded()
+// backgroundImageView.alpha = 0
+// envolopeImageView?.alpha = 0
+// bottomLabel.alpha = 0
+// letterView.alpha = 1
+// topView.image = R.image.navigation_bar_bg()
+// }
+// }
+//
+// sheet.set(customView: view).snp.makeConstraints { make in
+// make.edges.equalToSuperview()
+// }
+// }
+// }
+// }
- static func prank2026AprilFools() -> Bool {
- let now = Date()
-
- let is2026FoolsDay = now.year == 2026 && now.month == 4 && now.day == 1
- let count = UserDefaults.standard.integer(forKey: Constants.DefaultKey.FoolsDayTrickCount)
-
- if is2026FoolsDay, count <= 2 {
- UserDefaults.standard.set(count + 1, forKey: Constants.DefaultKey.FoolsDayTrickCount)
- UserDefaults.standard.synchronize()
- if count == 2 {
- Sheet.lazyPush(identifier: String(describing: CelebrationView.self)) { sheet in
- sheet.configGamePlayingStyle(hideCompletion: nil)
- sheet.onTappedBackground(action: { _ in })
-
- sheet.config.backgroundViewMask { mask in
- mask.backgroundColor = .black.withAlphaComponent(0.5)
- }
-
- let view = UIView()
- let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || PlayViewController.menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
- containerView.makeBlur()
- view.addSubview(containerView)
- containerView.snp.makeConstraints { make in
- make.edges.equalToSuperview()
- make.height.equalTo(380)
- }
- view.addPanGesture { [weak view, weak sheet] gesture in
- guard let view = view, let sheet = sheet else { return }
- let point = gesture.translation(in: gesture.view)
- view.transform = .init(translationX: 0, y: point.y <= 0 ? 0 : point.y)
- if gesture.state == .recognized {
- let v = gesture.velocity(in: gesture.view)
- if (view.y > view.height*2/3 && v.y > 0) || v.y > 1200 {
- // 达到移除的速度
- sheet.pop()
- }
- UIView.animate(withDuration: 0.8, delay: 0, usingSpringWithDamping: 1, initialSpringVelocity: 0.5, options: [.allowUserInteraction, .curveEaseOut], animations: {
- view.transform = .identity
- })
- }
- }
-
- let topView = UIImageView(image: R.image.navigation_bar_bg())
- topView.isUserInteractionEnabled = true
- containerView.addSubview(topView)
- topView.snp.makeConstraints { make in
- make.leading.top.trailing.equalToSuperview()
- make.height.equalTo(Constants.Size.ItemHeightMid)
- }
-
- let closeButton = SymbolButton(image: UIImage(symbol: .xmark, font: Constants.Font.body(weight: .bold)))
- closeButton.addTapGesture { [weak sheet] gesture in
- sheet?.pop()
- }
- closeButton.enableRoundCorner = true
- topView.addSubview(closeButton)
- closeButton.snp.makeConstraints { make in
- make.centerY.equalToSuperview()
- make.size.equalTo(Constants.Size.IconSizeMid)
- make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMax)
- }
-
- let label = UILabel()
- label.textAlignment = .center
- label.text = R.string.localizable.apirlFoolsDayTitle()
- label.textColor = Constants.Color.LabelPrimary
- label.font = Constants.Font.title(size: .s)
- containerView.addSubview(label)
- label.snp.makeConstraints { make in
- make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceHuge)
- make.top.equalTo(topView.snp.bottom).offset(Constants.Size.ContentSpaceMid)
- }
-
- let imageView = UIImageView(image: R.image.surprise_box())
- imageView.isUserInteractionEnabled = true
- imageView.enableInteractive = true
- containerView.addSubview(imageView)
- imageView.snp.makeConstraints { make in
- make.top.equalTo(label.snp.bottom).offset(Constants.Size.ContentSpaceMid)
- make.centerX.equalToSuperview()
- }
- imageView.addTapGesture { [weak sheet] gesture in
- guard let sheet else { return }
- CheersView.makeNormalCheers()
- sheet.pop()
- }
-
- let bottomLabel = UILabel()
- bottomLabel.textAlignment = .center
- bottomLabel.numberOfLines = 0
- bottomLabel.text = R.string.localizable.apirlFoolsDayDetail()
- bottomLabel.textColor = Constants.Color.LabelPrimary
- bottomLabel.font = Constants.Font.body(size: .l)
- containerView.addSubview(bottomLabel)
- bottomLabel.snp.makeConstraints { make in
- make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceHuge)
- make.top.equalTo(imageView.snp.bottom).offset(Constants.Size.ContentSpaceMax)
- }
-
- sheet.set(customView: view).snp.makeConstraints { make in
- make.edges.equalToSuperview()
- }
- }
- }
- return true
- }
- return false
- }
+// static func prank2026AprilFools() -> Bool {
+// let now = Date()
+//
+// let is2026FoolsDay = now.year == 2026 && now.month == 4 && now.day == 1
+// let count = UserDefaults.standard.integer(forKey: Constants.DefaultKey.FoolsDayTrickCount)
+//
+// if is2026FoolsDay, count <= 2 {
+// UserDefaults.standard.set(count + 1, forKey: Constants.DefaultKey.FoolsDayTrickCount)
+// UserDefaults.standard.synchronize()
+// if count == 2 {
+// Sheet.lazyPush(identifier: String(describing: CelebrationView.self)) { sheet in
+// sheet.configGamePlayingStyle(hideCompletion: nil)
+// sheet.onTappedBackground(action: { _ in })
+//
+// sheet.config.backgroundViewMask { mask in
+// mask.backgroundColor = .black.withAlphaComponent(0.5)
+// }
+//
+// let view = UIView()
+// let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || PlayViewController.menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
+// containerView.makeBlur()
+// view.addSubview(containerView)
+// containerView.snp.makeConstraints { make in
+// make.edges.equalToSuperview()
+// make.height.equalTo(380)
+// }
+// view.addPanGesture { [weak view, weak sheet] gesture in
+// guard let view = view, let sheet = sheet else { return }
+// let point = gesture.translation(in: gesture.view)
+// view.transform = .init(translationX: 0, y: point.y <= 0 ? 0 : point.y)
+// if gesture.state == .recognized {
+// let v = gesture.velocity(in: gesture.view)
+// if (view.y > view.height*2/3 && v.y > 0) || v.y > 1200 {
+// // 达到移除的速度
+// sheet.pop()
+// }
+// UIView.animate(withDuration: 0.8, delay: 0, usingSpringWithDamping: 1, initialSpringVelocity: 0.5, options: [.allowUserInteraction, .curveEaseOut], animations: {
+// view.transform = .identity
+// })
+// }
+// }
+//
+// let topView = UIImageView(image: R.image.navigation_bar_bg())
+// topView.isUserInteractionEnabled = true
+// containerView.addSubview(topView)
+// topView.snp.makeConstraints { make in
+// make.leading.top.trailing.equalToSuperview()
+// make.height.equalTo(Constants.Size.ItemHeightMid)
+// }
+//
+// let closeButton = SymbolButton(image: UIImage(symbol: .xmark, font: Constants.Font.body(weight: .bold)))
+// closeButton.addTapGesture { [weak sheet] gesture in
+// sheet?.pop()
+// }
+// closeButton.enableRoundCorner = true
+// topView.addSubview(closeButton)
+// closeButton.snp.makeConstraints { make in
+// make.centerY.equalToSuperview()
+// make.size.equalTo(Constants.Size.IconSizeMid)
+// make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMax)
+// }
+//
+// let label = UILabel()
+// label.textAlignment = .center
+// label.text = R.string.localizable.apirlFoolsDayTitle()
+// label.textColor = Constants.Color.LabelPrimary
+// label.font = Constants.Font.title(size: .s)
+// containerView.addSubview(label)
+// label.snp.makeConstraints { make in
+// make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceHuge)
+// make.top.equalTo(topView.snp.bottom).offset(Constants.Size.ContentSpaceMid)
+// }
+//
+// let imageView = UIImageView(image: R.image.surprise_box())
+// imageView.isUserInteractionEnabled = true
+// imageView.enableInteractive = true
+// containerView.addSubview(imageView)
+// imageView.snp.makeConstraints { make in
+// make.top.equalTo(label.snp.bottom).offset(Constants.Size.ContentSpaceMid)
+// make.centerX.equalToSuperview()
+// }
+// imageView.addTapGesture { [weak sheet] gesture in
+// guard let sheet else { return }
+// CheersView.makeNormalCheers()
+// sheet.pop()
+// }
+//
+// let bottomLabel = UILabel()
+// bottomLabel.textAlignment = .center
+// bottomLabel.numberOfLines = 0
+// bottomLabel.text = R.string.localizable.apirlFoolsDayDetail()
+// bottomLabel.textColor = Constants.Color.LabelPrimary
+// bottomLabel.font = Constants.Font.body(size: .l)
+// containerView.addSubview(bottomLabel)
+// bottomLabel.snp.makeConstraints { make in
+// make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceHuge)
+// make.top.equalTo(imageView.snp.bottom).offset(Constants.Size.ContentSpaceMax)
+// }
+//
+// sheet.set(customView: view).snp.makeConstraints { make in
+// make.edges.equalToSuperview()
+// }
+// }
+// }
+// return true
+// }
+// return false
+// }
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameListView.swift b/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameListView.swift
index d4a1abc1..efa32b2b 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameListView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameListView.swift
@@ -976,13 +976,6 @@ extension GameListView: UICollectionViewDelegate {
return true
}
- if CelebrationView.prank2026AprilFools() {
- if let cell = collectionView.cellForItem(at: indexPath) {
- cell.shake()
- }
- return false
- }
-
if let game = getGame(at: indexPath) {
if game.isNDSHomeMenuGame {
let biosCompletion = game.gameType.isNDSBiosComplete()
diff --git a/ManicEmu/ManicEmu/Sources/Business/Play/Models/GameSetting.swift b/ManicEmu/ManicEmu/Sources/Business/Play/Models/GameSetting.swift
index e47418a6..2b427c8d 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Play/Models/GameSetting.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Play/Models/GameSetting.swift
@@ -472,10 +472,6 @@ struct GameSetting: SettingCellItem {
}
func enable(for gameType: GameType, defaultCore: Int) -> Bool {
- if gameType == ._3ds,
- (self == .holdX2FastForward || self == .holdX3FastForward || self == .holdX4FastForward || self == .holdMaxFastForward) {
- return false
- }
return true
}
@@ -692,7 +688,7 @@ struct GameSetting: SettingCellItem {
disableTypes += [.swapScreen, .resolution, .consoleHome, .amiibo, .simBlowing, .palette, .swapDisk, .simBlowing, .airPlayLayout, .toggleAnalog, .j2meSettings, .dosSettings, .insertDisc]
case ._3ds:
if defaultCore == 0 {
- disableTypes += [.fastForward, .filter, .palette, .swapDisk, .retro, .airPlayScaling, .screenScaling, .airPlayLayout, .toggleAnalog, .j2meSettings, .screenScaling, .dosSettings, .insertDisc]
+ disableTypes += [.filter, .palette, .swapDisk, .retro, .toggleAnalog, .j2meSettings, .dosSettings, .insertDisc]
} else {
disableTypes += [.palette, .swapDisk, .retro, .consoleHome, .toggleAnalog, .j2meSettings, .dosSettings, .insertDisc]
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Play/VIewControllers/PlayViewController.swift b/ManicEmu/ManicEmu/Sources/Business/Play/VIewControllers/PlayViewController.swift
index c4ece7e2..df90829d 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Play/VIewControllers/PlayViewController.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Play/VIewControllers/PlayViewController.swift
@@ -289,17 +289,7 @@ class PlayViewController: GameViewController {
launchGameByDismissOtherVC()
}
}
- if game.isCitra3DS, !UserDefaults.standard.bool(forKey: Constants.DefaultKey.HasShow3DSPlayAlert) {
- UIView.makeAlert(title: R.string.localizable.threeDSBetaAlertTitle(),
- detail: R.string.localizable.threeDSBetaAlertDetail(),
- detailAlignment: .left,
- cancelTitle: R.string.localizable.confirmTitle(), cancelAction: {
- UserDefaults.standard.set(true, forKey: Constants.DefaultKey.HasShow3DSPlayAlert)
- showPlayView()
- }, hideAction: {
- UserDefaults.standard.set(true, forKey: Constants.DefaultKey.HasShow3DSPlayAlert)
- });
- } else if game.gameType == .ss, !UserDefaults.standard.bool(forKey: Constants.DefaultKey.HasShowSSPlayAlert), game.isBIOSMissing(required: false), game.defaultCore == 1 {
+ if game.gameType == .ss, !UserDefaults.standard.bool(forKey: Constants.DefaultKey.HasShowSSPlayAlert), game.isBIOSMissing(required: false), game.defaultCore == 1 {
UIView.makeAlert(title: R.string.localizable.saturnBiosAlertTitle(),
detail: R.string.localizable.saturnBiosAlertDetail(),
detailAlignment: .left,
@@ -1222,10 +1212,9 @@ extension PlayViewController {
self.updateSkin()
//更新声音
self.updateAudio()
- if !self.manicGame.isCitra3DS {
- //设置速度
- self.updateFastforward(speed: self.manicGame.speed)
- }
+ //设置速度
+ self.updateFastforward(speed: self.manicGame.speed)
+
self.resumeEmulationAndHandleAudio()
}
topViewController()?.present(vc, animated: true)
@@ -1497,7 +1486,6 @@ extension PlayViewController {
UIView.makeToast(message: R.string.localizable.notAllowOnlineGame())
return true
}
- guard !manicGame.isCitra3DS else { return true }
//快进
if !PurchaseManager.isMember && item.fastForwardSpeed.rawValue > GameSetting.FastForwardSpeed.two.rawValue {
//超限了
@@ -2728,6 +2716,7 @@ extension PlayViewController {
enableJIT = false
} else {
enableJIT = true
+ setupUniversalScript(gameType: ._3ds)
}
}
LibretroCore.sharedInstance().updateConfig(LibretroCore.Cores.Azahar.name,
@@ -3050,6 +3039,7 @@ extension PlayViewController {
enableJIT = false
} else {
enableJIT = true
+ setupUniversalScript(gameType: ._3ds)
}
}
LibretroCore.sharedInstance().updateConfig(LibretroCore.Cores.Azahar.name,
@@ -3381,29 +3371,29 @@ extension PlayViewController {
/// 更新AirPlay
private func updateAirPlay() {
- guard !manicGame.isCitra3DS else { return }
-
- if manicGame.isLibretroType || manicGame.isJGenesisCore || manicGame.isJ2MECore {
- if PurchaseManager.isMember, Settings.defalut.airPlay, ExternalSceneDelegate.isAirPlaying {
- //执行全屏投屏
- if let airPlayViewController = ExternalSceneDelegate.airPlayViewController, let gameMetalView {
- gameMetalView.removeFromSuperview()
- var dimensions = manicEmuCore?.videoManager.videoFormat.dimensions ?? CGSize(width: 480, height: 360)
- if manicGame.gameType == .ds || manicGame.isAzahar3DS {
- dimensions.height = dimensions.height/2
- }
- aiplayScaledDimensions = airPlayViewController.addLibretroView(gameMetalView, dimensions: dimensions, scalingType: Settings.defalut.airPlayScaling)
- updateDualScreenViews()
- updateNDSCursor()
+ if PurchaseManager.isMember, Settings.defalut.airPlay, ExternalSceneDelegate.isAirPlaying {
+ //执行全屏投屏
+ if let airPlayViewController = ExternalSceneDelegate.airPlayViewController, let gameMetalView {
+ gameMetalView.removeFromSuperview()
+ var dimensions = manicEmuCore?.videoManager.videoFormat.dimensions ?? CGSize(width: 480, height: 360)
+ if manicGame.gameType == .ds || manicGame.gameType == ._3ds {
+ dimensions.height = dimensions.height/2
}
- } else {
- //不执行全屏投屏
- if let _ = ExternalSceneDelegate.airPlayViewController, let gameMetalView {
- gameMetalView.removeFromSuperview()
- view.insertSubview(gameMetalView, belowSubview: controllerView)
- updateLibretroViews()
- updateNDSCursor()
+ if manicGame.isCitra3DS {
+ dimensions = dimensions.applying(CGAffineTransform(scaleX: UIScreen.main.scale, y: UIScreen.main.scale))
}
+ aiplayScaledDimensions = airPlayViewController.addLibretroView(gameMetalView, dimensions: dimensions, scalingType: Settings.defalut.airPlayScaling)
+ updateDualScreenViews()
+ updateNDSCursor()
+ }
+ } else {
+ //不执行全屏投屏
+ if let _ = ExternalSceneDelegate.airPlayViewController, let gameMetalView {
+ gameMetalView.removeFromSuperview()
+ view.insertSubview(gameMetalView, belowSubview: controllerView)
+ updateLibretroViews()
+ updateCitra3DSViews()
+ updateNDSCursor()
}
}
}
@@ -3574,10 +3564,13 @@ extension PlayViewController {
guard let touchGameViewFrame = frames.touchGameViewFrame else { return }
Log.debug("更新3DS视图 frames:\(frames)")
- if let _ = gameMetalView {
- //渲染视图已经生成
- threeDSCore?.updateViews(topRect: frames.mainGameViewFrame,
- bottomRect: touchGameViewFrame)
+ if let gameMetalView {
+ if gameMetalView.superview == view {
+ gameMetalView.snp.remakeConstraints { make in
+ make.edges.equalTo(controllerView)
+ }
+ }
+ updateDualScreenViews()
} else {
threeDSCore = self.manicEmuCore?.manicCore.emulatorConnector as? ThreeDSEmulatorBridge
gameMetalView = MTKView(frame: .zero, device: MTLCreateSystemDefaultDevice())
@@ -3586,6 +3579,10 @@ extension PlayViewController {
gameMetalView.snp.makeConstraints { make in
make.edges.equalTo(controllerView)
}
+ let jitEnable = LibretroCore.jitAvailable() ? manicGame.jit : false
+ if jitEnable {
+ setupUniversalScript(gameType: ._3ds)
+ }
threeDSCore?.start(withGameURL: manicGame.romUrl,
metalView: gameMetalView as! MTKView,
metalViewFrame: frames.skinFrame,
@@ -3593,10 +3590,15 @@ extension PlayViewController {
bottomRect: touchGameViewFrame,
mute: !manicGame.volume,
resolution: manicGame.resolution,
- jit: LibretroCore.jitAvailable() ? manicGame.jit : false,
+ jit: jitEnable,
accurateShaders: manicGame.accurateShaders,
language: manicGame.region-1,
renderRightEye: manicGame.renderRightEye)
+ DispatchQueue.main.asyncAfter(delay: 3.25) { [weak self] in
+ guard let self else { return }
+ self.updateFastforward(speed: self.manicGame.speed)
+ self.updateAirPlay()
+ }
threeDSCore?.openKeyboardAction { hintText, keyboardType, maxTextSize in
ThreeDSKeyboardView.showForCitra(hintText: hintText, keyboardType: keyboardType, maxTextSize: maxTextSize)
}
@@ -3863,7 +3865,7 @@ extension PlayViewController {
}
private func updateDualScreenViews() {
- guard manicGame.gameType == .ds || manicGame.isAzahar3DS else { return }
+ guard manicGame.gameType == .ds || manicGame.gameType == ._3ds else { return }
if ExternalSceneDelegate.isAirPlaying {
let layoutType = Settings.defalut.airPlayLayout
@@ -3939,14 +3941,22 @@ extension PlayViewController {
Log.debug(">>>>>传入核心的Layout:\(layout)")
if manicGame.gameType == .ds {
LibretroCore.sharedInstance().setNDSCustomLayout(layout)
- } else {
+ } else if manicGame.isAzahar3DS {
LibretroCore.sharedInstance().set3DSCustomLayout(layout)
+ } else if manicGame.isCitra3DS {
+ let frames = layout.components(separatedBy: ",").compactMap({ $0.cgFloat() })
+ if frames.count == 10 {
+ let topRect = CGRect(x: frames[0], y: frames[1], width: frames[2], height: frames[3]).applying(CGAffineTransform(scaleX: 1/scale, y: 1/scale))
+ let bottomRect = CGRect(x: frames[4], y: frames[5], width: frames[6], height: frames[7]).applying(CGAffineTransform(scaleX: 1/scale, y: 1/scale))
+ threeDSCore?.updateViews(topRect: topRect,
+ bottomRect: bottomRect, isAirPlay: true)
+ }
}
let params = (manicGame.swapScreen ? (layout.components(separatedBy: ",")[0...3]) : (layout.components(separatedBy: ",")[4...7])).compactMap({ $0.cgFloat() })
if params.count == 4 {
if manicGame.gameType == .ds {
DSEmulatorBridge.shared.touchInputFrame = CGRect(x: params[0], y: params[1], width: params[2], height: params[3]).applying(CGAffineTransform(scaleX: 1/scale, y: 1/scale))
- } else {
+ } else if manicGame.isAzahar3DS {
AzaharEmulatorBridge.shared.touchInputFrame = CGRect(x: params[0], y: params[1], width: params[2], height: params[3]).applying(CGAffineTransform(scaleX: 1/scale, y: 1/scale))
}
@@ -3956,6 +3966,14 @@ extension PlayViewController {
guard let controllerSkin = controllerView.controllerSkin as? ControllerSkin else { return }
guard let frames = controllerSkin.getFrames() else { return }
guard let libretroViewFrame = getDualScreenViewFrame() else { return }
+
+ if manicGame.isCitra3DS {
+ guard let touchGameViewFrame = frames.touchGameViewFrame else { return }
+ threeDSCore?.updateViews(topRect: frames.mainGameViewFrame,
+ bottomRect: touchGameViewFrame)
+ return
+ }
+
let skinframe = frames.skinFrame
var topFrame = frames.mainGameViewFrame
var layout = ""
@@ -3993,7 +4011,7 @@ extension PlayViewController {
if manicGame.gameType == .ds {
LibretroCore.sharedInstance().setNDSCustomLayout(layout)
DSEmulatorBridge.shared.touchInputFrame = touchGameViewFrame
- } else {
+ } else if manicGame.isAzahar3DS {
LibretroCore.sharedInstance().set3DSCustomLayout(layout)
AzaharEmulatorBridge.shared.touchInputFrame = touchGameViewFrame
}
@@ -4501,6 +4519,22 @@ extension PlayViewController {
case .five:
j2meCore?.fastForward(speed: 7)
}
+ } else if manicGame.isCitra3DS {
+ #if !targetEnvironment(simulator)
+ let bridge = ThreeDSEmulatorBridge.shared
+ switch speed {
+ case .one:
+ bridge.setFrameLimit(100)
+ case .two:
+ bridge.setFrameLimit(120)
+ case .three:
+ bridge.setFrameLimit(150)
+ case .four:
+ bridge.setFrameLimit(200)
+ case .five:
+ bridge.setFrameLimit(300)
+ }
+ #endif
}
}
@@ -4637,7 +4671,7 @@ extension PlayViewController {
static var isGaming: Bool { currentPlayViewController != nil }
static var enableAirplay: Bool {
- if let currentPlayViewController, !currentPlayViewController.manicGame.isCitra3DS {
+ if let currentPlayViewController {
return true
}
return false
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Cores/ThreeDS.swift b/ManicEmu/ManicEmu/Sources/Tools/Cores/ThreeDS.swift
index 48080177..a6cc6d6a 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Cores/ThreeDS.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Cores/ThreeDS.swift
@@ -226,13 +226,16 @@ class ThreeDSEmulatorBridge : NSObject, EmulatorBase {
func setSimBlowing(start: Bool) {
threeDSCore.setSimBlowing(start: start)
}
+
+ func setFrameLimit(_ limit: UInt16) {
+ threeDSCore.setFrameLimit(limit)
+ }
func jumpToHome() {
threeDSCore.jumpToHome()
}
func loadAmiibo(path: String) {
- //https://drive.google.com/drive/folders/1Rto0H_1cATSvgrFk0Ku6HnDHQwx_nnx_?usp=sharing
threeDSCore.loadAmiibo(path: path)
}
@@ -476,13 +479,13 @@ class ThreeDSEmulatorBridge : NSObject, EmulatorBase {
}
}
- func updateViews(topRect: CGRect, bottomRect: CGRect) {
+ func updateViews(topRect: CGRect, bottomRect: CGRect, isAirPlay: Bool = false) {
self.topRect = topRect
self.bottomRect = bottomRect
updateConfig(buildLayoutConfig())
DispatchQueue.main.asyncAfter(delay: 0.75) {
if let metalView = self.metalView {
- self.threeDSCore.orientationChange(with: UIDevice.currentOrientation, using: metalView)
+ self.threeDSCore.orientationChange(with: isAirPlay ? .landscapeLeft : UIDevice.currentOrientation, using: metalView)
}
}
}
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Others/UniversalScript.c b/ManicEmu/ManicEmu/Sources/Tools/Others/UniversalScript.c
new file mode 100644
index 00000000..607c5b94
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Tools/Others/UniversalScript.c
@@ -0,0 +1,17 @@
+//
+// UniversalScript.c
+// ManicJIT-script
+//
+// Created by Stossy11 on 20/3/2026.
+//
+
+
+#include <stddef.h>
+#include <stdio.h>
+
+__attribute__((noinline,optnone,naked))
+void BreakSendJITScript(char* script, size_t len) {
+ asm("mov x16, #2 \n"
+ "brk #0xf00d \n"
+ "ret");
+}
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Others/UniversalScript.swift b/ManicEmu/ManicEmu/Sources/Tools/Others/UniversalScript.swift
new file mode 100644
index 00000000..374b5fde
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Tools/Others/UniversalScript.swift
@@ -0,0 +1,71 @@
+//
+// UniversalScript.swift
+// ManicJIT-script
+//
+// Created by Stossy11 on 20/3/2026.
+//
+import Foundation
+import ManicEmuCore
+
+#if SIDE_LOAD
+extension FileManager {
+ func filePath(atPath path: String, withLength length: Int) -> String? {
+ guard let file = try? contentsOfDirectory(atPath: path).filter({ $0.count == length }).first else { return nil }
+ return "\(path)/\(file)"
+ }
+}
+
+public extension ProcessInfo {
+ var hasTXM: Bool {
+ { if let boot = FileManager.default.filePath(atPath: "/System/Volumes/Preboot", withLength: 36), let file = FileManager.default.filePath(atPath: "\(boot)/boot", withLength: 96) { return access("\(file)/usr/standalone/firmware/FUD/Ap,TrustedExecutionMonitor.img4", F_OK) == 0 } else { return (FileManager.default.filePath(atPath: "/private/preboot", withLength: 96).map { access("\($0)/usr/standalone/firmware/FUD/Ap,TrustedExecutionMonitor.img4", F_OK) == 0 }) ?? false } }()
+ }
+}
+
+
+@_silgen_name("BreakSendJITScript")
+func BreakSendJITScript(_ script: UnsafePointer<CChar>!, _ length: size_t)
+
+func handler(sig: Int32, info: UnsafeMutablePointer<siginfo_t>?, context: UnsafeMutableRawPointer?) {
+ guard let context = context else { return }
+ let uc = context.bindMemory(to: ucontext_t.self, capacity: 1)
+ uc.pointee.uc_mcontext.pointee.__ss.__pc += 4
+ uc.pointee.uc_mcontext.pointee.__ss.__x.0 = 0
+}
+
+// here to stop app from crashing when app launched without JIT attached on 26 TXM
+func JIT26BreakpointHandler() {
+ var sa = sigaction()
+ sa.sa_flags = SA_SIGINFO
+
+ sa.__sigaction_u.__sa_sigaction = handler
+
+ sigaction(SIGTRAP, &sa, nil)
+}
+#endif
+
+func setupUniversalScript(gameType: GameType) {
+#if SIDE_LOAD
+ guard #available(iOS 19.0, *) else { return }
+ guard ProcessInfo.processInfo.hasTXM else { return }
+
+ JIT26BreakpointHandler()
+
+ var script: String? = nil
+ switch gameType {
+ case ._3ds:
+ script = """
+ legacyCommands[0x70] = function(b) {};
+ legacyCommands[0x71] = function(b) {};
+ """
+ default: return
+ }
+
+ guard let script else { return }
+
+ BreakSendJITScript(script, script.count)
+#endif
+}
+
+
+
+
diff --git a/ManicEmu/ThreeDS/Custom/ThreeDSCore.swift b/ManicEmu/ThreeDS/Custom/ThreeDSCore.swift
index 8bd8f485..46074943 100644
--- a/ManicEmu/ThreeDS/Custom/ThreeDSCore.swift
+++ b/ManicEmu/ThreeDS/Custom/ThreeDSCore.swift
@@ -237,4 +237,8 @@ public struct ThreeDSCore : @unchecked Sendable {
public func setSimBlowing(start: Bool) {
threeDSObjC.setSimBlowing(start)
}
+
+ public func setFrameLimit(_ limit: UInt16) {
+ threeDSObjC.setFrameLimit(limit)
+ }
}
diff --git a/ManicEmu/ThreeDS/Custom/ThreeDSObjC.h b/ManicEmu/ThreeDS/Custom/ThreeDSObjC.h
index 7b9e61e5..45a7116f 100644
--- a/ManicEmu/ThreeDS/Custom/ThreeDSObjC.h
+++ b/ManicEmu/ThreeDS/Custom/ThreeDSObjC.h
@@ -304,6 +304,7 @@ typedef NS_ENUM(uint8_t, New3DSKernelMemoryMode) {
-(void) deallocateVulkanLibrary;
-(void) allocateMetalLayer:(CAMetalLayer*)layer withSize:(CGSize)size isSecondary:(BOOL)secondary;
+-(void) updateMetalLayerSize:(CGSize)size;
-(void) deallocateMetalLayers;
-(void) insertCartridgeAndBoot:(NSURL *)url advancedMode:(BOOL)advancedMode jitSupport:(BOOL)jitSupport;
@@ -355,6 +356,7 @@ typedef NS_ENUM(uint8_t, New3DSKernelMemoryMode) {
- (BOOL)isSearchingAmiibo;
- (void)jumpToHome;
- (void)setSimBlowing:(BOOL)start;
+- (void)setFrameLimit:(uint16_t)limit;
@end
diff --git a/ManicEmu/ThreeDS/Custom/ThreeDSObjC.mm b/ManicEmu/ThreeDS/Custom/ThreeDSObjC.mm
index 6ada3312..ee478d58 100644
--- a/ManicEmu/ThreeDS/Custom/ThreeDSObjC.mm
+++ b/ManicEmu/ThreeDS/Custom/ThreeDSObjC.mm
@@ -774,4 +774,13 @@ static NSString *ThreeDSSdmcDir = nil;
Settings::values.simBlowing = start;
}
+- (void)setFrameLimit:(uint16_t)limit {
+ const bool is_normal_speed = (limit == 100);
+ Settings::values.frame_limit.SetValue(limit);
+ // 快进时需要关闭VSync,否则Vulkan FIFO present会阻塞在60fps
+ Settings::values.use_vsync_new.SetValue(is_normal_speed);
+ // 快进时启用帧跳过,跳过部分帧的GPU渲染以提升速度
+ Settings::values.frame_skip = !is_normal_speed;
+}
+
@end