Fix asm.cpu and anal.cpu TMS320 names
This commit is contained in:
parent
2daf868068
commit
db8f8aaef1
2 changed files with 6 additions and 6 deletions
|
|
@ -32,11 +32,11 @@ int tms320_op(RAnal * anal, RAnalOp * op, ut64 addr, const ut8 * buf, int len)
|
|||
{
|
||||
anal_op_t aop = tms320_c55x_op;
|
||||
|
||||
if (anal->cpu && strcasecmp(anal->cpu, "C54X") == 0)
|
||||
if (anal->cpu && strcasecmp(anal->cpu, "c54x") == 0)
|
||||
aop = tms320_c54x_op;
|
||||
if (anal->cpu && strcasecmp(anal->cpu, "C55X") == 0)
|
||||
if (anal->cpu && strcasecmp(anal->cpu, "c55x") == 0)
|
||||
aop = tms320_c55x_op;
|
||||
if (anal->cpu && strcasecmp(anal->cpu, "C55PLUS") == 0)
|
||||
if (anal->cpu && strcasecmp(anal->cpu, "c55x+") == 0)
|
||||
aop = tms320_c55plus_op;
|
||||
|
||||
return aop(anal, op, addr, buf, len);
|
||||
|
|
|
|||
|
|
@ -18,11 +18,11 @@ static tms320_dasm_t engine = { };
|
|||
|
||||
static int tms320_disassemble(RAsm *a, RAsmOp *op, const ut8 *buf, int len)
|
||||
{
|
||||
if (a->cpu && strcasecmp(a->cpu, "C54X") == 0)
|
||||
if (a->cpu && strcasecmp(a->cpu, "c54x") == 0)
|
||||
tms320_f_set_cpu(&engine, TMS320_F_CPU_C54X);
|
||||
if (a->cpu && strcasecmp(a->cpu, "C55X") == 0)
|
||||
if (a->cpu && strcasecmp(a->cpu, "c55x") == 0)
|
||||
tms320_f_set_cpu(&engine, TMS320_F_CPU_C55X);
|
||||
if (a->cpu && strcasecmp(a->cpu, "C55PLUS") == 0)
|
||||
if (a->cpu && strcasecmp(a->cpu, "c55x+") == 0)
|
||||
tms320_f_set_cpu(&engine, TMS320_F_CPU_C55PLUS);
|
||||
|
||||
op->size = tms320_dasm(&engine, buf, len);
|
||||
|
|
|
|||
Loading…
Reference in a new issue