x86: fix sysexit in #806

This commit is contained in:
Nguyen Anh Quynh 2016-11-08 10:28:40 +08:00
parent c9a2148b05
commit bda181a6b5
1 changed files with 9 additions and 0 deletions

View File

@ -893,6 +893,15 @@ void X86_ATT_printInst(MCInst *MI, SStream *OS, void *info)
else
printInstruction(MI, OS, info);
// HACK TODO: fix this in machine description
switch(MI->flat_insn->id) {
default: break;
case X86_INS_SYSEXIT:
SStream_Init(OS);
SStream_concat0(OS, "sysexit");
break;
}
if (MI->has_imm) {
// if op_count > 1, then this operand's size is taken from the destination op
if (MI->flat_insn->detail->x86.op_count > 1) {