From f2b05ead9df9d35cf95fb23ca7300978a042439d Mon Sep 17 00:00:00 2001 From: Wunkolo Date: Sun, 28 Apr 2024 18:55:23 -0700 Subject: [PATCH] [CPU] Stub ARM64 to Null CPU backend Adding the `a64` backend will be a different PR. For now it's stubbed to the null backend to allow the main executable to open without failing initalization. --- src/xenia/emulator.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/xenia/emulator.cc b/src/xenia/emulator.cc index cca28982f..a96e045ba 100644 --- a/src/xenia/emulator.cc +++ b/src/xenia/emulator.cc @@ -172,11 +172,19 @@ X_STATUS Emulator::Setup( if (cvars::cpu == "x64") { backend.reset(new xe::cpu::backend::x64::X64Backend()); } +#elif XE_ARCH_ARM64 + // TODO(wunkolo): Arm64 backend + if (cvars::cpu == "a64") { + backend.reset(new xe::cpu::backend::NullBackend()); + } #endif // XE_ARCH if (cvars::cpu == "any") { if (!backend) { #if XE_ARCH_AMD64 backend.reset(new xe::cpu::backend::x64::X64Backend()); +#elif XE_ARCH_ARM64 + // TODO(wunkolo): Arm64 backend + backend.reset(new xe::cpu::backend::NullBackend()); #endif // XE_ARCH } }