Skip to content

Trap Counter Implementation Details: Per-Filter vs Global, Vertical/Horizontal Traps, and Interaction with tval Latch Mode #296

Description

@xingpenghu

Questions
1. Trap Counter: Global vs Per-Filter Implementation
According to the Trace Control Interface specification, the filter_excint_p parameter indicates support for nested exception filtering. The trap counter itself should be implemented as a single global counter shared across all filters or separate counter instance per filter (trTeFilter0, trTeFilter1, etc.)
2. Vertical Traps vs Horizontal Traps
When the trap counter is active, which trap transitions (Vertical Traps or Horizontal Traps)should increment/decrement the counter?
3. Trigger and End Conditions Clarification
3.1 Trigger exclusivity: Are trTeFilterMatchEcause and trTeFilterMatchInterrupt the only conditions that can activate the trap counter qualify interval? Or can comparator matches (e.g., trTeFilterMatchCompX) also trigger trap counter qualification(such as tval)?
3.2 End condition exclusivity: Is trap counter == 0 ? When Mode 3 latch is used( tval with Mode 3 Latch) combined with trap counter, what is the actual end condition for the qualify interval?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions