#!/usr/bin/env bash # SPDX-License-Identifier: MIT # Rung 6 (this crate's): the trace lockstep. Every scenario runs on both cores # and the two boundary traces (kind, cycles, instruction bytes, the whole state # before and after, every bus cycle with its address, value and pins) must be # identical byte for byte: the interrupt workouts and random-memory programs # under random IRQ, NMI, ABORT, reset and RDY requests between steps and inside # cycles (conformance/scenarios/), and gilyon's and krom's ROMs in the harness # from reset to their own end (external/scenarios/, made from $W65C816_PYTHON's # reference/). The reference's digests are cached per pin. ROMS=0 skips the ROMs. set -euo pipefail source "$(dirname "$0")/env.sh" require_reference export W65C816_PYTHON python3 "$ROOT/scripts/make_scenarios.py" --roms scenarios=("$ROOT"/conformance/scenarios/*.json) if [ "${ROMS:-1}" = 1 ]; then scenarios+=("$ROOT"/external/scenarios/rom-*.json) fi python3 "$ROOT/scripts/lockstep.py" "${scenarios[@]}" --python "$REFERENCE_PYTHON" \ --reference-cache "$REFERENCE_CACHE/traces" --jobs "${JOBS:-4}" echo "rung 6: passed"