From 1d1d90b5521c8ac1f1d8620c41d53b94187e3bb5 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 13 Jun 2023 07:27:12 -0700 Subject: [PATCH] riscv64: enable Zba. Cuttlefish still boots to homescreen, all instructions in the extension are actually seen to be in use, and the bionic tests still pass. Test: see above Change-Id: I6373fa6245115b9b6c845db03ee73b321c07e02a --- cc/config/riscv64_device.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cc/config/riscv64_device.go b/cc/config/riscv64_device.go index d66697c6b..77ee9774e 100644 --- a/cc/config/riscv64_device.go +++ b/cc/config/riscv64_device.go @@ -29,14 +29,14 @@ var ( // A temporary fix for SExtWRemoval miscompilation bug. "-mllvm", "-riscv-disable-sextw-removal=true", - "-march=rv64gc_zbb", + "-march=rv64gc_zba_zbb", } riscv64ArchVariantCflags = map[string][]string{} riscv64Ldflags = []string{ "-Wl,--hash-style=gnu", - "-march=rv64gc_zbb", + "-march=rv64gc_zba_zbb", } riscv64Lldflags = append(riscv64Ldflags,