wait-for-hap "hap" [object] [index]
Postpones execution of a script branch until hap occurs. The optional argument object limits the haps to a specific object, and index can be used for indexed haps. The data associated with the hap, i.e. the arguments to the hap callback, will be returned as a list.
There may be haps triggering between the hap that causes the script to continue and the point in time when the script can resume. Such hap occurrences are lost from the script's point of view. A common case is a hap that can trigger several times during the execution of a single instruction.
Simics Core
bp.hap.wait-for,
script-branch