diff options
author | Merry <git@mary.rs> | 2023-02-21 22:36:20 +0100 |
---|---|---|
committer | Merry <git@mary.rs> | 2023-02-21 22:39:17 +0100 |
commit | c9678bda2440423ec55d420aedd9a11d79834649 (patch) | |
tree | a08342651979d1eb652053efe35faa0136fbfab0 /src/core/hle/kernel/svc/svc_cache.cpp | |
parent | Merge pull request #9834 from german77/reverted (diff) | |
download | yuzu-c9678bda2440423ec55d420aedd9a11d79834649.tar yuzu-c9678bda2440423ec55d420aedd9a11d79834649.tar.gz yuzu-c9678bda2440423ec55d420aedd9a11d79834649.tar.bz2 yuzu-c9678bda2440423ec55d420aedd9a11d79834649.tar.lz yuzu-c9678bda2440423ec55d420aedd9a11d79834649.tar.xz yuzu-c9678bda2440423ec55d420aedd9a11d79834649.tar.zst yuzu-c9678bda2440423ec55d420aedd9a11d79834649.zip |
Diffstat (limited to 'src/core/hle/kernel/svc/svc_cache.cpp')
-rw-r--r-- | src/core/hle/kernel/svc/svc_cache.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/svc/svc_cache.cpp b/src/core/hle/kernel/svc/svc_cache.cpp index 598b71da5..1779832d3 100644 --- a/src/core/hle/kernel/svc/svc_cache.cpp +++ b/src/core/hle/kernel/svc/svc_cache.cpp @@ -13,7 +13,7 @@ void FlushEntireDataCache(Core::System& system) { UNIMPLEMENTED(); } -Result FlushDataCache(Core::System& system, VAddr address, size_t size) { +Result FlushDataCache(Core::System& system, uint64_t address, uint64_t size) { UNIMPLEMENTED(); R_THROW(ResultNotImplemented); } @@ -33,8 +33,8 @@ Result StoreProcessDataCache(Core::System& system, Handle process_handle, uint64 Result FlushProcessDataCache(Core::System& system, Handle process_handle, u64 address, u64 size) { // Validate address/size. R_UNLESS(size > 0, ResultInvalidSize); - R_UNLESS(address == static_cast<uintptr_t>(address), ResultInvalidCurrentMemory); - R_UNLESS(size == static_cast<size_t>(size), ResultInvalidCurrentMemory); + R_UNLESS(address == static_cast<uint64_t>(address), ResultInvalidCurrentMemory); + R_UNLESS(size == static_cast<uint64_t>(size), ResultInvalidCurrentMemory); // Get the process from its handle. KScopedAutoObject process = @@ -53,7 +53,7 @@ void FlushEntireDataCache64(Core::System& system) { FlushEntireDataCache(system); } -Result FlushDataCache64(Core::System& system, VAddr address, size_t size) { +Result FlushDataCache64(Core::System& system, uint64_t address, uint64_t size) { R_RETURN(FlushDataCache(system, address, size)); } |