Call InvalidateCacheRegion

# Conflicts:
#	Ryujinx.HLE/HOS/ArmProcessContext.cs
#	src/Ryujinx.HLE/Debugger/Debugger.cs
#	src/Ryujinx.HLE/Debugger/IDebuggableProcess.cs
#	src/Ryujinx.HLE/HOS/Horizon.cs
#	src/Ryujinx.HLE/HOS/Kernel/Process/KProcess.cs
This commit is contained in:
merry
2022-02-13 14:21:23 +00:00
committed by svc64
parent 1b9753d42a
commit 54bf7507d7
7 changed files with 48 additions and 24 deletions

View File

@@ -47,6 +47,8 @@ namespace Ryujinx.HLE.Debugger
private Ryujinx.Cpu.IExecutionContext[] GetThreads() => GetThreadIds().Select(x => GetThread(x)).ToArray();
private ulong? GetThreadUid(Ryujinx.Cpu.IExecutionContext thread) => GetThreadIds().Where(x => GetThread(x) == thread).First();
private IVirtualMemoryManager GetMemory() => Device.System.DebugGetApplicationProcess().CpuMemory;
private void InvalidateCacheRegion(ulong address, ulong size) =>
Device.System.DebugGetApplicationProcess().InvalidateCacheRegion(address, size);
const int GdbRegisterCount = 68;
@@ -436,6 +438,7 @@ namespace Ryujinx.HLE.Debugger
}
GetMemory().Write(addr, data);
InvalidateCacheRegion(addr, len);
ReplyOK();
}
catch (InvalidMemoryRegionException)