diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2024-01-13 07:58:09 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-13 11:58:09 +0100 |
| commit | b16923a902322ed78e6502defdacdb7d43bc0f32 (patch) | |
| tree | 74fe0c26458bb920daf3b9e68f631a9b7ac573f9 /src/Ryujinx.Cpu/AppleHv/HvMemoryManager.cs | |
| parent | 7e58b21f3d1b0ef69121b66e91488e1529ee5719 (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.cs | 12 |
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 } |
