mips: turn off MicroMips by default

This commit is contained in:
Nguyen Anh Quynh 2013-12-15 00:16:32 +08:00
parent 46a5afd810
commit 748a70a50b
2 changed files with 4 additions and 0 deletions

View File

@ -175,6 +175,8 @@ static uint64_t Mips_getFeatureBits(int mode)
if (mode & CS_MODE_MICRO)
Bits |= Mips_FeatureMicroMips;
else
Bits &= ~Mips_FeatureMicroMips;
return Bits;
}

View File

@ -3790,6 +3790,7 @@ static uint8_t DecoderTableMips6432[] = {
static bool checkDecoderPredicate(unsigned Idx, uint64_t Bits)
{
//printf(">>-- Idx: %u\n", Idx);
switch (Idx) {
default: // llvm_unreachable("Invalid index!");
case 0:
@ -5317,6 +5318,7 @@ static DecodeStatus decodeInstruction(uint8_t DecodeTable[], MCInst *MI,
uint32_t CurFieldValue = 0;
DecodeStatus S = MCDisassembler_Success;
for (;;) {
//printf(">>> Loc: %lx\n", Ptr - DecodeTable);
switch (*Ptr) {
default:
return MCDisassembler_Fail;