Set default cpu core on process start from ProgramLoader, remove debug message
This commit is contained in:
parent
ec19d87f5e
commit
926fcf6e20
3 changed files with 5 additions and 3 deletions
|
@ -137,8 +137,6 @@ namespace Ryujinx.HLE
|
||||||
for (ulong offs = 0; offs < size8; offs += 8)
|
for (ulong offs = 0; offs < size8; offs += 8)
|
||||||
{
|
{
|
||||||
WriteUInt64((long)(dst + offs), ReadUInt64((long)(src + offs)));
|
WriteUInt64((long)(dst + offs), ReadUInt64((long)(src + offs)));
|
||||||
|
|
||||||
System.Console.WriteLine((dst + offs).ToString("X16") + " <- " + (src + offs).ToString("X16") + " " + ReadUInt64((long)(src + offs)).ToString("X16"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (ulong offs = size8; offs < (size - size8); offs++)
|
for (ulong offs = size8; offs < (size - size8); offs++)
|
||||||
|
|
|
@ -30,7 +30,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Process
|
||||||
private SortedDictionary<ulong, KTlsPageInfo> _fullTlsPages;
|
private SortedDictionary<ulong, KTlsPageInfo> _fullTlsPages;
|
||||||
private SortedDictionary<ulong, KTlsPageInfo> _freeTlsPages;
|
private SortedDictionary<ulong, KTlsPageInfo> _freeTlsPages;
|
||||||
|
|
||||||
public int DefaultCpuCore { get; private set; }
|
public int DefaultCpuCore { get; set; }
|
||||||
|
|
||||||
public bool Debug { get; private set; }
|
public bool Debug { get; private set; }
|
||||||
|
|
||||||
|
|
|
@ -103,6 +103,8 @@ namespace Ryujinx.HLE.HOS
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
process.DefaultCpuCore = kip.DefaultProcessorId;
|
||||||
|
|
||||||
result = process.Start(kip.MainThreadPriority, (ulong)kip.MainThreadStackSize);
|
result = process.Start(kip.MainThreadPriority, (ulong)kip.MainThreadStackSize);
|
||||||
|
|
||||||
if (result != KernelResult.Success)
|
if (result != KernelResult.Success)
|
||||||
|
@ -228,6 +230,8 @@ namespace Ryujinx.HLE.HOS
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
process.DefaultCpuCore = metaData.DefaultCpuId;
|
||||||
|
|
||||||
result = process.Start(metaData.MainThreadPriority, (ulong)metaData.MainThreadStackSize);
|
result = process.Start(metaData.MainThreadPriority, (ulong)metaData.MainThreadStackSize);
|
||||||
|
|
||||||
if (result != KernelResult.Success)
|
if (result != KernelResult.Success)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue