FSConfig.py (4982:723f5ce7f7b0) | FSConfig.py (5133:a88763dd4a84) |
---|---|
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 --- 104 unchanged lines hidden (view full) --- 113 self.hypervisor_bin = binary('q_new.bin') 114 self.openboot_bin = binary('openboot_new.bin') 115 self.nvram_bin = binary('nvram1') 116 self.hypervisor_desc_bin = binary('1up-hv.bin') 117 self.partition_desc_bin = binary('1up-md.bin') 118 119 return self 120 | 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 --- 104 unchanged lines hidden (view full) --- 113 self.hypervisor_bin = binary('q_new.bin') 114 self.openboot_bin = binary('openboot_new.bin') 115 self.nvram_bin = binary('nvram1') 116 self.hypervisor_desc_bin = binary('1up-hv.bin') 117 self.partition_desc_bin = binary('1up-md.bin') 118 119 return self 120 |
121def makeX86System(mem_mode, mdesc = None): 122 self = X86System() 123 if not mdesc: 124 # generic system 125 mdesc = SysConfig() 126 self.readfile = mdesc.script() |
|
121 | 127 |
128 # Physical memory 129 self.membus = Bus(bus_id=0) 130 self.physmem = PhysicalMemory(range = AddrRange(mdesc.mem())) 131 self.physmem.port = self.membus.port 132 133 # Platform 134 self.opteron = Opteron() 135 136 self.intrctrl = IntrControl() 137 138 return self 139 140 |
|
122def makeDualRoot(testSystem, driveSystem, dumpfile): 123 self = Root() 124 self.testsys = testSystem 125 self.drivesys = driveSystem 126 self.etherlink = EtherLink() 127 self.etherlink.int0 = Parent.testsys.tsunami.ethernet.interface 128 self.etherlink.int1 = Parent.drivesys.tsunami.ethernet.interface 129 130 if dumpfile: 131 self.etherdump = EtherDump(file=dumpfile) 132 self.etherlink.dump = Parent.etherdump 133 134 return self | 141def makeDualRoot(testSystem, driveSystem, dumpfile): 142 self = Root() 143 self.testsys = testSystem 144 self.drivesys = driveSystem 145 self.etherlink = EtherLink() 146 self.etherlink.int0 = Parent.testsys.tsunami.ethernet.interface 147 self.etherlink.int1 = Parent.drivesys.tsunami.ethernet.interface 148 149 if dumpfile: 150 self.etherdump = EtherDump(file=dumpfile) 151 self.etherlink.dump = Parent.etherdump 152 153 return self |