diff options
| author | 2018-08-06 12:34:57 -0400 | |
|---|---|---|
| committer | 2018-08-06 12:34:57 -0400 | |
| commit | 1ac45342ddf8a12052d88d669240e5522aaf6395 (patch) | |
| tree | c33e18ed543efa0d2f30ed64ec6a9e5b67c84209 /src | |
| parent | Merge pull request #937 from mailwl/audout-fix (diff) | |
| parent | memory: Make prototype parameter names match their definitions (diff) | |
| download | yuzu-1ac45342ddf8a12052d88d669240e5522aaf6395.tar.gz yuzu-1ac45342ddf8a12052d88d669240e5522aaf6395.tar.xz yuzu-1ac45342ddf8a12052d88d669240e5522aaf6395.zip | |
Merge pull request #933 from lioncash/memory
memory: Correct prototype of ZeroBlock
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/memory.h | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/core/memory.h b/src/core/memory.h index b5d885b8a..b7fb3b9ed 100644 --- a/src/core/memory.h +++ b/src/core/memory.h | |||
| @@ -140,10 +140,10 @@ void SetCurrentPageTable(PageTable* page_table); | |||
| 140 | PageTable* GetCurrentPageTable(); | 140 | PageTable* GetCurrentPageTable(); |
| 141 | 141 | ||
| 142 | /// Determines if the given VAddr is valid for the specified process. | 142 | /// Determines if the given VAddr is valid for the specified process. |
| 143 | bool IsValidVirtualAddress(const Kernel::Process& process, const VAddr vaddr); | 143 | bool IsValidVirtualAddress(const Kernel::Process& process, VAddr vaddr); |
| 144 | bool IsValidVirtualAddress(const VAddr addr); | 144 | bool IsValidVirtualAddress(VAddr vaddr); |
| 145 | /// Determines if the given VAddr is a kernel address | 145 | /// Determines if the given VAddr is a kernel address |
| 146 | bool IsKernelVirtualAddress(const VAddr addr); | 146 | bool IsKernelVirtualAddress(VAddr vaddr); |
| 147 | 147 | ||
| 148 | u8 Read8(VAddr addr); | 148 | u8 Read8(VAddr addr); |
| 149 | u16 Read16(VAddr addr); | 149 | u16 Read16(VAddr addr); |
| @@ -155,18 +155,17 @@ void Write16(VAddr addr, u16 data); | |||
| 155 | void Write32(VAddr addr, u32 data); | 155 | void Write32(VAddr addr, u32 data); |
| 156 | void Write64(VAddr addr, u64 data); | 156 | void Write64(VAddr addr, u64 data); |
| 157 | 157 | ||
| 158 | void ReadBlock(const Kernel::Process& process, const VAddr src_addr, void* dest_buffer, | 158 | void ReadBlock(const Kernel::Process& process, VAddr src_addr, void* dest_buffer, size_t size); |
| 159 | size_t size); | 159 | void ReadBlock(VAddr src_addr, void* dest_buffer, size_t size); |
| 160 | void ReadBlock(const VAddr src_addr, void* dest_buffer, size_t size); | 160 | void WriteBlock(const Kernel::Process& process, VAddr dest_addr, const void* src_buffer, |
| 161 | void WriteBlock(const Kernel::Process& process, const VAddr dest_addr, const void* src_buffer, | ||
| 162 | size_t size); | 161 | size_t size); |
| 163 | void WriteBlock(const VAddr dest_addr, const void* src_buffer, size_t size); | 162 | void WriteBlock(VAddr dest_addr, const void* src_buffer, size_t size); |
| 164 | void ZeroBlock(const VAddr dest_addr, const size_t size); | 163 | void ZeroBlock(const Kernel::Process& process, VAddr dest_addr, size_t size); |
| 165 | void CopyBlock(VAddr dest_addr, VAddr src_addr, size_t size); | 164 | void CopyBlock(VAddr dest_addr, VAddr src_addr, size_t size); |
| 166 | 165 | ||
| 167 | u8* GetPointer(VAddr virtual_address); | 166 | u8* GetPointer(VAddr vaddr); |
| 168 | 167 | ||
| 169 | std::string ReadCString(VAddr virtual_address, std::size_t max_length); | 168 | std::string ReadCString(VAddr vaddr, std::size_t max_length); |
| 170 | 169 | ||
| 171 | enum class FlushMode { | 170 | enum class FlushMode { |
| 172 | /// Write back modified surfaces to RAM | 171 | /// Write back modified surfaces to RAM |
| @@ -180,7 +179,7 @@ enum class FlushMode { | |||
| 180 | /** | 179 | /** |
| 181 | * Mark each page touching the region as cached. | 180 | * Mark each page touching the region as cached. |
| 182 | */ | 181 | */ |
| 183 | void RasterizerMarkRegionCached(Tegra::GPUVAddr start, u64 size, bool cached); | 182 | void RasterizerMarkRegionCached(Tegra::GPUVAddr gpu_addr, u64 size, bool cached); |
| 184 | 183 | ||
| 185 | /** | 184 | /** |
| 186 | * Flushes and invalidates any externally cached rasterizer resources touching the given virtual | 185 | * Flushes and invalidates any externally cached rasterizer resources touching the given virtual |