From bf7eba7add1458ee8c5de58c4c4f16048ec11a08 Mon Sep 17 00:00:00 2001 From: Lennart Eichhorn Date: Fri, 1 Dec 2023 16:18:14 +0100 Subject: [PATCH] arch/riscv/payload: Remove old RISC-V CSR names LLVM/clang 17 removed support for CSR names that are no longer included in the RISC-V ISA Manual Privileged Specification since version 1.12. Related LLVM commit: https://reviews.llvm.org/D149278 Change-Id: I7c8f2a06a109333f95230bf0a3056c8d5c8a9132 Signed-off-by: Lennart Eichhorn Reviewed-on: https://review.coreboot.org/c/coreboot/+/79364 Tested-by: build bot (Jenkins) Reviewed-by: Maximilian Brune Reviewed-by: Felix Singer --- src/arch/riscv/payload.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/arch/riscv/payload.c b/src/arch/riscv/payload.c index 3097ad1bf8..ee2ee8e45c 100644 --- a/src/arch/riscv/payload.c +++ b/src/arch/riscv/payload.c @@ -39,13 +39,6 @@ void run_payload(struct prog *prog, void *fdt, int payload_mode) status = INSERT_FIELD(status, MSTATUS_MPIE, 0); switch (payload_mode) { - case RISCV_PAYLOAD_MODE_U: - status = INSERT_FIELD(status, MSTATUS_MPP, PRV_U); - /* Trap vector base address point to the payload */ - write_csr(utvec, doit); - /* disable U-Mode interrupt */ - write_csr(uie, 0); - break; case RISCV_PAYLOAD_MODE_S: status = INSERT_FIELD(status, MSTATUS_MPP, PRV_S); /* Trap vector base address point to the payload */