code wiki / (root) / nx_emu_rv64_main.nx

nx_emu_rv64_main.nx

buildroot/runtime/nx_emu_rv64_main.nx

831 B23 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic emu
docsdependenciesstructsconstsfunctions

about

nx_emu_rv64_main.nx -- CLI for NX-EMU: load + run a static RV64 ELF. Usage: nx_emu_rv64 <prog.elf> (exit code = guest's exit status) Reads the ELF, loads its PT_LOAD segments into a flat guest image, and runs it on the sovereign RV64 interpreter -- NO qemu. Used by the differential harness (gate_nx_emu_diff.sh) which runs the SAME ELF on qemu-riscv64-static (oracle) and asserts identical exit codes. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_emu_rv64.nx nx_syscalls_x86_64.nx nx_emu_rv64_main.nx

imports: nx_emu_rv64.nxnx_syscalls_x86_64.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main emu_rv64_load_elf emu_g_ld emu_g_st emu_rv64_run_mem emu_g_ld ↻ emu_rv_sext12 emu_ltu emu_srl emu_sext32 emu_g_st ↻ emu_rv_bimm emu_rv_jimm sys_read

structs

none

consts

none

functions

15func main(argc: i64, argv: *i64) -> i64