mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-08 12:45:22 -05:00
* Add RISC-V demo for the spike simulator. * Figuring out what the header checker wants. * Fix more headers. * Ignore htif.c and htif.h for header checks. These files are already stamped with BSD-3-Clause, which I'm not allowed to remove. There are numerous other files with the same license in FreeRTOS, so I assume this is fine. * Use proxy syscalls for RV32. Looks like spike won't be changed to make htif character writes work propery for RV32. This is now an even closer copy of the version in opensbi, which is arguably strictly better. * Support RV64 builds to use with spike. OpenOCD does not currently support debugging 64-bit FreeRTOS, but now that I have a target to test hopefully that will be remedied shortly. * Tweak rv32 instructions. This way you can have separate cross-tools installations that can coexist side by side. Co-authored-by: Joseph Julicher <jjulicher@mac.com>
33 lines
789 B
INI
33 lines
789 B
INI
adapter_khz 10000
|
|
|
|
interface remote_bitbang
|
|
remote_bitbang_host localhost
|
|
remote_bitbang_port 9824
|
|
|
|
set _CHIPNAME riscv
|
|
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x10e31913
|
|
|
|
set _TARGETNAME $_CHIPNAME.cpu
|
|
target create $_TARGETNAME riscv -chain-position $_TARGETNAME -rtos auto
|
|
#target create $_TARGETNAME riscv -chain-position $_TARGETNAME
|
|
$_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 8096 -work-area-backup 1
|
|
|
|
|
|
gdb_report_data_abort enable
|
|
gdb_report_register_access_error enable
|
|
|
|
# Expose an unimplemented CSR so we can test non-existent register access
|
|
# behavior.
|
|
riscv expose_csrs 2288
|
|
riscv expose_custom 1,12345-12348
|
|
|
|
init
|
|
|
|
set challenge [riscv authdata_read]
|
|
riscv authdata_write [expr $challenge + 1]
|
|
|
|
halt
|
|
|
|
reg mstatus 0
|
|
|
|
arm semihosting enable
|