llvmpipe: Stop disassembling when an unsupported opcode is found.

Otherwise the terminal gets full of garbage.
This commit is contained in:
José Fonseca 2009-12-05 05:43:10 +00:00
parent c0a13bbae1
commit dd51b4f909

View file

@ -115,7 +115,8 @@ lp_disassemble(const void* func)
}
}
if (ud_insn_off(&ud_obj) >= max_jmp_pc && ud_obj.mnemonic == UD_Iret)
if ((ud_insn_off(&ud_obj) >= max_jmp_pc && ud_obj.mnemonic == UD_Iret) ||
ud_obj.mnemonic == UD_Iinvalid)
break;
}
debug_printf("\n");