agra-uni-bremen / riscv-vp

RISC-V Virtual Prototype
MIT License
139 stars 49 forks source link

Question: ITIM (hifive1-revb / red-v) #12

Open U2654 opened 3 years ago

U2654 commented 3 years ago

I have been working on a redv-vp, similar to hifive1-revb, with a fe310-g002. It has a ITIM and, thus, a third memory block which ist not intended by your SyscallHandler. Any suggestions? Or just leave it...

Cirromulus commented 3 years ago

My suggestion would be adding a fe310-g002 target with an ITIM.

U2654 commented 3 years ago

Ok. Actually, I have a running vp in src/platform/redv. Where would you recommend to place the SyscallHandler changes? A new file in src/core/rv32 or changing syscall.h?

Cirromulus commented 1 year ago

Sorry, overlooked your answer. As the ITIM is just some memory, I would add a "simple memory" block in the main file, and connect it to the system bus according to the memory map. If your .elf contains a section for it, you would additionally add a elf-file-loader line in the main file.