diff options
author | Punit Agrawal <punit.agrawal@arm.com> | 2014-11-18 11:41:22 +0000 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2014-11-20 16:33:43 +0000 |
commit | 9b79f52d1a702dd5b160f9d2ee0199c3122809bb (patch) | |
tree | 497967506563c89d76c9853408b7e271c7d400f5 /arch/arm64/kernel/insn.c | |
parent | f97fc810798c261b2790c2a1660461a508a479e0 (diff) | |
download | lwn-9b79f52d1a702dd5b160f9d2ee0199c3122809bb.tar.gz lwn-9b79f52d1a702dd5b160f9d2ee0199c3122809bb.zip |
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>
Diffstat (limited to 'arch/arm64/kernel/insn.c')
-rw-r--r-- | arch/arm64/kernel/insn.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/kernel/insn.c b/arch/arm64/kernel/insn.c index e007714ded04..ab00eb58d385 100644 --- a/arch/arm64/kernel/insn.c +++ b/arch/arm64/kernel/insn.c @@ -959,3 +959,8 @@ u32 aarch64_insn_gen_logical_shifted_reg(enum aarch64_insn_register dst, return aarch64_insn_encode_immediate(AARCH64_INSN_IMM_6, insn, shift); } + +bool aarch32_insn_is_wide(u32 insn) +{ + return insn >= 0xe800; +} |