[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.
This commit is contained in:
Wunkolo 2024-04-28 18:55:23 -07:00
parent 045441a305
commit f2b05ead9d
1 changed files with 8 additions and 0 deletions

View File

@ -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
}
}