arm64: Move patching utilities out of instruction encoding/decoding
authorJulien Thierry <jthierry@redhat.com>
Wed, 3 Mar 2021 17:05:29 +0000 (18:05 +0100)
committerWill Deacon <will@kernel.org>
Thu, 27 May 2021 16:37:25 +0000 (17:37 +0100)
commit5f154c4e20d7edd38bddec78f3e0a7628057ef76
tree2e5fd4d618b2acd02946c265e07a6ee5fb3e4f4d
parentc4681547bcce777daf576925a966ffa824edd09d
arm64: Move patching utilities out of instruction encoding/decoding

Files insn.[c|h] containt some functions used for instruction patching.
In order to reuse the instruction encoder/decoder, move the patching
utilities to their own file.

Signed-off-by: Julien Thierry <jthierry@redhat.com>
Link: https://lore.kernel.org/r/20210303170536.1838032-2-jthierry@redhat.com
[will: Include patching.h in insn.h to fix header mess; add __ASSEMBLY__ guards]
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/insn.h
arch/arm64/include/asm/patching.h [new file with mode: 0644]
arch/arm64/kernel/Makefile
arch/arm64/kernel/insn.c
arch/arm64/kernel/patching.c [new file with mode: 0644]