Deleted Added
sdiff udiff text old ( 3022:b3b379cb97ef ) new ( 3025:00fe36086a14 )
full compact
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)
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)
93 root = makeDualRoot(s1, s2)
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 ---