mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-11-19 09:21:15 +01:00
misc: chore: Merge into pattern
This commit is contained in:
1 parent
503dea74c2
commit
fa682d406e
157 files changed
+470
-546
No files matched your search
@@ -69,14 +69,17 @@ namespace Ryujinx.HLE.HOS
|
||||
mode = MemoryManagerMode.SoftwarePageTable;
|
||||
}
|
||||
|
||||
ICpuEngine cpuEngine = isArm64Host && (mode == MemoryManagerMode.HostMapped || mode == MemoryManagerMode.HostMappedUnsafe) && !context.Device.Configuration.EnableGdbStub
|
||||
ICpuEngine cpuEngine = isArm64Host &&
|
||||
mode is MemoryManagerMode.HostMapped or MemoryManagerMode.HostMappedUnsafe &&
|
||||
!context.Device.Configuration.EnableGdbStub
|
||||
? new LightningJitEngine(_tickSource)
|
||||
: new JitEngine(_tickSource);
|
||||
|
||||
AddressSpace addressSpace = null;
|
||||
|
||||
// We want to use host tracked mode if the host page size is > 4KB.
|
||||
if ((mode == MemoryManagerMode.HostMapped || mode == MemoryManagerMode.HostMappedUnsafe) && MemoryBlock.GetPageSize() <= 0x1000)
|
||||
if (mode is MemoryManagerMode.HostMapped or MemoryManagerMode.HostMappedUnsafe &&
|
||||
MemoryBlock.GetPageSize() <= 0x1000)
|
||||
{
|
||||
if (!AddressSpace.TryCreate(context.Memory, addressSpaceSize, out addressSpace))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user