summaryrefslogtreecommitdiffstats
path: root/src/core/memory.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-04-09 04:50:46 +0200
committerbunnei <bunneidev@gmail.com>2020-04-17 06:59:34 +0200
commitf7c03610e150e49632354e838052d210c8c6075b (patch)
treeeaa5c3ee35eb1f6a968dda22b7191f7355bba789 /src/core/memory.h
parentcommon: page_table: Update to use VirtualBuffer and simplify. (diff)
downloadyuzu-f7c03610e150e49632354e838052d210c8c6075b.tar
yuzu-f7c03610e150e49632354e838052d210c8c6075b.tar.gz
yuzu-f7c03610e150e49632354e838052d210c8c6075b.tar.bz2
yuzu-f7c03610e150e49632354e838052d210c8c6075b.tar.lz
yuzu-f7c03610e150e49632354e838052d210c8c6075b.tar.xz
yuzu-f7c03610e150e49632354e838052d210c8c6075b.tar.zst
yuzu-f7c03610e150e49632354e838052d210c8c6075b.zip
Diffstat (limited to '')
-rw-r--r--src/core/memory.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/core/memory.h b/src/core/memory.h
index f6d9e8e8c..9292f3b0a 100644
--- a/src/core/memory.h
+++ b/src/core/memory.h
@@ -67,19 +67,6 @@ public:
void SetCurrentPageTable(Kernel::Process& process);
/**
- * Maps an physical buffer onto a region of the emulated process address space.
- *
- * @param page_table The page table of the emulated process.
- * @param base The address to start mapping at. Must be page-aligned.
- * @param size The amount of bytes to map. Must be page-aligned.
- * @param memory Physical buffer with the memory backing the mapping. Must be of length
- * at least `size + offset`.
- * @param offset The offset within the physical memory. Must be page-aligned.
- */
- void MapMemoryRegion(Common::PageTable& page_table, VAddr base, u64 size,
- Kernel::PhysicalMemory& memory, VAddr offset);
-
- /**
* Maps an allocated buffer onto a region of the emulated process address space.
*
* @param page_table The page table of the emulated process.
@@ -88,7 +75,7 @@ public:
* @param target Buffer with the memory backing the mapping. Must be of length at least
* `size`.
*/
- void MapMemoryRegion(Common::PageTable& page_table, VAddr base, u64 size, u8* target);
+ void MapMemoryRegion(Common::PageTable& page_table, VAddr base, u64 size, PAddr target);
/**
* Maps a region of the emulated process address space as a IO region.