Implement a new JIT for Arm devices

This commit is contained in:
Gabriel A 2023-12-24 01:01:08 -03:00
parent 9864675a0b
commit 597710a522
127 changed files with 42538 additions and 25 deletions

View file

@ -0,0 +1,30 @@
using ARMeilleure.Common;
using Ryujinx.Cpu.LightningJit.Arm32.Target.Arm64;
using ARMeilleure.Memory;
using System;
using System.Runtime.InteropServices;
namespace Ryujinx.Cpu.LightningJit.Arm32
{
static class A32Compiler
{
public static CompiledFunction Compile(
CpuPreset cpuPreset,
IMemoryManager memoryManager,
ulong address,
AddressTable<ulong> funcTable,
IntPtr dispatchStubPtr,
bool isThumb,
Architecture targetArch)
{
if (targetArch == Architecture.Arm64)
{
return Compiler.Compile(cpuPreset, memoryManager, address, funcTable, dispatchStubPtr, isThumb);
}
else
{
throw new PlatformNotSupportedException();
}
}
}
}