summaryrefslogtreecommitdiff
path: root/src/common/page_table.h
diff options
context:
space:
mode:
authorGravatar LC2021-01-01 11:02:14 -0500
committerGravatar GitHub2021-01-01 11:02:14 -0500
commit9e109849ff3f61c0f1e586ebc9c16c413eb7f175 (patch)
tree317be75d2ee47aa3c280b597c1233da758c1a9ee /src/common/page_table.h
parentMerge pull request #5249 from ReinUsesLisp/lock-free-pages (diff)
parentmemory: Remove MemoryHook (diff)
downloadyuzu-9e109849ff3f61c0f1e586ebc9c16c413eb7f175.tar.gz
yuzu-9e109849ff3f61c0f1e586ebc9c16c413eb7f175.tar.xz
yuzu-9e109849ff3f61c0f1e586ebc9c16c413eb7f175.zip
Merge pull request #5271 from MerryMage/rm-mem-Special
memory: Remove MemoryHook
Diffstat (limited to 'src/common/page_table.h')
-rw-r--r--src/common/page_table.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/common/page_table.h b/src/common/page_table.h
index 8d4ee9249..0c14e6433 100644
--- a/src/common/page_table.h
+++ b/src/common/page_table.h
@@ -8,7 +8,6 @@
8#include <tuple> 8#include <tuple>
9 9
10#include "common/common_types.h" 10#include "common/common_types.h"
11#include "common/memory_hook.h"
12#include "common/virtual_buffer.h" 11#include "common/virtual_buffer.h"
13 12
14namespace Common { 13namespace Common {
@@ -23,23 +22,6 @@ enum class PageType : u8 {
23 RasterizerCachedMemory, 22 RasterizerCachedMemory,
24}; 23};
25 24
26struct SpecialRegion {
27 enum class Type {
28 DebugHook,
29 IODevice,
30 } type;
31
32 MemoryHookPointer handler;
33
34 [[nodiscard]] bool operator<(const SpecialRegion& other) const {
35 return std::tie(type, handler) < std::tie(other.type, other.handler);
36 }
37
38 [[nodiscard]] bool operator==(const SpecialRegion& other) const {
39 return std::tie(type, handler) == std::tie(other.type, other.handler);
40 }
41};
42
43/** 25/**
44 * A (reasonably) fast way of allowing switchable and remappable process address spaces. It loosely 26 * A (reasonably) fast way of allowing switchable and remappable process address spaces. It loosely
45 * mimics the way a real CPU page table works. 27 * mimics the way a real CPU page table works.