summaryrefslogtreecommitdiffstats
path: root/src/core/memory.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-04-05 23:23:49 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-04-06 15:23:06 +0200
commit7fcd0fee6d580a381fdc4a4ec5b77687e4857b5b (patch)
treefc9c659ffa601aee77eeea2a11f16be98cefc902 /src/core/memory.h
parentTexture Cache: Use vAddr instead of physical memory for caching. (diff)
downloadyuzu-7fcd0fee6d580a381fdc4a4ec5b77687e4857b5b.tar
yuzu-7fcd0fee6d580a381fdc4a4ec5b77687e4857b5b.tar.gz
yuzu-7fcd0fee6d580a381fdc4a4ec5b77687e4857b5b.tar.bz2
yuzu-7fcd0fee6d580a381fdc4a4ec5b77687e4857b5b.tar.lz
yuzu-7fcd0fee6d580a381fdc4a4ec5b77687e4857b5b.tar.xz
yuzu-7fcd0fee6d580a381fdc4a4ec5b77687e4857b5b.tar.zst
yuzu-7fcd0fee6d580a381fdc4a4ec5b77687e4857b5b.zip
Diffstat (limited to '')
-rw-r--r--src/core/memory.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/memory.h b/src/core/memory.h
index 8913a9da4..97750f851 100644
--- a/src/core/memory.h
+++ b/src/core/memory.h
@@ -294,6 +294,9 @@ public:
void ReadBlock(const Kernel::Process& process, VAddr src_addr, void* dest_buffer,
std::size_t size);
+ void ReadBlockUnsafe(const Kernel::Process& process, VAddr src_addr, void* dest_buffer,
+ std::size_t size);
+
/**
* Reads a contiguous block of bytes from the current process' address space.
*
@@ -312,6 +315,8 @@ public:
*/
void ReadBlock(VAddr src_addr, void* dest_buffer, std::size_t size);
+ void ReadBlockUnsafe(VAddr src_addr, void* dest_buffer, std::size_t size);
+
/**
* Writes a range of bytes into a given process' address space at the specified
* virtual address.
@@ -335,6 +340,9 @@ public:
void WriteBlock(const Kernel::Process& process, VAddr dest_addr, const void* src_buffer,
std::size_t size);
+ void WriteBlockUnsafe(const Kernel::Process& process, VAddr dest_addr, const void* src_buffer,
+ std::size_t size);
+
/**
* Writes a range of bytes into the current process' address space at the specified
* virtual address.
@@ -356,6 +364,8 @@ public:
*/
void WriteBlock(VAddr dest_addr, const void* src_buffer, std::size_t size);
+ void WriteBlockUnsafe(VAddr dest_addr, const void* src_buffer, std::size_t size);
+
/**
* Fills the specified address range within a process' address space with zeroes.
*