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 --- 33 unchanged lines hidden (view full) --- 42parser.add_option("-m", "--maxtick", type="int") 43parser.add_option("--maxtime", type="float") 44parser.add_option("--dual", action="store_true", 45 help="Simulate two systems attached with an ethernet link") 46parser.add_option("-b", "--benchmark", action="store", type="string", 47 dest="benchmark", 48 help="Specify the benchmark to run. Available benchmarks: %s"\ 49 % DefinedBenchmarks) |
50parser.add_option("--etherdump", action="store", type="string", dest="etherdump", 51 help="Specify the filename to dump a pcap capture of the ethernet" 52 "traffic") |
53 54(options, args) = parser.parse_args() 55 56if args: 57 print "Error: script doesn't take any positional arguments" 58 sys.exit(1) 59 60if options.detailed: --- 27 unchanged lines hidden (view full) --- 88 89if len(bm) == 2: 90 s1 = makeLinuxAlphaSystem(mem_mode, bm[0]) 91 s1.cpu = cpu 92 cpu.connectMemPorts(s1.membus) 93 s2 = makeLinuxAlphaSystem(mem_mode, bm[1]) 94 s2.cpu = cpu2 95 cpu2.connectMemPorts(s2.membus) |
96 root = makeDualRoot(s1, s2, options.etherdump) |
97elif len(bm) == 1: 98 root = Root(clock = '1THz', 99 system = makeLinuxAlphaSystem(mem_mode, bm[0])) 100 root.system.cpu = cpu 101 cpu.connectMemPorts(root.system.membus) 102else: 103 print "Error I don't know how to create more than 2 systems." 104 sys.exit(1) --- 19 unchanged lines hidden --- |