ARM: 7311/1: Add generic instruction opcode manipulation helpers
authorDave Martin <dave.martin@linaro.org>
Wed, 1 Feb 2012 09:42:22 +0000 (10:42 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 24 Mar 2012 09:38:51 +0000 (09:38 +0000)
commitf5f5195487affe53f90d99cba4aee73a20cae565
tree3c2f539c086a42f2056b3979be29de15022438da
parenta9d6d15131b0519363b0c94734ee80955c411093
ARM: 7311/1: Add generic instruction opcode manipulation helpers

This patch adds some endianness-agnostic helpers to convert machine
instructions between canonical integer form and in-memory
representation.

A canonical integer form for representing instructions is also
formalised here.

Signed-off-by: Dave Martin <dave.martin@linaro.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Jon Medhurst <tixy@yxit.co.uk>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/opcodes.h