Utility to dump instruction translation counts.

This commit is contained in:
Ben Vanik
2015-01-11 00:44:17 -08:00
parent b6b27e621a
commit 5827f5f5d8
5 changed files with 37 additions and 23 deletions

View File

@@ -127,7 +127,7 @@ static InstrType** instr_table_prep_63(InstrType* unprep, size_t unprep_count,
#define INSTRUCTION(name, opcode, format, type, disasm_fn, descr) \
{ \
opcode, 0, kXEPPCInstrFormat##format, kXEPPCInstrType##type, 0, \
Disasm_##disasm_fn, #name, \
Disasm_##disasm_fn, #name, 0, \
}
#define FLAG(t) kXEPPCInstrFlag##t
@@ -844,7 +844,7 @@ static InstrType** instr_table = instr_table_prep(
#define SCAN_INSTRUCTION(name, opcode, format, type, disasm_fn, descr) \
{ \
opcode, kXEPPCInstrMask##format, kXEPPCInstrFormat##format, \
kXEPPCInstrType##type, 0, Disasm_##disasm_fn, #name, \
kXEPPCInstrType##type, 0, Disasm_##disasm_fn, #name, 0, \
}
#define OP(x) ((((uint32_t)(x)) & 0x3f) << 26)
#define VX128(op, xop) (OP(op) | (((uint32_t)(xop)) & 0x3d0))