ARM: Clarifies creation of Linux and baremetal ARM systems.

makeArmSystem creates both bare-metal and Linux systems more cleanly.
machine_type was never optional though listed as an optional argument; a system
such as "RealView_PBX" must now be explicitly specified.  Now that it is a
required argument, the placement of the arguments has changed slightly
requiring some changes to calls that create ARM systems.
This commit is contained in:
Ali Saidi
2011-02-23 15:10:48 -06:00
parent e2a6275c03
commit 79dac89552
4 changed files with 18 additions and 14 deletions

View File

@@ -68,7 +68,7 @@ class IOCache(BaseCache):
#cpu
cpu = AtomicSimpleCPU(cpu_id=0)
#the system
system = FSConfig.makeLinuxArmSystem('atomic', None, False, "RealView_PBX")
system = FSConfig.makeArmSystem('atomic', "RealView_PBX", None, False)
system.bridge.filter_ranges_a=[AddrRange(0, Addr.max)]
system.bridge.filter_ranges_b=[AddrRange(0, size='128MB')]
system.iocache = IOCache()

View File

@@ -69,7 +69,7 @@ class IOCache(BaseCache):
#cpu
cpu = TimingSimpleCPU(cpu_id=0)
#the system
system = FSConfig.makeLinuxArmSystem('timing', None, False, "RealView_PBX")
system = FSConfig.makeArmSystem('timing', "RealView_PBX", None, False)
system.cpu = cpu
#create the l1/l2 bus