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);
}
}
}
}