Simulation.py (3395:49e674f2fb5d) Simulation.py (3410:ef75e2c78b2d)
1# Copyright (c) 2006 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 102 unchanged lines hidden (view full) ---

111 ## (including switchCpus), you must resume the system manually.
112 ## You DON'T need to resume after just switching CPUs if you haven't
113 ## changed anything on the system level.
114
115 m5.changeToTiming(testsys)
116 m5.switchCpus(switch_cpu_list)
117 m5.resume(testsys)
118
1# Copyright (c) 2006 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 102 unchanged lines hidden (view full) ---

111 ## (including switchCpus), you must resume the system manually.
112 ## You DON'T need to resume after just switching CPUs if you haven't
113 ## changed anything on the system level.
114
115 m5.changeToTiming(testsys)
116 m5.switchCpus(switch_cpu_list)
117 m5.resume(testsys)
118
119 exit_event = m5.simulate(3000000)
119 exit_event = m5.simulate(options.standard_switch)
120 m5.switchCpus(switch_cpu_list1)
121
122 num_checkpoints = 0
123 exit_cause = ''
124
120 m5.switchCpus(switch_cpu_list1)
121
122 num_checkpoints = 0
123 exit_cause = ''
124
125 ## Checkpoints being taken via the command line at <when> and at subsequent
126 ## periods of <period>. Checkpoint instructions received from the benchmark running
127 ## are ignored and skipped in favor of command line checkpoint instructions.
125 if options.take_checkpoints:
126 [when, period] = options.take_checkpoints.split(",", 1)
127 when = int(when)
128 period = int(period)
129
130 print "when is ", when, " period is ", period
131 exit_event = m5.simulate(when)
132 while exit_event.getCause() == "checkpoint":

--- 43 unchanged lines hidden ---
128 if options.take_checkpoints:
129 [when, period] = options.take_checkpoints.split(",", 1)
130 when = int(when)
131 period = int(period)
132
133 print "when is ", when, " period is ", period
134 exit_event = m5.simulate(when)
135 while exit_event.getCause() == "checkpoint":

--- 43 unchanged lines hidden ---