diff options
author | Nathan Binkert <nate@binkert.org> | 2008-10-09 22:19:39 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2008-10-09 22:19:39 -0700 |
commit | 94b08bed07d13106381a0bb692bf0d879c5353d4 (patch) | |
tree | e6edac20c9eaa5cfb6eab25d3e6a4716d4451da9 /src/arch/x86/X86TLB.py | |
parent | 4ecc5d53a302c5e494df5853a314a61e8bba3a50 (diff) | |
download | gem5-94b08bed07d13106381a0bb692bf0d879c5353d4.tar.xz |
SimObjects: Clean up handling of C++ namespaces.
Make them easier to express by only having the cxx_type parameter which
has the full namespace name, and drop the cxx_namespace thing.
Add support for multiple levels of namespace.
Diffstat (limited to 'src/arch/x86/X86TLB.py')
-rw-r--r-- | src/arch/x86/X86TLB.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/arch/x86/X86TLB.py b/src/arch/x86/X86TLB.py index 8dd53620e..c20566efb 100644 --- a/src/arch/x86/X86TLB.py +++ b/src/arch/x86/X86TLB.py @@ -62,8 +62,7 @@ from m5 import build_env if build_env['FULL_SYSTEM']: class X86PagetableWalker(MemObject): type = 'X86PagetableWalker' - cxx_namespace = 'X86ISA' - cxx_class = 'Walker' + cxx_class = 'X86ISA::Walker' port = Port("Port for the hardware table walker") system = Param.System(Parent.any, "system object") @@ -77,14 +76,10 @@ class X86TLB(SimObject): class X86DTB(X86TLB): type = 'X86DTB' - cxx_namespace = 'X86ISA' - cxx_class = 'DTB' - + cxx_class = 'X86ISA::DTB' size = 64 class X86ITB(X86TLB): type = 'X86ITB' - cxx_namespace = 'X86ISA' - cxx_class = 'ITB' - + cxx_class = 'X86ISA::ITB' size = 64 |