X86: Add add_entry back in.
This commit is contained in:
parent
489e3e7381
commit
e4790bcbe2
1 changed files with 9 additions and 0 deletions
|
@ -86,6 +86,15 @@ class X86IntelMPConfigTable(SimObject):
|
|||
ext_entries = VectorParam.X86IntelMPExtConfigEntry([],
|
||||
'extended configuration table entries')
|
||||
|
||||
def add_entry(self, entry):
|
||||
if isinstance(entry, X86IntelMPBaseConfigEntry):
|
||||
self.base_entries.append(entry)
|
||||
elif isinstance(entry, X86IntelMPExtConfigEntry):
|
||||
self.base_entries.append(entry)
|
||||
else:
|
||||
panic("Don't know what type of Intel MP entry %s is." \
|
||||
% entry.__class__.__name__)
|
||||
|
||||
class X86IntelMPBaseConfigEntry(SimObject):
|
||||
type = 'X86IntelMPBaseConfigEntry'
|
||||
cxx_class = 'X86ISA::IntelMP::BaseConfigEntry'
|
||||
|
|
Loading…
Reference in a new issue