gp64 asm.cpu forces asm.bits internally

This commit is contained in:
pancake 2017-05-29 01:44:32 +02:00
parent f26213074b
commit 08f131198f

View File

@ -23,6 +23,8 @@ static int disassemble(RAsm *a, RAsmOp *op, const ut8 *buf, int len) {
mode |= CS_MODE_MIPS32R6;
} else if (!strcmp (a->cpu, "v3")) {
mode |= CS_MODE_MIPS3;
} else if (!strcmp (a->cpu, "gp64")) {
a->bits = 64;
}
}
mode |= (a->bits == 64)? CS_MODE_64: CS_MODE_32;