Skip to content

Commit

Permalink
Add tricore tc1.8 instructions:
Browse files Browse the repository at this point in the history
add.df
sub.df
madd.df
msub.df
mul.df
div.df
cmp.df
max.df
min.df
min.f
max.f
dftoi
dftoiz
dftoin
ftoin
dftou
dftouz
dftol
dftoul
dftoulz
abs.f
abs.df
dftolz
neg.df
neg.f
qseed.df
itodf
utodf
ltodf
ultodf
dftof
ftodf
  • Loading branch information
Changqing-JING committed Jan 6, 2025
1 parent 0a29bf8 commit d4d2d73
Show file tree
Hide file tree
Showing 30 changed files with 9,535 additions and 8,266 deletions.
11 changes: 11 additions & 0 deletions arch/TriCore/TriCoreDisassembler.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ bool TriCore_getFeatureBits(unsigned int mode, unsigned int feature)
case CS_MODE_TRICORE_162: {
return feature == TriCore_HasV162Ops;
}
case CS_MODE_TRICORE_180: {
return feature == TriCore_HasV180Ops;
return true;
}
default:
return false;
}
Expand Down Expand Up @@ -1723,6 +1727,13 @@ static bool getInstruction(csh ud, const uint8_t *code, size_t code_len,
}
break;
}
case CS_MODE_TRICORE_180: {
if (decodeInstruction2_or_4(code, code_len, MI, size, address,
NULL, DecoderTablev16232)) {
return true;
}
break;
}
default:
break;
}
Expand Down
Loading

0 comments on commit d4d2d73

Please sign in to comment.