mini-rv32ima
mini-rv32ima copied to clipboard
A tiny C header-only risc-v emulator.
``` ../../buildroot/output/host/bin/riscv32-buildroot-linux-uclibc-gcc duktape-2.7.0/src-noline/duktape.c duktape-2.7.0/examples/cmdline/duk_cmdline.c duktape-2.7.0/extras/console/duk_console.c -Wall -O2 -Iduktape-2.7.0/src-noline -DDUK_CMDLINE_CONSOLE_SUPPORT -Iduktape-2.7.0/extras/console -Wl,-elf2flt="-r -s 196608" -o duktapetest ~/mini-rv32ima/buildroot/output/host/riscv32-buildroot-linux-uclibc/bin/elf2flt: ERROR: text=0x72698 overlaps data=0x698a0 ? collect2: error: ld returned 1 exit status make[1]: ***...
Hey! Nice project! I've gotten everything to work except for the Doom experiment. Running make in the experiments/emdoom folder results in the following output: `$ make CC=../../../../buildroot/output/host/usr/bin/riscv32-buildroot-linux-uclibc-gcc CFLAGS="-mabi=ilp32 -fPIE -pie...
Hi. Nice work there, by the way... But I can't compile the baremetal test. I'm using the buildroot toolchain. Maybe I should use another one ? I get this: `make...
From [riscv privileged spec](https://github.com/riscv/riscv-isa-manual/releases/download/Priv-v1.12/riscv-privileged-20211203.pdf): #### 3.1.8 Machine Trap Delegation Registers (medeleg and mideleg) By default, all traps at any privilege level are handled in machine mode, though a machine-mode handler...
I'm interested in seeing just how small can we make an emulator with the floating point extensions
This is RV32IMAZicsr_Zifencei. you should also note that the atomics are non-atomic operations and are used for bit manipulation. Base Integer Instruction Set, 32-bit | 40 Standard Extension for Integer...
Hi! I have a pre-compiled risc-v opensbi image with the following:  So what file am i supposed to execute with the emulator? I tried fw_jump.bin but it didn't work.
I would like to tell you that there is an old project in the Linux universe called Xvfb (https://en.wikipedia.org/wiki/Xvfb) that would be very interesting to implement in your emulator. Although...
Heyas! Would it be possible to get a full apt based distro running on this, e.g. https://github.com/yuzibo/riscv32/wiki ? Is using flat binaries instead of elf a requirement due to the...
Hello! I am looking into this project in the context of making an arguably somewhat esoteric "fantasy console" that tries as hard as possible to be a realistic PSX-style game...