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
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