def cmd_reverse(count = -1): if SIM_simics_is_running(): raise CliError, "Simics is already running" if not VT_hindsight_license_check(): print "Command requires hindsight license." SIM_command_has_problem() return backer.reverse(count, current_processor()) blurb()
def cmd_revto_rep(dummy_poly): if not VT_hindsight_license_check(): print "Command requires hindsight license." SIM_command_has_problem() return (cpu, abscount) = revto_mark cnt = SIM_step_count(cpu) - abscount if cnt > 0: backer.reverse(cnt, cpu) blurb()
def cmd_revto(poly): global revto_mark if SIM_simics_is_running(): raise CliError, "Simics is already running" if not VT_hindsight_license_check(): print "Command requires hindsight license." SIM_command_has_problem() return cpu, steps = poly_to_pair(poly) cnt = SIM_step_count(cpu) - steps revto_mark = (cpu, steps) if cnt > 0: backer.reverse(cnt, cpu) blurb()