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 RISC-V architecture support #1047
Comments
Are there public MCs or CPUs available? |
There is a RISCV32 HiFive1 board. You can use mainline qemu for HiFive board emulation. |
|
@kandeshvari In my mind, now the easiest arch implementation is ppc.
There is graduation thesis about porting process (in Russian) |
I'm trying to build minimal kernel as it described here my template:
next:
but gain an error:
Do I really need libm for minimal kernel? How to switch it's build off? |
@kandeshvari Probably, you can try |
@kandeshvari And use add line for switch off floating point support in 'print' routines |
try to use |
Hi, @kandeshvari |
Plz see in https://github.com/kandeshvari/embox/tree/risc-v-support I've done early stage with qemu-sifive-e
Next I started interrupts but switched to other private tasks and abandoned this one :( some hints to help: compile risc-v qemu
risc-v baremetal examples
disasm
qemu gdb
Good luck! |
more notes: resources
interrupts
https://www.sifive.com/blog/all-aboard-part-3-linker-relaxation-in-riscv-toolchain |
Thank you very much, @kandeshvari ! |
Hi @kandeshvari!
Looks great. Thank you. May you create PR for your current achievements? |
@anton-bondarev, |
@anton-bondarev, |
@kandeshvari These macros In the first case we use mips-elf-gcc from own build https://github.com/embox/crosstool In the other case we use mips-linux-gcc from debian repository. I think for risc-v you should print the predefined macros from your gcc https://stackoverflow.com/questions/2224334/gcc-dump-preprocessor-defines |
I've removed |
Not a problem. Thanks a lot for your work! PR will be merged soon! |
Now Embox has support for several RISC-V platforms. therefore the issue is closed. It will open new issues for others RISC-V features |
RISC-V is a new and very promising open instruction set architecture.
The text was updated successfully, but these errors were encountered: