summaryrefslogtreecommitdiffstats
path: root/src/common/page_table.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-11-19 05:40:10 +0100
committerGitHub <noreply@github.com>2020-11-19 05:40:10 +0100
commit92344da20ce4801543c1d3148e1f1b62ba162ffb (patch)
treea5cd5980b1287dfd9b56e6df48cad3790e173284 /src/common/page_table.h
parentMerge pull request #4866 from Morph1984/mjolnir-p3-prod (diff)
parentvirtual_buffer: Add compile-time type-safety guarantees with VirtualBuffer (diff)
downloadyuzu-92344da20ce4801543c1d3148e1f1b62ba162ffb.tar
yuzu-92344da20ce4801543c1d3148e1f1b62ba162ffb.tar.gz
yuzu-92344da20ce4801543c1d3148e1f1b62ba162ffb.tar.bz2
yuzu-92344da20ce4801543c1d3148e1f1b62ba162ffb.tar.lz
yuzu-92344da20ce4801543c1d3148e1f1b62ba162ffb.tar.xz
yuzu-92344da20ce4801543c1d3148e1f1b62ba162ffb.tar.zst
yuzu-92344da20ce4801543c1d3148e1f1b62ba162ffb.zip
Diffstat (limited to 'src/common/page_table.h')
-rw-r--r--src/common/page_table.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/common/page_table.h b/src/common/page_table.h
index cf5eed780..9754fabf9 100644
--- a/src/common/page_table.h
+++ b/src/common/page_table.h
@@ -4,9 +4,7 @@
#pragma once
-#include <vector>
-
-#include <boost/icl/interval_map.hpp>
+#include <tuple>
#include "common/common_types.h"
#include "common/memory_hook.h"
@@ -51,13 +49,21 @@ struct SpecialRegion {
*/
struct PageTable {
PageTable();
- ~PageTable();
+ ~PageTable() noexcept;
+
+ PageTable(const PageTable&) = delete;
+ PageTable& operator=(const PageTable&) = delete;
+
+ PageTable(PageTable&&) noexcept = default;
+ PageTable& operator=(PageTable&&) noexcept = default;
/**
* Resizes the page table to be able to accomodate enough pages within
* a given address space.
*
* @param address_space_width_in_bits The address size width in bits.
+ * @param page_size_in_bits The page size in bits.
+ * @param has_attribute Whether or not this page has any backing attributes.
*/
void Resize(std::size_t address_space_width_in_bits, std::size_t page_size_in_bits,
bool has_attribute);