aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Cpu/AppleHv/HvMemoryManager.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2024-01-13 07:58:09 -0300
committerGitHub <noreply@github.com>2024-01-13 11:58:09 +0100
commitb16923a902322ed78e6502defdacdb7d43bc0f32 (patch)
tree74fe0c26458bb920daf3b9e68f631a9b7ac573f9 /src/Ryujinx.Cpu/AppleHv/HvMemoryManager.cs
parent7e58b21f3d1b0ef69121b66e91488e1529ee5719 (diff)
Revert Apple hypervisor force ordered memory change (#6068)
Diffstat (limited to 'src/Ryujinx.Cpu/AppleHv/HvMemoryManager.cs')
-rw-r--r--src/Ryujinx.Cpu/AppleHv/HvMemoryManager.cs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/Ryujinx.Cpu/AppleHv/HvMemoryManager.cs b/src/Ryujinx.Cpu/AppleHv/HvMemoryManager.cs
index 947c3710..2f9743ab 100644
--- a/src/Ryujinx.Cpu/AppleHv/HvMemoryManager.cs
+++ b/src/Ryujinx.Cpu/AppleHv/HvMemoryManager.cs
@@ -724,18 +724,6 @@ namespace Ryujinx.Cpu.AppleHv
/// <inheritdoc/>
public void Reprotect(ulong va, ulong size, MemoryPermission protection)
{
- if (protection.HasFlag(MemoryPermission.Execute))
- {
- // Some applications use unordered exclusive memory access instructions
- // where it is not valid to do so, leading to memory re-ordering that
- // makes the code behave incorrectly on some CPUs.
- // To work around this, we force all such accesses to be ordered.
-
- using WritableRegion writableRegion = GetWritableRegion(va, (int)size);
-
- HvCodePatcher.RewriteUnorderedExclusiveInstructions(writableRegion.Memory.Span);
- }
-
// TODO
}