Hiroshi Ito <ito@mlb.co.jp> disassemble Arm926ejs clz instruction
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 24 Mar 2009 07:44:47 +0000 (07:44 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 24 Mar 2009 07:44:47 +0000 (07:44 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1430 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/arm_disassembler.c

index 2e87bb3c37f71d827eb1c601d6a34bd116739ca4..d222c47c15d31c4e0f5f1728a438c86cda99135c 100644 (file)
@@ -818,7 +818,7 @@ int evaluate_misc_instr(u32 opcode, u32 address, arm_instruction_t *instruction)
        }
        
        /* CLZ */
-       if ((opcode & 0x0060000f0) == 0x00300010)
+       if ((opcode & 0x006000f0) == 0x00600010)
        {
                u8 Rm, Rd;
                instruction->type = ARM_CLZ;
@@ -829,8 +829,8 @@ int evaluate_misc_instr(u32 opcode, u32 address, arm_instruction_t *instruction)
                                 address, opcode, COND(opcode), Rd, Rm);
        }
        
-       /* BLX */
-       if ((opcode & 0x0060000f0) == 0x00200030)
+       /* BLX(2) */
+       if ((opcode & 0x006000f0) == 0x00200030)
        {
                u8 Rm;
                instruction->type = ARM_BLX;