diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-12-06 17:26:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-06 17:26:38 +0100 |
commit | a86af1b776fadb4d5804ef2c1fb74e0c197cc51d (patch) | |
tree | 86973b1879caef999ac9f1d413b48538e2644542 /src/core/hle/kernel/k_memory_block.h | |
parent | Merge pull request #9395 from abouvier/cmake-find (diff) | |
parent | kernel/k_shared_memory: Ensure device_memory is always initialized (diff) | |
download | yuzu-a86af1b776fadb4d5804ef2c1fb74e0c197cc51d.tar yuzu-a86af1b776fadb4d5804ef2c1fb74e0c197cc51d.tar.gz yuzu-a86af1b776fadb4d5804ef2c1fb74e0c197cc51d.tar.bz2 yuzu-a86af1b776fadb4d5804ef2c1fb74e0c197cc51d.tar.lz yuzu-a86af1b776fadb4d5804ef2c1fb74e0c197cc51d.tar.xz yuzu-a86af1b776fadb4d5804ef2c1fb74e0c197cc51d.tar.zst yuzu-a86af1b776fadb4d5804ef2c1fb74e0c197cc51d.zip |
Diffstat (limited to 'src/core/hle/kernel/k_memory_block.h')
-rw-r--r-- | src/core/hle/kernel/k_memory_block.h | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/src/core/hle/kernel/k_memory_block.h b/src/core/hle/kernel/k_memory_block.h index 3b6e7baff..87ca65592 100644 --- a/src/core/hle/kernel/k_memory_block.h +++ b/src/core/hle/kernel/k_memory_block.h @@ -280,18 +280,19 @@ struct KMemoryInfo { class KMemoryBlock : public Common::IntrusiveRedBlackTreeBaseNode<KMemoryBlock> { private: - u16 m_device_disable_merge_left_count; - u16 m_device_disable_merge_right_count; - VAddr m_address; - size_t m_num_pages; - KMemoryState m_memory_state; - u16 m_ipc_lock_count; - u16 m_device_use_count; - u16 m_ipc_disable_merge_count; - KMemoryPermission m_permission; - KMemoryPermission m_original_permission; - KMemoryAttribute m_attribute; - KMemoryBlockDisableMergeAttribute m_disable_merge_attribute; + u16 m_device_disable_merge_left_count{}; + u16 m_device_disable_merge_right_count{}; + VAddr m_address{}; + size_t m_num_pages{}; + KMemoryState m_memory_state{KMemoryState::None}; + u16 m_ipc_lock_count{}; + u16 m_device_use_count{}; + u16 m_ipc_disable_merge_count{}; + KMemoryPermission m_permission{KMemoryPermission::None}; + KMemoryPermission m_original_permission{KMemoryPermission::None}; + KMemoryAttribute m_attribute{KMemoryAttribute::None}; + KMemoryBlockDisableMergeAttribute m_disable_merge_attribute{ + KMemoryBlockDisableMergeAttribute::None}; public: static constexpr int Compare(const KMemoryBlock& lhs, const KMemoryBlock& rhs) { @@ -367,12 +368,8 @@ public: constexpr KMemoryBlock(VAddr addr, size_t np, KMemoryState ms, KMemoryPermission p, KMemoryAttribute attr) - : Common::IntrusiveRedBlackTreeBaseNode<KMemoryBlock>(), - m_device_disable_merge_left_count(), m_device_disable_merge_right_count(), - m_address(addr), m_num_pages(np), m_memory_state(ms), m_ipc_lock_count(0), - m_device_use_count(0), m_ipc_disable_merge_count(), m_permission(p), - m_original_permission(KMemoryPermission::None), m_attribute(attr), - m_disable_merge_attribute() {} + : Common::IntrusiveRedBlackTreeBaseNode<KMemoryBlock>(), m_address(addr), m_num_pages(np), + m_memory_state(ms), m_permission(p), m_attribute(attr) {} constexpr void Initialize(VAddr addr, size_t np, KMemoryState ms, KMemoryPermission p, KMemoryAttribute attr) { |