P
PasRISCV
Open SourceAn in-game RISC-V emulator capable of booting Linux inside a space game
๐ No Sign-upโก Editorial Signal: 76/100โ
89 Stars
PasRISCV is an innovative embedded RISC-V emulator integrated directly into an indie space game, allowing players to boot and interact with a full Linux operating system in-engine. It pushes the boundaries of programmable in-game computing environments by bridging gaming simulation with real computer architecture execution.
Custom RISC-V instruction set architecture implementation tailored for game engine integration.
Fully capable of booting real Linux distributions within the game's simulation loop.
Enables players to write and execute real code or scripts that interact directly with the game world.
Building programmable in-game computers and terminals inside a space exploration game
Educational tool for demonstrating computer architecture and operating system booting
Creating complex automated engineering challenges within a sci-fi gaming narrative
Indie game developers, systems programmers, and enthusiasts fascinated by virtual machines and computer architecture.
PasRISCV is engineered to eliminate critical operational friction in open source alternatives. From an architectural standpoint, the system adopts a hosted cloud software architecture, ensuring streamlined onboarding and minimal setup overhead.
Because the underlying code is fully open-source, engineering teams can audit security implementations, inspect telemetry vectors, and extend functionality via custom fork without risk of sudden vendor deprecation.
PasRISCV is an embedded, full-system RISC-V virtual machine emulator engineered entirely in Object Pascal by Benjamin Rosseaux ("BeRo") and Against All Odds Studios. Designed to power in-game programmable computer terminals inside the indie space exploration simulation *SEEDS*, PasRISCV implements the full RV64GCV / RVA23 instruction set architecture. It incorporates complete multi-hart SMP (Symmetric Multiprocessing) execution, an MMU supporting Sv39 and Sv48 multi-level virtual memory page table translation, and the entire Privileged ISA spanning Machine (M), Supervisor (S), and User (U) privilege levels. The core implements the H-extension (hypervisor virtualization), V-extension (vector computing instructions), and K-extension (cryptographic primitives). Execution mechanics leverage a hybrid dual-engine: an optimized interpreter loop for portability alongside a high-performance dynamic Just-In-Time (JIT) machine code compiler targeting x86_64 and AArch64. The peripheral subsystem faithfully emulates standard RISC-V platform components including a UART 16550 serial controller, PLIC interrupt controller, CLINT timer, VirtIO-block storage, and VirtIO-net network adapters. Framebuffer and terminal console rendering integrate directly with the companion PasVulkan graphics framework, mapping Linux tty output onto 3D in-game cockpit displays in real time without stalling the primary game physics simulation loop.
Developer ergonomics in PasRISCV cater both to standalone systems developers and game programmers integrating virtual machines into interactive simulation loops. Compatible with both Free Pascal (FPC) and Delphi, the codebase provides a cleanly encapsulated Pascal class interface (`TPasRISCV`) that abstracts virtual CPU initialization, guest physical memory allocation, and peripheral bus attachment. Developers can run PasRISCV as a standalone terminal CLI harness to validate OS images or embed it directly into game engine tick cycles via discrete instruction-budget execution slices (`ExecuteSlice(InstructionCount)`). The emulator accepts standard compiled RISC-V Linux kernel images (`Image` or `vmlinux`), raw Device Tree Blobs (`.dtb`), and uncompressed ext4 filesystem images for rootfs mounting. Terminal I/O is handled cleanly through standard ANSI/VT100 escape sequences or mapped directly to in-memory pixel buffers for texture blitting on in-game displays. For debugging and systems introspection, PasRISCV features an embedded GDB remote serial protocol stub (`gdbserver`), allowing software engineers to attach standard external GDB instances, set hardware breakpoints, single-step CPU instructions, inspect Control and Status Registers (CSRs), and disassemble guest memory spaces interactively during active kernel boots without perturbing host simulation execution. Built-in register inspection commands (`info registers`, `x/16x $pc`) simplify low-level kernel trap analysis and hypervisor fault tracing.
PasRISCV is released under the highly permissive open-source zlib license, offering exceptional legal clarity and total freedom for commercial and proprietary game developers. The zlib license imposes zero copyleft obligations, allowing studios to compile PasRISCV directly into proprietary commercial game binaries, embedded hardware prototypes, or closed-source educational software without releasing host engine source code. From a Total Cost of Ownership (TCO) perspective, PasRISCV provides an entirely free, self-contained hardware virtualization stack that eliminates costly commercial hypervisor licensing and cloud emulator fees. Compute overhead is strictly bounded: guest physical RAM is pre-allocated via contiguous dynamic arrays (configurable from 64MB for lightweight BusyBox kernels to 1GB for full Debian distributions), preventing runtime heap fragmentation. With JIT compilation enabled, CPU overhead remains remarkably modest, distributing multiple guest harts across background host worker threads without choking rendering threads. Because PasRISCV operates as a completely air-gapped, offline embedded virtual machine, it emits zero network telemetry, requires no external cloud connectivity, and poses no external dependency maintenance overhead, delivering predictable real-time execution across Windows, Linux, and macOS game installations without licensing royalties. The engine avoids dynamic memory reallocations during emulation loops, providing predictable real-time execution bounds.
PasRISCV is production-ready for indie game studios, embedded simulation developers, computer architecture educators, and security researchers seeking an authentic, sandboxed RISC-V execution environment within interactive software. It represents an unmatched solution for games and educational platforms that require players or students to boot real Linux operating systems, write authentic shell scripts, and compile C code on simulated hardware. However, it is not engineered to replace enterprise datacenter hypervisors such as QEMU/KVM for server-scale container orchestration or high-throughput cloud hosting. Operational edge cases require careful engineering around game loop pacing: developers must strictly clamp the instruction budget allocated per frame to prevent heavy guest computations (such as compiling code inside the VM) from causing visual frame drops in the host rendering loop. Additionally, running self-modifying guest code triggers JIT code cache invalidations, which can introduce momentary performance spikes under heavy multitasking. When deploying in production games, pre-compile kernel images with tailored minimal device drivers, configure guest storage around lightweight read-only squashfs images with copy-on-write RAM overlays, and pin guest hart worker threads to host background CPU cores to maintain stable frame rates.
PasRISCV is 100% free and open-source under an open software license. There are no mandatory monthly subscription fees to access the source code or run it locally.
Unlike standard virtual machines or cloud containers, PasRISCV embeds the execution environment directly into an interactive gaming world.
PasRISCV is delivered primarily as a cloud-hosted web application or managed API endpoint, providing turnkey infrastructure without requiring dedicated server management.
No account creation or credit card is required to evaluate PasRISCV. You can immediately access core features or run it locally without onboarding friction.
You can launch or test PasRISCV quickly using the following command: # Open web application directly in browser: open "https://againstallodds.games/blog/2026/10/03/our-risc-v-emulator-pasriscv/" Visit the official portal at https://againstallodds.games/blog/2026/10/03/our-risc-v-emulator-pasriscv/ for documentation and guides.
ToolsRadar maintains strict editorial independence. This review of PasRISCV was conducted using our standardized 5-pillar evaluation framework (Setup, Code Auditability, Maintenance Vitality, Cost Advantage, and Community Signal). We do not accept paid placements to inflate benchmark scores.
Maintainers of PasRISCV and community advocates can display this real-time verification badge in your GitHub README, official documentation, or landing page.
[](https://lordorange.top/tool/pasriscv)<a href="https://lordorange.top/tool/pasriscv" target="_blank"><img src="https://lordorange.top/badge/pasriscv.svg" alt="Featured on ToolsRadar" /></a>Compare other trending developer tools and open-source projects in this space.
Cross-referenced architectural playbooks and category rankings featuring PasRISCV.
High-signal, production-tested utilities with transparent codebases and active communities.
Run your entire startup and digital operations on open-source and generous free-tier software.
Navigate the shifting legal landscape of modern open-source licensing, cloud relicensing controversies, and commercial risk.
A production-tested blueprint replacing Vercel, Supabase, Datadog, Postman, and Sentry with open-source alternatives on a $20/month VPS.