Daniel Carvalho has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/45398 )
Change subject: arch-x86: Rename IntelMP namespace as intelmp
......................................................................
arch-x86: Rename IntelMP namespace as intelmp
As part of recent decisions regarding namespace
naming conventions, all namespaces will be changed
to snake case.
X86ISA::IntelMP became X86ISA::intelmp.
Change-Id: I800ddba673aa51574c1f4a63ad57721c9d0a0c10
Signed-off-by: Daniel R. Carvalho <[email protected]>
---
M src/arch/x86/bios/IntelMP.py
M src/arch/x86/bios/intelmp.cc
M src/arch/x86/bios/intelmp.hh
M src/arch/x86/fs_workload.hh
4 files changed, 45 insertions(+), 44 deletions(-)
diff --git a/src/arch/x86/bios/IntelMP.py b/src/arch/x86/bios/IntelMP.py
index c1de985..0d9a641 100644
--- a/src/arch/x86/bios/IntelMP.py
+++ b/src/arch/x86/bios/IntelMP.py
@@ -38,7 +38,7 @@
class X86IntelMPFloatingPointer(SimObject):
type = 'X86IntelMPFloatingPointer'
- cxx_class = 'X86ISA::IntelMP::FloatingPointer'
+ cxx_class = 'X86ISA::intelmp::FloatingPointer'
cxx_header = 'arch/x86/bios/intelmp.hh'
# The minor revision of the spec to support. The major version is
assumed
@@ -51,7 +51,7 @@
class X86IntelMPConfigTable(SimObject):
type = 'X86IntelMPConfigTable'
- cxx_class = 'X86ISA::IntelMP::ConfigTable'
+ cxx_class = 'X86ISA::intelmp::ConfigTable'
cxx_header = 'arch/x86/bios/intelmp.hh'
spec_rev = Param.UInt8(4, 'minor revision of the MP spec supported')
@@ -79,19 +79,19 @@
class X86IntelMPBaseConfigEntry(SimObject):
type = 'X86IntelMPBaseConfigEntry'
- cxx_class = 'X86ISA::IntelMP::BaseConfigEntry'
+ cxx_class = 'X86ISA::intelmp::BaseConfigEntry'
cxx_header = 'arch/x86/bios/intelmp.hh'
abstract = True
class X86IntelMPExtConfigEntry(SimObject):
type = 'X86IntelMPExtConfigEntry'
- cxx_class = 'X86ISA::IntelMP::ExtConfigEntry'
+ cxx_class = 'X86ISA::intelmp::ExtConfigEntry'
cxx_header = 'arch/x86/bios/intelmp.hh'
abstract = True
class X86IntelMPProcessor(X86IntelMPBaseConfigEntry):
type = 'X86IntelMPProcessor'
- cxx_class = 'X86ISA::IntelMP::Processor'
+ cxx_class = 'X86ISA::intelmp::Processor'
cxx_header = 'arch/x86/bios/intelmp.hh'
local_apic_id = Param.UInt8(0, 'local APIC id')
@@ -108,7 +108,7 @@
class X86IntelMPBus(X86IntelMPBaseConfigEntry):
type = 'X86IntelMPBus'
- cxx_class = 'X86ISA::IntelMP::Bus'
+ cxx_class = 'X86ISA::intelmp::Bus'
cxx_header = 'arch/x86/bios/intelmp.hh'
bus_id = Param.UInt8(0, 'bus id assigned by the bios')
@@ -121,7 +121,7 @@
class X86IntelMPIOAPIC(X86IntelMPBaseConfigEntry):
type = 'X86IntelMPIOAPIC'
- cxx_class = 'X86ISA::IntelMP::IOAPIC'
+ cxx_class = 'X86ISA::intelmp::IOAPIC'
cxx_header = 'arch/x86/bios/intelmp.hh'
id = Param.UInt8(0, 'id of this APIC')
@@ -152,7 +152,7 @@
class X86IntelMPIOIntAssignment(X86IntelMPBaseConfigEntry):
type = 'X86IntelMPIOIntAssignment'
- cxx_class = 'X86ISA::IntelMP::IOIntAssignment'
+ cxx_class = 'X86ISA::intelmp::IOIntAssignment'
cxx_header = 'arch/x86/bios/intelmp.hh'
interrupt_type = Param.X86IntelMPInterruptType('INT', 'type of
interrupt')
@@ -172,7 +172,7 @@
class X86IntelMPLocalIntAssignment(X86IntelMPBaseConfigEntry):
type = 'X86IntelMPLocalIntAssignment'
- cxx_class = 'X86ISA::IntelMP::LocalIntAssignment'
+ cxx_class = 'X86ISA::intelmp::LocalIntAssignment'
cxx_header = 'arch/x86/bios/intelmp.hh'
interrupt_type = Param.X86IntelMPInterruptType('INT', 'type of
interrupt')
@@ -198,7 +198,7 @@
class X86IntelMPAddrSpaceMapping(X86IntelMPExtConfigEntry):
type = 'X86IntelMPAddrSpaceMapping'
- cxx_class = 'X86ISA::IntelMP::AddrSpaceMapping'
+ cxx_class = 'X86ISA::intelmp::AddrSpaceMapping'
cxx_header = 'arch/x86/bios/intelmp.hh'
bus_id = Param.UInt8(0, 'id of the bus the address space is mapped to')
@@ -209,7 +209,7 @@
class X86IntelMPBusHierarchy(X86IntelMPExtConfigEntry):
type = 'X86IntelMPBusHierarchy'
- cxx_class = 'X86ISA::IntelMP::BusHierarchy'
+ cxx_class = 'X86ISA::intelmp::BusHierarchy'
cxx_header = 'arch/x86/bios/intelmp.hh'
bus_id = Param.UInt8(0, 'id of the bus being described')
@@ -224,7 +224,7 @@
class X86IntelMPCompatAddrSpaceMod(X86IntelMPExtConfigEntry):
type = 'X86IntelMPCompatAddrSpaceMod'
- cxx_class = 'X86ISA::IntelMP::CompatAddrSpaceMod'
+ cxx_class = 'X86ISA::intelmp::CompatAddrSpaceMod'
cxx_header = 'arch/x86/bios/intelmp.hh'
bus_id = Param.UInt8(0, 'id of the bus being described')
diff --git a/src/arch/x86/bios/intelmp.cc b/src/arch/x86/bios/intelmp.cc
index 8e6a0b1..3d8bc68 100644
--- a/src/arch/x86/bios/intelmp.cc
+++ b/src/arch/x86/bios/intelmp.cc
@@ -62,7 +62,7 @@
#include "params/X86IntelMPBusHierarchy.hh"
#include "params/X86IntelMPCompatAddrSpaceMod.hh"
-const char X86ISA::IntelMP::FloatingPointer::signature[] = "_MP_";
+const char X86ISA::intelmp::FloatingPointer::signature[] = "_MP_";
template<class T>
uint8_t
@@ -103,7 +103,7 @@
}
Addr
-X86ISA::IntelMP::FloatingPointer::writeOut(PortProxy& proxy, Addr addr)
+X86ISA::intelmp::FloatingPointer::writeOut(PortProxy& proxy, Addr addr)
{
// Make sure that either a config table is present or a default
// configuration was found but not both.
@@ -142,13 +142,13 @@
return 16;
}
-X86ISA::IntelMP::FloatingPointer::FloatingPointer(const Params &p) :
+X86ISA::intelmp::FloatingPointer::FloatingPointer(const Params &p) :
SimObject(p), tableAddr(0), specRev(p.spec_rev),
defaultConfig(p.default_config), imcrPresent(p.imcr_present)
{}
Addr
-X86ISA::IntelMP::BaseConfigEntry::writeOut(PortProxy& proxy,
+X86ISA::intelmp::BaseConfigEntry::writeOut(PortProxy& proxy,
Addr addr, uint8_t &checkSum)
{
proxy.writeBlob(addr, &type, 1);
@@ -156,13 +156,13 @@
return 1;
}
-X86ISA::IntelMP::BaseConfigEntry::BaseConfigEntry(
+X86ISA::intelmp::BaseConfigEntry::BaseConfigEntry(
const Params &p, uint8_t _type) :
SimObject(p), type(_type)
{}
Addr
-X86ISA::IntelMP::ExtConfigEntry::writeOut(PortProxy& proxy,
+X86ISA::intelmp::ExtConfigEntry::writeOut(PortProxy& proxy,
Addr addr, uint8_t &checkSum)
{
proxy.writeBlob(addr, &type, 1);
@@ -172,15 +172,15 @@
return 1;
}
-X86ISA::IntelMP::ExtConfigEntry::ExtConfigEntry(const Params &p,
+X86ISA::intelmp::ExtConfigEntry::ExtConfigEntry(const Params &p,
uint8_t _type, uint8_t _length) :
SimObject(p), type(_type), length(_length)
{}
-const char X86ISA::IntelMP::ConfigTable::signature[] = "PCMP";
+const char X86ISA::intelmp::ConfigTable::signature[] = "PCMP";
Addr
-X86ISA::IntelMP::ConfigTable::writeOut(PortProxy& proxy, Addr addr)
+X86ISA::intelmp::ConfigTable::writeOut(PortProxy& proxy, Addr addr)
{
uint8_t checkSum = 0;
@@ -237,7 +237,7 @@
return offset + extOffset;
};
-X86ISA::IntelMP::ConfigTable::ConfigTable(const Params &p) : SimObject(p),
+X86ISA::intelmp::ConfigTable::ConfigTable(const Params &p) : SimObject(p),
specRev(p.spec_rev), oemID(p.oem_id), productID(p.product_id),
oemTableAddr(p.oem_table_addr), oemTableSize(p.oem_table_size),
localApic(p.local_apic),
@@ -245,7 +245,7 @@
{}
Addr
-X86ISA::IntelMP::Processor::writeOut(
+X86ISA::intelmp::Processor::writeOut(
PortProxy& proxy, Addr addr, uint8_t &checkSum)
{
BaseConfigEntry::writeOut(proxy, addr, checkSum);
@@ -261,7 +261,7 @@
return 20;
}
-X86ISA::IntelMP::Processor::Processor(const Params &p) :
BaseConfigEntry(p, 0),
+X86ISA::intelmp::Processor::Processor(const Params &p) :
BaseConfigEntry(p, 0),
localApicID(p.local_apic_id), localApicVersion(p.local_apic_version),
cpuFlags(0), cpuSignature(0), featureFlags(p.feature_flags)
{
@@ -276,7 +276,7 @@
}
Addr
-X86ISA::IntelMP::Bus::writeOut(
+X86ISA::intelmp::Bus::writeOut(
PortProxy& proxy, Addr addr, uint8_t &checkSum)
{
BaseConfigEntry::writeOut(proxy, addr, checkSum);
@@ -285,12 +285,12 @@
return 8;
}
-X86ISA::IntelMP::Bus::Bus(const Params &p) : BaseConfigEntry(p, 1),
+X86ISA::intelmp::Bus::Bus(const Params &p) : BaseConfigEntry(p, 1),
busID(p.bus_id), busType(p.bus_type)
{}
Addr
-X86ISA::IntelMP::IOAPIC::writeOut(
+X86ISA::intelmp::IOAPIC::writeOut(
PortProxy& proxy, Addr addr, uint8_t &checkSum)
{
BaseConfigEntry::writeOut(proxy, addr, checkSum);
@@ -301,7 +301,7 @@
return 8;
}
-X86ISA::IntelMP::IOAPIC::IOAPIC(const Params &p) : BaseConfigEntry(p, 2),
+X86ISA::intelmp::IOAPIC::IOAPIC(const Params &p) : BaseConfigEntry(p, 2),
id(p.id), version(p.version), flags(0), address(p.address)
{
if (p.enable)
@@ -309,7 +309,7 @@
}
Addr
-X86ISA::IntelMP::IntAssignment::writeOut(
+X86ISA::intelmp::IntAssignment::writeOut(
PortProxy& proxy, Addr addr, uint8_t &checkSum)
{
BaseConfigEntry::writeOut(proxy, addr, checkSum);
@@ -322,20 +322,20 @@
return 8;
}
-X86ISA::IntelMP::IOIntAssignment::IOIntAssignment(const Params &p) :
+X86ISA::intelmp::IOIntAssignment::IOIntAssignment(const Params &p) :
IntAssignment(p, p.interrupt_type, p.polarity, p.trigger, 3,
p.source_bus_id, p.source_bus_irq,
p.dest_io_apic_id, p.dest_io_apic_intin)
{}
-X86ISA::IntelMP::LocalIntAssignment::LocalIntAssignment(const Params &p) :
+X86ISA::intelmp::LocalIntAssignment::LocalIntAssignment(const Params &p) :
IntAssignment(p, p.interrupt_type, p.polarity, p.trigger, 4,
p.source_bus_id, p.source_bus_irq,
p.dest_local_apic_id, p.dest_local_apic_intin)
{}
Addr
-X86ISA::IntelMP::AddrSpaceMapping::writeOut(
+X86ISA::intelmp::AddrSpaceMapping::writeOut(
PortProxy& proxy, Addr addr, uint8_t &checkSum)
{
ExtConfigEntry::writeOut(proxy, addr, checkSum);
@@ -346,14 +346,14 @@
return length;
}
-X86ISA::IntelMP::AddrSpaceMapping::AddrSpaceMapping(const Params &p) :
+X86ISA::intelmp::AddrSpaceMapping::AddrSpaceMapping(const Params &p) :
ExtConfigEntry(p, 128, 20),
busID(p.bus_id), addrType(p.address_type),
addr(p.address), addrLength(p.length)
{}
Addr
-X86ISA::IntelMP::BusHierarchy::writeOut(
+X86ISA::intelmp::BusHierarchy::writeOut(
PortProxy& proxy, Addr addr, uint8_t &checkSum)
{
ExtConfigEntry::writeOut(proxy, addr, checkSum);
@@ -367,7 +367,7 @@
return length;
}
-X86ISA::IntelMP::BusHierarchy::BusHierarchy(const Params &p) :
+X86ISA::intelmp::BusHierarchy::BusHierarchy(const Params &p) :
ExtConfigEntry(p, 129, 8),
busID(p.bus_id), info(0), parentBus(p.parent_bus)
{
@@ -376,7 +376,7 @@
}
Addr
-X86ISA::IntelMP::CompatAddrSpaceMod::writeOut(
+X86ISA::intelmp::CompatAddrSpaceMod::writeOut(
PortProxy& proxy, Addr addr, uint8_t &checkSum)
{
ExtConfigEntry::writeOut(proxy, addr, checkSum);
@@ -386,7 +386,7 @@
return length;
}
-X86ISA::IntelMP::CompatAddrSpaceMod::CompatAddrSpaceMod(const Params &p) :
+X86ISA::intelmp::CompatAddrSpaceMod::CompatAddrSpaceMod(const Params &p) :
ExtConfigEntry(p, 130, 8),
busID(p.bus_id), mod(0), rangeList(p.range_list)
{
diff --git a/src/arch/x86/bios/intelmp.hh b/src/arch/x86/bios/intelmp.hh
index 6e97047..16575ce 100644
--- a/src/arch/x86/bios/intelmp.hh
+++ b/src/arch/x86/bios/intelmp.hh
@@ -42,6 +42,7 @@
#include <vector>
#include "base/bitfield.hh"
+#include "base/compiler.hh"
#include "enums/X86IntelMPAddressType.hh"
#include "enums/X86IntelMPInterruptType.hh"
#include "enums/X86IntelMPPolarity.hh"
@@ -80,8 +81,8 @@
namespace X86ISA
{
-namespace IntelMP
-{
+GEM5_DEPRECATED_NAMESPACE(IntelMP, intelmp);
+namespace intelmp {
class FloatingPointer : public SimObject
{
diff --git a/src/arch/x86/fs_workload.hh b/src/arch/x86/fs_workload.hh
index ae778b2..049306b 100644
--- a/src/arch/x86/fs_workload.hh
+++ b/src/arch/x86/fs_workload.hh
@@ -56,13 +56,13 @@
class SMBiosTable;
} // namespace smbios
-namespace IntelMP
-{
+
+namespace intelmp {
class FloatingPointer;
class ConfigTable;
-} // namespace IntelMP
+} // namespace intelmp
void installSegDesc(ThreadContext *tc, SegmentRegIndex seg,
SegDescriptor desc, bool longmode);
@@ -79,8 +79,8 @@
protected:
smbios::SMBiosTable *smbiosTable;
- IntelMP::FloatingPointer *mpFloatingPointer;
- IntelMP::ConfigTable *mpConfigTable;
+ intelmp::FloatingPointer *mpFloatingPointer;
+ intelmp::ConfigTable *mpConfigTable;
ACPI::RSDP *rsdp;
void writeOutSMBiosTable(Addr header,
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/45398
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I800ddba673aa51574c1f4a63ad57721c9d0a0c10
Gerrit-Change-Number: 45398
Gerrit-PatchSet: 1
Gerrit-Owner: Daniel Carvalho <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s