# Validation: the oracles and the rung ladder Tiers (Phase 0 rules): 1 hardware-captured > 2 manufacturer documents > 3 community documents and tests that pass on real hardware > 4 HDL reimplementations > 5 emulators. A low tier is a **detector**, never a **judge**. **We hold no tier-1 oracle that we ran.** No die model or netlist of the Allegrex exists that we know of; we have no PSP. The strongest evidence is third-party hardware captures: pspautotests' `.expected` files (recorded on real PSPs over PSPLink) and vfpu-docs' reference outputs (cycle counts and compatibility tables measured on a PSP-1000 and a PSP-3000). We trust their verdicts as their authors'. **No manufacturer document of the Allegrex is public**: Sony never published one (vfpu-docs README: "Sony did not release any public documentation"); MIPS's manuals describe MIPS32, not this part. ## The oracles | Oracle | Tier | Licence | Pin | Decides | Cannot decide | | --- | --- | --- | --- | --- | --- | | pspautotests `tests/cpu/` (hrydgard and contributors) | 3 (outputs captured on hardware) | none ("TO FILL WITH THE LEAST RESTRICTIVE COMPATIBLE LICENSE"): run only, nothing committed | `d1454ea` | 56 `.expected` files: ALU, encodings (BSHFL decode), branches in delay slots, DIV, FPU (results, denormals, rounding, NaN, FCR, branch hazard), CACHE ops, LL/SC, LSU, ERET, 33 VFPU tests incl. `exact` (bit patterns of transcendentals), prefixes, overlap, hazards | timing (none of the CPU tests measure cycles); behaviour outside its cases; every test needs the PSP kernel (Kprintf), i.e. psp-python's loader or HLE | | vfpu-docs reference outputs (davidgfnet; pspdev/vfpu-docs) | 1 (captured by a third party; we did not see the runs) | GPL-3.0 data: facts only | `f283bbb` files by SHA-256 | VFPU and CPU instruction latency/throughput (PSP-3000), memory latency and throughput (PSP-1000), prefix and overlap compatibility tables | anything else | | vfpu-docs (the PDF) | 3 | GPL-3.0 document: facts only | SHA-256 `73c263e1...` | VFPU encodings, operand forms, prefixes, overlap rules, accuracy bounds, errata; Allegrex extension list | bit-exact transcendental results ("approximate"); its pseudo-C is not transcribed | | MIPS32 manuals MD00082/86/90 (0.95) and MD00086 2.50 | 2 for MIPS32, **not** for the Allegrex | MIPS, all rights reserved: facts only | SHA-256 in pinned_files.json | semantics of the shared instructions | anything Sony changed (encodings of CLZ/MADD, CP0, CACHE ops) | | YAPSPD (groepaz/hitmen, 2006) | 3 | none stated: facts only | SHA-256 `6285732e...` | CP0 register map with kernel users, segments, Allegrex-specific opcodes, cache behaviour | anything not tested; partly pasted from other documents | | Copetti's PSP article | 3 (secondary) | CC BY-4.0 | in psp-python | overview: 7 stages, caches, ME without VFPU | cite his references, not him | | ghidra-allegrex Sleigh (kotcrab) | 5 | Apache-2.0: code OK with notice | `4e46aa1` | a second reading of every encoding (VFPU included) for rung 0 | semantics; it inherits Ghidra MIPS rows the part may lack | | PPSSPP (hrydgard) | 5 | GPL-2.0+: closed box, never read | not fetched | would run pspautotests headless as a detector (its `test.py` and headless build): to be built in emu-tools-gpl if wanted | nothing as a judge; HLE kernel, no cycle model | | JPCSP | 5 | GPL-3.0: closed box | not fetched | a second HLE detector (Java) | as above | | MAME 0.285 | - | | `/usr/games/mame` | **nothing: MAME has no PSP driver and no Allegrex or MIPS32 core** (mame-oracle.md) | | | An FPGA core | 4 | | | **none exists** that we know of | | ## The rung ladder (proposed; each rung has an exit test) | Rung | Content | Exit test (judge) | | --- | --- | --- | | 0 | decode table generated from a cited transcription (isa.md table + vfpu-docs encodings); registers; a disassembler | every row decodes; disassembly agrees with ghidra-allegrex's Sleigh on a generated sweep of encodings (detector), differences listed and each settled by a document or a test | | 1 | integer ISA, delay slots, likely branches, LL/SC, unaligned loads, Allegrex extensions | pspautotests `cpu_alu/*`, `delayslot/branch`, `jump/unaligned`, `lsu/*` all match, run on psp-python's M1 (loader + Kprintf HLE) | | 2 | CP0, exceptions, interrupts, MFIC/MTIC, HALT | `cop0/eret`, `exec/exec_addr`, `crash/*`; psp-python's interrupt tests later | | 3 | CP1 | `fpu/*` (8 tests) | | 4 | caches (I and D), CACHE ops, uncached aliases | `lsu/cacheop`; `icache/icache` once its hardware status is known (U15) | | 5 | VFPU without transcendentals: loads/stores, arithmetic, prefixes, overlap, compares, conversions | the 33 `vfpu/*` tests except `exact`; prefix_compat and reg_compat tables reproduced | | 6 | VFPU transcendentals bit-exact | `vfpu/exact` (U20: the method is unknown; FITTED tables are acceptable if marked) | | 7 | timing as data | inst_cycles.txt and mem_cycles.txt reproduced within their averaging error by the same loops run on the specification | | 8 | seeded faults, each caught | one-line faults per rung (a BSHFL row swapped; a likely branch executing its slot; ERET with a delay slot; a VFPU prefix not consumed; the PSP-1000 CP1 corruption left out) | Rungs 1-7 run on psp-python's M1 board: a RAM, a PRX loader, and an HLE Kprintf. They are built together, as r3000a-python and psx-python plan to be. ## What no judge decides - The ISA's exact edges outside the tests (traps, the reserved rows: U2, U3). - How the VFPU computes its approximations (U20); a table may match `exact` without being the hardware's method. - Cycle-level pipeline effects other than those measured. - Anything about the Media Engine's instance (no test runs code on the ME).