changeset 3ca926101a5c in /z/repo/m5 details: http://repo.m5sim.org/m5?cmd=changeset;node=3ca926101a5c description: Get rid of 'using namespace' declarations in headers.
diffstat: 8 files changed, 4 insertions(+), 19 deletions(-) src/arch/alpha/linux/system.hh | 5 +---- src/arch/mips/bare_iron/system.hh | 2 -- src/arch/mips/isa_traits.hh | 2 -- src/arch/mips/linux/linux.hh | 3 --- src/arch/mips/linux/system.hh | 5 +---- src/arch/mips/mt.hh | 3 +-- src/arch/mips/regfile/misc_regfile.cc | 1 + src/cpu/inorder/resources/fetch_seq_unit.hh | 2 -- diffs (122 lines): diff -r 886da6fa6d4a -r 3ca926101a5c src/arch/alpha/linux/system.hh --- a/src/arch/alpha/linux/system.hh Thu Mar 05 17:05:06 2009 -0500 +++ b/src/arch/alpha/linux/system.hh Thu Mar 05 17:15:31 2009 -0800 @@ -43,9 +43,6 @@ #include "kern/linux/events.hh" #include "params/LinuxAlphaSystem.hh" -using namespace AlphaISA; -using namespace Linux; - /** * This class contains linux specific system code (Loading, Events). * It points to objects that are the system binaries to load and patches them @@ -109,7 +106,7 @@ * PC based event to skip the dprink() call and emulate its * functionality */ - DebugPrintkEvent *debugPrintkEvent; + Linux::DebugPrintkEvent *debugPrintkEvent; /** * Skip calculate_delay_loop() rather than waiting for this to be diff -r 886da6fa6d4a -r 3ca926101a5c src/arch/mips/bare_iron/system.hh --- a/src/arch/mips/bare_iron/system.hh Thu Mar 05 17:05:06 2009 -0500 +++ b/src/arch/mips/bare_iron/system.hh Thu Mar 05 17:15:31 2009 -0800 @@ -39,8 +39,6 @@ #include "arch/mips/system.hh" #include "params/BareIronMipsSystem.hh" -using namespace MipsISA; - /** * This class contains linux specific system code (Loading, Events). * It points to objects that are the system binaries to load and patches them diff -r 886da6fa6d4a -r 3ca926101a5c src/arch/mips/isa_traits.hh --- a/src/arch/mips/isa_traits.hh Thu Mar 05 17:05:06 2009 -0500 +++ b/src/arch/mips/isa_traits.hh Thu Mar 05 17:15:31 2009 -0800 @@ -381,6 +381,4 @@ }; -using namespace MipsISA; - #endif // __ARCH_MIPS_ISA_TRAITS_HH__ diff -r 886da6fa6d4a -r 3ca926101a5c src/arch/mips/linux/linux.hh --- a/src/arch/mips/linux/linux.hh Thu Mar 05 17:05:06 2009 -0500 +++ b/src/arch/mips/linux/linux.hh Thu Mar 05 17:15:31 2009 -0800 @@ -32,9 +32,6 @@ #define __ARCH_MIPS_LINUX_LINUX_HH__ #include "kern/linux/linux.hh" -#include <string> - -using std::string; class MipsLinux : public Linux { diff -r 886da6fa6d4a -r 3ca926101a5c src/arch/mips/linux/system.hh --- a/src/arch/mips/linux/system.hh Thu Mar 05 17:05:06 2009 -0500 +++ b/src/arch/mips/linux/system.hh Thu Mar 05 17:15:31 2009 -0800 @@ -43,9 +43,6 @@ #include "kern/linux/events.hh" #include "params/LinuxMipsSystem.hh" -using namespace MipsISA; -using namespace Linux; - /** * This class contains linux specific system code (Loading, Events). * It points to objects that are the system binaries to load and patches them @@ -112,7 +109,7 @@ * PC based event to skip the dprink() call and emulate its * functionality */ - DebugPrintkEvent *debugPrintkEvent; + Linux::DebugPrintkEvent *debugPrintkEvent; /** * Skip calculate_delay_loop() rather than waiting for this to be diff -r 886da6fa6d4a -r 3ca926101a5c src/arch/mips/mt.hh --- a/src/arch/mips/mt.hh Thu Mar 05 17:05:06 2009 -0500 +++ b/src/arch/mips/mt.hh Thu Mar 05 17:15:31 2009 -0800 @@ -45,7 +45,6 @@ #include "base/misc.hh" #include <iostream> -using namespace std; namespace MipsISA { @@ -164,7 +163,7 @@ success = 1; } } else { - std::cerr << "Bad VPEs" << endl; + std::cerr << "Bad VPEs" << std::endl; } } diff -r 886da6fa6d4a -r 3ca926101a5c src/arch/mips/regfile/misc_regfile.cc --- a/src/arch/mips/regfile/misc_regfile.cc Thu Mar 05 17:05:06 2009 -0500 +++ b/src/arch/mips/regfile/misc_regfile.cc Thu Mar 05 17:15:31 2009 -0800 @@ -43,6 +43,7 @@ //#include "params/DerivO3CPU.hh" using namespace std; +using namespace MipsISA; std::string MiscRegFile::miscRegNames[NumMiscRegs] = { diff -r 886da6fa6d4a -r 3ca926101a5c src/cpu/inorder/resources/fetch_seq_unit.hh --- a/src/cpu/inorder/resources/fetch_seq_unit.hh Thu Mar 05 17:05:06 2009 -0500 +++ b/src/cpu/inorder/resources/fetch_seq_unit.hh Thu Mar 05 17:15:31 2009 -0800 @@ -41,8 +41,6 @@ #include "cpu/inorder/pipeline_traits.hh" #include "cpu/inorder/cpu.hh" -using namespace ThePipeline; - class FetchSeqUnit : public Resource { public: typedef ThePipeline::DynInstPtr DynInstPtr; _______________________________________________ m5-dev mailing list m5-dev@m5sim.org http://m5sim.org/mailman/listinfo/m5-dev