From 606efbce107fe4168f9e525689dec67a3b09038a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 5 Nov 2014 19:35:30 -0500 Subject: [PATCH] PPCCache: Make PLRU lookup tables static --- Source/Core/Core/PowerPC/PPCCache.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/PowerPC/PPCCache.cpp b/Source/Core/Core/PowerPC/PPCCache.cpp index 0c3a6e79aa..28e006f7bc 100644 --- a/Source/Core/Core/PowerPC/PPCCache.cpp +++ b/Source/Core/Core/PowerPC/PPCCache.cpp @@ -12,9 +12,8 @@ namespace PowerPC { - - const u32 plru_mask[8] = {11, 11, 19, 19, 37, 37, 69, 69}; - const u32 plru_value[8] = {11, 3, 17, 1, 36, 4, 64, 0}; + static const u32 s_plru_mask[8] = {11, 11, 19, 19, 37, 37, 69, 69}; + static const u32 s_plru_value[8] = {11, 3, 17, 1, 36, 4, 64, 0}; InstructionCache::InstructionCache() { @@ -150,7 +149,7 @@ namespace PowerPC valid[set] |= (1 << t); } // update plru - plru[set] = (plru[set] & ~plru_mask[t]) | plru_value[t]; + plru[set] = (plru[set] & ~s_plru_mask[t]) | s_plru_value[t]; u32 res = Common::swap32(data[set][t][(addr >> 2) & 7]); return res; }