Fix MapPhysicalMemory when block position is less than map position
This commit is contained in:
parent
34100051e4
commit
2a07b302bb
1 changed files with 8 additions and 1 deletions
|
@ -631,7 +631,14 @@ namespace Ryujinx.HLE.HOS.Kernel
|
|||
{
|
||||
long CurrSize = GetSizeInRange(Info, Position, End);
|
||||
|
||||
CpuMemory.Map(Info.Position, PA, CurrSize);
|
||||
long MapPosition = Info.Position;
|
||||
|
||||
if ((ulong)MapPosition < (ulong)Position)
|
||||
{
|
||||
MapPosition = Position;
|
||||
}
|
||||
|
||||
CpuMemory.Map(MapPosition, PA, CurrSize);
|
||||
|
||||
PA += CurrSize;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue