Making the trace format easier to diff with the old stuff.

This commit is contained in:
Ben Vanik 2013-12-08 20:42:12 -08:00
parent 65a36fd69c
commit 2e5489e22f
2 changed files with 4 additions and 4 deletions

View File

@ -382,7 +382,7 @@ int TranslateInvalid(TranslationContext& ctx, Instr* i) {
uint32_t IntCode_COMMENT(IntCodeState& ics, const IntCode* i) { uint32_t IntCode_COMMENT(IntCodeState& ics, const IntCode* i) {
char* value = (char*)(i->src1_reg | ((uint64_t)i->src2_reg << 32)); char* value = (char*)(i->src1_reg | ((uint64_t)i->src2_reg << 32));
IPRINT("%s\n", value); IPRINT("XE[t] :%d: %s\n", ics.thread_state->GetThreadID(), value);
IFLUSH(); IFLUSH();
return IA_NEXT; return IA_NEXT;
} }

View File

@ -96,15 +96,15 @@ int PPCFunctionBuilder::Emit(FunctionInfo* symbol_info) {
AnnotateLabel(address, label); AnnotateLabel(address, label);
} }
if (!i.type) { if (!i.type) {
Comment("%.8X: %.8X ???", address, i.code); Comment("%.8X %.8X ???", address, i.code);
} else if (i.type->disassemble) { } else if (i.type->disassemble) {
ppc::InstrDisasm d; ppc::InstrDisasm d;
i.type->disassemble(i, d); i.type->disassemble(i, d);
std::string disasm; std::string disasm;
d.Dump(disasm); d.Dump(disasm);
Comment("%.8X: %.8X %s", address, i.code, disasm.c_str()); Comment("%.8X %.8X %s", address, i.code, disasm.c_str());
} else { } else {
Comment("%.8X: %.8X %s ???", address, i.code, i.type->name); Comment("%.8X %.8X %s ???", address, i.code, i.type->name);
} }
} }