Обновление mik32.cfg

1) Сокращение вывода бесполезных предупреждений;
2) Добавление нестандартного CSR-регистра MCOUNTEN, используемого для управления активностью счётчиков производительности (тактов и команд).
This commit is contained in:
cryptozoy 2025-03-16 14:21:55 +03:00 committed by GitHub
parent 9f13695d6b
commit 7a02683c4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,15 +8,18 @@ proc init_targets {} {
set _CHIPNAME riscv set _CHIPNAME riscv
set _CPUTAPID 0xdeb11001 set _CPUTAPID 0xdeb11001
set _SYSTAPID 0xfffffffe
jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_CPUTAPID jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_CPUTAPID
jtag newtap $_CHIPNAME sys -irlen 4 -ircapture 0x05 -irmask 0x0F -enable jtag newtap $_CHIPNAME sys -irlen 4 -ircapture 0x05 -irmask 0x0F -enable -expected-id $_SYSTAPID -ignore-bypass
set _TARGETNAME $_CHIPNAME.cpu set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME riscv -endian little -chain-position $_TARGETNAME -coreid 0 target create $_TARGETNAME riscv -endian little -chain-position $_TARGETNAME -coreid 0
riscv expose_csrs 2016=mcounten
riscv.cpu configure -event reset-init my_init_proc riscv.cpu configure -event reset-init my_init_proc
} }