Skip to content

Commit

Permalink
Blackfin: fix decoding of opcodes 41-47 in decode_instruction()
Browse files Browse the repository at this point in the history
This condition allowed only decoding of opcode 0x0040

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  • Loading branch information
Roel Kluin authored and Mike Frysinger committed Mar 9, 2010
1 parent d86bfb1 commit 48a74f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/blackfin/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ static void decode_instruction(unsigned short *address)
verbose_printk("RTE");
else if (opcode == 0x0025)
verbose_printk("EMUEXCPT");
else if (opcode == 0x0040 && opcode <= 0x0047)
else if (opcode >= 0x0040 && opcode <= 0x0047)
verbose_printk("STI R%i", opcode & 7);
else if (opcode >= 0x0050 && opcode <= 0x0057)
verbose_printk("JUMP (P%i)", opcode & 7);
Expand Down

0 comments on commit 48a74f9

Please sign in to comment.