summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/PowerPC/PPCCache.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/Core/PowerPC/PPCCache.cpp b/Source/Core/Core/PowerPC/PPCCache.cpp
index de1b214e29..9d4cf00083 100644
--- a/Source/Core/Core/PowerPC/PPCCache.cpp
+++ b/Source/Core/Core/PowerPC/PPCCache.cpp
@@ -269,12 +269,12 @@ std::pair<u32, u32> Cache::GetCache(u32 addr, bool locked)
addrs[set][way] = addr;
valid[set] |= (1 << way);
modified[set] &= ~(1 << way);
-
- // update plru
- if (way != 0xff)
- plru[set] = (plru[set] & ~s_plru_mask[way]) | s_plru_value[way];
}
+ // update plru
+ if (way != 0xff)
+ plru[set] = (plru[set] & ~s_plru_mask[way]) | s_plru_value[way];
+
return {set, way};
}