code wiki / rv64

topic: rv64

35 modules sharing the rv64 name family (derived from the tree's prefix discipline).

The 'rv64' topic family in the Nishi sovereign ecosystem focuses on implementing and verifying RV64 instruction set architecture components within the system's modular design. Modules like nx_rv64_asm provide a bare-metal text assembler, while nx_rv64_asm_verify ensures its correctness through exhaustive testing. nx_rv64_csr_trap_oracle supports privilege mode and CSR operations, aligning with the ecosystem's conformance goals. These modules collectively enable robust, verified execution of RV64 code across the Nishi platform.

auto-narrated by the local model from this topic's module headers; links verified against the wiki index.

narrated overview -- maintained by the narration lane, module links verified against this wiki.

moduledescriptionlinesfuncs
nx_rv64_amo_gate.nxRV64A (atomics) conformance gate for the sovereign behavioral sim.11210
nx_rv64_asm.nxSOVEREIGN RV64 BARE-METAL TEXT-ASSEMBLER. Two-pass (collect labels -> encode with resolved17925
nx_rv64_asm_test.nxminimal isolation test for the RV64 assembler. Assembles 3 instructions + checks bytes.353
nx_rv64_asm_verify.nxGATE: EXHAUSTIVE verification of the sovereign RV64 assembler (nx_rv64_asm) by RUNNING its796
nx_rv64_cjit_gate.nxGATE: the compressed-region JIT compactor+relinker is CORRECT and FAST. Loads a compressed667
nx_rv64_const_probe.nxverify the RV64/asm-generic CONST syscall forms my organs must migrate391
nx_rv64_csr_trap_oracle.nxROADMAP R2 (Zicsr + privilege conformance): validate the golden sim's CSR + TRAP1045
nx_rv64_ctier_gate.nxthe TIERED engine runs REAL compressed rv64imac code. Loads knowledge/hw/realc_c.bin (gcc597
nx_rv64_difftest.nxDIFFERENTIAL FUZZER for the RV64 emulator stack (the SOTA way to validate a JIT: V8/QEMU do11311
nx_rv64_fast.nxa PREDECODED RV64 interpreter (the first perf-engineering step toward closing the QEMU-TCG gap35030
nx_rv64_fast_dev_gate.nxGATE: the DEVICE-AWARE predecoded interpreter drives a REAL virtio device, matching the1107
nx_rv64_fast_gate.nxGATE: prove the predecoded interpreter (nx_rv64_fast) is (a) EQUIVALENT to the golden1198
nx_rv64_jit.nxa SOVEREIGN RV64 -> x86-64 JIT (dynamic binary translation): the SOTA emulator technique, above21750
nx_rv64_jit_fwd_gate.nxGATE: the JIT now compiles REAL forward control flow (if/else) -- forward conditional757
nx_rv64_jit_gate.nxGATE: the sovereign RV64->x86-64 JIT is (a) CORRECT (a JIT'd count-loop gives the same784
nx_rv64_jit_mem_gate.nxGATE: the JIT now compiles GUEST MEMORY loads/stores (LW/LD/SW/SD) + the RAM-addressing1007
nx_rv64_jit_ra_gate.nxGATE: the REGISTER-ALLOCATED JIT (the SOTA quality step) is CORRECT (equivalent to the928
nx_rv64_jit_w_gate.nxGATE: the JIT now compiles *W (32-bit word) ops, so REAL `int` loops accelerate. Before this,564
nx_rv64_kernel_gate.nxCAPSTONE: the sovereign emulator runs a real bare-metal KERNEL, bit-identical to QEMU.625
nx_rv64_m_gate.nxGATE: the RV64 M EXTENSION (multiply/divide) -- so the emulator runs REAL programs (they905
nx_rv64_mmu_oracle.nxROADMAP R2 (privilege, part 3): validate the golden sim's Sv39 MMU TRANSLATION -- the OS's1115
nx_rv64_mulh_gate.nxGATE: the HIGH-MULTIPLY half of the M extension (MULH/MULHU/MULHSU) -- the 64-bit high word846
nx_rv64_qemu_fuzz.nxDIFFERENTIAL FUZZER AGAINST REAL QEMU (broadens the single-program QEMU oracle into a fleet;23011
nx_rv64_qemu_oracle.nxEXTERNAL-ORACLE EXECUTION VALIDATION: assemble an M-extension test program with the795
nx_rv64_realc_gate.nxMILESTONE: the sovereign emulator runs REAL gcc-compiled C code, bit-identical to QEMU.825
nx_rv64_run_bin.nxgeneric loader: reads knowledge/hw/runbin.bin (a flat RV64 binary), runs it on the golden403
nx_rv64_run_bin_fast.nxruns knowledge/hw/runbin.bin on the FAST INTERPRETER (fk_run, now REAL-address-based) with273
nx_rv64_run_bin_tier.nxruns knowledge/hw/runbin.bin on tier_run_c (C-capable tiered engine WITH the compressed-274
nx_rv64_sdeleg_oracle.nxROADMAP R2 (privilege, part 2): validate the golden sim's S-MODE TRAP DELEGATION -- the1175
nx_rv64_sim.nxminimal RV64I interpreter (sovereign qemu).83220
nx_rv64_snapshot_gate.nxprove DETERMINISTIC snapshot/restore (F107i). Runs a compute program to halt1227
nx_rv64_tier.nxthe TIERED EXECUTION ENGINE (the SOTA emulator architecture: V8/HotSpot/QEMU-TCG-style). It1874
nx_rv64_tier_gate.nxGATE: the TIERED EXECUTION ENGINE (interpret cold + JIT hot loops) is (a) CORRECT with JIT705
nx_rv64_timer_oracle.nxROADMAP R2 (privilege, part 4 = LAST): validate the golden sim's TIMER INTERRUPT (CLINT925
nx_rv64_toolchain_gate.nxEND-TO-END SOVEREIGN TOOLCHAIN CLOSURE: prove the assembler and the emulator are now725