initial commit

This commit is contained in:
2025-08-02 06:09:31 +03:00
commit 00015ffc03
85 changed files with 62051 additions and 0 deletions

19
FIRMWARE/perf.S Normal file
View File

@@ -0,0 +1,19 @@
.section .text
.globl rdcycle
.globl rdinstret
rdcycle:
.L0:
rdcycleh a1
rdcycle a0
rdcycleh t0
bne a1,t0,.L0
ret
rdinstret:
.L1:
rdinstreth a1
rdinstret a0
rdinstreth t0
bne a1,t0,.L1
ret