arm64: insn: Add barrier encodings
authorJulien Thierry <jthierry@redhat.com>
Wed, 3 Mar 2021 17:05:34 +0000 (18:05 +0100)
committerWill Deacon <will@kernel.org>
Thu, 27 May 2021 16:54:20 +0000 (17:54 +0100)
commitd4b217330d7e0320084ff04c8491964f1f68980a
treeba21b923cb00686068891156761e8c85d9a67abd
parent427bfc59e2281eaede70f050062dc31257c46652
arm64: insn: Add barrier encodings

Create necessary functions to encode/decode aarch64 barrier
instructions.

DSB needs special case handling as it has multiple encodings.

Signed-off-by: Julien Thierry <jthierry@redhat.com>
Link: https://lore.kernel.org/r/20210303170536.1838032-7-jthierry@redhat.com
[will: Don't reject DSB #4]
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/insn.h