diff --git a/pcsx2/x86/microVU.cpp b/pcsx2/x86/microVU.cpp index febdd0b4b5..914eaf5c32 100644 --- a/pcsx2/x86/microVU.cpp +++ b/pcsx2/x86/microVU.cpp @@ -61,7 +61,7 @@ void mVUinit(microVU& mVU, uint vuIndex) mVU.microMemSize = (mVU.index ? 0x4000 : 0x1000); mVU.progSize = (mVU.index ? 0x4000 : 0x1000) / 4; mVU.progMemMask = mVU.progSize-1; - mVU.cacheSize = vuIndex ? mVU1cacheReserve : mVU0cacheReserve; + mVU.cacheSize = mVUcacheReserve; mVU.cache = NULL; mVU.dispCache = NULL; mVU.startFunct = NULL; @@ -489,14 +489,14 @@ uint recMicroVU1::GetCacheReserve() const void recMicroVU0::SetCacheReserve(uint reserveInMegs) const { DevCon.WriteLn("microVU0: Changing cache size [%dmb]", reserveInMegs); - microVU0.cacheSize = std::min(reserveInMegs, mVU0cacheReserve); + microVU0.cacheSize = std::min(reserveInMegs, mVUcacheReserve); safe_delete(microVU0.cache_reserve); // I assume this unmaps the memory mVUreserveCache(microVU0); // Need rec-reset after this } void recMicroVU1::SetCacheReserve(uint reserveInMegs) const { DevCon.WriteLn("microVU1: Changing cache size [%dmb]", reserveInMegs); - microVU1.cacheSize = std::min(reserveInMegs, mVU1cacheReserve); + microVU1.cacheSize = std::min(reserveInMegs, mVUcacheReserve); safe_delete(microVU1.cache_reserve); // I assume this unmaps the memory mVUreserveCache(microVU1); // Need rec-reset after this } diff --git a/pcsx2/x86/microVU.h b/pcsx2/x86/microVU.h index 539cb51176..d5ab781448 100644 --- a/pcsx2/x86/microVU.h +++ b/pcsx2/x86/microVU.h @@ -200,8 +200,7 @@ struct microProgManager static const uint mVUdispCacheSize = __pagesize; // Dispatcher Cache Size (in bytes) static const uint mVUcacheSafeZone = 3; // Safe-Zone for program recompilation (in megabytes) -static const uint mVU0cacheReserve = 64; // mVU0 Reserve Cache Size (in megabytes) -static const uint mVU1cacheReserve = 64; // mVU1 Reserve Cache Size (in megabytes) +static const uint mVUcacheReserve = 64; // mVU0, mVU1 Reserve Cache Size (in megabytes) struct microVU {