FSConfig.py (10041:fae4550d2103) FSConfig.py (10046:8b7425bd3196)
1# Copyright (c) 2010-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

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

36# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39#
40# Authors: Kevin Lim
41
42from m5.objects import *
43from Benchmarks import *
1# Copyright (c) 2010-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

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

36# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39#
40# Authors: Kevin Lim
41
42from m5.objects import *
43from Benchmarks import *
44from m5.util import convert
44from m5.util import *
45
46class CowIdeDisk(IdeDisk):
47 image = CowDiskImage(child=RawDiskImage(read_only=True),
48 read_only=False)
49
50 def childImage(self, ci):
51 self.image.child.image_file = ci
52

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

410 # On the PC platform, the memory region 0xC0000000-0xFFFFFFFF is reserved
411 # for various devices. Hence, if the physical memory size is greater than
412 # 3GB, we need to split it into two parts.
413 excess_mem_size = \
414 convert.toMemorySize(mdesc.mem()) - convert.toMemorySize('3GB')
415 if excess_mem_size <= 0:
416 self.mem_ranges = [AddrRange(mdesc.mem())]
417 else:
45
46class CowIdeDisk(IdeDisk):
47 image = CowDiskImage(child=RawDiskImage(read_only=True),
48 read_only=False)
49
50 def childImage(self, ci):
51 self.image.child.image_file = ci
52

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

410 # On the PC platform, the memory region 0xC0000000-0xFFFFFFFF is reserved
411 # for various devices. Hence, if the physical memory size is greater than
412 # 3GB, we need to split it into two parts.
413 excess_mem_size = \
414 convert.toMemorySize(mdesc.mem()) - convert.toMemorySize('3GB')
415 if excess_mem_size <= 0:
416 self.mem_ranges = [AddrRange(mdesc.mem())]
417 else:
418 warn("Physical memory size specified is %s which is greater than " \
419 "3GB. Twice the number of memory controllers would be " \
420 "created." % (mdesc.mem()))
421
418 self.mem_ranges = [AddrRange('3GB'),
419 AddrRange(Addr('4GB'), size = excess_mem_size)]
420
421 # Platform
422 self.pc = Pc()
423
424 # Create and connect the busses required by each memory system
425 if Ruby:

--- 142 unchanged lines hidden ---
422 self.mem_ranges = [AddrRange('3GB'),
423 AddrRange(Addr('4GB'), size = excess_mem_size)]
424
425 # Platform
426 self.pc = Pc()
427
428 # Create and connect the busses required by each memory system
429 if Ruby:

--- 142 unchanged lines hidden ---