mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-04 11:19:27 +02:00
second attempt at single layer address tables (first attempt https://git.ryujinx.app/projects/Ryubing/pulls/167). should work with all games now. Co-authored-by: LotP1 <68976644+LotP1@users.noreply.github.com>
31 lines
848 B
C#
31 lines
848 B
C#
using ARMeilleure.Common;
|
|
using ARMeilleure.Memory;
|
|
using Ryujinx.Cpu.LightningJit.Arm32.Target.Arm64;
|
|
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Ryujinx.Cpu.LightningJit.Arm32
|
|
{
|
|
static class A32Compiler
|
|
{
|
|
public static CompiledFunction Compile(
|
|
CpuPreset cpuPreset,
|
|
IMemoryManager memoryManager,
|
|
ulong address,
|
|
IAddressTable<ulong> funcTable,
|
|
nint dispatchStubPtr,
|
|
bool isThumb,
|
|
Architecture targetArch)
|
|
{
|
|
if (targetArch == Architecture.Arm64)
|
|
{
|
|
return Compiler.Compile(cpuPreset, memoryManager, address, funcTable, dispatchStubPtr, isThumb);
|
|
}
|
|
else
|
|
{
|
|
throw new PlatformNotSupportedException();
|
|
}
|
|
}
|
|
}
|
|
}
|