diff options
author | itsmeft24 <rishabh.tumminkatti@gmail.com> | 2021-12-05 21:04:08 +0100 |
---|---|---|
committer | itsmeft24 <rishabh.tumminkatti@gmail.com> | 2021-12-05 21:04:08 +0100 |
commit | 8aef8f39d86affd8fcc9a812d3d597f8eaee90b8 (patch) | |
tree | c0249fef800fad1f0ad0b027b85a1801ac41e294 /src/core/hle/kernel/k_page_linked_list.h | |
parent | Merge pull request #7494 from Morph1984/no-time-to-wait (diff) | |
download | yuzu-8aef8f39d86affd8fcc9a812d3d597f8eaee90b8.tar yuzu-8aef8f39d86affd8fcc9a812d3d597f8eaee90b8.tar.gz yuzu-8aef8f39d86affd8fcc9a812d3d597f8eaee90b8.tar.bz2 yuzu-8aef8f39d86affd8fcc9a812d3d597f8eaee90b8.tar.lz yuzu-8aef8f39d86affd8fcc9a812d3d597f8eaee90b8.tar.xz yuzu-8aef8f39d86affd8fcc9a812d3d597f8eaee90b8.tar.zst yuzu-8aef8f39d86affd8fcc9a812d3d597f8eaee90b8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/k_page_linked_list.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_page_linked_list.h b/src/core/hle/kernel/k_page_linked_list.h index 3362fb236..0e2ae582a 100644 --- a/src/core/hle/kernel/k_page_linked_list.h +++ b/src/core/hle/kernel/k_page_linked_list.h @@ -27,6 +27,10 @@ public: return num_pages; } + constexpr std::size_t GetSize() const { + return GetNumPages() * PageSize; + } + private: u64 addr{}; std::size_t num_pages{}; |