]> Cypherpunks repositories - gostls13.git/commit
runtime: add asm_riscv64.h
authorMark D Ryan <markdryan@rivosinc.com>
Fri, 23 Aug 2024 08:17:25 +0000 (08:17 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 11 Sep 2024 16:49:16 +0000 (16:49 +0000)
commit26aa8d6eb8faf05bbbb87a4f531e3e0fe4feed44
tree04d39a12ac89cd17c54b61298362ea1cfb8651d4
parent5d06d165ff36010b3828161401aa425f8e8506a6
runtime: add asm_riscv64.h

asm_riscv64.h will be used to define macros for each riscv64
extension that is not part of the rva20u64 base profile but that the
_riscv64.s assembly files are allowed to use because the user has
specified a more capable profile in the GORISCV64 variable. This will
allow us, for example, to test for the hasZba macro in those assembly
files instead of the GORISCV64_rva22u64 macro before using a Zba
instruction.  This is important as it means that in the future when
we add support for new profiles that support Zba, e.g., rva23u64,
we only need to update asm_riscv64.h to indicate rva23u64 supports
Zba.  We will not need to update every assembly language file that
already uses Zba instructions.

Updates #61476

Change-Id: I83abfeb20d08a87ac8ea88f4d8a93437f0631353
Reviewed-on: https://go-review.googlesource.com/c/go/+/608255
Auto-Submit: Tim King <taking@google.com>
Reviewed-by: Tim King <taking@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Meng Zhuo <mengzhuo1203@gmail.com>
Reviewed-by: Joel Sing <joel@sing.id.au>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/dist/build.go
src/runtime/asm_riscv64.h [new file with mode: 0644]