target/m68k: correctly disassemble move16
commitd9345f1e1b1936b9ed7026b83091cf701f7ce07e
authorLaurent Vivier <laurent@vivier.eu>
Mon, 25 Jun 2018 20:35:59 +0000 (25 22:35 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Mon, 2 Jul 2018 10:02:00 +0000 (2 12:02 +0200)
tree036f38274edcecdd5a7f03efe65fcd23e92b6099
parent281bd281222776229d5dbf84d1a5c6d8d9d2a34b
target/m68k: correctly disassemble move16

"move16 %a0@+,%a1@" and "fmovel (cpid=3) %a0@-,%fpcr"
share the same opcode.

To fix that, backport the fix from binutils:

  2005-11-10  Andreas Schwab  <schwab@suse.de>

     * m68k-dis.c (print_insn_m68k): Only match FPU insns with
     coprocessor ID 1.

Reported-by: Thomas Huth <huth@tuxfamily.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Tested-by: Thomas Huth <huth@tuxfamily.org>
Message-Id: <20180625203559.21370-2-laurent@vivier.eu>
disas/m68k.c