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:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user