mirror of https://github.com/PCSX2/pcsx2.git
microVU: Combine mVU0cacheReserve and mVU1cacheReserve.
This commit is contained in:
parent
ddb300027c
commit
c2dad218e5
|
@ -61,7 +61,7 @@ void mVUinit(microVU& mVU, uint vuIndex)
|
||||||
mVU.microMemSize = (mVU.index ? 0x4000 : 0x1000);
|
mVU.microMemSize = (mVU.index ? 0x4000 : 0x1000);
|
||||||
mVU.progSize = (mVU.index ? 0x4000 : 0x1000) / 4;
|
mVU.progSize = (mVU.index ? 0x4000 : 0x1000) / 4;
|
||||||
mVU.progMemMask = mVU.progSize-1;
|
mVU.progMemMask = mVU.progSize-1;
|
||||||
mVU.cacheSize = vuIndex ? mVU1cacheReserve : mVU0cacheReserve;
|
mVU.cacheSize = mVUcacheReserve;
|
||||||
mVU.cache = NULL;
|
mVU.cache = NULL;
|
||||||
mVU.dispCache = NULL;
|
mVU.dispCache = NULL;
|
||||||
mVU.startFunct = NULL;
|
mVU.startFunct = NULL;
|
||||||
|
@ -489,14 +489,14 @@ uint recMicroVU1::GetCacheReserve() const
|
||||||
void recMicroVU0::SetCacheReserve(uint reserveInMegs) const
|
void recMicroVU0::SetCacheReserve(uint reserveInMegs) const
|
||||||
{
|
{
|
||||||
DevCon.WriteLn("microVU0: Changing cache size [%dmb]", reserveInMegs);
|
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
|
safe_delete(microVU0.cache_reserve); // I assume this unmaps the memory
|
||||||
mVUreserveCache(microVU0); // Need rec-reset after this
|
mVUreserveCache(microVU0); // Need rec-reset after this
|
||||||
}
|
}
|
||||||
void recMicroVU1::SetCacheReserve(uint reserveInMegs) const
|
void recMicroVU1::SetCacheReserve(uint reserveInMegs) const
|
||||||
{
|
{
|
||||||
DevCon.WriteLn("microVU1: Changing cache size [%dmb]", reserveInMegs);
|
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
|
safe_delete(microVU1.cache_reserve); // I assume this unmaps the memory
|
||||||
mVUreserveCache(microVU1); // Need rec-reset after this
|
mVUreserveCache(microVU1); // Need rec-reset after this
|
||||||
}
|
}
|
||||||
|
|
|
@ -200,8 +200,7 @@ struct microProgManager
|
||||||
|
|
||||||
static const uint mVUdispCacheSize = __pagesize; // Dispatcher Cache Size (in bytes)
|
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 mVUcacheSafeZone = 3; // Safe-Zone for program recompilation (in megabytes)
|
||||||
static const uint mVU0cacheReserve = 64; // mVU0 Reserve Cache Size (in megabytes)
|
static const uint mVUcacheReserve = 64; // mVU0, mVU1 Reserve Cache Size (in megabytes)
|
||||||
static const uint mVU1cacheReserve = 64; // mVU1 Reserve Cache Size (in megabytes)
|
|
||||||
|
|
||||||
struct microVU
|
struct microVU
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue