Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
U2654 opened this issue Mar 5, 2021 · 3 comments
Open

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

U2654 opened this issue Mar 5, 2021 · 3 comments

Comments

@U2654
Copy link

U2654 commented Mar 5, 2021

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
Copy link
Member

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

@U2654
Copy link
Author

U2654 commented Mar 5, 2021

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants