Debug cleanup.
This commit is contained in:
parent
31f886d8d9
commit
b58b7c1783
|
@ -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)" : " ");
|
||||||
|
if (fetch_instructions[fetch->opc].fxn) {
|
||||||
output->append("%s", fetch_instructions[fetch->opc].name);
|
output->append("%s", fetch_instructions[fetch->opc].name);
|
||||||
fetch_instructions[fetch->opc].fxn(output, fetch);
|
fetch_instructions[fetch->opc].fxn(output, fetch);
|
||||||
|
} else {
|
||||||
|
output->append("???");
|
||||||
|
}
|
||||||
output->append("\n");
|
output->append("\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue