096db775115a9bc235ace1de798ac653d9f47b6c
# collection of utility functions
this function must be called first before other functions in this file
1 - display instr & register delta
def stepx(sid
=[-1], n
=1, d
=1):
execute instructions among strands in round-rabin order
sid: the strands to be included in the execution, -1 means all strands
n: number of instructions to be executed per strand
d: number of instructions to be executed per iteration
# otherwise only selected strand(s)
# this strand hits a breakpoint, stop execution,
# return remaining instruction count
# this strand hits a breakpoint, stop execution,
# return remaining instruction count