arm64: debug: make aarch32 bkpt checking endian clean
authorMatthew Leach <Matthew.Leach@arm.com>
Thu, 28 Nov 2013 12:07:23 +0000 (12:07 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 28 Nov 2013 18:01:29 +0000 (18:01 +0000)
commit2dacab73dc9f86ad12eb41bc3355d7f492696bca
treeff6bd65df00a7f7af816dfc92f70b82f7a07dec0
parent6a2e5e521c333a0b56cb60dc5587e3f90859c5e7
arm64: debug: make aarch32 bkpt checking endian clean

The current breakpoint instruction checking code for A32 is not endian
clean. Fix this with appropriate byte-swapping when retrieving
instructions.

Signed-off-by: Matthew Leach <matthew.leach@arm.com>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/debug-monitors.c