ARM-software / LLVM-embedded-toolchain-for-Arm

A project dedicated to building LLVM toolchain for Arm and AArch64 embedded targets.
Apache License 2.0
405 stars 94 forks source link

Add Armv8.1-M PACBTI library variants #467

Closed pratlucas closed 1 month ago

pratlucas commented 1 month ago

This adds the folowing library variants with support for the PACBTI-M architecture extension:

Unfortunately, qemu currently doesn't provide support for PACBTI-M, which means these variants can't be fully tested at runtime level. Since the PACBTI-M instructions are NOP-copatible, we can use an arvm8.1m.main CPU as a workaround to ensure that the library code still works correctly regardless of branch protecion.