FSConfig.py (3449:97c98705ac4e) FSConfig.py (3584:8c3cdb2c001c)
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

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

73 self.sim_console = SimConsole(listener=ConsoleListener(port=3456))
74 self.kernel = binary('vmlinux')
75 self.pal = binary('ts_osfpal')
76 self.console = binary('console')
77 self.boot_osflags = 'root=/dev/hda1 console=ttyS0'
78
79 return self
80
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

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

73 self.sim_console = SimConsole(listener=ConsoleListener(port=3456))
74 self.kernel = binary('vmlinux')
75 self.pal = binary('ts_osfpal')
76 self.console = binary('console')
77 self.boot_osflags = 'root=/dev/hda1 console=ttyS0'
78
79 return self
80
81def makeSparcSystem(mem_mode, mdesc = None):
82 self = SparcSystem()
83 if not mdesc:
84 # generic system
85 mdesc = SysConfig()
86 self.readfile = mdesc.script()
87 self.membus = Bus(bus_id=1)
88 self.physmem = PhysicalMemory(range = AddrRange(mdesc.mem()))
89 self.physmem.port = self.membus.port
90 self.rom.port = self.membus.port
91 self.intrctrl = IntrControl()
92 self.mem_mode = mem_mode
93 self.kernel = binary('vmlinux')
94
95 self.reset_bin = binary('reset.bin')
96 self.hypervisor_bin = binary('q.bin')
97 self.openboot_bin = binary('openboot.bin')
98
99 return self
100
101
81def makeDualRoot(testSystem, driveSystem, dumpfile):
82 self = Root()
83 self.testsys = testSystem
84 self.drivesys = driveSystem
85 self.etherlink = EtherLink(int1 = Parent.testsys.tsunami.etherint[0],
86 int2 = Parent.drivesys.tsunami.etherint[0])
87 if dumpfile:
88 self.etherdump = EtherDump(file=dumpfile)
89 self.etherlink.dump = Parent.etherdump
90
91 self.clock = '1THz'
92 return self
102def makeDualRoot(testSystem, driveSystem, dumpfile):
103 self = Root()
104 self.testsys = testSystem
105 self.drivesys = driveSystem
106 self.etherlink = EtherLink(int1 = Parent.testsys.tsunami.etherint[0],
107 int2 = Parent.drivesys.tsunami.etherint[0])
108 if dumpfile:
109 self.etherdump = EtherDump(file=dumpfile)
110 self.etherlink.dump = Parent.etherdump
111
112 self.clock = '1THz'
113 return self