From db8f8aaef115a8a6dcc917188eec00761ace1e1e Mon Sep 17 00:00:00 2001 From: Anton Kochkov Date: Thu, 6 Feb 2014 02:12:34 +0400 Subject: [PATCH] Fix asm.cpu and anal.cpu TMS320 names --- libr/anal/p/anal_tms320.c | 6 +++--- libr/asm/p/asm_tms320.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libr/anal/p/anal_tms320.c b/libr/anal/p/anal_tms320.c index 0c3377d7f7..4e39a405bd 100644 --- a/libr/anal/p/anal_tms320.c +++ b/libr/anal/p/anal_tms320.c @@ -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); diff --git a/libr/asm/p/asm_tms320.c b/libr/asm/p/asm_tms320.c index a156322e29..0eb5c110db 100644 --- a/libr/asm/p/asm_tms320.c +++ b/libr/asm/p/asm_tms320.c @@ -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);