Deleted Added
sdiff udiff text old ( 4972:ee5b7df7f436 ) new ( 4981:33fabf3473a5 )
full compact
1# Copyright (c) 2006-2007 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

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

37
38 def childImage(self, ci):
39 self.image.child.image_file = ci
40
41def makeLinuxAlphaSystem(mem_mode, mdesc = None):
42 class BaseTsunami(Tsunami):
43 ethernet = NSGigE(configdata=NSGigEPciData(),
44 pci_bus=0, pci_dev=1, pci_func=0)
45 etherint = NSGigEInt(device=Parent.ethernet)
46 ide = IdeController(disks=[Parent.disk0, Parent.disk2],
47 pci_func=0, pci_dev=0, pci_bus=0)
48
49 self = LinuxAlphaSystem()
50 if not mdesc:
51 # generic system
52 mdesc = SysConfig()
53 self.readfile = mdesc.script()

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

120
121 return self
122
123
124def makeDualRoot(testSystem, driveSystem, dumpfile):
125 self = Root()
126 self.testsys = testSystem
127 self.drivesys = driveSystem
128 self.etherlink = EtherLink(int1 = Parent.testsys.tsunami.etherint[0],
129 int2 = Parent.drivesys.tsunami.etherint[0])
130 if dumpfile:
131 self.etherdump = EtherDump(file=dumpfile)
132 self.etherlink.dump = Parent.etherdump
133
134 return self