Add RISC-V demo for the spike simulator. (#532)

* 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>
This commit is contained in:
Tim Newsome 2021-04-02 14:17:53 -07:00 committed by GitHub
parent aaece95529
commit 3fee3ac61f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 1097 additions and 1 deletions

View file

@ -265,7 +265,8 @@ FREERTOS_IGNORED_FILES = [
'requirements.txt',
'run-cbmc-proofs.py',
'.editorconfig',
'lcovrc'
'lcovrc',
'htif.c', 'htif.h'
]
FREERTOS_HEADER = [