This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] CR16 target specific fix


Hello,
Patch to fix the cr16 target opcodes disassembly of 2-word b<cc> instructions.
Could you please review and approve the same.

Thanks,
Swami


=================================================================== RCS file: /cvs/src/src/opcodes/cr16-dis.c,v retrieving revision 1.3 diff -c -r1.3 cr16-dis.c *** cr16-dis.c 5 Jul 2007 09:49:00 -0000 1.3 --- cr16-dis.c 20 May 2008 11:21:39 -0000 *************** *** 326,331 **** --- 326,335 ---- while (instruction >= cr16_instruction) { mask = build_mask (); + /* Adjust mask for bcond with 32-bit size instruction. */ + if ((IS_INSN_MNEMONIC("b") && instruction->size == 2)) + mask = 0xff0f0000; + if ((doubleWord & mask) == BIN (instruction->match, instruction->match_bits)) return 1; ====


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]