diff options
author | bunnei <bunneidev@gmail.com> | 2021-03-21 23:53:21 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-03-21 23:53:21 +0100 |
commit | 1d78190843e64577810bfd8a33b80256de28f2bc (patch) | |
tree | f509d1a5cde5a76d8a93161df626a72ce38a01f5 /src/core/hle/kernel/k_memory_region.h | |
parent | hle: kernel: Remove unused variable. (diff) | |
download | yuzu-1d78190843e64577810bfd8a33b80256de28f2bc.tar yuzu-1d78190843e64577810bfd8a33b80256de28f2bc.tar.gz yuzu-1d78190843e64577810bfd8a33b80256de28f2bc.tar.bz2 yuzu-1d78190843e64577810bfd8a33b80256de28f2bc.tar.lz yuzu-1d78190843e64577810bfd8a33b80256de28f2bc.tar.xz yuzu-1d78190843e64577810bfd8a33b80256de28f2bc.tar.zst yuzu-1d78190843e64577810bfd8a33b80256de28f2bc.zip |
Diffstat (limited to 'src/core/hle/kernel/k_memory_region.h')
-rw-r--r-- | src/core/hle/kernel/k_memory_region.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/k_memory_region.h b/src/core/hle/kernel/k_memory_region.h index 374b24bd3..782c21fbf 100644 --- a/src/core/hle/kernel/k_memory_region.h +++ b/src/core/hle/kernel/k_memory_region.h @@ -91,7 +91,7 @@ public: return (this->GetType() | type) == this->GetType(); } - constexpr bool HasTypeAttribute(KMemoryRegionAttr attr) const { + constexpr bool HasTypeAttribute(u32 attr) const { return (this->GetType() | attr) == this->GetType(); } @@ -103,7 +103,7 @@ public: pair_address = a; } - constexpr void SetTypeAttribute(KMemoryRegionAttr attr) { + constexpr void SetTypeAttribute(u32 attr) { type_id |= attr; } @@ -237,7 +237,7 @@ public: return extents; } - DerivedRegionExtents GetDerivedRegionExtents(KMemoryRegionAttr type_id) const { + DerivedRegionExtents GetDerivedRegionExtents(u32 type_id) const { return GetDerivedRegionExtents(static_cast<KMemoryRegionType>(type_id)); } |