Commit Graph
701 Commits
Author SHA1 Message Date
atharvranjan f02eb2678e Add CODEOWNERS requiring maintainer review
Signed-off-by: Arths17 <Atharvranjan8@gmail.com>
2026-11-24 21:21:45 -06:00
atharvranjan 19a905c30e Document migration archive refs as tags
Signed-off-by: Arths17 <Atharvranjan8@gmail.com>
2026-11-24 21:01:27 -06:00
atharvranjan bfe0bbfaf7 Rename project and native applications to BetterXen
Update active repository links and coordination settings while retaining upstream history, notices, legacy library names and guest interfaces. Document the independent-copy migration and its limits.

Signed-off-by: Arths17 <Atharvranjan8@gmail.com>
migration-archive-2026-11-24
2026-11-24 20:51:08 -06:00
Ranveer Soni 5442503d57 Merge pull request #421 from devil8blade/cursor/shader-cse-142
shader: opt-in IR common-subexpression elimination (#142)
2026-11-25 07:44:42 +05:30
devil8blade 0caca18634 shader: opt-in IR common-subexpression elimination (#142)
Reuse the first equivalent pure vector unary or binary when
CompileOptions::eliminate_common_subexpressions is set. The flag defaults
off, so existing output stays byte-identical. Loads, stores, constant
definitions, lane masks, merges, branches and other side-effecting or
mask-dependent ops are not reused. Constant folding still runs first.

Signed-off-by: devil8blade <360741796+devil8blade@users.noreply.github.com>
archive/pull/421/head
2026-11-24 20:49:19 -05:00
Ranveer Soni 2ea75603be Merge pull request #338 from LanaCodes-Boop/runtime/guest-clock-fixtures
loader: stop the mock clock wrapping and test time services against one clock (#204)
2026-11-25 06:56:35 +05:30
Ranveer Soni 6fc06dccff Merge branch 'main' into runtime/guest-clock-fixtures archive/pull/338/head 2026-11-25 06:56:20 +05:30
Ranveer Soni a1295d5a48 Merge pull request #331 from zachdoxsee/task/329-gate-a1
loader: add process exit and the Gate A1 compiled C program (#329)
2026-11-25 06:55:50 +05:30
Ranveer Soni 20d7b9ece4 Merge pull request #376 from GDemay/perf/105-contiguous-data-access
loader: avoid resolver allocations in guest data access
2026-11-25 06:46:38 +05:30
zachdoxsee 0929d0214b Move the changelog entry down the list
Every merge to main adds its entry at the head of the Added list, and so did
this branch, so each of those merges put this branch in conflict over one
line. The entry is unchanged; it now sits lower down, in a place of its own.

Signed-off-by: zachdoxsee <zachdoxsee36@gmail.com>
archive/pull/331/head
2026-11-25 02:14:00 +01:00
zachdoxsee 66f7127553 Merge upstream main into task/329-gate-a1
Signed-off-by: zachdoxsee <zachdoxsee36@gmail.com>
2026-11-25 02:10:46 +01:00
Ranveer Soni 714eaf49e2 Merge pull request #330 from devil8blade/cursor/shader-const-fold-141-5c9c
shader: opt-in IR constant folding with known-answer tests (#141)
2026-11-25 06:40:20 +05:30
devil8blade c93b505223 shader: opt-in IR constant folding with known-answer tests (#141)
Add CompileOptions::fold_constants and compile_with so pure vector unary
and binary ops between constants can fold after verification. Default
compile keeps the historical IR. Floating-point folding still uses the
exact positive-normal rules. Covered by hand-computed known-answer tests
and a fold-on versus fold-off check.

Signed-off-by: devil8blade <360741796+devil8blade@users.noreply.github.com>
archive/pull/330/head
2026-11-25 01:05:13 +00:00
Ranveer Soni d8f7f2cb13 Merge pull request #380 from vedantdadhich21/fix/noncanonical-address-gp
fix(loader): raise GP for non-canonical data addresses (#379)
2026-11-25 06:34:40 +05:30
Ranveer Soni 042c08c855 Merge pull request #337 from zachdoxsee/task/333-pe-headers
loader: map the PE headers at the image base (#333)
2026-11-25 06:33:39 +05:30
Ranveer Soni 7e4ccd1e97 Merge pull request #316 from soggyramennoodle/feat/runtime-fuzz-bench
Runtime fuzzing, dispatch benchmarks, CRT string scans and MSVC name decoding
2026-11-25 06:32:53 +05:30
Ranveer Soni 96c772edc5 Merge pull request #398 from maridogolpeador/loader/121-shld-shrd
loader: add SHLD and SHRD, the double-precision shifts (#121)
2026-11-25 06:31:45 +05:30
zachdoxsee 496938aef4 Merge upstream main into task/333-pe-headers
Signed-off-by: zachdoxsee <zachdoxsee36@gmail.com>
archive/pull/337/head
2026-11-25 01:56:51 +01:00
zachdoxsee 9d94c0f40a Merge upstream main into task/329-gate-a1
Signed-off-by: zachdoxsee <zachdoxsee36@gmail.com>
2026-11-25 01:56:40 +01:00
zachdoxsee 4e18000798 Merge upstream main into task/329-gate-a1
Signed-off-by: zachdoxsee <zachdoxsee36@gmail.com>
2026-11-25 01:56:31 +01:00
Ranveer Soni 8c188b04c9 Merge pull request #377 from katherinebytes/codex/cpu-differential-corpus
Test 524 seeded x86-64 programs on the interpreter and native DBT
2026-11-25 06:24:35 +05:30
Ranveer Soni 9eb75522f0 Merge pull request #375 from Arths17/test/194-c7-immediate-store
test: add known answers for C6 and C7 immediate stores (#194)
2026-11-25 06:23:04 +05:30
Ranveer Soni 3f41f7406b Merge pull request #339 from jelly013/phase3b-runtime
runtime: add a deterministic guest thread scheduler (#323, part 1)
2026-11-25 06:22:00 +05:30
maridogolpeador 67023d292b loader: add SHLD and SHRD, the double-precision shifts (#121)
Both engines refused SHLD and SHRD (0F A4/A5, 0F AC/AD) as illegal
instructions. They are now declared in the x86 registry and run on the
shared semantics for 16-, 32- and 64-bit register and memory
destinations, with the count in an 8-bit immediate or in CL.

- instructions.toml, x86_table.rs (generated), generate_x86.py,
  x86_decode.rs: the two operations and two operand encodings,
  rm_reg_imm and rm_reg_cl (ModRM destination, reg source, count).
- x86_exec.rs: the destination is shifted with the vacated bits filled
  from the source register. The count is masked to five bits (six for
  64-bit operands), a masked count of zero changes nothing, CF takes the
  last bit shifted out, ZF/SF/PF follow the result and OF is set only
  for a count of one. A 16-bit count above 16 is undefined in the SDM;
  the flags are kept and no test relies on the result.
- cpu_known_answers.rs: eight SDM-derived cases move from refused to
  verified.
- tests/x86: 72 assembled SHLD and SHRD instructions, with a
  bit-at-a-time reference in x86_integer.rs. A destination the
  reference marks undefined now skips the memory operand check too.
- docs/cpu/instruction-registry.md, CHANGELOG.md.

Nothing is lowered to ARM64.

Signed-off-by: maridogolpeador <354308468+maridogolpeador@users.noreply.github.com>
archive/pull/398/head
2026-11-24 20:47:45 -03:00
Adeeb Rahman 324eab08c3 Merge remote-tracking branch 'origin/main' into feat/runtime-fuzz-bench
Signed-off-by: Adeeb Rahman <therealabeeb@icloud.com>
archive/pull/316/head
2026-11-24 18:32:27 -05:00
Guillaume Demay 7d28fc89de loader: avoid resolver allocations for contiguous data access
Signed-off-by: Guillaume Demay <guillaumedemay@hotmail.fr>
archive/pull/376/head
2026-11-24 22:56:32 +01:00
Vedant Dadhich 9a29bd9c37 fix(loader): raise GP for non-canonical data addresses
Check canonical 48-bit address ranges in shared interpreter accesses, 16-byte SIMD paths, and every native DBT memory helper. Enable and expand the architectural known-answer group across operand widths, vector accesses, segment-base wrapping, boundary crossings, and valid canonical endpoints.

Signed-off-by: Vedant Dadhich <vedantdadhich21@gmail.com>
archive/pull/380/head
2026-11-25 03:21:14 +05:30
jelly013 38359969cd Merge main into phase3b-runtime
Signed-off-by: jelly013 <22855910+jelly013@users.noreply.github.com>
archive/pull/339/head
2026-11-24 22:44:09 +01:00
zachdoxsee 652c6ae02f Merge upstream main into the C6/C7 immediate-store tests branch
Conflict in CHANGELOG.md only: both new entries are kept.

Signed-off-by: zachdoxsee <zachdoxsee36@gmail.com>
archive/pull/375/head
2026-11-24 22:24:27 +01:00
zachdoxsee 0529c62226 Merge upstream main into task/333-pe-headers
Any conflict was in CHANGELOG.md, where every entry is kept.

Signed-off-by: zachdoxsee <zachdoxsee36@gmail.com>
2026-11-24 22:24:13 +01:00
zachdoxsee e6fa931264 Merge upstream main into task/329-gate-a1
Any conflict was in CHANGELOG.md, where every entry is kept.

Signed-off-by: zachdoxsee <zachdoxsee36@gmail.com>
2026-11-24 22:24:13 +01:00
Zach Doxsee 3b47c21bb0 Merge pull request #348 from 1Bartosz/cpu/195-adc-sbb-dbt
loader: run ADC and SBB register and immediate forms natively in the DBT (#195)
2026-11-24 22:20:44 +01:00
Zach Doxsee 9a62d86a89 Merge pull request #362 from katherinebytes/codex/metal-compute-pipeline-cache
Reuse bounded Metal compute pipelines
2026-11-24 22:20:29 +01:00
Zach Doxsee 4b32c532fe Merge pull request #370 from vedantdadhich21/fix/portable-gpu-timeout
Scripts: run GPU tests without GNU timeout
2026-11-24 22:20:20 +01:00
katherinebytes bd46504a97 Add a seeded CPU differential corpus
Signed-off-by: katherinebytes <rebooteduck+kr@gmail.com>
archive/pull/377/head
2026-11-24 21:11:03 +00:00
zachdoxsee cc4dd092cf Merge upstream main into task/333-pe-headers
Any conflict was in CHANGELOG.md, where every entry is kept.

Signed-off-by: zachdoxsee <zachdoxsee36@gmail.com>
2026-11-24 22:01:29 +01:00
zachdoxsee 04ee981103 Merge upstream main into task/329-gate-a1
Any conflict was in CHANGELOG.md, where every entry is kept.

Signed-off-by: zachdoxsee <zachdoxsee36@gmail.com>
2026-11-24 22:01:29 +01:00
Zach Doxsee bbc84c0da0 Merge pull request #373 from 1Bartosz/bench/112-json-export
bench: export dbt_bench results as JSON (#112)
2026-11-24 21:57:25 +01:00
Bartosz Szczepański d2f77cdea3 Merge upstream main into cpu/195-adc-sbb-dbt
Signed-off-by: Bartosz Szczepański <bartosz.szczepanski@hotmail.com>
archive/pull/348/head
2026-11-24 21:55:01 +01:00
Zach Doxsee 3a36379db4 Merge pull request #342 from Swastickc/qa/cpu-test-selection-159
qa: measure CPU test runtime and add deterministic test-target shards (#159)
2026-11-24 21:53:45 +01:00
Zach Doxsee 147e2a9f1a Merge pull request #372 from GDemay/perf/104-allocation-free-fetch
loader: avoid allocations when fetching instruction bytes
2026-11-24 21:53:30 +01:00
katherinebytes a7fa8b0d65 Retry the ARM64 CI run
Signed-off-by: katherinebytes <rebooteduck+kr@gmail.com>
archive/pull/362/head
2026-11-24 20:47:35 +00:00
zachdoxsee fd0e73bc28 Merge upstream main into task/333-pe-headers
Conflict in CHANGELOG.md only: every entry is kept.

Signed-off-by: zachdoxsee <zachdoxsee36@gmail.com>
2026-11-24 21:43:49 +01:00
zachdoxsee 35de41bd5f Merge upstream main into task/329-gate-a1
Conflict in CHANGELOG.md only: every entry is kept.

Signed-off-by: zachdoxsee <zachdoxsee36@gmail.com>
2026-11-24 21:43:49 +01:00
Zach Doxsee e6b657a2e9 Merge pull request #341 from sahib453/task/175-page-boundary-faults
loader: report the first inaccessible byte of a page-crossing guest fault (#175)
2026-11-24 21:43:08 +01:00
Zach Doxsee c05e631c6d Merge pull request #343 from sahib453/task/78-tls-callback-metadata
loader: reject malformed TLS callback metadata and unusable callback stacks (#78)
2026-11-24 21:42:51 +01:00
atharvranjan 6bac25f099 test: add known answers for C6 and C7 immediate stores (#194)
Covers byte to qword widths, SIB and displacement forms, imm32 sign extension, register forms and store faults. Both engines already agree.

Signed-off-by: Arths17 <Atharvranjan8@gmail.com>
2026-11-24 14:35:48 -06:00
Zach Doxsee 34a583b101 Merge pull request #356 from sahib453/task/76-tls-pointer-array
loader: give the thread a TLS pointer array separate from its data (#76)
2026-11-24 21:32:15 +01:00
Bartosz Szczepański 061c28b405 bench: export dbt_bench results as JSON (#112)
dbt_bench printed its results only as text. With
XENORA_DBT_BENCH_JSON=<path> set it now also writes one JSON document:
host CPU, OS and architecture, git revision and dirty state, debug
assertions, the workload and sample counts, median, min, max, p95, p99,
IQR and MIPS for the interpreter and cold and warm DBT, and the cold
DBT counters. Values the benchmark cannot determine are null.

The statistics are computed once in a Summary that feeds both the text
line and the JSON, so the two cannot disagree. The text output and the
timed work are unchanged, and no dependency is added.

Unit tests cover string escaping, null handling, the whole document for
fixed inputs and the text line format.

Signed-off-by: Bartosz Szczepański <bartosz.szczepanski@hotmail.com>
archive/pull/373/head
2026-11-24 21:22:58 +01:00
zachdoxsee 3b52215a30 Merge upstream main into task/175-page-boundary-faults
Conflict in CHANGELOG.md only: both new entries are kept.

Signed-off-by: zachdoxsee <zachdoxsee36@gmail.com>
archive/pull/341/head
2026-11-24 21:20:41 +01:00