# Provenance sh2-rust is MIT (LICENSE). Its one source is **sh2-python** at `8824075` (MIT, the same author): every file of `src/` transcribes the reference's file of the same name (bus.py, _module.py, state.py, cpu.py, _core.py, pipeline.py, _decode.py, the seven instruction families, the ten on-chip modules, disasm.py, harness.py), keeping its comments and their evidence tags (DOC, OBSERVED, HYPOTHESIS, the HM/PM sections, the U and C items of its docs/undocumented-behavior.md). Behaviour was neither added nor fixed here; the one place the reference's behaviour looked wrong is reported upstream with a repro (docs/requests.md), not changed. | Piece | From | Licence | Verdict | | --- | --- | --- | --- | | `src/*.rs` (core) | sh2-python `src/sh2_python/*.py` at the pin | MIT | clean | | `src/decode.rs`, `src/dispatch.rs` | generated by `scripts/gen_decode.py` from the reference's `_decode.py` (itself generated from PM table A.50 and table 7.2) | MIT; Hitachi manual facts | clean | | `src/bench.rs` | the reference's `benchmarks/harness_speed.py` | MIT | clean | | `src/bin/sh2-corpus.rs` | the reference's `validation/rung1/corpus.py` `run_core` and `gate.py check` | MIT | clean | | `src/bin/sh2-replay.rs` | the reference's `validation/rung2/replay.py` | MIT | clean | | `scripts/*` | written here; the generators import the reference's tests and validation modules at run time | MIT | clean | Sources **not** opened, fetched or run for this work: PicoDrive, Yabause, Kronos, Mednafen, Ymir, jgenesis, MAME's source (GPL or not), the MiSTer SH-2 RTL. MAME's facts reach this repository only as the reference's comments (its NOTICE, carried in ours). MAME 0.285's traces of four 32X cartridges are read at run time from the reference's machine-local `tests/mame_traces` (`SH2_MAME_TRACES`): emulator output made from the user's own cartridges, never committed. Checked against /data/emu/emulator-lineage/docs/sources.md (2026-11-25): no source used here is in it as restricted; nothing new to add (the only source is sh2-python). Every code file carries `SPDX-License-Identifier: MIT` in its first lines.