Reverted SRAM cache patch.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@731 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
ba0b277597
commit
3d25b525dd
|
@ -125,16 +125,8 @@ void CEXIChannel::Update()
|
|||
}
|
||||
}
|
||||
|
||||
bool bDirty = true;
|
||||
u32 lastReg = -1, lastChan, lastVal;
|
||||
|
||||
void CEXIChannel::Read32(u32& _uReturnValue, const u32 _iRegister)
|
||||
{
|
||||
if(lastReg == _iRegister && m_ChannelId == lastChan && !bDirty) {
|
||||
_uReturnValue = lastVal;
|
||||
return;
|
||||
}
|
||||
|
||||
LOG(EXPANSIONINTERFACE, "ExtensionInterface(R): channel: %i reg: %i", m_ChannelId, _iRegister);
|
||||
|
||||
switch (_iRegister)
|
||||
|
@ -175,15 +167,10 @@ void CEXIChannel::Read32(u32& _uReturnValue, const u32 _iRegister)
|
|||
_uReturnValue = 0xDEADBEEF;
|
||||
}
|
||||
|
||||
lastReg = _iRegister;
|
||||
lastChan = m_ChannelId;
|
||||
lastVal = _uReturnValue;
|
||||
bDirty = false;
|
||||
}
|
||||
|
||||
void CEXIChannel::Write32(const u32 _iValue, const u32 _iRegister)
|
||||
{
|
||||
bDirty = true;
|
||||
LOG(EXPANSIONINTERFACE, "ExtensionInterface(W): 0x%08x channel: %i reg: %i", _iValue, m_ChannelId, _iRegister);
|
||||
|
||||
switch (_iRegister)
|
||||
|
|
Loading…
Reference in New Issue