Purpose and scope
This unit defines the complete typed TrapContext snapshot used to preserve recoverable execution state across trap handling.
The record shape is centralized so capture and restore owners operate on the same state bundle.
PTO-ARCH-DATA-TYPES-TRAP-CONTEXTThe complete ASL owner is shown directly below.
// PTO-UNIT: {"id":"PTO-ARCH-DATA-TYPES-TRAP-CONTEXT","surface":"arch","classification":["data-types","trap-context"],"depends_on":["PTO-TILE-MODEL-STATE-TYPES"]}type TrapContext of record { valid: boolean, source_acr: AccessControlRing, tpc: Word, bpc: Word, core_state: Word, bundle_argument: Word, commit_argument: Word, bundle_active: boolean, bundle_body_active: boolean, bundle_commit_target_set: boolean, bundle_condition_set: boolean, system_block_terminal_pending: boolean, barg: BundleArgumentRegister, bundle_sequential_pc: Word, frame_stack_return_target: Word, return_address: Word, bundle_argument_kind: bits(3), bundle_operation: BundleOperationDescriptor, bundle_dimensions: BundleDimensionSnapshot, bundle_dimension_present: BundleDimensionPresenceSnapshot, bundle_scalar_bindings: BundleScalarBindingSnapshot, bundle_tile_bindings: BundleTileBindingSnapshot, bundle_shared_bindings: BundleSharedBindingSnapshot, bundle_range_group: BundleRangeGroupState, bundle_zero_participation_seen: boolean, bundle_control_attributes: BundleControlAttributes, bundle_data_attributes: BundleDataAttributes, bundle_data_attributes_present: boolean, bundle_hint: BundleHintAttributes, bundle_fixed_point_attributes: BundleFixedPointAttributes, local_generations: LocalGenerationSnapshot, shared_generations: SharedGenerationSnapshot, bundle_execution_domain_token: integer, memory_copy_template: MemoryCopyTemplateState, frame_template: FrameTemplateState, t_queue: TemporaryQueueSnapshot, t_queue_valid: TemporaryQueueValiditySnapshot, u_queue: TemporaryQueueSnapshot, u_queue_valid: TemporaryQueueValiditySnapshot, predicates: PredicateSnapshot};
This unit defines the complete typed TrapContext snapshot used to preserve recoverable execution state across trap handling.
The record shape is centralized so capture and restore owners operate on the same state bundle.
AccessControlRing, tpc, bpc, core state, bundle and commit arguments, and bundle-active flags.T/U queues with validity snapshots, predicate state, return targets, and the bundle execution-domain token.valid states whether the record contains a restorable context; the record type itself does not perform capture or restore.
Presence flags remain explicit for condition, commit target, data attributes, and bundle dimensions rather than being inferred from payload contents.
Queue values and queue-validity arrays are separate fields, preserving readiness independently from stored words.
This type declaration does not define trap routing, cause values, capture timing, or restore legality. Those behaviors remain in trap-state and recovery owners.
The record must not be read as permission for nested bundle execution; it snapshots the existing one-level architecture state.
A saved context can retain bundle_data_attributes_present = FALSE while still carrying the typed data-attribute field; restore logic uses the explicit presence bit.
To understand what is captured on a fault, combine this record layout with the current trap capture/restore ASL; the record alone does not specify the transition.
Bodies come from owning ASL. Dragging or buttons change only this page-session view order.
No NDF clause is attached to this unit.
10 matching entries
PTO-AVS-ARCH-DATA-TYPES-TRAP-CONTEXT-STATIC-001tests/asl/arch/data-types/trap-context/arch-static-trap-context-contract-001.asl8f81b3527f9f020f731c28ce663ba3a8a7a62f8e7275a0050e2b665d81f018aaPTO-AVS-ARCH-TESTVISIBLETRAPCONTEXTREGISTERS-FAULT-001tests/asl/arch/data-types/trap-context/arch-fault-visible-registers-001.asle18b49d4f3437f3d5906b1b1f24a24a38c353c3ab169354c796952d5c5b93b9cPTO-EVIDENCE-RELEASE-TRACEABILITYPTO-EVIDENCE-RELEASE-TRACEABILITYspec/evidence/release-traceability-readiness.jsonc7327021d39dc67ac5564bc55073b3870a397d79ac8d9648284d56e33bc14a3ePTO-EVIDENCE-INSTRUCTION-CONTRACT-CLOSUREPTO-EVIDENCE-INSTRUCTION-CONTRACT-CLOSUREspec/evidence/instruction-contract-closure.json3ef2bb62421c79dff8fa77a1c7983923b523244b8090812883ef81286ca8106aPTO-EVIDENCE-ARCHITECTURE-READINESSPTO-EVIDENCE-ARCHITECTURE-READINESSspec/evidence/architecture-readiness.json4b0b85199101251bea744e0f3591cc31906909dc80d5ab651c417a936036a004PTO-EVIDENCE-RELEASE-GATE-READINESSPTO-EVIDENCE-RELEASE-GATE-READINESSspec/evidence/release-gate-readiness.jsona0f4d2b6920c08981ea55fd8ef820708a40d4feb5402c5150e8e9ab532d84ce0PTO-EVIDENCE-RELEASE-MANIFESTPTO-EVIDENCE-RELEASE-MANIFESTspec/release-manifest.json1a64c109ed7a90351c41e2a418b3c0ebaf8ad975838986d2101385186b85c0d8Loading ADR-0011…
ADR-0011docs/status/decisions/0011-visible-ebarg-snapshot.mdae2cbaccfe91a2f072b930dd9141a851d3adfe30ac960121836553ff4f3362b6Loading ADR-0018…
ADR-0018docs/status/decisions/0018-pto-v0-trap-disposition.mdce33454ffd2a595425ebece5954c9990ea2b9c4890008ad700599f767d7b9716Loading ADR-0098…
ADR-0098docs/status/decisions/0098-b-range-modifiers.mde194ccc6b6922fd4b65066b533f5e4b0eba094e099970059bca8e25b4e466fba{
"classification": [
"data-types",
"trap-context"
],
"documentation": "docs/arch/data-types/trap-context.md",
"id": "PTO-ARCH-DATA-TYPES-TRAP-CONTEXT",
"mnemonic": null,
"readiness_subjects": [
"ADR-0011",
"ADR-0018",
"ADR-0098"
],
"semantic_tests": [
"PTO-AVS-ARCH-TESTVISIBLETRAPCONTEXTREGISTERS-FAULT-001"
],
"source": "asl/arch/data-types/trap-context.asl",
"surface": "arch",
"tests": [
"PTO-AVS-ARCH-DATA-TYPES-TRAP-CONTEXT-STATIC-001",
"PTO-AVS-ARCH-TESTVISIBLETRAPCONTEXTREGISTERS-FAULT-001"
]
}0.58.5 · Release candidate7dc8b7e5b121d2b2499a2273bebff29e2cd8681205bad845c84d9fd35d30af99137b939e70d0d7226f54374b7f5d5e71dd235b7bdbfce1355339bf6fc7b9746bb5427c4a340a70319d4827a639aac024d438fb5aasl/arch/data-types/trap-context.asl