展示HN:我构建了一个RISC-V模拟器,可以运行DOOM。
Show HN: I built a RISC-V emulator that runs DOOM

原始链接: https://github.com/lalitshankarch/rvcore

rvcore 是一个单核 RISC-V 模拟器,实现了 RV32IM ISA,除了 FENCE 和 EBREAK 指令,目前它们被视为 NOP。 构建需要 CMake 和支持 C++20 的编译器(Windows 需要 Cygwin)。 依赖项:libsdl3-dev / sdl3-devel 运行: mkdir build cmake -B build -DCMAKE_BUILD_TYPE=Release cd build cmake --build . doomgeneric 的构建说明: 克隆 https://github.com/lalitshankarch/doomgeneric 必须安装 riscv64-unknown-elf-gcc 或配置了 ./configure --with-multilib-generator="rv32im-ilp32--" 的 riscv64-gnu-toolchain。 导航到 doomgeneric 并运行 make。

对不起。
相关文章

原文

Output

rvcore is a single-core RISC-V emulator that implements the RV32IM ISA, except for the FENCE and EBREAK instructions, which are currently NOP.

  1. To build, CMake and a compiler that supports C++20 is required (for Windows, Cygwin is required)

  2. Dependencies: libsdl3-dev / sdl3-devel

  3. Run

        mkdir build
        cmake -B build -DCMAKE_BUILD_TYPE=Release
        cd build
        cmake --build .
    

Build instructions for doomgeneric

  1. Clone https://github.com/lalitshankarch/doomgeneric
  2. riscv64-unknown-elf-gcc or the riscv64-gnu-toolchain configured with ./configure --with-multilib-generator="rv32im-ilp32--" must be installed
  3. Navigate to doomgeneric and run make
联系我们 contact @ memedata.com