evan 1473b7ab10 tcg/wasm32: add opt-in compiled-vs-TCI per-TB differential checker
Runs authoritative TCI first, snapshots its result, rewinds guest state,
runs the compiled TB as a disposable shadow, compares GPRs/DRAM, then
restores TCI. Opt-in via wasm_diff_enable(); normal execution unchanged.

Valid comparison required restoring all state a single TB can touch:
- full CPUNegativeOffsetState (the env-8 interrupt check sits before env)
- deep CPUTLB.f[].table / d[].fulltlb per MMU mode
- and skipping async cpu_exit() force-exit races.

Only side-effect-safe candidates compared (store TB, no general helper).
Result: 160k+ store-TB comparisons during reader-open, zero divergence.
Per-TB store codegen is exonerated; corruption is emergent across TBs.
2026-07-22 16:05:41 -04:00
2024-12-03 16:09:19 +04:00
2026-07-19 21:08:45 -04:00
2024-08-13 19:01:42 +02:00
2024-12-17 14:26:42 +03:00
2026-07-19 21:08:45 -04:00
2024-07-22 09:38:16 +01:00
2026-07-19 21:57:52 -04:00
2025-01-17 09:58:21 +03:00
2025-02-26 07:41:35 +01:00
2023-12-21 22:49:27 +01:00
2023-12-21 22:49:27 +01:00
2024-10-07 16:41:58 +02:00
2026-07-19 21:08:45 -04:00
2026-07-19 21:08:45 -04:00
2024-10-07 16:41:57 +02:00
2023-12-21 22:49:27 +01:00
2023-12-21 22:49:27 +01:00
2025-02-24 08:46:48 +03:00

xteink QEMU fork

Espressif's QEMU fork carrying the xteink X3/X4 (ESP32-C3) machine model and a wasm32 TCG backend (ported from ktock/qemu-wasm), used by xteink-web-emulator to run CrossPoint firmware in the browser.

Branch

  • main — the working branch. Base is Espressif's esp-develop-9.2.2-20260417 (40edccac).

Remotes

Building

Native (parity check — authoritative)

nix develop
./configure --target-list=riscv32-softmmu --with-devices-riscv32=xteink --enable-gcrypt
ninja -C build qemu-system-riscv32

WebAssembly

Driven by the parent repo, not here:

cd ../xteink-web-emulator
make web-dev     # incremental build straight from this tree

The parent's scripts/build-qemu-wasm.sh compiles this checkout inside the emsdk Docker image defined in xteink-web-emulator/qemu/wasm/Dockerfile.

S
Description
No description provided
Readme 599 MiB
Languages
C 83.1%
C++ 6.4%
Python 3.3%
Dylan 2.8%
Shell 1.5%
Other 2.6%