RISC-V: Add T-Head SYNC vendor extension
authorChristoph Müllner <christoph.muellner@vrull.eu>
Tue, 28 Jun 2022 15:43:57 +0000 (17:43 +0200)
committerPhilipp Tomsich <philipp.tomsich@vrull.eu>
Thu, 22 Sep 2022 16:06:09 +0000 (18:06 +0200)
commit547c18d9bb95571261dbd17f4767194037eb82bd
treeba5189db19567b97acc4c916c7d864f7c1c6356d
parenta9ba8bc2d396fb8ae2b892f3bc6be8cdfe4b555c
RISC-V: Add T-Head SYNC vendor extension

T-Head has a range of vendor-specific instructions.
Therefore it makes sense to group them into smaller chunks
in form of vendor extensions.

This patch adds the XTheadSync extension, a collection of
T-Head-specific multi-processor synchronization instructions.
The 'th' prefix and the "XTheadSync" extension are documented in a PR
for the RISC-V toolchain conventions ([1]).

[1] https://github.com/riscv-non-isa/riscv-toolchain-conventions/pull/19

Co-developed-by: Lifang Xia <lifang_xia@linux.alibaba.com>
Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
bfd/elfxx-riscv.c
gas/doc/c-riscv.texi
gas/testsuite/gas/riscv/x-thead-sync-fail.d [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-sync-fail.l [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-sync-fail.s [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-sync.d [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-sync.s [new file with mode: 0644]
include/opcode/riscv-opc.h
include/opcode/riscv.h
opcodes/riscv-opc.c