1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-28 00:26:02 +00:00

Set AArch32 mode in KThread (#818)

* Set AArch32 mode in KThread

* Update ProgramLoader.cs
This commit is contained in:
Natalie C 2019-11-14 09:28:13 -05:00 committed by Ac_K
parent dead89576e
commit b9ae0b09d9
2 changed files with 4 additions and 2 deletions

View file

@ -162,6 +162,8 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
bool isAarch32 = (Owner.MmuFlags & 1) == 0;
Context.IsAarch32 = isAarch32;
Context.SetX(0, argsPtr);
if (isAarch32)

View file

@ -127,7 +127,7 @@ namespace Ryujinx.HLE.HOS
{
if (!metaData.Is64Bits)
{
Logger.PrintWarning(LogClass.Loader, "32-bits application detected!");
Logger.PrintWarning(LogClass.Loader, "32-bits application detected.");
}
ulong argsStart = 0;
@ -309,4 +309,4 @@ namespace Ryujinx.HLE.HOS
return SetProcessMemoryPermission(dataStart, end - dataStart, MemoryPermission.ReadAndWrite);
}
}
}
}