libmach: update mips disassembler (from sources)

front
cinap_lenrek 2013-05-04 18:40:05 +02:00
parent cf76ca4f32
commit 3e8a38dfb3
2 changed files with 14 additions and 4 deletions

View File

@ -492,9 +492,13 @@ cop0(Instr *i)
case 16:
m = "rfe";
break;
case 32:
case 24:
m = "eret";
break;
case 32:
m = "wait";
break;
}
if (m) {

View File

@ -415,7 +415,9 @@ static void
sll(Opcode *o, Instr *i)
{
if (i->w0 == 0)
bprint(i, "NOOP");
bprint(i, "NOOP"); /* unofficial nop */
else if (i->w0 == 0xc0) /* 0xc0: SLL $3,R0 */
bprint(i, "EHB");
else if (i->rd == i->rt)
format(o->mnemonic, i, "$%a,R%d");
else
@ -962,9 +964,13 @@ cop0(Instr *i)
m = "RFE";
break;
case 32:
case 24:
m = "ERET";
break;
case 32:
m = "WAIT";
break;
}
if (m) {
format(m, i, 0);