Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix insufficient memory on some platforms
[Problem] The MEM_SIZE is hard-corded, but on some platforms, memory is insufficient. Perhaps we should allow user to config accordingly [Solution] Expose an environment variable, CONFIG_MEM_SIZE, to allow user config the memory size with it [Test] * before $> make $> ./build/rv32emu ./build/hello.elf rv32emu: src/riscv.c:199: rv_create: Assertion `attr->mem' failed. Aborted (core dumped) * after $> CONFIG_MEM_SIZE=0x40000000 make $> ./build/rv32emu ./build/hello.elf Hello World! Hello World! Hello World! Hello World! Hello World! inferior exit code 0 [Reference] [#488](#448)
- Loading branch information