aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/memory.cpp
diff options
context:
space:
mode:
authorLiam <[email protected]>2023-11-17 23:44:53 +0200
committert895 <[email protected]>2023-11-25 00:46:47 -0500
commit9f91ba1f7357c61dd2c7c3b437ea203d467fd400 (patch)
tree3cfe55acf5d2f8a0d75373934b4c22a4e9bb2a09 /src/core/memory.cpp
parent48388376206aaa7d887b41030019035a06203867 (diff)
downloadyuzu-android-9f91ba1f7357c61dd2c7c3b437ea203d467fd400.tar.gz
yuzu-android-9f91ba1f7357c61dd2c7c3b437ea203d467fd400.zip
arm: Implement native code execution backend
Diffstat (limited to 'src/core/memory.cpp')
-rw-r--r--src/core/memory.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp
index 14db64f9d..e5ca78ef4 100644
--- a/src/core/memory.cpp
+++ b/src/core/memory.cpp
@@ -1001,4 +1001,17 @@ void Memory::FlushRegion(Common::ProcessAddress dest_addr, size_t size) {
impl->FlushRegion(dest_addr, size);
}
+bool Memory::InvalidateNCE(Common::ProcessAddress vaddr, size_t size) {
+ bool mapped = true;
+ u8* const ptr = impl->GetPointerImpl(
+ GetInteger(vaddr),
+ [&] {
+ LOG_ERROR(HW_Memory, "Unmapped InvalidateNCE for {} bytes @ {:#x}", size,
+ GetInteger(vaddr));
+ mapped = false;
+ },
+ [&] { impl->system.GPU().InvalidateRegion(GetInteger(vaddr), size); });
+ return mapped && ptr != nullptr;
+}
+
} // namespace Core::Memory