diff options
author | Steve Reinhardt <steve.reinhardt@amd.com> | 2011-05-23 14:29:23 -0700 |
---|---|---|
committer | Steve Reinhardt <steve.reinhardt@amd.com> | 2011-05-23 14:29:23 -0700 |
commit | 19bb896bfeffc0b49197f5b2d8395a6ee4c5e94d (patch) | |
tree | a5d4872845cfe0ebb67f95c39729047461966738 /src/arch/x86/bios/E820.py | |
parent | 8a652f9871f9f29279958137e960c8e4a5d1c1f4 (diff) | |
download | gem5-19bb896bfeffc0b49197f5b2d8395a6ee4c5e94d.tar.xz |
config: revamp x86 config to avoid appending to SimObjectVectors
A significant contributor to the need for adoptOrphanParams()
is the practice of appending to SimObjectVectors which have
already been assigned as children. This practice sidesteps the
assignment operation for those appended SimObjects, which is
where parent/child relationships are typically established.
This patch reworks the config scripts that use append() on
SimObjectVectors, which all happen to be in the x86 system
configuration. At some point in the future, I hope to make
SimObjectVectors immutable (by deriving from tuple rather than
list), at which time this patch will be necessary for correct
operation. For now, it just avoids some of the warning
messages that get printed in adoptOrphanParams().
Diffstat (limited to 'src/arch/x86/bios/E820.py')
-rw-r--r-- | src/arch/x86/bios/E820.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/bios/E820.py b/src/arch/x86/bios/E820.py index 4e0b699bb..78b5faee0 100644 --- a/src/arch/x86/bios/E820.py +++ b/src/arch/x86/bios/E820.py @@ -50,4 +50,4 @@ class X86E820Table(SimObject): type = 'X86E820Table' cxx_class = 'X86ISA::E820Table' - entries = VectorParam.X86E820Entry([], 'entries for the e820 table') + entries = VectorParam.X86E820Entry('entries for the e820 table') |