mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-06-30 04:16:25 +02:00
Allocate NCE patch region dynamically to avoid not having enough space
This commit is contained in:
parent
517277a11f
commit
375691b0e0
13 changed files with 150 additions and 163 deletions
|
@ -44,6 +44,16 @@ namespace Ryujinx.HLE.HOS
|
|||
_codeSize = codeSize;
|
||||
}
|
||||
|
||||
public static NceCpuCodePatch CreateCodePatchForNce(KernelContext context, bool for64Bit, ReadOnlySpan<byte> textSection)
|
||||
{
|
||||
if (RuntimeInformation.ProcessArchitecture == Architecture.Arm64 && for64Bit && context.Device.Configuration.UseHypervisor && !OperatingSystem.IsMacOS())
|
||||
{
|
||||
return NcePatcher.CreatePatch(textSection);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public IProcessContext Create(KernelContext context, ulong pid, ulong addressSpaceSize, InvalidAccessHandler invalidAccessHandler, bool for64Bit)
|
||||
{
|
||||
IArmProcessContext processContext;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue