interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

[OMEGA-UNIVERSAL P1] Qualify RV64GC RISC-V execution and differential verification in QEMU

Open · #630 · open 2026-10-22 21:44 UTC

Imported from GitHub aien-dev/omega-mv#630, by drakestapleton

drakestapleton wrote on 2026-10-22 21:44 UTC

Parent https://github.com/aien-dev/aien-architecture-mv/issues/295. Prerequisites https://github.com/aien-dev/omega-mv/issues/625, https://github.com/aien-dev/omega-mv/issues/621, https://github.com/aien-dev/omega-mv/issues/623; target-profile issue under epic. Native Aienux RISC-V kernel is deliberately out of scope for this issue.

Baseline: src/compiler/osc_cg.c, osc_a64.c, osc_native.c, src/omega_exec.c, Makefile are AArch64-centric; no RISC-V opcode emitter or riscv64 CI target located on main. NVIDIA GSP RISC-V firmware inspection in aienux is NOT an RV64 executable backend.

Implement: a pinned riscv64 Linux GNU ABI target via LLVM or a deliberately minimal self-owned RV64GC code generator for the verified OSC subset. QEMU user/system emulator preflight, integer arithmetic, signed/wrap behavior, branches, stack/calling conventions, loads/stores, trap/exit contract, ELF/container and alignment checks. Make RVV optional, never silently assumed. Separate ISA, ABI, OS and board profiles; support RV32 only in a later issue.

Acceptance: 30 goldens + 30 refusal/negative variants, interpreter/ARM/x86 differential outputs and 10k deterministic fuzz inputs; a tampered/wrong-ISA receipt fails, unsupported atomics/floats/ABI operations refuse, QEMU execution receipts explicitly labelled EMULATED and independent reviewer verifies disassembly. Real RISC-V silicon remains NOT_RUN without hardware. Reference: https://llvm.org/docs/CodeGenerator.html ; https://docs.riscv.org/reference/isa/unpriv/unpriv-index.html.

drakestapleton wrote on 2026-10-22 22:19 UTC

Removed one concrete #630 prerequisite blocker without claiming an Omega RV64 backend.

The Spark had neither qemu-riscv64 nor qemu-system-riscv64 on PATH. I downloaded the official Ubuntu arm64 qemu-user=1:8.2.2+ds-0ubuntu1.18 package and verified its archive SHA-256 against apt's indexed hash, then extracted it into an owned user directory. No sudo, system package installation, binfmt registration, service changes or device actions.

Committed test and evidence; test source.

Actual user-mode QEMU -cpu rv64 observations, repeated from committed source 97374d91:

  • Handwritten test-only RV64I/Linux ELF exits 42.
  • Changed immediate exits 43.
  • Wrong architecture identifier refuses with exit 255 and Invalid ELF image for this architecture.

Label: EMULATED test-tool preflight only. This does not qualify RV64GC extensions, Omega-generated code, calling conventions/memory/traps, the 30+30/10k corpus, system boot or physical silicon. The Python fixture emitter is a development control, not a production compiler/backend. #630 remains open pending its #625/#621/#623/#628 dependencies and actual backend work. System-mode QEMU remains unavailable/unqualified.

Reusable isolated tool path on Spark: ~/handoffs/universal-L586-toolchain/root/usr/bin/qemu-riscv64; exact package and binary identities and commands are in the linked receipts. Existing #621 implementation worker and firmware/GPU/Interplane owners were left untouched.

Sign in to comment