diff options
Diffstat (limited to 'src/core/memory.h')
| -rw-r--r-- | src/core/memory.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/core/memory.h b/src/core/memory.h index ea33c769c..2eb61ffd3 100644 --- a/src/core/memory.h +++ b/src/core/memory.h | |||
| @@ -24,7 +24,6 @@ class GPUDirtyMemoryManager; | |||
| 24 | } // namespace Core | 24 | } // namespace Core |
| 25 | 25 | ||
| 26 | namespace Kernel { | 26 | namespace Kernel { |
| 27 | class PhysicalMemory; | ||
| 28 | class KProcess; | 27 | class KProcess; |
| 29 | } // namespace Kernel | 28 | } // namespace Kernel |
| 30 | 29 | ||
| @@ -330,7 +329,7 @@ public: | |||
| 330 | * @post The range [dest_buffer, size) contains the read bytes from the | 329 | * @post The range [dest_buffer, size) contains the read bytes from the |
| 331 | * current process' address space. | 330 | * current process' address space. |
| 332 | */ | 331 | */ |
| 333 | void ReadBlock(Common::ProcessAddress src_addr, void* dest_buffer, std::size_t size); | 332 | bool ReadBlock(Common::ProcessAddress src_addr, void* dest_buffer, std::size_t size); |
| 334 | 333 | ||
| 335 | /** | 334 | /** |
| 336 | * Reads a contiguous block of bytes from the current process' address space. | 335 | * Reads a contiguous block of bytes from the current process' address space. |
| @@ -349,7 +348,7 @@ public: | |||
| 349 | * @post The range [dest_buffer, size) contains the read bytes from the | 348 | * @post The range [dest_buffer, size) contains the read bytes from the |
| 350 | * current process' address space. | 349 | * current process' address space. |
| 351 | */ | 350 | */ |
| 352 | void ReadBlockUnsafe(Common::ProcessAddress src_addr, void* dest_buffer, std::size_t size); | 351 | bool ReadBlockUnsafe(Common::ProcessAddress src_addr, void* dest_buffer, std::size_t size); |
| 353 | 352 | ||
| 354 | const u8* GetSpan(const VAddr src_addr, const std::size_t size) const; | 353 | const u8* GetSpan(const VAddr src_addr, const std::size_t size) const; |
| 355 | u8* GetSpan(const VAddr src_addr, const std::size_t size); | 354 | u8* GetSpan(const VAddr src_addr, const std::size_t size); |
| @@ -373,7 +372,7 @@ public: | |||
| 373 | * and will mark that region as invalidated to caches that the active | 372 | * and will mark that region as invalidated to caches that the active |
| 374 | * graphics backend may be maintaining over the course of execution. | 373 | * graphics backend may be maintaining over the course of execution. |
| 375 | */ | 374 | */ |
| 376 | void WriteBlock(Common::ProcessAddress dest_addr, const void* src_buffer, std::size_t size); | 375 | bool WriteBlock(Common::ProcessAddress dest_addr, const void* src_buffer, std::size_t size); |
| 377 | 376 | ||
| 378 | /** | 377 | /** |
| 379 | * Writes a range of bytes into the current process' address space at the specified | 378 | * Writes a range of bytes into the current process' address space at the specified |
| @@ -391,7 +390,7 @@ public: | |||
| 391 | * will be ignored and an error will be logged. | 390 | * will be ignored and an error will be logged. |
| 392 | * | 391 | * |
| 393 | */ | 392 | */ |
| 394 | void WriteBlockUnsafe(Common::ProcessAddress dest_addr, const void* src_buffer, | 393 | bool WriteBlockUnsafe(Common::ProcessAddress dest_addr, const void* src_buffer, |
| 395 | std::size_t size); | 394 | std::size_t size); |
| 396 | 395 | ||
| 397 | /** | 396 | /** |
| @@ -405,7 +404,7 @@ public: | |||
| 405 | * @post The range [dest_addr, size) within the process' address space contains the | 404 | * @post The range [dest_addr, size) within the process' address space contains the |
| 406 | * same data within the range [src_addr, size). | 405 | * same data within the range [src_addr, size). |
| 407 | */ | 406 | */ |
| 408 | void CopyBlock(Common::ProcessAddress dest_addr, Common::ProcessAddress src_addr, | 407 | bool CopyBlock(Common::ProcessAddress dest_addr, Common::ProcessAddress src_addr, |
| 409 | std::size_t size); | 408 | std::size_t size); |
| 410 | 409 | ||
| 411 | /** | 410 | /** |
| @@ -418,7 +417,7 @@ public: | |||
| 418 | * @post The range [dest_addr, size) within the process' address space contains the | 417 | * @post The range [dest_addr, size) within the process' address space contains the |
| 419 | * value 0. | 418 | * value 0. |
| 420 | */ | 419 | */ |
| 421 | void ZeroBlock(Common::ProcessAddress dest_addr, std::size_t size); | 420 | bool ZeroBlock(Common::ProcessAddress dest_addr, std::size_t size); |
| 422 | 421 | ||
| 423 | /** | 422 | /** |
| 424 | * Invalidates a range of bytes within the current process' address space at the specified | 423 | * Invalidates a range of bytes within the current process' address space at the specified |