Malformed relations and operand rules are diagnostics instead of Python exceptions; the fixture now really carries a SOPC literal (LLVM had encoded 0xffffffff as inline -1); the reference-interpreter table and registry field table describe the current forms; the docs and changelog state separately that the 348 rejections run on the CPU interpreters and the compiler, not on Metal. Signed-off-by: elforeign <324243036+elforeign@users.noreply.github.com>
36 KiB
Changelog
Notable changes are grouped using Keep a Changelog. Experimental interfaces may change. Authorized releases should identify their exact revision and known limitations.
[Unreleased]
Guest execution uses original, purpose-built test programs. Commercial Xbox game execution remains unsupported.
Added
- Added the gfx1030 SOPC compares
s_cmp_{eq,lg,gt,ge,lt,le}_{i32,u32}through the semantic registry, which replaces the hand-writtens_cmp_eq_u32path. Each sets only SCC to whether the relation holds with SSRC0 on the left (AMD guide section 12.4); the registry gained acompareoperation with a declaredrelationand asopc_scalaroperand rule.Instruction::ScalarCompareEqU32is nowInstruction::ScalarCompare { op: ScalarCompareOp, .. };s_cmp_eq_u32behaves as before. The reference and independent semantic-review interpreters, written separately from the guide, evaluate all twelve, checked against 7,824 guide-derived cases on both CPU interpreters and on native Metal with validation; 348 rejected programs are refused by both interpreters and by the compiler. A new LLVM-assembled fixture covers all twelve. Two literal selectors stay rejected. Part of #215, stage D. - Added eight gfx1030 SOP2 forms through the semantic registry alone:
s_andn2_b32,s_orn2_b32,s_nand_b32,s_nor_b32,s_xnor_b32,s_lshl_b32,s_lshr_b32ands_ashr_i32, each with SCC = result != 0. Each is one registry entry with no per-form Rust; the registry gained these primitives and a declared shift-count width (shift_count_bits = 5, so shifts use S1[4:0] as in the AMD guide, section 12.1), which the generator applies as a mask and checks against the XML's unsigned count operand. The reference interpreter and the independent semantic-review interpreter, written separately from the guide, now evaluate the same eight forms and are checked against 6,896 guide-derived cases; a new LLVM-assembled fixture (fixtures/rdna2/scalar-logic.s) runs on CPU and native Metal with validation. A NULL destination (s125) stays rejected. Part of #215, stage C. - Added an independent operand-domain verification harness for the 9 supported SOP2 scalar ALU forms and 12 VOPC integer compares (
tests/validation/tests/operand_domains.rs, part of #215 stage E): 4,788 generated cases (boundary values, 64-bit carry and borrow chains, aliased registers, every integer inline constant, literals, s105 and v255, partial and zero EXEC, VCCZ) and 498 rejections (missing literal words, and encodings outside Xenora's supported subset) run onxenora_refand, as an ignored test picked up byscripts/test-gpu.sh, on native Metal. Expected values come from the public AMD RDNA 2 guide's pseudocode, written out in the test without Xenora code; this is agreement with a spec-derived reference, not with Xbox hardware. Local verification only: 32 deliberate code breaks were each caught; the guide leaves the width ofS1 + SCCins_subb_u32open, and those 8 cases are kept in their own family. - Added a declarative semantic registry for gfx1030 instruction forms (
crates/isa/semantics/rdna2.toml, schema 1) and its generator,crates/isa/generate_semantics.py, withvalidate,generateand--checkmodes. The generator checks every declaration against a closed vocabulary and the pinned AMD XML snapshot (opcode, family, SCC input and output, operand widths and signed formats), rejects contradictory, incomplete or duplicate definitions, and emits static Rust tables marked as generated. The nine SOP2 forms moved onto it with no change in behaviour: the decoder's SOP2 dispatch andScalarAluOp's mnemonic, SCC read and evaluation are now generated, and evaluation goes through shared primitives instead of per-opcode code. All existing SOP2 tests, including the native Metal known answers and the LLVM comparison, pass unchanged. Decoding speed is unchanged (10.2 ns before, 10.1 ns after, per SOP2 instruction, release build on an Apple M5 Pro). Also addedscripts/audit/semantic_coverage.py, which generatesdocs/shaders/semantic-coverage.md: per-family counts of identified, declared, decoded, lowered, reference-verified and Metal-verified forms, taking evidence only fromdocs/status.toml. Part of #215, stages A and B. - Added a native Metal blend pass,
NativeCompute::render_blend: up to 16 flat-coloured triangles drawn in order into an RGBA8 target, each with its own colour write mask (any subset of R, G, B, A) and either blending disabled or separate RGB and alpha blend factors (Zero, One, source and destination colour and alpha, and their one-minus forms) and operations (Add, Subtract, ReverseSubtract, and Min and Max, which take the unweighted values). Checked on the GPU with Metal validation in 39 passes over two original overlapping triangles: a clear-only pass; blending disabled; each source factor with the destination term zeroed and each destination factor with the source term zeroed; every operation; additive clamping; separate alpha factors; a separate alpha operation; eight write masks (each channel alone, RGB, none, RGBA, and RG with blending); and a pass whose first draw is itself blended and masked. Colours are compared per channel against images derived independently (in exact fractions) from the public Metal blend equations, which a new CPU reference inxenora-refalso reproduces. The tolerance was fixed before measuring: channels whose exact result is a whole 8-bit value must match exactly, and channels that need rounding may differ by 1. On an Apple M5 Pro every rounded channel matched round-to-nearest exactly. Synthetic fixtures only; no console blend state is involved. - Added indexed triangle draws. Native Metal:
NativeCompute::render_indexedissues one realdrawIndexedPrimitivescall per draw (up to 16) on a 16- or 32-bit index buffer with a start index and a signed base vertex, into an RGBA8 target; a draw can sample an original BC1 texture uploaded natively. Before encoding anything it rejects the whole pass for a bad index count, an index range past the buffer, anyindex + base vertexoutside the vertex buffer, and, as this API's policy, a raw all-ones index (the primitive-restart value, which Metal does not define for triangle lists). Loader: a synthetic, CPU-side index buffer binding (resource handle and offset, the view running to the end of the resource) withcmd_set_index_bufferandcmd_draw_indexed_instanced, which fetch one triangle, drawn once, through the index buffer, start index and base vertex and pass it to the existing one-triangle backend; each drawn triangle replaces the previous output. Recording rejects formats other than DXGIR16_UINTandR32_UINT, offsets not aligned to the index size or past the resource, and unknown resources. Execution checks each draw in turn, so earlier draws have already rendered when a later one fails: index counts other than 0 or 3, more than one instance or a nonzero start instance, a missing index buffer, indices past the buffer and anindex + base vertexoutside the vertex buffer are typed errors; a valid zero index or instance count draws nothing. All-ones indices are ordinary indices there. Checked on the GPU with Metal validation in 16 passes (both index sizes, 32-bit indices above 16 bits, odd 16-bit start, positive and negative base vertex, reversed winding, flat and textured two-triangle draws, draw order, BC1-textured draws), compared per pixel against images derived independently from the geometry, the public D3D12 and Metal index semantics and the public BC1 rules, which a new CPU reference inxenora-refalso reproduces; the loader's fetch is checked against literal positions with synthetic guest-backed buffers and through the native Metal renderer. Synthetic fixtures only; no console index-buffer views, guest programs or console draw state are involved. - Added a
cpu_decodecargo-fuzz target for the static x86-64 decoder used by the read-only PE probe. It places up to 4,096 fuzz bytes as the code section of a fixed, original PE32+ header and runsprobe_pe_bytestwice with a boundedProbeConfig(4,096 bytes, 2,048 instructions, 1,024 worklist entries); nothing is executed. It checks that the two reports are identical and that every decoded instruction is 1 to 15 bytes long, lies inside the code and matches the input bytes. A startup self-check aborts the run if the synthetic header stops reaching the decoder. A 600-second local campaign (nightly cargo-fuzz, one fork-mode worker, seeded from instruction bytes in the loader's probe tests; about 2.38 million executions, coverage 1,350 edges) found one decoder defect, reported to the CPU owner on #74 and not fixed here: the probe accepts unlimited FS/GS segment prefixes and reports instructions longer than 15 bytes (minimized input: 16 bytes of0x65). Run it withrustup run nightly cargo fuzz run cpu_decode;scripts/fuzz.shdoes not list it yet. - Added a
pe_parsecargo-fuzz target that feeds malformed bytes to the PE32+ parser (ParsedPe::parse,rva_to_file_offset) and, only when the summed section mapping size andSizeOfImageare both at most 64 MiB, to the checked guest-memory mapping step (load_into_memory); nothing is executed. A 600-second local campaign (nightly cargo-fuzz, fork mode, seeded from the repository's synthetic PE fixtures, about 120,000 executions, coverage 267 edges) found two loader panics, reported to the CPU owner and not fixed here: truncated optional headers panic on out-of-range slices inparse, andrva_to_file_offsetoverflowsu32when a section's address plus size exceeds 4 GiB. Run it withrustup run nightly cargo fuzz run pe_parse;scripts/fuzz.shdoes not list it yet. - Added
NativeCompute::run_words_with_group_widthandmax_group_widthto run a trusted kernel at an explicit threadgroup width, rejecting zero and widths above the device or pipeline limit. Native tests check 91 legal width and grid-size pairs (widths 1 to 1,024, including non-divisible grids) against independently computed outputs, and confirm the dispatched group sizes, including trimmed last groups. On an Apple M5 Pro, in three release runs of a 4,096-thread integer-mixing kernel (30 samples per width), widths 64, 128 and 256 were within 0.3 % of each other in two runs, at a median of 58.8 µs of GPU time. Width 512 was 5 to 6 % slower and width 1,024 about twice as slow in all three runs. The first run was about 4.7 times slower overall for reasons not determined, and in it 128 and 256 were 3 to 4 % faster than 64. The default width of 64 is unchanged. This was measured on one device and one workload. - Added a native Metal depth pass,
NativeCompute::render_depth: up to 16 triangles drawn in order into an RGBA8 target with an optionalDepth32Floatattachment, a chosen clear depth, a per-draw depth compare function (all eight) and depth write enable. A pass without an attachment accepts onlyDepthState::DISABLED. Colour and the stored depth are both read back; the depth values are returned as the texture read gives them, without numeric conversion. A draw can sample an original BC1 texture whose blocks are uploaded to a nativeBC1_RGBAtexture without CPU decoding, gated onsupportsBCTextureCompression. Checked on the GPU with Metal validation in 30 passes of original overlapping triangles: clear, every compare function at three depths, write enabled and disabled, depth test disabled (Alwayswithout writes) with an attachment and no attachment at all, and a BC1-textured draw. Colour and depth are compared per pixel against expectations derived independently from the geometry, the Metal compare semantics and the public BC1 rules, which a new CPU reference inxenora-refalso reproduces. These are synthetic fixtures only; no console depth formats or guest render state are involved. - Added a CPU BC7 block decoder in
xenora-texturefor all eight modes, with explicit handling of the invalid all-zero mode byte. It is checked by hand-derived tests and 430 known-answer vectors from a separate clean-room reference written from the Khronos Data Format Specification (merged in PR #224 without a changelog entry). - Added independent negative tests for gfx1030 extension words: truncated literal, SDWA, DPP16, DPP8 and MIMG NSA trailers (62 prefixes of 18 LLVM-assembled instructions), disallowed extensions, and length recognition kept apart from semantic validity. Tests only, with no decoder change (merged in PR #231 without a changelog entry).
- Added the gfx1030 Wave32 VOPC compares
v_cmp_{lt,eq,le,gt,ne,ge}_{i32,u32}_e32. VCC_LO is EXEC_LO & the per-lane test, always fully written, so empty EXEC gives 0. A compare result can feeds_cbranch_vccz,v_mov_b32_e32 vN, vcc_loand another compare's source; nothing else, so EXEC never becomes data-dependent. A data-dependents_cbranch_vcczis a wave-uniform branch over integer vector ALU code, lowered to a select at the join. The Metal kernel builds each mask by recomputing the 32 lanes of its own RDNA wave, with no SIMD-group, threadgroup or barrier assumption. The reference now runs lockstep Wave32 waves. Verified on an LLVM-assembled fixture plus 251 original programs (boundary operands, partial and empty EXEC, both branch edges, a partial final wave) against exact integer definitions: translator, reference and second interpreter agree on CPU, and all 252 match on native Metal with validation. LLVM agrees on every encoding. VOP3, SDWA, DPP,v_cmpxand Wave64 stay rejected. Seedocs/shaders/vector-compare.md. - Added the gfx1030 SOP2 forms
s_add_i32ands_sub_i32, with SCC as signed overflow as defined in the AMD RDNA 2 ISA guide (sections 5.3 and 12.1). They are checked on CPU and on native Metal with validation on 400 boundary programs, four immediate-operand overflows and the scalar ALU fixture, plus eight hand-worked overflow and no-overflow cases on CPU. - Added the gfx1030 SOP2 scalar forms
s_add_u32,s_sub_u32,s_addc_u32,s_subb_u32,s_and_b32,s_or_b32ands_xor_b32. They are decoded, executed by the reference and independent interpreters, and resolved by the translator, with SCC as carry, borrow or nonzero result.v_mov_b32_e32can now read a normal SGPR. Verified on 1,400 original operand vectors plus an LLVM-assembled fixture, on CPU and on native Metal with validation. The other SOP2 forms stay unsupported. Seedocs/shaders/scalar-alu.md. - Added
scripts/audit/test_inventory.py, which lists the Cargo test inventory of two commits in temporary detached worktrees and reports removed, added, newly ignored and newly un-ignored tests, failing on any loss not explained in an--allowfile. Run against the old PR #166 head5450612and main951189c, it reports the 12 BC texture tests that head was missing (exit 1); the same commit against itself reports no change. Default features only; seedocs/testing/test-inventory.md. - Added complete gfx1030 instruction metadata generated from AMD's public RDNA 2 XML: 1,465 base forms across 21 encoding families with fields, operands, flags and allowed extension words. A committed, normalised snapshot lets
crates/isa/generate_rdna2_meta.py --checkverify the generated table offline; CI runs it. - Added
xenora_isa::meta::identify, which finds any gfx1030 instruction's form and exact length, including literal, SDWA, DPP and NSA words, and rejects truncated, unassigned and disallowed-extension encodings. It agrees with every LLVM-assembled fixture and with LLVM 23.1.6 on a probe set covering each family and extension word. Identification does not make an instruction executable:SEMANTIC_FORMSlists the forms with semantic decoding (46 as of the VOPC compares). - Added
xenora shaders coverage [--json]andxenora shaders inspect <file>for per-family coverage and stream listings that separate decoding failures from unsupported semantics. Each instruction is decoded at its stream offset and branch targets are checked against the whole stream's boundaries, so supported branches are no longer misreported as unsupported operands.xenora_decoder::decode_atdecodes a single instruction for such callers. - Added an agent task queue for the cpu, gpu, runtime, shared and qa areas: an Agent task issue form with priority and interface fields, a workflow that decides
/claim,/release,/reassign,/progress,/blocked,/unblockand/approve-acceptancecomments one at a time (dependency, cycle and file-overlap checks, 24-hour leases renewed by progress), a pull request check (linked claimed task, file ownership, overlap with other pull requests, independent/verified <head sha>),scripts/agent-queue.shandscripts/agent-sync.sh(upstream fetch every 12 minutes, task branches in separate worktrees) and a machine-readable queue summary. The rules are standard-library Python inscripts/agent_queue/with unit tests intests/agent_queue/; issue text is never executed and acceptance commands need maintainer approval. Only comments that start with a command start a job, so ordinary pull request comments never re-run verification, and only an accepted/verified <full head sha>evaluates the check again; and each claim run decides every unanswered command in order, so commands whose pending runs GitHub cancelled are still answered. Seedocs/coordination/agent-tasks.md. Unit tests pass locally; the workflows have not run on GitHub yet, and the pull request check stays advisory (it never blocks a merge) until a live smoke test and the migration of existing issues are done. - Added explicit claim-before-work rules for contributors and coding agents to
AGENTS.md,CONTRIBUTING.mdand the pull request template: check for existing claims, claim with/claim, keep a 24-hour lease alive with/progress,/releasewhen stopping, and link the claimed issue. Without the claim workflow, the earliest valid claim comment wins. - Added a CPU decoder for a bounded subset of BC6H (signed and unsigned HDR) in
xenora-texture: the four single-subset modes (Khronos modes 3, 7, 11 and 15, Microsoft modes 11 to 14), listed inBC6H_SUPPORTED_MODES, plus the reserved modes, which decode to zero as specified. The ten two-subset modes are rejected withBc6hError::UnsupportedModeand are not implemented. Tests check hand-derived values and 128 known-answer vectors from a separate clean-room reference decoder. - Added native Metal upload and readback of BC4 and BC5 textures (UNORM and SNORM):
xenora-texturegains a pitchedBcChannelUpload, andNativeCompute::read_bc_channel_uploadsends the original blocks toBC4_R*orBC5_RG*textures when the device reports BC support, failing withsupportsBCTextureCompressionotherwise. GPU tests cover six- and eight-value interpolation, equal and extreme endpoints (signed -128 reads as -1.0), red-green channel order, padded row and slice pitches, two layers and two mips against the CPU decoders and hand-derived anchors. On an Apple M5 Pro interpolated codes were within 1.71 codes of the exact values and up to two codes from the truncating CPU reference. Edge levels of 5×3 and 1×1 and invalid payloads (zero extents, short, oversized or block-count-mismatched buffers) are covered. - Added native Metal upload and readback of BC2 and BC3 textures:
xenora-texturegains a pitchedBcAlphaUploadfor 16-byte blocks, andNativeCompute::read_bc_alpha_uploadsends the original blocks toBC2_RGBAorBC3_RGBAtextures when the device reports BC support. GPU tests cover explicit and interpolated (six- and eight-value) alpha, both colour endpoint orders, padded row and slice pitches, two layers and two mips against the CPU decoders and hand-derived anchors. On an Apple M5 Pro the native decoder's interpolated values were within 8/7 (about 1.14) codes of the exact values, so up to two codes from the truncating CPU reference. Edge levels of 5×3 (one block row) and 1×1 are covered, invalid payloads (zero extents, short, oversized or block-count-mismatched buffers, bad pitches) are rejected before upload, andMetalError::is_capability_unavailableseparates a device without BC support from an implementation failure. - Added CPU block decoders for BC2, BC3, BC4 and BC5 (UNORM and SNORM) in
xenora-texture, with tests whose expected texels were derived by hand from the Microsoft and Khronos block-compression specifications. Interpolated values truncate toward zero, as the existing BC1 decoder does; GPU upload and sampling of these formats are not implemented yet. - Added
dbt::tests::sib_store_executes_through_the_native_dbt, an independent DBT execution test that runs the SIB store formmov [rsp + 0x20], rbxthrough the native ARM64 DBT and verifies the value lands in guest memory. - Added 8/16-bit MOV memory-operand support (opcodes 0x88/0x8A, register-to-memory and memory-to-register) to the native ARM64 DBT.
- Added GS/FS legacy segment prefix support to the native DBT and the bounded x86-64
interpreter, including
CpuState.gs_base/CpuState.fs_baseoffsets added to the effective address computation. - Added Win64 TEB allocation and
gs_baseinitialization to synthetic guest startup.
Changed
- Simplified the claim rules in
AGENTS.md,CONTRIBUTING.mdand the pull request template at the maintainer's request: claim an issue by replying on it in plain words, never claim over an existing claim, and treat a claim as stale only after about one week without a pull request. The task-queue lease (lease_hoursin.github/agent-queue.json) is now 168 hours to match, anddocs/coordination/agent-tasks.mdmarks the queue commands as optional. - The static PE probe now marks x86-64 SIB memory addressing as DBT-supported, matching the native DBT.
Fixed
- Fixed
xenora_isa::meta::identifyreading six VOP3 interpolation forms (v_interp_p1_f32_e64,v_interp_p2_f32_e64,v_interp_mov_f32_e64,v_interp_p1ll_f16,v_interp_p1lv_f16,v_interp_p2_f16) as 12 bytes when SRC0 is 255. In these forms SRC0 holds attribute bit-fields, not an operand selector (AMD RDNA 2 ISA guide section 10.4.2; XML operand typeOPR_ATTR), so SRC0 = 255 no longer adds a literal word. The six corpus probes are now 8 bytes, as LLVM 23.1.6 also decodes them. The six pinnedmismatchrows in the LLVM corpus check are gone: one now agrees fully, and five areoperand_flagged(same instruction and length; LLVM flags an operand). - Updated
test_probe_static_analysis_does_not_execute_code: the SIB storemov [rsp + 0x20], rbxat RVA 0x1004 is now genuinely supported by the native DBT (verified by the independent execution test above), so the probe reports no blocker for this program. - Added
test_probe_static_analysis_detects_genuinely_unsupported_instructionwith a new synthetic fixture containing an INT3 at RVA 0x1004, preserving blocker-detection coverage for genuinely unsupported DBT instructions.
[X18] - Automated Import Compatibility Generation & Metadata Ingestion
Guest execution uses original, purpose-built test programs. Commercial Xbox game execution remains unsupported.
Added
-
Added
xenora-import-gendeterministic code generation crate andxenora imports generate <--pe <exe> | --csv <file>> [--out <dir>]CLI command. Automatically extracts imported symbols from PE executables or CSV manifests, classifies them against a built-in offline database of documented public Win32/CRT and ISO C specifications without consuming AI tokens or network resources, maps compatible CRT functions to native macOS libc ABI adapters with guest memory bounds checking, generates logged Win32 service stubs, generates deterministic conformance test suites, and produces coverage reports in both Markdown and CSV format. -
Added automated metadata ingestion (
ingest_standard_system_headers) andxenora imports metadata synccommand capable of parsing real POSIX/C system headers into typedMetadataCatalogdefinitions (188 entries). -
Added
xenora imports verifyautomated behavioral verification runner checking CRT math, string, and memory bounds invariants across 12 independent behavioral test cases. -
Added explicit failure semantics for unsupported stubs returning
ExitReason::IllegalInstruction(0xFE)rather than fabricated success. -
Added public registration helper
ImportRegistry::register_with_statusand runtime integration test verifying generated bindings and stub failure semantics. -
Added 8-bit and 16-bit guest memory access helpers (
read_u8,write_u8,read_u16,write_u16) toxenora-loader::GuestMemory. -
Added guest-facing D3D12-style graphics runtime interfaces (
GraphicsContext,GraphicsDevice,GraphicsCommandQueue,GraphicsCommandAllocator,GraphicsCommandList,GraphicsResource) with explicit backend selection (GraphicsBackendId::MetalNativevsGraphicsBackendId::SoftwareReference). Original PE32+ integration tests verify device creation, generation-checked handle ownership, command recording, barriers, and presentation. -
Connected guest execution via ARM64 DBT and IAT dispatch to native Apple Silicon Metal rendering (
test_guest_dbt_graphics_pipeline_metal_render_dual_inputs), proving that different guest vertex positions and clear colors produce distinct, verified GPU-rendered framebuffers with active Metal validation on Apple M5. -
Added explicit test graphics service exports (
xenora_fixture.dll!CreateGraphicsDevice,xenora_fixture.dll!SubmitGuestDraw) cleanly separated from unsupported production Xbox ABI claims. -
Added control-flow-aware x86-64 static PE probe using worklist CFG traversal, eliminating false-positive startup blocker reports on unreachable INT3 padding.
-
Added
xenora imports synccommand with--checkverification mode for automated, idempotent import compatibility backlog generation. -
Added current-process handle and ID queries and a readable priority boost policy for the synthetic guest process. Original PE fixtures verify Win64 arguments, state changes and errors through imported calls.
-
Static import reports identify canonical bindings, API-set aliases, implemented and partial handlers, existing stubs, and missing services.
-
Added a single startup path for original PE32+ fixtures that maps and rebases the image, binds imports before running thread-local storage callbacks, then enters the guest.
-
The static PE probe compares ordinary imports with the standard synthetic registry and exports unresolved DLL, symbol or ordinal, and import slot addresses to
missing_imports.csv. -
Added synthetic PE32+ runtime support for 64-bit base relocations, thread-local storage setup and callbacks, Windows x64 calling convention arguments, and import binding to a limited service registry. The Xbox-style allocation service maps guest memory. Its free entry point remains a stub.
-
Extended native ARM64 dynamic binary translation with selected memory addressing, immediate stores, register increments and decrements, and indirect control flow through guest import slots.
-
Added runtime fixtures for rebasing, ordered callbacks, deterministic timing, guest memory allocation, and mock import dispatch. The GPU gate checks every pixel from a native offscreen draw through a synthetic import.
-
Added a static PE compatibility probe that exports section, relocation, thread-local storage, import and bounded x86-64 entry-point analysis. Synthetic tests cover inspection and report export.
-
Added native Apple Silicon ARM64 Dynamic Binary Translation (DBT) engine (
DbtEngine) with basic block decoding, native ARM64 code lowering, and W^X-compliant JIT code cache (JitMemory) utilizing macOSMAP_JITandpthread_jit_write_protect_np. -
Added an ARM64 machine instruction assembler (
Arm64Assembler) supporting register/immediate arithmetic, logical operations, memory loads/stores, branch/call/ret control flow, and calling convention preservation. -
Added synthetic guest graphics service dispatch connecting guest x86-64 execution through native ARM64 translated blocks directly to Xenora's Metal graphics pipeline (
NativeCompute::render_rgba8), producing and independently checking the first guest-rendered frame. -
Added Scale-Index-Base (SIB) memory addressing mode support to
xenora-loader's x86-64 interpreter ([base + index*scale + disp]) for general-purpose memory operand resolution. -
Added synthetic test fixture
test_sib_addressing_modeverifying SIB stack-relative memory loads and stores in software interpretation. -
Added
xenora-loadercrate providing standalone PE32+ (64-bit Portable Executable) parsing, isolated guest virtual memory with strict page permissions (Read/Write/Execute), bounded software x86-64 instruction interpreter (CpuState,Interpreter,RFlags), and read-only diagnostic triage (triage_file,triage_bytes). -
Added CLI inspect command (
xenora inspect <path>) for read-only PE32+ header and section structure examination. -
Added comprehensive integration tests verifying synthetic PE32+ image mapping, register arithmetic, stack push/pop, subroutine calls/returns, deterministic unsupported opcode rejection, memory fault on unmapped access, and execution budget enforcement.
-
Added native Metal sampler abstraction (
MetalSampler) supporting nearest-neighbor minification/magnification filtering, clamp-to-edge addressing, normalized coordinates, validated LOD bounds, and explicitSamplerDescmapping. -
Added native Metal RGBA8 2D texture allocation, mip upload validation (
MetalRgba8Texture,Rgba8MipLevel,Rgba8TextureDesc), and texture/sampler pipeline binding definitions (BoundSampledTexture,BindingSlot) for future translated shader stages. -
Added an independent pure-Rust CPU texture sampling reference for deterministic RGBA8 2D textures with nearest-neighbor filtering, normalized UV coordinates, clamp-to-edge addressing, explicit mip selection, and bounds validation.
-
Added typed texture sampler descriptors and texture metadata validation supporting nearest filtering and clamp-to-edge modes for future pipeline integration.
-
Added a persistent resource service for original fixed-base PE32+ fixtures. Generation-checked handles support buffer updates, checked submission views, and native Metal readback. Queued work captures its input across updates and slot reuse.
-
Added translated gfx1030 vertex and pixel stages for a bounded graphics subset. Original shaders exercise position export, a vertex transform, constant color and perspective interpolation in offscreen Metal pixel comparisons on Apple M5.
-
Added immutable guest texture handles for validated pitched BC1 uploads and native Metal readback. Tests cover mip levels, layers, partial edge blocks and transparency.
-
Added an acceptance matrix for persistent resources and translated graphics, with a CPU test for explicit cross-lane instruction rejection.
-
Added a synthetic PE32+ guest compute import. The guest submits a checked buffer and one-shot descriptor, then reports the result of an original gfx1030 XOR fixture translated to Metal. The Apple M5 gate checks repeatable readback, guest exit status, malformed requests and stale-handle rejection.
-
Added native Metal upload and texel readback for validated synthetic BC1 subresources. The Apple M5 fixture checks 61 RGBA8 texels across mip levels and array layers using authored Metal Shading Language.
-
Added statically known partial Wave32 execution masks for supported vector arithmetic and moves, with inactive-lane value preservation. An independent CPU decoder and an Apple M5 readback check exercise 67 values across wave boundaries.
-
Added a CPU-only synthetic tiled texture reader with checked mip and array-layer addressing and BC1 block decoding.
-
Added validated input buffer views for synthetic guest compute. An original translated gfx1030 shader read only the selected range and returned the expected bytes in a local Apple M5 test.
-
Added forward Wave32 branches on statically known execution and vector condition masks. A local Apple M5 test checked that inactive vector operations preserve the input to a later arithmetic right shift.
-
Added bounded named import resolution for an independently compiled synthetic PE32+ guest. The fixture checks guest memory transformation and guest exit status. An unresolved import fails before guest entry.
-
Added synthetic guest fixtures for service dispatch and nested function calls. The X6 fixture checks both writable guest memory and instruction retirement after loading its fixed-base PE32+ image.
-
Added a public documentation index for architecture, validation, and contributor references.
-
Added a bounded x86-64 guest interpreter on native ARM64 macOS (X1), plus a loader for original fixed-base 64-bit Portable Executable (PE32+) fixtures and an experimental add-one service (X2).
-
Added guest-to-GPU command submission for a validated synthetic compute workload (X3) and guest-driven Metal rendering to an offscreen 8×8 RGBA8 texture (X4). Independent review confirmed the compute output and every pixel for both rendering inputs on Apple M5.
-
Added a typed shader intermediate representation and Metal Shading Language generation for a bounded subset of 32-lane AMD RDNA 2 compute on the desktop gfx1030 target, with fixture validation on Apple M5. Expanded the verified vector-register-only forms to include bitwise OR and logical shifts. Arithmetic right shift passed local CPU and Metal checks, with independent acceptance still open.
-
Added independent CPU known-answer fixtures, LLVM decoder comparisons, and source and native semantic mutation checks.
-
Added an arithmetic-right-shift (ASHR) entry to the synthetic fixture provenance manifest and extended the independent CPU oracle and known-answer suite with explicit checkpoints, a positive-value control, aliasing and malformed-stream coverage for
v_ashrrev_i32_e32. -
Added a correctness-gated benchmark harness that records stage timings, power source, and thermal state.
-
Repository contribution guidelines, issue forms, pull request checklist, community expectations and security reporting policy.
Changed
-
Added native ARM64 CI and repository audits for dependency direction, claims, and generated status. Expanded CI to check the standalone guest experiment, synthetic PE fixture bytes, and progress asset consistency.
-
Made reading and updating the changelog mandatory for engineering work.
Fixed
-
Stop ignoring
fixtures/pe/trusted-runner.exe. The runner embeds it withinclude_bytes!, so ignoring the file made a fresh checkout fail to compile. -
Corrected the ARM64 STP pre-index encoder, which had a hardcoded -32-byte immediate and therefore adjusted the host stack by the wrong amount once the translator frame grew to 48 bytes. The wrong frame silently corrupted the caller's stack and caused SIGSEGV in every native translation test. Emitter encodings are now checked against LLVM's assembler, and a test asserts that each translated block opens and closes the same 48-byte frame.
-
Translated guest memory faults now stop the block before it commits further architectural effects. A faulting push, call or store leaves guest RSP and registers unchanged, the reported instruction count covers only completed work, and guest RIP identifies the faulting instruction. Previously the block continued after the helper recorded a fault, so later instructions and writes still took effect.
-
Compute the static PE probe SHA-256 from the full input, including trailing bytes.
-
Report TLS callbacks that halt or exhaust their execution budget as failures. Reject unsupported 32-bit increment and decrement forms in the native translator.
-
Reject unknown guest experiment arguments with a nonzero exit status.
-
Validate branch targets, buffer bindings, and program termination throughout a shader fixture, including instructions skipped by a resolved branch.
-
Include arithmetic right shift in fixture reassembly checks and let bootstrap continue when optional LLVM discovery fails.
-
Corrected the gfx1030 three-way comparison and rejection counts in the instruction-coverage documentation to match the current LLVM test output.
Removed
-
Removed the superseded Phase 01 continuation prompt and redundant planning instructions. Candidate verification records remain in the assurance documentation.
-
Removed the speculative seven-phase roadmap from the README.