Blackfin: fix decoding of opcodes 41-47 in decode_instruction()
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 8 Jan 2010 19:06:22 +0000 (20:06 +0100)
committerMike Frysinger <vapier@gentoo.org>
Tue, 9 Mar 2010 05:30:48 +0000 (00:30 -0500)
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>
arch/blackfin/kernel/traps.c

index d3cbcd6bd985d6a5c517bba229e77474742d7393..870d74b1b407197f02a8243634253b378ae004bd 100644 (file)
@@ -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);