Beispiel #1
0
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()
Beispiel #2
0
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()
Beispiel #3
0
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()