Trace SetTransCallback LIBSD call.

This commit is contained in:
Jean-Philip Desjardins 2016-12-17 17:24:35 -05:00
parent 5c933d64bf
commit 94331bdfee

View File

@ -19,6 +19,7 @@ using namespace Iop;
#define FUNCTION_BLOCKTRANS "BlockTrans" #define FUNCTION_BLOCKTRANS "BlockTrans"
#define FUNCTION_VOICETRANSSTATUS "VoiceTransStatus" #define FUNCTION_VOICETRANSSTATUS "VoiceTransStatus"
#define FUNCTION_BLOCKTRANSSTATUS "BlockTransStatus" #define FUNCTION_BLOCKTRANSSTATUS "BlockTransStatus"
#define FUNCTION_SETTRANSCALLBACK "SetTransCallback"
#define FUNCTION_SETTRANSINTRHANDLER "SetTransIntrHandler" #define FUNCTION_SETTRANSINTRHANDLER "SetTransIntrHandler"
#define FUNCTION_SETSPU2INTRHANDLER "SetSpu2IntrHandler" #define FUNCTION_SETSPU2INTRHANDLER "SetSpu2IntrHandler"
@ -69,6 +70,9 @@ std::string CLibSd::GetFunctionName(unsigned int functionId) const
case 20: case 20:
return FUNCTION_BLOCKTRANSSTATUS; return FUNCTION_BLOCKTRANSSTATUS;
break; break;
case 21:
return FUNCTION_SETTRANSCALLBACK;
break;
case 26: case 26:
return FUNCTION_SETTRANSINTRHANDLER; return FUNCTION_SETTRANSINTRHANDLER;
break; break;
@ -161,6 +165,10 @@ void CLibSd::TraceCall(CMIPS& context, unsigned int functionId)
CLog::GetInstance().Print(LOG_NAME, FUNCTION_BLOCKTRANSSTATUS "(channel = 0x%0.4X, flag = 0x%0.4X);\r\n", CLog::GetInstance().Print(LOG_NAME, FUNCTION_BLOCKTRANSSTATUS "(channel = 0x%0.4X, flag = 0x%0.4X);\r\n",
context.m_State.nGPR[CMIPS::A0].nV0, context.m_State.nGPR[CMIPS::A1].nV0); context.m_State.nGPR[CMIPS::A0].nV0, context.m_State.nGPR[CMIPS::A1].nV0);
break; break;
case 21:
CLog::GetInstance().Print(LOG_NAME, FUNCTION_SETTRANSCALLBACK "(channel = 0x%0.4X, function = 0x%0.8X);\r\n",
context.m_State.nGPR[CMIPS::A0].nV0, context.m_State.nGPR[CMIPS::A1].nV0);
break;
case 26: case 26:
CLog::GetInstance().Print(LOG_NAME, FUNCTION_SETTRANSINTRHANDLER "(channel = 0x%0.4X, function = 0x%0.8X, arg = 0x%0.8X);\r\n", CLog::GetInstance().Print(LOG_NAME, FUNCTION_SETTRANSINTRHANDLER "(channel = 0x%0.4X, function = 0x%0.8X, arg = 0x%0.8X);\r\n",
context.m_State.nGPR[CMIPS::A0].nV0, context.m_State.nGPR[CMIPS::A1].nV0, context.m_State.nGPR[CMIPS::A0].nV0, context.m_State.nGPR[CMIPS::A1].nV0,