IntelMP.py (5702:bf84e2fa05f7) | IntelMP.py (5770:03c07a62074f) |
---|---|
1# Copyright (c) 2008 The Hewlett-Packard Development Company 2# All rights reserved. 3# 4# Redistribution and use of this software in source and binary forms, 5# with or without modification, are permitted provided that the 6# following conditions are met: 7# 8# The software must be used only for Non-Commercial Use which means any --- 72 unchanged lines hidden (view full) --- 81 local_apic = Param.UInt32(0xFEE00000, 'address of the local APIC') 82 83 base_entries = VectorParam.X86IntelMPBaseConfigEntry([], 84 'base configuration table entries') 85 86 ext_entries = VectorParam.X86IntelMPExtConfigEntry([], 87 'extended configuration table entries') 88 | 1# Copyright (c) 2008 The Hewlett-Packard Development Company 2# All rights reserved. 3# 4# Redistribution and use of this software in source and binary forms, 5# with or without modification, are permitted provided that the 6# following conditions are met: 7# 8# The software must be used only for Non-Commercial Use which means any --- 72 unchanged lines hidden (view full) --- 81 local_apic = Param.UInt32(0xFEE00000, 'address of the local APIC') 82 83 base_entries = VectorParam.X86IntelMPBaseConfigEntry([], 84 'base configuration table entries') 85 86 ext_entries = VectorParam.X86IntelMPExtConfigEntry([], 87 'extended configuration table entries') 88 |
89 def add_entry(self, entry): 90 if isinstance(entry, X86IntelMPBaseConfigEntry): 91 self.base_entries.append(entry) 92 elif isinstance(entry, X86IntelMPExtConfigEntry): 93 self.base_entries.append(entry) 94 else: 95 panic("Don't know what type of Intel MP entry %s is." \ 96 % entry.__class__.__name__) 97 |
|
89class X86IntelMPBaseConfigEntry(SimObject): 90 type = 'X86IntelMPBaseConfigEntry' 91 cxx_class = 'X86ISA::IntelMP::BaseConfigEntry' 92 abstract = True 93 94class X86IntelMPExtConfigEntry(SimObject): 95 type = 'X86IntelMPExtConfigEntry' 96 cxx_class = 'X86ISA::IntelMP::ExtConfigEntry' --- 137 unchanged lines hidden --- | 98class X86IntelMPBaseConfigEntry(SimObject): 99 type = 'X86IntelMPBaseConfigEntry' 100 cxx_class = 'X86ISA::IntelMP::BaseConfigEntry' 101 abstract = True 102 103class X86IntelMPExtConfigEntry(SimObject): 104 type = 'X86IntelMPExtConfigEntry' 105 cxx_class = 'X86ISA::IntelMP::ExtConfigEntry' --- 137 unchanged lines hidden --- |