mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 19:30:43 +00:00
Add a declarative x86-64 instruction registry with a validating generator, and decode through its tables in the static probe, the interpreter and the native DBT. Move integer semantics into shared reviewed primitives and extend them to 8-, 16-, 32- and 64-bit register and memory operands. Store all six arithmetic flags in the guest state so they survive helper calls and block boundaries, and correct unsigned branch conditions. Lower common forms to ARM64; other forms call the shared semantics and are counted. Report probe support from the decoder that executes. Verify 985 LLVM-assembled instructions against a bit-level reference that reads only their assembly text, and random sequences between the engines. Refs #64, #65, #66, #68, #70, #71, #73, #118, #119, #120, #121, #122, Signed-off-by: jelly013 <22855910+jelly013@users.noreply.github.com> #123, #194, #195, #196
Xenora documentation
Getting started
Start with the project README for scope and build commands, then read the interface contracts. Reproduce an original guest test program or run the independent validation suite before changing either path. The changelog records notable changes.
Architecture and technical design
- Interface contracts — Translated shader stages, guest services, native command submission, and synthetic textures.
- Fixture memory model and CPU boundary — Buffer bindings, guest address translation, and dependency direction.
Native Metal graphics
- Translated offscreen stages — Translated vertex and pixel stages for the bounded gfx1030 subset.
- Blend and depth passes — Native blend and depth graphics passes with per-draw state.
- Apple GPU evidence and host lab record — Observed behavior and historical floating-point results.
RDNA 2 decoding and shader translation
- Instruction coverage — Desktop gfx1030 instruction forms, operand limits, and CPU and GPU results.
- Semantic coverage — Generated per-family counts of identified, declared, decoded, lowered and verified gfx1030 forms.
- SOP2 scalar ALU — Supported scalar add, subtract and bitwise forms, their SCC rules and sources.
- Semantic registry — How to add an instruction form: registry fields, validation, generation and the independence rule.
- VOPC integer compares — Wave32 compare forms, the VCC/EXEC contract, runtime
s_cbranch_vcczand the Metal mapping. - Metal Shading Language generation and independent CPU reference — Translation rules and separate CPU execution models.
Guest CPU and runtime experiments
- Guest experiment guide — Bounded x86-64 execution, executable loading, experimental services, native compute, and offscreen rendering.
- x86-64 instruction registry — Shared decoder, generated tables, semantics, native lowering and how to add a verified instruction form.
- Guest CPU research — Public specifications and unresolved console requirements.
- Synthetic import fixtures — Reproducible PE32+ builds and expected service behavior.
Testing, validation, and benchmarks
- Engineering progress — Verification commands, metric definitions, and open release gates.
- Test inventory comparison — Detect missing or newly ignored Cargo tests across commits.
- Persistent resource and translated rendering acceptance — Pinned upstream tests, native ARM64 results and unsupported cases.
- Baseline acceptance, Phase 01 assurance, and independent reviews — Candidate-specific results and release findings.
- Mutation testing and benchmark protocol — Test sensitivity, benchmark inputs, and timing requirements.
Research and engineering decisions
- Public sources, RDNA 2 notes, and Xbox GPU evidence — Specifications, evidence scope, and unknown console behavior.
- Shader inputs and risk register — Input provenance and unresolved engineering risks.
- Synthetic integration and upstream evidence — Audited source snapshots and remaining commercial startup prerequisites.
Security, licensing, and contributions
- Threat model and security reporting — Execution limits and disclosure instructions.
- Legal scope, dependency licensing, and third-party notices — Input policy, attribution, and redistribution findings.
- Contribution guidelines — Original authorship, Developer Certificate of Origin sign-off, and evidence requirements.
- Agent task queue — Areas, claiming, leases, upstream sync, verification and the security model for parallel contributors and coding agents.
- CPU/runtime expansion campaign ledger — Progress ledger for the Xenora native CPU and runtime compatibility campaign: starting/current commits, completed batches, new forms, verification evidence and the next implementation target.