Skip to content

How to trace cm.popret when interrupted after final load/store #235

@j0106223

Description

@j0106223

When data trace is implemented, instructions that perform multiple memory accesses must be reported multiple times on the instruction trace infterface.

If an interrupt occurs after the final load operation of a cm.popret instruction completes but before the remaining atomic operations (e.g., stack pointer update and return) are executed, how should this be reported in the instruction trace?

Example:

For a cm.popret instruction, if the final load completes and is reported with itype = 13 (indicating a return), this could cause confusion, as the actual "return" operation has not occurred due to the interrupt.

This issue also applies to cm.pop and cm.push instructions:

The final load or store may be reported as if the entire instruction has retired, even though the remaining atomic operations were not completed due to the interrupt.

Question Summary:

  • Should the final load/store be reported on the instruction trace interface if an interrupt occurs before the instruction fully completes?
  • If it must be reported, what itype value should be used to avoid falsely indicating that the instruction has fully retired?

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