Source map and documentation index
The core chapters and original documentation index below retain the FastDyn baseline f9666d7f518c373e89831d8e14a6371a27fe6436. The JIT patcher and manual inline lab use 5b8bf3ddb01d63a4d5f86701d358e390a950cb9c. Automatic MMIO, current runtime fast paths, and secondary execution are reviewed at e44dca2edbc3b32cb1f2a48d3d0be203bd9b5576. Tempo uses 771b99650004fcbf3ab216970cf8fd9fae91aa6c. The Supercache optimizer uses FastDyn scopt at 124699db203aae581735b4bdfb82e9b949332405 with QEMU 934890ed5119ef70da69276991d921573f23ed4f; the earlier cache-reuse chapter retains its separate frontend/backend pair. FirmBOLT uses FastDyn firmbolt at b14f14cb4992d28d56cda5e73685a5f7c432c5cf, with the tracked extension over LLVM/BOLT 7864c0736a8a09670dfbfc513f1e9649799f2486. Links identify the recorded revision so a later change to main does not silently change the evidence behind an explanation.
The book organizes the material by reader workflow and system boundary. The original pages, target-specific notes, and example assets remain useful for detailed port work. A mapping below identifies the new chapter that explains the topic; it does not mean every historical command or measured result has been repeated or revalidated.
How to establish current behavior
Use the implementation and shipped configurations at the recorded revision to determine supported interfaces and defaults. Tests identify intended contracts and meaningful validation paths. Actual run records establish whether a particular build and experiment passed them. The presence of a test or workflow is not a passing result.
Where earlier documentation differs from current code, this book follows the inspected implementation. Its chapters and source mappings cover available interfaces, their prerequisites, and the limits established by code and validation evidence.
FastDyn's submodules have their own revisions. The top-level revision pins their gitlinks; check those recorded commits before attributing behavior from a newer upstream QEMU, LibVIO, Rumoca, or model library to this snapshot.
Advanced execution sources
| Book chapter | Implementation sources and scope |
|---|---|
| Supercache | Separately pinned QEMU Supercache implementation and PX4 frontend cache-management code. The chapter distinguishes these from main's older QEMU gitlink. |
| Supercache optimizer | FastDyn scopt at 124699d: offline workflow, host-inline pass, native BOLT bridge, and the matching runtime source lock. The chapter records artifact identity, pass admission, publication checks, and validation scope. |
| FirmBOLT | FastDyn firmbolt at b14f14c: direct Cortex-M/Thumb BOLT extension, native firmware report pass, Cortex-M qualification runner, and firmware wrapper. The chapter separates the direct firmware rewrite path, publication contracts, consumer-specific validation, and source-recorded measurements. |
| Inline device modeling | Main 5b8bf3d access-map preparation, native LOAD_IO/STORE_IO registration, GPIO backing state, and the pinned QEMU lowering. This is the existing manual mechanism. |
| Automatic MMIO optimization | At e44dca2: AutomaticMMIOOptimization.md, model extractor, native binding, and QEMU replacement patch. The chapter records the experimental workflow, correctness fixes, and current limits. |
| Shared access discovery | The a38af40 constant-propagation service, session integration, and MMIO compatibility adapter. Plugins filter shared candidates and own their installation policy. |
| JIT patcher | GuestInstructionFragments.md, native SDK, tracked QEMU patch, and shipped plugin/probes at 5b8bf3d. |
| Translation insertion design | Implemented address, lifecycle, admission, and observation contracts for guest instruction fragments; retained at its original URL. |
| Runtime fast paths | At e44dca2, the MMIO saved-PC callback and ARM32 constant-PC chaining implementations, matching QEMU overlays, regressions, and recorded benchmarks. |
| FastDyn as a secondary simulator | At e44dca2, BudgetMaster, lockstep controller, the QEMU budget patch, native exact-mode option handling, and the RLC world fixture. |
| Tempo | At 771b996, federation compilation, native scheduling, Python/TOML configuration, mock participants, and trace/reset behavior. |
The source guides in these chapters pin the exact files used. Check each chapter's revision and prerequisites before combining its commands with another checkout, especially for separately versioned backends and branch-only features.
Earlier pages in docs/
The following pages in the original f9666d7 snapshot's docs/ directory provide background for implemented interfaces. The newer execution mechanisms are mapped in the Advanced table above.
| Original source | New book chapter | Material to retain |
|---|---|---|
| ActivityMonitor.md | RTOS introspection | Activity events, monitor configuration, and observation workflow. |
| Building.md | Installation | Source builds, optional components, and model-build installation. |
| BuildingAConfig.md | Configure a firmware | ELF-to-config and guided discovery. |
| ClassicDeviceModel.md | Device models | Classic backend entry point. |
| CoSimulationOverview.md | Multiple firmwares | Coordination, model coupling, and clock boundaries. |
| CoSimulationSlave.md | Multiple firmwares | QMP budget protocol, slices, and stop semantics. |
| CodingConventions.md | Virtual plugins, testing | Source conventions, SDK boundaries, and contributor expectations. |
| Configuration.md | Configuration reference | Tables, runtime options, paths, and environment overrides. |
| ElderScrollDeviceModel.md | Writing a model | Native model libraries and device callbacks. |
| FastDynDeviceModel.md | Device models | Handler families and their role in a run. |
| FastDyn_STR_Integration.md | Fuzzing, CLI | Integration inputs, schema concepts, and campaign artifacts; check examples against the current schema parser. |
| FlightControllerSimulation.md | Flight controllers | Vehicle runs, mission helpers, visualization, and parallel campaigns. |
| FunctionCounterPlugin.md | Tracing and sanitizers | Function selection, entry counts, and output artifacts. |
| FunctionTracerPlugin.md | Tracing and sanitizers | Function-entry and argument observation. |
| Fuzzing.md | Fuzzing | Native input fuzzing and OptiFuzz workflow selection. |
| HostAnalysisAPI.md | Host analysis | Shared image, symbol, DWARF, and decoder contracts. |
| HostAnalysisMigration.md | Host analysis | Extraction inventory, consumers, deliberate non-migrations, and historical verification records. |
| HostAnalysisRuntimeGuide.md | Host analysis | Preparation-time use, sessions, and division between reusable facts and plugin policy. |
| IntrospectionExamples.md | RTOS introspection | Bundled RTOS fixture configurations. |
| ObjectSan.md | Tracing and sanitizers | Object selection, static/dynamic checks, and supported analysis scope. |
| PassthroughDeviceModel.md | Hardware and traces | Physical-board access entry point. |
| PlatformBrowser.md | Configure a firmware, CLI | Architecture presets and SVD platform discovery. |
| RunningFastDyn.md | First experiment, debugging | Run lifecycle, output directory, and logging. |
| VariableWatch.md | Tracing and sanitizers | Symbolic and raw-range data-access observation. |
| VirtualPluginBrowser.md | Plugin catalog, CLI | Discoverable virtual/plugin choices. |
| VirtualPreprocessing.md | Virtual plugins | Preparation contexts, results, generated artifacts, and collisions. |
| VirtualsAndModifiers.md | Virtuals and modifiers | User syntax, built-in actions, and translation/runtime distinction. |
| WorldPlugin.md | World models | Implemented endpoints, pin hooks, advancement, and observers. |
| WritingVirtuals.md | Virtual plugins | Adding native and host halves, registering modules, and testing. |
| chaos.md | Fuzzing | Task-loop execution controls and coverage mechanisms, checked against the runtime implementation. |
Specialized READMEs and fixture guides
These links preserve the concrete entry points that a broad chapter cannot replace.
| Source guide | New book chapter | Specific purpose |
|---|---|---|
| Repository README | Welcome, installation | Project entry point and repository quick start. |
| Runtime SDK | Virtual plugins | Public native operations, architecture headers, and complete module examples. |
| Fuzzer implementation | Fuzzing | Native backends and protocol-harness entry points. |
| LibAFL library | Fuzzing, installation | Rust backend and older container workflow. |
| OptiFuzz/CP-Explore | Fuzzing | Parameters, physical properties, vehicle selection, and campaign outputs. |
| Generic schema | Fuzzing | Complete field, expression, stream, hook, and flow grammar. |
| Physics integration | Physics and FMU, flight controllers | Maintained FMU path, timing, and legacy backend notes. |
| Physics backend contract | Physics and FMU | Native backend boundary and backend implementations. |
| Legacy high-fidelity altimeter | Physics and FMU | OpenModelica/FMI 2 harness; it cannot directly load an FMI 3 model. |
| Courbet | Flight controllers | Firmware profiles, MAVLink helpers, mission assets, and local tests. |
| PX4 FMUv6C | Flight controllers | Console initialization, UART bridging, and the specific PX4 profile. |
| Rover 4.6.2 | Flight controllers | Title-only port stub; inspect its surrounding assets and the active config. |
| Rover lidar variant | Flight controllers | Title-only variant stub; it is not a complete verified walkthrough. |
| Rover fuzzing variant | Fuzzing | Title-only historical port stub; follow the current campaign interfaces. |
| ELF-to-config | Configure a firmware | Metadata extraction, hints, and reviewable configuration generation. |
| Ghidra launcher | Debugging | Repository-provided GDB launcher integration for a matching Ghidra project. |
| Unit tests | Testing and reproducibility | Python test commands and conventions. |
| Integration tests | Testing and reproducibility | Native execution, RTOS, vehicle, and swarm checks. |
| STM32F429I FreeRTOS fixture | Testing, introspection | Two task-owned LED counters and the fixture build. |
| Raw firmware fixtures | Testing and reproducibility | Raw conversion commands and the metadata discarded by that format. |
| Idle hardware firmware | Hardware and traces | Board-side interrupt servers, prebuilt images, and the IRQ-number contract. |
Recent implementation guides
The post-core changes reviewed at FastDyn e44dca2 have dedicated source notes: automatic MMIO and six-case regressions, MMIO saved-PC callback contract and recorded benchmark, and ARM32 constant-PC chaining and recorded benchmark. The book maps these to Automatic MMIO, hot-path optimizations, and testing. Older core-source links in the map intentionally remain pinned to their original f9666d7 baseline.
Find the owning implementation
| Location | Start here when changing or checking |
|---|---|
src/fastdyn/main.py | Command names, Click options, and CLI defaults. |
src/fastdyn/runner.py, runtime_config.py | Run preparation, helper lifecycle, work directories, and profiling configuration. |
src/fastdyn/toml_parser.py, targets/qemu_target.py | TOML consumption, path resolution, QEMU options, and generated native rules. |
src/fastdyn/virtual_preprocessing.py | Host extension discovery, preparation contexts, and rule validation. |
src/fastdyn/host/ | Reusable immutable-image analysis; plugin-specific policies stay with their consumer. |
core/core.c | Translation instrumentation, dispatch infrastructure, coverage producer/consumer behavior, and core lifecycle. |
include/fastdyn_runtime.h, include/fastdyn/arch/ | Native SDK contracts and target register/ABI constants. |
include/fastdyn/device_model.h, device_models/ | Device ABI, routing, model-family implementations, and hardware sessions. |
configs/ | Concrete user settings and examples; inspect placeholder paths and feature prerequisites. |
virtuals/<feature>/host/, runtime/ | A feature's preprocessing policy, manifest, native behavior, and outputs. |
virtuals/physics/ | Physics backends, vehicle adapters, Courbet profiles, and mission assets. |
virtuals/fuzzer/ | Native fuzzing lifecycle, schemas, input backends, and OptiFuzz. |
tests/unit/, tests/integration/ | Expected contracts and executable validation boundaries. |
tests/firmwares/, tests/binaries/ | Fixture source and image identity behind smoke tests. |
tools/, utils/ | Configuration generation, binary utilities, co-simulation controllers, reports, and optional tool integrations. |
.gitmodules, third_party/ | Dependency ownership and pinned source boundaries. tools/raw2elf and tools/world are also submodules. |
setup.sh, scripts/setup/, Makefile, meson.build | What a build actually enables and how dependencies are selected. |
Use rg from the FastDyn repository root to follow a feature across its layers:
rg --files src core include configs tests virtuals tools utils
rg -n 'register_run_preprocessor|VIRTUAL_PLUGIN' src virtuals tests/plugins
rg -n 'timer_irq_period_ns|exact_budget_stop' src core include configs virtuals
rg -n 'fuzzing_schema|schema_load' src virtuals
Begin with the user-facing configuration, find where the parser consumes it, follow the generated artifact or native argument, and then read the runtime consumer. Finally, check tests for the precise boundary the repository exercises. This makes it easier to spot a stale example, an unsupported field, or an implementation detail that should not be advertised as a portable contract.