* cr16-dis.c (build_mask): Adjust the mask for 32-bit bcond.
This commit is contained in:
parent
f52cb1b84b
commit
3ce6fddb77
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2008-05-21 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
|
||||||
|
|
||||||
|
* cr16-dis.c (build_mask): Adjust the mask for 32-bit bcond.
|
||||||
|
|
||||||
2008-05-14 Alan Modra <amodra@bigpond.net.au>
|
2008-05-14 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* Makefile.am: Run "make dep-am".
|
* Makefile.am: Run "make dep-am".
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Disassembler code for CR16.
|
/* Disassembler code for CR16.
|
||||||
Copyright 2007 Free Software Foundation, Inc.
|
Copyright 2007, 2008 Free Software Foundation, Inc.
|
||||||
Contributed by M R Swami Reddy (MR.Swami.Reddy@nsc.com).
|
Contributed by M R Swami Reddy (MR.Swami.Reddy@nsc.com).
|
||||||
|
|
||||||
This file is part of GAS, GDB and the GNU binutils.
|
This file is part of GAS, GDB and the GNU binutils.
|
||||||
|
@ -307,6 +307,11 @@ static unsigned long
|
||||||
build_mask (void)
|
build_mask (void)
|
||||||
{
|
{
|
||||||
unsigned long mask = SBM (instruction->match_bits);
|
unsigned long mask = SBM (instruction->match_bits);
|
||||||
|
|
||||||
|
/* Adjust mask for bcond with 32-bit size instruction. */
|
||||||
|
if ((IS_INSN_MNEMONIC("b") && instruction->size == 2))
|
||||||
|
mask = 0xff0f0000;
|
||||||
|
|
||||||
return mask;
|
return mask;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue