Skip to content

Commit

Permalink
workaround: it works.
Browse files Browse the repository at this point in the history
Signed-off-by: Han Gao <[email protected]>
  • Loading branch information
RevySR committed Dec 29, 2023
1 parent 6b5baf4 commit 8f5be5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions board/thead/light-c910/spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8f5be5f

Please sign in to comment.