diff options
author | riperiperi <rhy3756547@hotmail.com> | 2024-03-14 22:38:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-14 19:38:27 -0300 |
commit | fdd3263e31f8bf352a21e05703d0a6a82c800995 (patch) | |
tree | 24859502db57a2febaa5ab4c7d968d7375156079 /src/Ryujinx.Memory/Tracking/RegionFlags.cs | |
parent | ce607db944beb352065107830769d8570f0c245e (diff) |
Separate guest/host tracking + unaligned protection (#6486)1.1.1229
* WIP: Separate guest/host tracking + unaligned protection
Allow memory manager to define support for single byte guest tracking
* Formatting
* Improve docs
* Properly handle cases where the address space bits are too low
* Address feedback
Diffstat (limited to 'src/Ryujinx.Memory/Tracking/RegionFlags.cs')
-rw-r--r-- | src/Ryujinx.Memory/Tracking/RegionFlags.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Ryujinx.Memory/Tracking/RegionFlags.cs b/src/Ryujinx.Memory/Tracking/RegionFlags.cs new file mode 100644 index 00000000..ceb8e56a --- /dev/null +++ b/src/Ryujinx.Memory/Tracking/RegionFlags.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Ryujinx.Memory.Tracking +{ + [Flags] + public enum RegionFlags + { + None = 0, + + /// <summary> + /// Access to the resource is expected to occasionally be unaligned. + /// With some memory managers, guest protection must extend into the previous page to cover unaligned access. + /// If this is not expected, protection is not altered, which can avoid unintended resource dirty/flush. + /// </summary> + UnalignedAccess = 1, + } +} |