diff options
author | bunnei <bunneidev@gmail.com> | 2019-03-17 19:42:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-17 19:42:57 +0100 |
commit | 57ca1e3e6942d1ef1b59c458e76ba969f0b739d5 (patch) | |
tree | 1d7a026c695a73932030048329a2c0707656666e /src/core/memory_setup.h | |
parent | Merge pull request #2251 from bunnei/skip-zero-flush (diff) | |
parent | core: Move PageTable struct into Common. (diff) | |
download | yuzu-57ca1e3e6942d1ef1b59c458e76ba969f0b739d5.tar yuzu-57ca1e3e6942d1ef1b59c458e76ba969f0b739d5.tar.gz yuzu-57ca1e3e6942d1ef1b59c458e76ba969f0b739d5.tar.bz2 yuzu-57ca1e3e6942d1ef1b59c458e76ba969f0b739d5.tar.lz yuzu-57ca1e3e6942d1ef1b59c458e76ba969f0b739d5.tar.xz yuzu-57ca1e3e6942d1ef1b59c458e76ba969f0b739d5.tar.zst yuzu-57ca1e3e6942d1ef1b59c458e76ba969f0b739d5.zip |
Diffstat (limited to 'src/core/memory_setup.h')
-rw-r--r-- | src/core/memory_setup.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/core/memory_setup.h b/src/core/memory_setup.h index 9a1a4f4be..5225ee8e2 100644 --- a/src/core/memory_setup.h +++ b/src/core/memory_setup.h @@ -5,7 +5,11 @@ #pragma once #include "common/common_types.h" -#include "core/memory_hook.h" +#include "common/memory_hook.h" + +namespace Common { +struct PageTable; +} namespace Memory { @@ -17,7 +21,7 @@ namespace Memory { * @param size The amount of bytes to map. Must be page-aligned. * @param target Buffer with the memory backing the mapping. Must be of length at least `size`. */ -void MapMemoryRegion(PageTable& page_table, VAddr base, u64 size, u8* target); +void MapMemoryRegion(Common::PageTable& page_table, VAddr base, u64 size, u8* target); /** * Maps a region of the emulated process address space as a IO region. @@ -26,11 +30,14 @@ void MapMemoryRegion(PageTable& page_table, VAddr base, u64 size, u8* target); * @param size The amount of bytes to map. Must be page-aligned. * @param mmio_handler The handler that backs the mapping. */ -void MapIoRegion(PageTable& page_table, VAddr base, u64 size, MemoryHookPointer mmio_handler); +void MapIoRegion(Common::PageTable& page_table, VAddr base, u64 size, + Common::MemoryHookPointer mmio_handler); -void UnmapRegion(PageTable& page_table, VAddr base, u64 size); +void UnmapRegion(Common::PageTable& page_table, VAddr base, u64 size); -void AddDebugHook(PageTable& page_table, VAddr base, u64 size, MemoryHookPointer hook); -void RemoveDebugHook(PageTable& page_table, VAddr base, u64 size, MemoryHookPointer hook); +void AddDebugHook(Common::PageTable& page_table, VAddr base, u64 size, + Common::MemoryHookPointer hook); +void RemoveDebugHook(Common::PageTable& page_table, VAddr base, u64 size, + Common::MemoryHookPointer hook); } // namespace Memory |