From 8f5be5f60c81a0902b7de614e76e10452752f0e1 Mon Sep 17 00:00:00 2001 From: Han Gao Date: Fri, 29 Dec 2023 19:25:45 +0800 Subject: [PATCH] workaround: it works. Signed-off-by: Han Gao --- board/thead/light-c910/spl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/thead/light-c910/spl.c b/board/thead/light-c910/spl.c index 6b560cc5..3e523613 100644 --- a/board/thead/light-c910/spl.c +++ b/board/thead/light-c910/spl.c @@ -310,6 +310,7 @@ void cpu_performance_enable(void) csr_write(CSR_MHCR, 0x17f); // clear bit7 to disable indirect brantch prediction csr_write(CSR_MXSTATUS, 0x638000); csr_write(CSR_MHINT, 0x6e30c | (1<<21) | (1<<22)); // set bit21 & bit 22 to close tlb & fence broadcast + printf("it works"); } static int bl1_img_have_head(unsigned long img_src_addr)