[PATCH] CR16 target specific fix
M R Swami Reddy
MR.Swami.Reddy@nsc.com
Tue May 20 11:29:00 GMT 2008
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;
====
More information about the Binutils
mailing list