summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2013-08-19 03:52:33 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2013-08-19 03:52:33 -0400
commit49d88f08b0ff463bca04285dca240b3730889a1d (patch)
treee4affba86713db0136091f1c9c25ff6e975048a9 /src
parente553844efc4247f5be870fad5ea919af85858a55 (diff)
downloadgem5-49d88f08b0ff463bca04285dca240b3730889a1d.tar.xz
mem: Change AbstractMemory defaults to match the common case
This patch changes the default parameter value of conf_table_reported to match the common case. It also simplifies the regression and config scripts to reflect this change.
Diffstat (limited to 'src')
-rw-r--r--src/dev/arm/RealView.py10
-rw-r--r--src/mem/AbstractMemory.py7
2 files changed, 11 insertions, 6 deletions
diff --git a/src/dev/arm/RealView.py b/src/dev/arm/RealView.py
index 731e8abe7..167108850 100644
--- a/src/dev/arm/RealView.py
+++ b/src/dev/arm/RealView.py
@@ -159,8 +159,8 @@ class RealView(Platform):
max_mem_size = Param.Addr('256MB', "Maximum amount of RAM supported by platform")
def setupBootLoader(self, mem_bus, cur_sys, loc):
- self.nvmem = SimpleMemory(range = AddrRange(Addr('2GB'),
- size = '64MB'))
+ self.nvmem = SimpleMemory(range = AddrRange('2GB', size = '64MB'),
+ conf_table_reported = False)
self.nvmem.port = mem_bus.master
cur_sys.boot_loader = loc('boot.arm')
@@ -357,7 +357,8 @@ class VExpress_EMM(RealView):
InterruptLine=2, InterruptPin=2)
- vram = SimpleMemory(range = AddrRange(0x18000000, size='32MB'))
+ vram = SimpleMemory(range = AddrRange(0x18000000, size='32MB'),
+ conf_table_reported = False)
rtc = PL031(pio_addr=0x1C170000, int_num=36)
l2x0_fake = IsaFake(pio_addr=0x2C100000, pio_size=0xfff)
@@ -372,7 +373,8 @@ class VExpress_EMM(RealView):
mmc_fake = AmbaFake(pio_addr=0x1c050000)
def setupBootLoader(self, mem_bus, cur_sys, loc):
- self.nvmem = SimpleMemory(range = AddrRange(0, size = '64MB'))
+ self.nvmem = SimpleMemory(range = AddrRange('64MB'),
+ conf_table_reported = False)
self.nvmem.port = mem_bus.master
cur_sys.boot_loader = loc('boot_emm.arm')
cur_sys.atags_addr = 0x80000100
diff --git a/src/mem/AbstractMemory.py b/src/mem/AbstractMemory.py
index 22a4a1893..ab1a6028c 100644
--- a/src/mem/AbstractMemory.py
+++ b/src/mem/AbstractMemory.py
@@ -46,7 +46,10 @@ class AbstractMemory(MemObject):
type = 'AbstractMemory'
abstract = True
cxx_header = "mem/abstract_mem.hh"
- range = Param.AddrRange(AddrRange('128MB'), "Address range")
+
+ # A default memory size of 128 MB (starting at 0) is used to
+ # simplify the regressions
+ range = Param.AddrRange('128MB', "Address range (potentially interleaved)")
null = Param.Bool(False, "Do not store data, always return zero")
# All memories are passed to the global physical memory, and
@@ -57,4 +60,4 @@ class AbstractMemory(MemObject):
# Should the bootloader include this memory when passing
# configuration information about the physical memory layout to
# the kernel, e.g. using ATAG or ACPI
- conf_table_reported = Param.Bool(False, "Report to configuration table")
+ conf_table_reported = Param.Bool(True, "Report to configuration table")