mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-08-01 05:07:10 +02:00
Allocate NCE patch region dynamically to avoid not having enough space
This commit is contained in:
parent
b5c559f7ba
commit
09ec317604
13 changed files with 152 additions and 163 deletions
|
@ -43,6 +43,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