When memory size > 3GB, print a warning that twice the number of memory
controllers would be created.
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),
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)]