mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-05 11:22:34 -07:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user