]> git.baikalelectronics.ru Git - arm-tf.git/commit
refactor(cpufeat): use alternative encoding for "SB" barrier
authorAndre Przywara <andre.przywara@arm.com>
Fri, 25 Nov 2022 14:10:13 +0000 (14:10 +0000)
committerAndre Przywara <andre.przywara@arm.com>
Wed, 22 Mar 2023 13:33:22 +0000 (13:33 +0000)
commit387b8801f956204b2970a5b65de0f9ad6821a4b7
treed81bbf9189156000ec099b6b1d267a64c41d3bfd
parent603a0c6faef4194bd58fd2104971e4100648ed1c
refactor(cpufeat): use alternative encoding for "SB" barrier

The "sb" barrier instruction is a rather new addition to the AArch64
instruction set, so it is not recognised by all toolchains. On top of
that, the GNU assembler denies this instruction, unless a compatible
processor is selected:
asm_macros.S:223: Error: selected processor does not support `sb'

Provide an alternative encoding of the "sb" instruction, by using a
system register write, as this is the group where the barrier
instructions borrow their encoding space from.
This results in the exact same opcode to be generated, and any
disassembler will decode this instruction as "sb".

Change-Id: I5f44c8321e0cc04c784e02bd838e964602a96a8e
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
include/arch/aarch64/arch.h
include/arch/aarch64/asm_macros.S