Call CheckDTLB always, only keep result if logging is enabled. Thanks to hrydgard for reviewing my previous commit.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@217 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Maarten ter Huurne 2008-08-14 23:07:08 +00:00
parent 9b676c0a01
commit 9edf51c64f

View File

@ -79,8 +79,11 @@ void Console_Submit(const char *cmd)
if (addr!=0) if (addr!=0)
{ {
LOG(CONSOLE, "EA 0x%08x to 0x%08x", #ifdef LOGGING
addr, Memory::CheckDTLB(addr, Memory::FLAG_NO_EXCEPTION)); u32 EA =
#endif
Memory::CheckDTLB(addr, Memory::FLAG_NO_EXCEPTION);
LOG(CONSOLE, "EA 0x%08x to 0x%08x", addr, EA);
} }
else else
{ {