-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add support for HTIF interfaces #57
Conversation
I only saw fromhost getting initialize to 0, or reset. But what set this value? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM
1cbe72b
to
fc15d7c
Compare
79b8fb3
to
a2a30a9
Compare
This just supports HTIF console (always via the write syscall) and shutdown (without an exit code). With this I can run code on Spike. Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Return the exit code to spike.
- formatting - require METAL_UCB_HTIF0 to be defined by metal/machine/platform.h - name the file with an understore instead of a comma - change getc and putc to accept ints instead of chars Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This just supports HTIF console (always via the write syscall) and
shutdown (without an exit code). With this I can run code on Spike.
Signed-off-by: Palmer Dabbelt palmer@sifive.com