Skip to content

Commit

Permalink
upload c908x zsb
Browse files Browse the repository at this point in the history
  • Loading branch information
Jian Shu authored and cp0613 committed Dec 23, 2024
1 parent a03ab91 commit fc15f46
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions feature.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,21 @@ void setup_features(void)
csr_write(CSR_MHCR, 0x10011BF);
#if __riscv_xlen == 64
csr_write(CSR_MENVCFG, 0x4000000000000000);
#endif
} else {
while(1);
}
break;
case 0xd:
if (cpu_ver >= 0x0) {
csr_write(CSR_MSMPR, 0x1);
csr_write(CSR_MCCR2, 0xA0420002);
csr_write(CSR_MXSTATUS, 0x438100);
csr_write(CSR_MHINT, 0x21AA10C);
csr_write(CSR_MHCR, 0x10011FF);
csr_write(CSR_MHINT4, 0x10000080);
#if __riscv_xlen == 64
csr_write(CSR_MENVCFG, 0x4000000000000000);
#endif
} else {
while(1);
Expand Down

0 comments on commit fc15f46

Please sign in to comment.