target-m68k: manage scaled index
commitd8633620a112296fcf6a6ae9a1cbba614c0ca502
authorLaurent Vivier <laurent@vivier.eu>
Wed, 24 Jun 2015 00:35:06 +0000 (24 02:35 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 25 Oct 2016 18:54:47 +0000 (25 20:54 +0200)
tree65573fb2fef41e877214bdcc9a969e71b1c5bcc4
parentf076803bbf6ad1618f493f543faff97f3dd0c970
target-m68k: manage scaled index

Scaled index is not supported by 68000, 68008, and 68010.

    EA = (bd + PC) + Xn.SIZE*SCALE + od

Ignore it:

M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL
2.4 BRIEF EXTENSION WORD FORMAT COMPATIBILITY

"If the MC68000 were to execute an instruction that
 encoded a scaling factor, the scaling factor would be
 ignored and would not access the desired memory address.
 The earlier microprocessors do not recognize the brief
 extension word formats implemented by newer processors.
 Although they can detect illegal instructions, they do not
 decode invalid encodings of the brief extension word formats
 as exceptions."

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <rth@twiddle.net>
target-m68k/translate.c