Skip to content

Questions about the dcsr.dcause priority #1215

@cyl943123

Description

@cyl943123

Hello,

I'd like to clarify the dcause priority behavior in some special scenarios (assuming itrigger is not implemented):

If, in the same cycle, a trigger fires (for example, only the mcontrol6 trigger), an interrupt occurs, and a single step causes entry into Debug Mode, which cause will be reported in dcause?

Specifically, if an interrupt occurs during single stepping, according to the spec, Debug Mode is reentered immediately after the PC is changed to the trap handler. In this case, is the step with interrupt viewed as an asynchronous event with higher priority than a synchronous event (e.g., trigger)? Or is it considered as the step event, giving it the lowest priority in dcause?

Thanks!
Jack Li

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