arm64: emulate the swp/swpb instruction
authorAlex Van Brunt <avanbrunt@nvidia.com>
Thu, 30 Jan 2014 23:10:39 +0000 (15:10 -0800)
committerGreg Hackmann <ghackmann@google.com>
Sat, 13 Sep 2014 00:29:47 +0000 (17:29 -0700)
commitecff782253197463f33d719a4fed4bd39c8de469
tree35a8395b3748c9f7730c0720c9e9cd4e5396f0b0
parent75079f8dfc7d4b32844a24e30bafa317e0af97ee
arm64: emulate the swp/swpb instruction

The swp and spwb instructions were deprecated in ARMv6. ARMv8
obsoleted the instruction. Despite this, many applications rely on
these instruuctions.

This patch starts with the version present in the arm architecture.
However, it uses the ldx*()/stx*() functions to implement the handler
in C code. It also removes a lot of code that is not needed.

Change-Id: I6882fbe5f71bfa8f9e9a75d067b2111188c6f2fa
Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com>
Reviewed-on: http://git-master/r/366097
Reviewed-by: Richard Wiley <rwiley@nvidia.com>
Tested-by: Oskari Jaaskelainen <oskarij@nvidia.com>
Conflicts:
arch/arm64/Kconfig
arch/arm64/kernel/Makefile
arch/arm64/Kconfig
arch/arm64/kernel/Makefile
arch/arm64/kernel/swp_emulate.c [new file with mode: 0644]