summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2023-12-29 09:27:37 +0100
committerLiam <byteslice@airmail.cc>2024-01-19 03:12:30 +0100
commitbad705f245f1591d8a92cd57bfbc87dd2cdb0fea (patch)
tree05f8d285c594f1480462bf87d2887b42cef0aa08
parentSMMU: Implement physical memory mirroring (diff)
downloadyuzu-bad705f245f1591d8a92cd57bfbc87dd2cdb0fea.tar
yuzu-bad705f245f1591d8a92cd57bfbc87dd2cdb0fea.tar.gz
yuzu-bad705f245f1591d8a92cd57bfbc87dd2cdb0fea.tar.bz2
yuzu-bad705f245f1591d8a92cd57bfbc87dd2cdb0fea.tar.lz
yuzu-bad705f245f1591d8a92cd57bfbc87dd2cdb0fea.tar.xz
yuzu-bad705f245f1591d8a92cd57bfbc87dd2cdb0fea.tar.zst
yuzu-bad705f245f1591d8a92cd57bfbc87dd2cdb0fea.zip
-rw-r--r--src/core/device_memory_manager.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/device_memory_manager.inc b/src/core/device_memory_manager.inc
index 4fb3ad3ab..b3a5f3d8b 100644
--- a/src/core/device_memory_manager.inc
+++ b/src/core/device_memory_manager.inc
@@ -78,7 +78,7 @@ public:
u32 next_entry = current->next_entry;
if (next_entry != 0) {
next = &storage[next_entry - 1];
- more_than_one_remaining = next->next_entry != 0;
+ more_than_one_remaining = next->next_entry != 0 || previous != nullptr;
}
if (previous) {
previous->next_entry = next_entry;