diff options
| author | 2018-01-27 15:16:39 +0000 | |
|---|---|---|
| committer | 2018-01-27 15:16:39 +0000 | |
| commit | 738f91a57da7c129d1ee85b7abbf6858f8669ee3 (patch) | |
| tree | 3ef164d8e79c0aea6ab72dc9b8fa78877a82338a /src/core/memory_setup.h | |
| parent | externals: Update dynarmic (diff) | |
| download | yuzu-738f91a57da7c129d1ee85b7abbf6858f8669ee3.tar.gz yuzu-738f91a57da7c129d1ee85b7abbf6858f8669ee3.tar.xz yuzu-738f91a57da7c129d1ee85b7abbf6858f8669ee3.zip | |
memory: Replace all memory hooking with Special regions
Diffstat (limited to 'src/core/memory_setup.h')
| -rw-r--r-- | src/core/memory_setup.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/memory_setup.h b/src/core/memory_setup.h index 6f82a131e..9a1a4f4be 100644 --- a/src/core/memory_setup.h +++ b/src/core/memory_setup.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 8 | #include "core/mmio.h" | 8 | #include "core/memory_hook.h" |
| 9 | 9 | ||
| 10 | namespace Memory { | 10 | namespace Memory { |
| 11 | 11 | ||
| @@ -26,7 +26,11 @@ void MapMemoryRegion(PageTable& page_table, VAddr base, u64 size, u8* target); | |||
| 26 | * @param size The amount of bytes to map. Must be page-aligned. | 26 | * @param size The amount of bytes to map. Must be page-aligned. |
| 27 | * @param mmio_handler The handler that backs the mapping. | 27 | * @param mmio_handler The handler that backs the mapping. |
| 28 | */ | 28 | */ |
| 29 | void MapIoRegion(PageTable& page_table, VAddr base, u64 size, MMIORegionPointer mmio_handler); | 29 | void MapIoRegion(PageTable& page_table, VAddr base, u64 size, MemoryHookPointer mmio_handler); |
| 30 | 30 | ||
| 31 | void UnmapRegion(PageTable& page_table, VAddr base, u64 size); | 31 | void UnmapRegion(PageTable& page_table, VAddr base, u64 size); |
| 32 | |||
| 33 | void AddDebugHook(PageTable& page_table, VAddr base, u64 size, MemoryHookPointer hook); | ||
| 34 | void RemoveDebugHook(PageTable& page_table, VAddr base, u64 size, MemoryHookPointer hook); | ||
| 35 | |||
| 32 | } // namespace Memory | 36 | } // namespace Memory |