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 ide = IdeController(disks=[Parent.disk0, Parent.disk2], 46 pci_func=0, pci_dev=0, pci_bus=0) 47 48 self = LinuxAlphaSystem() 49 if not mdesc: 50 # generic system 51 mdesc = SysConfig() 52 self.readfile = mdesc.script() --- 66 unchanged lines hidden (view full) --- 119 120 return self 121 122 123def makeDualRoot(testSystem, driveSystem, dumpfile): 124 self = Root() 125 self.testsys = testSystem 126 self.drivesys = driveSystem |
127 self.etherlink = EtherLink() 128 self.etherlink.int0 = Parent.testsys.tsunami.ethernet.interface 129 self.etherlink.int1 = Parent.drivesys.tsunami.ethernet.interface 130 |
131 if dumpfile: 132 self.etherdump = EtherDump(file=dumpfile) 133 self.etherlink.dump = Parent.etherdump 134 135 return self |