openrisc: add l.lwa/l.swa emulation
authorStefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Mon, 3 Nov 2014 12:28:14 +0000 (14:28 +0200)
committerStafford Horne <shorne@gmail.com>
Mon, 6 Feb 2017 12:50:43 +0000 (21:50 +0900)
commit63104c06a9eddf53f88f6d16196bb036c62967b2
tree3f4bfcaa467d0546512602d5ad961e5f62f4e529
parent8c9b7db0de3d64c9a6fcd12622636d4aa6a8c30c
openrisc: add l.lwa/l.swa emulation

This adds an emulation layer for implementations
that lack the l.lwa and l.swa instructions.
It handles these instructions both in kernel space and
user space.

Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
[shorne@gmail.com: Added delay slot pc adjust logic]
Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/kernel/entry.S
arch/openrisc/kernel/process.c
arch/openrisc/kernel/traps.c