riscv

How can I compile C code to get a bare-metal skeleton of a minimal RISC-V assembly program?

北战南征 提交于 2019-11-29 03:33:01
问题 I have the following simple C code: void main(){ int A = 333; int B=244; int sum; sum = A + B; } When I compile this with $riscv64-unknown-elf-gcc code.c -o code.o If I want to see the assembly code I use $riscv64-unknown-elf-objdump -d code.o But when I explore the assembly code I see that this generates a lot of code which I assume is for Proxy Kernel support (I am a newbie to riscv). However, I do not want that this code has support for Proxy kernel, because the idea is to implement only

Rocket Chip on Non-Zynq FPGAs

删除回忆录丶 提交于 2019-11-28 01:34:04
问题 I want to port the rocket chip to a non-Zynq FPGA (an altera Stratix V), a board which doesn't contain an ARM core used to run the riscv-fesvr. How can I go about starting the port? Also, has anyone attempted to run the rocket chip on such a board? Can I pointed to some resources for that? 回答1: This is mainly an issue of interfacing, as Rocket Chip does not use anything Zynq specific internally. If this interfacing is done properly, you should not need to change pk/linux or Rocket Chip itself