Skip to content

Commit

Permalink
ARM: entry: abort-macro: simplify do_ldrd_abort
Browse files Browse the repository at this point in the history
We can test bits 27:25 and 20 of the instruction at the same time;
there's no need to separate out the check of bit 20.

Signed-off-by: Russell King <[email protected]>
  • Loading branch information
Russell King committed Jun 29, 2011
1 parent be020f8 commit 198a0a9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/arm/mm/abort-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ not_thumb:
* [20] == 0
*/
.macro do_ldrd_abort, tmp, insn
tst \insn, #0x0e000000 @ [27:25] == 0
tst \insn, #0x0e100000 @ [27:25,20] == 0
bne not_ldrd
and \tmp, \insn, #0x000000f0 @ [7:4] == 1101
cmp \tmp, #0x000000d0
bne not_ldrd
tst \insn, #1 << 20 @ [20] == 0
moveq pc, lr
not_ldrd:
.endm
Expand Down

0 comments on commit 198a0a9

Please sign in to comment.