Ignoring unimplemented disasm functions by default.

This commit is contained in:
Ben Vanik 2013-10-14 21:34:13 -07:00
parent 963667f65c
commit 80e3e6fa14
1 changed files with 6 additions and 2 deletions

View File

@ -536,10 +536,14 @@ int X64Emitter::PrepareBasicBlock(FunctionBlock* block) {
ppc::InstrDisasm d;
XEASSERTNOTNULL(i.type->disassemble);
int result_code = i.type->disassemble(i, d);
XEASSERTZERO(result_code);
if (result_code) {
XELOGE("UNABLE TO DISASSEMBLE INSTR %s", i.type->name);
continue;
}
/*XEASSERTZERO(result_code);
if (result_code) {
return result_code;
}
}*/
// Accumulate access bits.
access_bits.Extend(d.access_bits);