x86: add a warning about the number of memory controllers
authorNilay Vaish <nilay@cs.wisc.edu>
Tue, 28 Jan 2014 13:15:53 +0000 (07:15 -0600)
committerNilay Vaish <nilay@cs.wisc.edu>
Tue, 28 Jan 2014 13:15:53 +0000 (07:15 -0600)
When memory size > 3GB, print a warning that twice the number of memory
controllers would be created.

configs/common/FSConfig.py

index 84dbb9b3aa84ad88f2d12e4cf53a3ec2348e3b00..31f6a66dbaee7a22818e880929d7b6bfcf95f678 100644 (file)
@@ -41,7 +41,7 @@
 
 from m5.objects import *
 from Benchmarks import *
-from m5.util import convert
+from m5.util import *
 
 class CowIdeDisk(IdeDisk):
     image = CowDiskImage(child=RawDiskImage(read_only=True),
@@ -415,6 +415,10 @@ def makeX86System(mem_mode, numCPUs = 1, mdesc = None, self = None,
     if excess_mem_size <= 0:
         self.mem_ranges = [AddrRange(mdesc.mem())]
     else:
+        warn("Physical memory size specified is %s which is greater than " \
+             "3GB.  Twice the number of memory controllers would be " \
+             "created."  % (mdesc.mem()))
+
         self.mem_ranges = [AddrRange('3GB'),
             AddrRange(Addr('4GB'), size = excess_mem_size)]