diff options
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 6 | ||||
-rw-r--r-- | opcodes/arc-dis.c | 16 |
2 files changed, 14 insertions, 8 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index db23da3..1442a71 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,9 @@ +2017-06-29 Anton Kolesov <Anton.Kolesov@synopsys.com> + + * arc-dis.c (parse_option): Use disassembler_options_cmp to compare + disassembler option strings. + (parse_cpu_option): Likewise. + 2017-06-28 Tamar Christina <tamar.christina@arm.com> * aarch64-asm.c (aarch64_ins_reglane): Added 4B dotprod. diff --git a/opcodes/arc-dis.c b/opcodes/arc-dis.c index edd0c07..b46424a 100644 --- a/opcodes/arc-dis.c +++ b/opcodes/arc-dis.c @@ -740,16 +740,16 @@ operand_iterator_next (struct arc_operand_iterator *iter, static void parse_option (const char *option) { - if (CONST_STRNEQ (option, "dsp")) + if (disassembler_options_cmp (option, "dsp") == 0) add_to_decodelist (DSP, NONE); - else if (CONST_STRNEQ (option, "spfp")) + else if (disassembler_options_cmp (option, "spfp") == 0) add_to_decodelist (FLOAT, SPX); - else if (CONST_STRNEQ (option, "dpfp")) + else if (disassembler_options_cmp (option, "dpfp") == 0) add_to_decodelist (FLOAT, DPX); - else if (CONST_STRNEQ (option, "quarkse_em")) + else if (disassembler_options_cmp (option, "quarkse_em") == 0) { add_to_decodelist (FLOAT, DPX); add_to_decodelist (FLOAT, SPX); @@ -757,16 +757,16 @@ parse_option (const char *option) add_to_decodelist (FLOAT, QUARKSE2); } - else if (CONST_STRNEQ (option, "fpuda")) + else if (disassembler_options_cmp (option, "fpuda") == 0) add_to_decodelist (FLOAT, DPA); - else if (CONST_STRNEQ (option, "fpus")) + else if (disassembler_options_cmp (option, "fpus") == 0) { add_to_decodelist (FLOAT, SP); add_to_decodelist (FLOAT, CVT); } - else if (CONST_STRNEQ (option, "fpud")) + else if (disassembler_options_cmp (option, "fpud") == 0) { add_to_decodelist (FLOAT, DP); add_to_decodelist (FLOAT, CVT); @@ -808,7 +808,7 @@ parse_cpu_option (const char *option) for (i = 0; cpu_types[i].name; ++i) { - if (!strcasecmp (cpu_types[i].name, option)) + if (!disassembler_options_cmp (cpu_types[i].name, option)) { return cpu_types[i].flags; } |