#!/usr/bin/env bash # SPDX-License-Identifier: MIT # Rung 5: 96 random-memory scenarios in slice lockstep (20,000 instructions each, 16 per # slice): random states in every mode and both states, IRQ and FIQ raised and dropped between # instructions, exception vectors that return), and 16 mask scenarios (MSR CPSR_c changing I, # F and the mode between moves, both lines changed before almost every instruction: U14), and # 8 msrt scenarios (MSR CPSR_fc, Rm setting T, so the prefetched ARM words run as Thumb: U16); # scripts/make_scenarios.py. Every bus cycle hashed per slice and the state at every slice's # end identical to the reference's. set -euo pipefail source "$(dirname "$0")/env.sh" require_reference python3 "$ROOT/scripts/make_scenarios.py" > /dev/null python3 "$ROOT/scripts/lockstep.py" "$ROOT"/external/scenarios/fuzz-*.json "$ROOT"/external/scenarios/mask-*.json "$ROOT"/external/scenarios/msrt-*.json --reference-cache "$REFCACHE/traces" --jobs "$JOBS" --quiet