code wiki / (root) / nx_emu_rv64_test.nx

nx_emu_rv64_test.nx

buildroot/runtime/nx_emu_rv64_test.nx

2771 B68 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic emu
docsdependenciesstructsconstsfunctions

about

nx_emu_rv64_test.nx -- prove the sovereign RV64 interpreter runs real RV64 machine code (no qemu). Hand-encodes RV64I words (verified vs the RISC-V ISA manual; the 0x02a00513 word is the same one asm_enc.nx's KAT uses) and asserts the emulated exit code. expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_emu_rv64.nx nx_syscalls_x86_64.nx nx_emu_rv64_test.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_put_w emu_rv64_run 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

12func emu_put_w(code: *u8, off: i64, w: i64) -> i64
called by 1: main
20func main() -> i64