Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Skip to content
BoardRunner

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 chapterImplementation sources and scope
SupercacheSeparately pinned QEMU Supercache implementation and PX4 frontend cache-management code. The chapter distinguishes these from main's older QEMU gitlink.
Supercache optimizerFastDyn 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.
FirmBOLTFastDyn 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 modelingMain 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 optimizationAt e44dca2: AutomaticMMIOOptimization.md, model extractor, native binding, and QEMU replacement patch. The chapter records the experimental workflow, correctness fixes, and current limits.
Shared access discoveryThe a38af40 constant-propagation service, session integration, and MMIO compatibility adapter. Plugins filter shared candidates and own their installation policy.
JIT patcherGuestInstructionFragments.md, native SDK, tracked QEMU patch, and shipped plugin/probes at 5b8bf3d.
Translation insertion designImplemented address, lifecycle, admission, and observation contracts for guest instruction fragments; retained at its original URL.
Runtime fast pathsAt e44dca2, the MMIO saved-PC callback and ARM32 constant-PC chaining implementations, matching QEMU overlays, regressions, and recorded benchmarks.
FastDyn as a secondary simulatorAt e44dca2, BudgetMaster, lockstep controller, the QEMU budget patch, native exact-mode option handling, and the RLC world fixture.
TempoAt 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 sourceNew book chapterMaterial to retain
ActivityMonitor.mdRTOS introspectionActivity events, monitor configuration, and observation workflow.
Building.mdInstallationSource builds, optional components, and model-build installation.
BuildingAConfig.mdConfigure a firmwareELF-to-config and guided discovery.
ClassicDeviceModel.mdDevice modelsClassic backend entry point.
CoSimulationOverview.mdMultiple firmwaresCoordination, model coupling, and clock boundaries.
CoSimulationSlave.mdMultiple firmwaresQMP budget protocol, slices, and stop semantics.
CodingConventions.mdVirtual plugins, testingSource conventions, SDK boundaries, and contributor expectations.
Configuration.mdConfiguration referenceTables, runtime options, paths, and environment overrides.
ElderScrollDeviceModel.mdWriting a modelNative model libraries and device callbacks.
FastDynDeviceModel.mdDevice modelsHandler families and their role in a run.
FastDyn_STR_Integration.mdFuzzing, CLIIntegration inputs, schema concepts, and campaign artifacts; check examples against the current schema parser.
FlightControllerSimulation.mdFlight controllersVehicle runs, mission helpers, visualization, and parallel campaigns.
FunctionCounterPlugin.mdTracing and sanitizersFunction selection, entry counts, and output artifacts.
FunctionTracerPlugin.mdTracing and sanitizersFunction-entry and argument observation.
Fuzzing.mdFuzzingNative input fuzzing and OptiFuzz workflow selection.
HostAnalysisAPI.mdHost analysisShared image, symbol, DWARF, and decoder contracts.
HostAnalysisMigration.mdHost analysisExtraction inventory, consumers, deliberate non-migrations, and historical verification records.
HostAnalysisRuntimeGuide.mdHost analysisPreparation-time use, sessions, and division between reusable facts and plugin policy.
IntrospectionExamples.mdRTOS introspectionBundled RTOS fixture configurations.
ObjectSan.mdTracing and sanitizersObject selection, static/dynamic checks, and supported analysis scope.
PassthroughDeviceModel.mdHardware and tracesPhysical-board access entry point.
PlatformBrowser.mdConfigure a firmware, CLIArchitecture presets and SVD platform discovery.
RunningFastDyn.mdFirst experiment, debuggingRun lifecycle, output directory, and logging.
VariableWatch.mdTracing and sanitizersSymbolic and raw-range data-access observation.
VirtualPluginBrowser.mdPlugin catalog, CLIDiscoverable virtual/plugin choices.
VirtualPreprocessing.mdVirtual pluginsPreparation contexts, results, generated artifacts, and collisions.
VirtualsAndModifiers.mdVirtuals and modifiersUser syntax, built-in actions, and translation/runtime distinction.
WorldPlugin.mdWorld modelsImplemented endpoints, pin hooks, advancement, and observers.
WritingVirtuals.mdVirtual pluginsAdding native and host halves, registering modules, and testing.
chaos.mdFuzzingTask-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 guideNew book chapterSpecific purpose
Repository READMEWelcome, installationProject entry point and repository quick start.
Runtime SDKVirtual pluginsPublic native operations, architecture headers, and complete module examples.
Fuzzer implementationFuzzingNative backends and protocol-harness entry points.
LibAFL libraryFuzzing, installationRust backend and older container workflow.
OptiFuzz/CP-ExploreFuzzingParameters, physical properties, vehicle selection, and campaign outputs.
Generic schemaFuzzingComplete field, expression, stream, hook, and flow grammar.
Physics integrationPhysics and FMU, flight controllersMaintained FMU path, timing, and legacy backend notes.
Physics backend contractPhysics and FMUNative backend boundary and backend implementations.
Legacy high-fidelity altimeterPhysics and FMUOpenModelica/FMI 2 harness; it cannot directly load an FMI 3 model.
CourbetFlight controllersFirmware profiles, MAVLink helpers, mission assets, and local tests.
PX4 FMUv6CFlight controllersConsole initialization, UART bridging, and the specific PX4 profile.
Rover 4.6.2Flight controllersTitle-only port stub; inspect its surrounding assets and the active config.
Rover lidar variantFlight controllersTitle-only variant stub; it is not a complete verified walkthrough.
Rover fuzzing variantFuzzingTitle-only historical port stub; follow the current campaign interfaces.
ELF-to-configConfigure a firmwareMetadata extraction, hints, and reviewable configuration generation.
Ghidra launcherDebuggingRepository-provided GDB launcher integration for a matching Ghidra project.
Unit testsTesting and reproducibilityPython test commands and conventions.
Integration testsTesting and reproducibilityNative execution, RTOS, vehicle, and swarm checks.
STM32F429I FreeRTOS fixtureTesting, introspectionTwo task-owned LED counters and the fixture build.
Raw firmware fixturesTesting and reproducibilityRaw conversion commands and the metadata discarded by that format.
Idle hardware firmwareHardware and tracesBoard-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

LocationStart here when changing or checking
src/fastdyn/main.pyCommand names, Click options, and CLI defaults.
src/fastdyn/runner.py, runtime_config.pyRun preparation, helper lifecycle, work directories, and profiling configuration.
src/fastdyn/toml_parser.py, targets/qemu_target.pyTOML consumption, path resolution, QEMU options, and generated native rules.
src/fastdyn/virtual_preprocessing.pyHost extension discovery, preparation contexts, and rule validation.
src/fastdyn/host/Reusable immutable-image analysis; plugin-specific policies stay with their consumer.
core/core.cTranslation 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.buildWhat 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.