code wiki / _hdl_build / _gpu_run.nx
_gpu_run.nx
buildroot/runtime/_hdl_build/_gpu_run.nx
about
_gpu_run.nx -- a SOVEREIGN rv64 runner with the GPU-class device ATTACHED (twin of
nx_boot_run_sov, dedicated to the GPU op-list driver so the shared nx_boot_run_sov stays
untouched). Loads an emitter-authored rv64 flat image, runs it on the Nishi-owned emu with the
virtio/nvme/nndev/mmu + the new GPU controller (rv64im_min_gpu @0x10007000) attached, and prints
the same "BOOTSOV verdict=GREEN" clean-halt marker the gate greps for. Sovereign: the emulator
IS the runtime, no qemu/gcc. license_tier: ORIGINAL
dependencies 7 imports · 0 importers
imports: rv64im_min_sim.nxrv64im_min_csr.nxrv64im_min_clint.nxrv64im_min_uart.nxrv64im_min_virtio.nxrv64im_min_nvme.nxrv64im_min_gpu.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 15 | const GR_MEM_BASE: i64 = 0x80000000 |
| 16 | const GR_MEM_SIZE: i64 = 65536 |
| 17 | const GR_TX_CAP: i64 = 4096 |
| 18 | const GR_MAX_STEPS: i64 = 100000 |
functions
| 20 | func gr_p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } called by 1: main |
| 21 | func gr_fn(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48;k=1}; while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(fd,bb,k); return 0 } called by 1: main |
| 23 | func main(argc: i64, argv: *i64) -> i64 |