fs.py (3046:fc3297be3869) fs.py (3050:358a23f67bf6)
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

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

85 bm = [Machine(), Machine()]
86 else:
87 bm = [Machine()]
88
89if len(bm) == 2:
90 s1 = makeLinuxAlphaSystem(mem_mode, bm[0])
91 s1.cpu = cpu
92 cpu.connectMemPorts(s1.membus)
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

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

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

--- 14 unchanged lines hidden ---
105else:
106 print "Error I don't know how to create more than 2 systems."
107 sys.exit(1)
108
109m5.instantiate(root)
110
111if options.maxtick:
112 maxtick = options.maxtick

--- 14 unchanged lines hidden ---