fs.py (3022:b3b379cb97ef) fs.py (3025:00fe36086a14)
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)
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")
50
51(options, args) = parser.parse_args()
52
53if args:
54 print "Error: script doesn't take any positional arguments"
55 sys.exit(1)
56
57if options.detailed:

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

85
86if len(bm) == 2:
87 s1 = makeLinuxAlphaSystem(mem_mode, bm[0])
88 s1.cpu = cpu
89 cpu.connectMemPorts(s1.membus)
90 s2 = makeLinuxAlphaSystem(mem_mode, bm[1])
91 s2.cpu = cpu2
92 cpu2.connectMemPorts(s2.membus)
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)
93 root = makeDualRoot(s1, s2)
96 root = makeDualRoot(s1, s2, options.etherdump)
94elif len(bm) == 1:
95 root = Root(clock = '1THz',
96 system = makeLinuxAlphaSystem(mem_mode, bm[0]))
97 root.system.cpu = cpu
98 cpu.connectMemPorts(root.system.membus)
99else:
100 print "Error I don't know how to create more than 2 systems."
101 sys.exit(1)

--- 19 unchanged lines hidden ---
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 ---