From 0781e30adbc0b5e527355a35f501dc8002c9ee31 Mon Sep 17 00:00:00 2001 From: Gabriel A Date: Tue, 26 Mar 2024 23:17:57 -0300 Subject: [PATCH] Move host tracked modes to the end of enum to avoid PPTC invalidation --- src/ARMeilleure/Memory/MemoryManagerType.cs | 24 ++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/ARMeilleure/Memory/MemoryManagerType.cs b/src/ARMeilleure/Memory/MemoryManagerType.cs index 99e7bd845f..bc8ae26359 100644 --- a/src/ARMeilleure/Memory/MemoryManagerType.cs +++ b/src/ARMeilleure/Memory/MemoryManagerType.cs @@ -18,18 +18,6 @@ namespace ARMeilleure.Memory /// SoftwarePageTable, - /// - /// High level implementation using a software flat page table for address translation - /// with no support for handling invalid or non-contiguous memory access. - /// - HostTracked, - - /// - /// High level implementation using a software flat page table for address translation - /// without masking the address and no support for handling invalid or non-contiguous memory access. - /// - HostTrackedUnsafe, - /// /// High level implementation with mappings managed by the host OS, effectively using hardware /// page tables. No address translation is performed in software and the memory is just accessed directly. @@ -41,6 +29,18 @@ namespace ARMeilleure.Memory /// Allows invalid access from JIT code to the rest of the program, but is faster. /// HostMappedUnsafe, + + /// + /// High level implementation using a software flat page table for address translation + /// with no support for handling invalid or non-contiguous memory access. + /// + HostTracked, + + /// + /// High level implementation using a software flat page table for address translation + /// without masking the address and no support for handling invalid or non-contiguous memory access. + /// + HostTrackedUnsafe, } public static class MemoryManagerTypeExtensions