summaryrefslogtreecommitdiff
path: root/configs/common/FSConfig.py
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2014-01-28 07:15:53 -0600
committerNilay Vaish <nilay@cs.wisc.edu>2014-01-28 07:15:53 -0600
commit7792dedfddbb9f51f2bab1d6de01e96559109797 (patch)
treea19fe27184c40691c8331389b3de7cfe56461e44 /configs/common/FSConfig.py
parentbdee69d0b177bb0c9dc554a6e1c360a3eaef5977 (diff)
downloadgem5-7792dedfddbb9f51f2bab1d6de01e96559109797.tar.xz
x86: add a warning about the number of memory controllers
When memory size > 3GB, print a warning that twice the number of memory controllers would be created.
Diffstat (limited to 'configs/common/FSConfig.py')
-rw-r--r--configs/common/FSConfig.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/configs/common/FSConfig.py b/configs/common/FSConfig.py
index 84dbb9b3a..31f6a66db 100644
--- a/configs/common/FSConfig.py
+++ b/configs/common/FSConfig.py
@@ -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)]