Set AArch32 mode in KThread (#818)
* Set AArch32 mode in KThread * Update ProgramLoader.cs
This commit is contained in:
parent
dead89576e
commit
b9ae0b09d9
2 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue