aarch64: define BTI_C and BTI_J macros as NOP unless HAVE_AARCH64_BTI
commitbd4317fbd60a0fa416761aaafb4e32ca1ad22d38
authorNaohiro Tamura <naohirot@jp.fujitsu.com>
Wed, 12 May 2021 09:27:20 +0000 (12 09:27 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 26 May 2021 11:01:06 +0000 (26 12:01 +0100)
treeab8272bb217557cda99574502364bcb5e6e520fc
parent77d175e14e5f4cf24e9579c03eef5d006a286316
aarch64: define BTI_C and BTI_J macros as NOP unless HAVE_AARCH64_BTI

This patch defines BTI_C and BTI_J macros conditionally for
performance.
If HAVE_AARCH64_BTI is true, BTI_C and BTI_J are defined as HINT
instruction for ARMv8.5 BTI (Branch Target Identification).
If HAVE_AARCH64_BTI is false, both BTI_C and BTI_J are defined as
NOP.
sysdeps/aarch64/sysdep.h