rv32emu-legacy
rv32emu-legacy copied to clipboard
RISC-V RV32I[MA] emulator with ELF support
* Modify `target_write_u32()` function to make 32-bit data output easier * User can now output integer or any data type in 32-bit by assigning to `(volatile *)0x40000008`
I have modified the simulator which is compatible with the riscv-compliance tests procedure.
## Some modification of rv32emu to support C ext. 1. Add a new variable named `insn_type` to distinguish the 16-bit and 32-bit instruction. 2. Modify the `unsigned char get_insn32(uint32_t, uint32_t*)`...