Some minor code changes.

git-svn-id: http://svn.purei.org/purei/trunk@500 b36208d7-6611-0410-8bec-b1987f11c4a2
This commit is contained in:
jpd002 2009-04-16 00:56:30 +00:00
parent 00a938a0ab
commit ec00a5fc5f
2 changed files with 11 additions and 0 deletions

View File

@ -108,6 +108,7 @@ uint32 CDmac::ReadRegister(uint32 address)
return channel->ReadRegister(address);
}
}
break;
}
return 0;
}
@ -156,6 +157,9 @@ void CDmac::LogRead(uint32 address)
unsigned int registerId = address & 0xF;
switch(registerId)
{
case CChannel::REG_MADR:
CLog::GetInstance().Print(LOG_NAME, "ch%0.2d: = MADR.\r\n", channelId);
break;
case CChannel::REG_CHCR:
CLog::GetInstance().Print(LOG_NAME, "ch%0.2d: = CHCR.\r\n", channelId);
break;

View File

@ -8,6 +8,7 @@ using namespace std;
#define LOG_NAME "iop_loadcore"
#define FUNCTION_FLUSHDCACHE "FlushDcache"
#define FUNCTION_REGISTERLIBRARYENTRIES "RegisterLibraryEntries"
CLoadcore::CLoadcore(CIopBios& bios, uint8* ram, CSifMan& sifMan) :
@ -31,6 +32,9 @@ string CLoadcore::GetFunctionName(unsigned int functionId) const
{
switch(functionId)
{
case 5:
return FUNCTION_FLUSHDCACHE;
break;
case 6:
return FUNCTION_REGISTERLIBRARYENTRIES;
break;
@ -44,6 +48,9 @@ void CLoadcore::Invoke(CMIPS& context, unsigned int functionId)
{
switch(functionId)
{
case 5:
//FlushDCache
break;
case 6:
context.m_State.nGPR[CMIPS::V0].nD0 = static_cast<int32>(RegisterLibraryEntries(
reinterpret_cast<uint32*>(&m_ram[context.m_State.nGPR[CMIPS::A0].nV0])