Remove inherited variable that was no longer used. Clean up.

This commit is contained in:
Sacha 2012-03-29 17:01:59 +10:00
parent 2ee5e5cebc
commit 5f85815922
10 changed files with 15 additions and 33 deletions

View File

@ -74,9 +74,6 @@ bool BootCore(const std::string& _rFilename)
StartUp.bRunCompareServer = false;
StartUp.hInstance = Host_GetInstance();
#if defined(_WIN32) && defined(_M_X64)
StartUp.bUseFastMem = true;
#endif
// If for example the ISO file is bad we return here
if (!StartUp.AutoSetup(SCoreStartupParameter::BOOT_DEFAULT)) return false;

View File

@ -293,8 +293,9 @@ void CpuThread()
if (_CoreParameter.bLockThreads)
Common::SetCurrentThreadAffinity(1); // Force to first core
if (_CoreParameter.bUseFastMem)
#if defined(_WIN32) && defined(_M_X64)
EMM::InstallExceptionHandler(); // Let's run under memory watch
#endif
if (!g_stateFileName.empty())
State::LoadAs(g_stateFileName);

View File

@ -45,8 +45,7 @@ SCoreStartupParameter::SCoreStartupParameter()
bEnableFPRF(false),
bCPUThread(true), bDSPThread(false), bDSPHLE(true),
bSkipIdle(true), bNTSC(false), bForceNTSCJ(false),
bHLE_BS2(true), bUseFastMem(false),
bLockThreads(false),
bHLE_BS2(true), bLockThreads(false),
bEnableCheats(false),
bMergeBlocks(false),
bRunCompareServer(false), bRunCompareClient(false),

View File

@ -103,7 +103,6 @@ struct SCoreStartupParameter
bool bNTSC;
bool bForceNTSCJ;
bool bHLE_BS2;
bool bUseFastMem;
bool bLockThreads;
bool bEnableCheats;
bool bMergeBlocks;

View File

@ -191,12 +191,7 @@ void Jit64::Init()
else
jo.enableBlocklink = !Core::g_CoreStartupParameter.bMMU;
}
#ifdef _M_X64
jo.enableFastMem = Core::g_CoreStartupParameter.bUseFastMem;
#else
jo.enableFastMem = false;
#endif
jo.assumeFPLoadFromMem = Core::g_CoreStartupParameter.bUseFastMem;
jo.fpAccurateFcmp = true; // Fallback to Interpreter
jo.optimizeGatherPipe = true;
jo.fastInterrupts = false;

View File

@ -352,8 +352,8 @@ void Jit64::stX(UGeckoInstruction inst)
}
/* // TODO - figure out why Beyond Good and Evil hates this
#ifdef _M_X64
if (accessSize == 32 && !update && jo.enableFastMem)
#if defined(_WIN32) && defined(_M_X64)
if (accessSize == 32 && !update)
{
// Fast and daring - requires 64-bit
MOV(32, R(EAX), gpr.R(s));

View File

@ -62,14 +62,11 @@ void Jit64::lfs(UGeckoInstruction inst)
return;
}
s32 offset = (s32)(s16)inst.SIMM_16;
if (jo.assumeFPLoadFromMem)
{
UnsafeLoadToEAX(gpr.R(a), 32, offset, false);
}
else
{
SafeLoadToEAX(gpr.R(a), 32, offset, false);
}
#if defined(_WIN32) && defined(_M_X64)
UnsafeLoadToEAX(gpr.R(a), 32, offset, false);
#else
SafeLoadToEAX(gpr.R(a), 32, offset, false);
#endif
MEMCHECK_START

View File

@ -276,12 +276,6 @@ void JitIL::Init()
jo.enableBlocklink = !Core::g_CoreStartupParameter.bMMU;
}
#ifdef _M_X64
jo.enableFastMem = false;
#else
jo.enableFastMem = false;
#endif
jo.assumeFPLoadFromMem = Core::g_CoreStartupParameter.bUseFastMem;
jo.fpAccurateFcmp = false;
jo.optimizeGatherPipe = true;
jo.fastInterrupts = false;

View File

@ -41,10 +41,8 @@ protected:
struct JitOptions
{
bool optimizeStack;
bool assumeFPLoadFromMem;
bool enableBlocklink;
bool fpAccurateFcmp;
bool enableFastMem;
bool optimizeGatherPipe;
bool fastInterrupts;
bool accurateSinglePrecision;

View File

@ -118,16 +118,18 @@ void EmuCodeBlock::UnsafeLoadToEAX(const Gen::OpArg & opAddress, int accessSize,
void EmuCodeBlock::SafeLoadToEAX(const Gen::OpArg & opAddress, int accessSize, s32 offset, bool signExtend)
{
#if defined(_WIN32) && defined(_M_X64)
#ifdef ENABLE_MEM_CHECK
if (Core::g_CoreStartupParameter.bUseFastMem && (accessSize == 32) && !Core::g_CoreStartupParameter.bMMU && !Core::g_CoreStartupParameter.bEnableDebugging)
if (accessSize == 32 && !Core::g_CoreStartupParameter.bMMU && !Core::g_CoreStartupParameter.bEnableDebugging)
#else
if (Core::g_CoreStartupParameter.bUseFastMem && (accessSize == 32) && !Core::g_CoreStartupParameter.bMMU)
if (accessSize == 32 && !Core::g_CoreStartupParameter.bMMU)
#endif
{
// BackPatch only supports 32-bits accesses
UnsafeLoadToEAX(opAddress, accessSize, offset, signExtend);
}
else
#endif
{
u32 mem_mask = Memory::ADDR_MASK_HW_ACCESS;
if (Core::g_CoreStartupParameter.bMMU || Core::g_CoreStartupParameter.iTLBHack)