MN10300: Fix misaligned index-register addressing handling
Fix misalignment handling for an address calculated from the sum of two registers. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Родитель
6d615c78fb
Коммит
852c15b736
|
@ -570,11 +570,11 @@ static int misalignment_addr(unsigned long *registers, unsigned params,
|
||||||
address += *postinc;
|
address += *postinc;
|
||||||
break;
|
break;
|
||||||
case DM1:
|
case DM1:
|
||||||
postinc = ®isters[Dreg_index[opcode >> 2 & 0x0c]];
|
postinc = ®isters[Dreg_index[opcode >> 2 & 0x03]];
|
||||||
address += *postinc;
|
address += *postinc;
|
||||||
break;
|
break;
|
||||||
case DM2:
|
case DM2:
|
||||||
postinc = ®isters[Dreg_index[opcode >> 4 & 0x30]];
|
postinc = ®isters[Dreg_index[opcode >> 4 & 0x03]];
|
||||||
address += *postinc;
|
address += *postinc;
|
||||||
break;
|
break;
|
||||||
case AM0:
|
case AM0:
|
||||||
|
@ -582,11 +582,11 @@ static int misalignment_addr(unsigned long *registers, unsigned params,
|
||||||
address += *postinc;
|
address += *postinc;
|
||||||
break;
|
break;
|
||||||
case AM1:
|
case AM1:
|
||||||
postinc = ®isters[Areg_index[opcode >> 2 & 0x0c]];
|
postinc = ®isters[Areg_index[opcode >> 2 & 0x03]];
|
||||||
address += *postinc;
|
address += *postinc;
|
||||||
break;
|
break;
|
||||||
case AM2:
|
case AM2:
|
||||||
postinc = ®isters[Areg_index[opcode >> 4 & 0x30]];
|
postinc = ®isters[Areg_index[opcode >> 4 & 0x03]];
|
||||||
address += *postinc;
|
address += *postinc;
|
||||||
break;
|
break;
|
||||||
case RM0:
|
case RM0:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче