Debug cleanup.

This commit is contained in:
Ben Vanik 2014-08-05 12:51:01 -07:00
parent 31f886d8d9
commit b58b7c1783
2 changed files with 7 additions and 3 deletions

View File

@ -590,8 +590,12 @@ int disasm_fetch(
dwords[0], dwords[1], dwords[2]); dwords[0], dwords[1], dwords[2]);
output->append(" %sFETCH:\t", sync ? "(S)" : " "); output->append(" %sFETCH:\t", sync ? "(S)" : " ");
output->append("%s", fetch_instructions[fetch->opc].name); if (fetch_instructions[fetch->opc].fxn) {
fetch_instructions[fetch->opc].fxn(output, fetch); output->append("%s", fetch_instructions[fetch->opc].name);
fetch_instructions[fetch->opc].fxn(output, fetch);
} else {
output->append("???");
}
output->append("\n"); output->append("\n");
return 0; return 0;

View File

@ -705,7 +705,7 @@ SHIM_CALL RtlTryEnterCriticalSection_shim(
PPCContext* ppc_state, KernelState* state) { PPCContext* ppc_state, KernelState* state) {
uint32_t cs_ptr = SHIM_GET_ARG_32(0); uint32_t cs_ptr = SHIM_GET_ARG_32(0);
XELOGD("RtlTryEnterCriticalSection(%.8X)", cs_ptr); // XELOGD("RtlTryEnterCriticalSection(%.8X)", cs_ptr);
const uint8_t* thread_state_block = ppc_state->membase + ppc_state->r[13]; const uint8_t* thread_state_block = ppc_state->membase + ppc_state->r[13];
uint32_t thread_id = XThread::GetCurrentThreadId(thread_state_block); uint32_t thread_id = XThread::GetCurrentThreadId(thread_state_block);