base_config.py (9380:e428871da248) base_config.py (9408:10a84dceab25)
1# Copyright (c) 2012 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

142
143 def __init__(self, **kwargs):
144 BaseSystem.__init__(self, **kwargs)
145
146 def init_system(self, system):
147 BaseSystem.init_system(self, system)
148
149 #create the iocache
1# Copyright (c) 2012 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

142
143 def __init__(self, **kwargs):
144 BaseSystem.__init__(self, **kwargs)
145
146 def init_system(self, system):
147 BaseSystem.init_system(self, system)
148
149 #create the iocache
150 system.iocache = IOCache(clock='1GHz', addr_ranges=[system.physmem.range])
150 system.iocache = IOCache(clock='1GHz', addr_ranges=system.mem_ranges)
151 system.iocache.cpu_side = system.iobus.master
152 system.iocache.mem_side = system.membus.slave
153
154 def create_root(self):
155 system = self.create_system()
156 m5.ticks.setGlobalFrequency('1THz')
157 return Root(full_system=True, system=system)
158

--- 17 unchanged lines hidden ---
151 system.iocache.cpu_side = system.iobus.master
152 system.iocache.mem_side = system.membus.slave
153
154 def create_root(self):
155 system = self.create_system()
156 m5.ticks.setGlobalFrequency('1THz')
157 return Root(full_system=True, system=system)
158

--- 17 unchanged lines hidden ---