opcodes: SH fix bank register disassemble.
* sh-dis.c (print_insn_sh): Enforce bit7 of LDC Rm,Rn_BANK and STC Rm_BANK,Rn is always 1.
This commit is contained in:
parent
d9fa9b7c33
commit
3b8e069a36
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2022-09-22 Yoshinori Sato <ysato@users.sourceforge.jp>
|
||||
|
||||
* sh-dis.c (print_insn_sh): Enforce bit7 of LDC Rm,Rn_BANK and STC
|
||||
Rm_BANK,Rn is always 1.
|
||||
|
||||
2022-07-21 Peter Bergner <bergner@linux.ibm.com>
|
||||
|
||||
* ppc-opc.c (XACC_MASK, XX3ACC_MASK): New defines.
|
||||
|
|
|
@ -645,6 +645,8 @@ print_insn_sh (bfd_vma memaddr, struct disassemble_info *info)
|
|||
rm = (nibs[n] & 0x3);
|
||||
break;
|
||||
case REG_B:
|
||||
if (!(nibs[n] & 0x08)) /* Must always be 1. */
|
||||
goto fail;
|
||||
rb = nibs[n] & 0x07;
|
||||
break;
|
||||
case SDT_REG_N:
|
||||
|
|
Loading…
Add table
Reference in a new issue