arm64: Add support for hooks to handle undefined instructions
authorPunit Agrawal <punit.agrawal@arm.com>
Tue, 18 Nov 2014 11:41:22 +0000 (11:41 +0000)
committerWill Deacon <will.deacon@arm.com>
Thu, 20 Nov 2014 16:33:43 +0000 (16:33 +0000)
commit9b79f52d1a702dd5b160f9d2ee0199c3122809bb
tree497967506563c89d76c9853408b7e271c7d400f5
parentf97fc810798c261b2790c2a1660461a508a479e0
arm64: Add support for hooks to handle undefined instructions

Add support to register hooks for undefined instructions. The handlers
will be called when the undefined instruction and the processor state
(as contained in pstate) match criteria used at registration.

Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/insn.h
arch/arm64/include/asm/traps.h
arch/arm64/kernel/insn.c
arch/arm64/kernel/traps.c