1# Copyright (c) 2006-2008 The Regents of The University of Michigan 2# Copyright (c) 2010 Advanced Micro Devices, Inc. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 439 unchanged lines hidden (view full) --- 448 print "Switched CPUS @ tick %s" % (m5.curTick()) 449 450 # when you change to Timing (or Atomic), you halt the system 451 # given as argument. When you are finished with the system 452 # changes (including switchCpus), you must resume the system 453 # manually. You DON'T need to resume after just switching 454 # CPUs if you haven't changed anything on the system level. 455 |
456 m5.changeToTiming(testsys) 457 m5.switchCpus(switch_cpu_list) 458 m5.resume(testsys) 459 460 if options.standard_switch: 461 print "Switch at instruction count:%d" % \ 462 (testsys.switch_cpus[0].max_insts_any_thread) 463 --- 44 unchanged lines hidden --- |