twosys-tsunami-simple-atomic.py revision 3691
13691Shsul@eecs.umich.edu# Copyright (c) 2006 The Regents of The University of Michigan
23691Shsul@eecs.umich.edu# All rights reserved.
33691Shsul@eecs.umich.edu#
43691Shsul@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
53691Shsul@eecs.umich.edu# modification, are permitted provided that the following conditions are
63691Shsul@eecs.umich.edu# met: redistributions of source code must retain the above copyright
73691Shsul@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
83691Shsul@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
93691Shsul@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
103691Shsul@eecs.umich.edu# documentation and/or other materials provided with the distribution;
113691Shsul@eecs.umich.edu# neither the name of the copyright holders nor the names of its
123691Shsul@eecs.umich.edu# contributors may be used to endorse or promote products derived from
133691Shsul@eecs.umich.edu# this software without specific prior written permission.
143691Shsul@eecs.umich.edu#
153691Shsul@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
163691Shsul@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
173691Shsul@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
183691Shsul@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
193691Shsul@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
203691Shsul@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
213691Shsul@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
223691Shsul@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
233691Shsul@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
243691Shsul@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
253691Shsul@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
263691Shsul@eecs.umich.edu#
273691Shsul@eecs.umich.edu# Authors: Lisa Hsu
283691Shsul@eecs.umich.edu
293691Shsul@eecs.umich.eduimport m5
303691Shsul@eecs.umich.edufrom m5.objects import *
313691Shsul@eecs.umich.edum5.AddToPath('../configs/common')
323691Shsul@eecs.umich.edufrom SysPaths import *
333691Shsul@eecs.umich.edufrom FSConfig import *
343691Shsul@eecs.umich.edufrom Benchmarks import *
353691Shsul@eecs.umich.edu
363691Shsul@eecs.umich.edutest_sys = makeLinuxAlphaSystem('atomic',
373691Shsul@eecs.umich.edu                                 SysConfig('netperf-stream-client.rcS'))
383691Shsul@eecs.umich.edutest_sys.cpu = AtomicSimpleCPU(cpu_id=0)
393691Shsul@eecs.umich.edutest_sys.cpu.connectMemPorts(test_sys.membus)
403691Shsul@eecs.umich.edu
413691Shsul@eecs.umich.edudrive_sys = makeLinuxAlphaSystem('atomic',
423691Shsul@eecs.umich.edu                                 SysConfig('netperf-server.rcS'))
433691Shsul@eecs.umich.edudrive_sys.cpu = AtomicSimpleCPU(cpu_id=0)
443691Shsul@eecs.umich.edudrive_sys.cpu.connectMemPorts(drive_sys.membus)
453691Shsul@eecs.umich.edu
463691Shsul@eecs.umich.eduroot = makeDualRoot(test_sys, drive_sys, "ethertrace")
473691Shsul@eecs.umich.edu
483691Shsul@eecs.umich.edumaxtick = 199999999
49