Get rid of 'using namespace' declarations in headers.
This commit is contained in:
parent
b8548c011d
commit
e3d6e8882e
|
@ -43,9 +43,6 @@ class IdleStartEvent;
|
||||||
#include "kern/linux/events.hh"
|
#include "kern/linux/events.hh"
|
||||||
#include "params/LinuxAlphaSystem.hh"
|
#include "params/LinuxAlphaSystem.hh"
|
||||||
|
|
||||||
using namespace AlphaISA;
|
|
||||||
using namespace Linux;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class contains linux specific system code (Loading, Events).
|
* This class contains linux specific system code (Loading, Events).
|
||||||
* It points to objects that are the system binaries to load and patches them
|
* It points to objects that are the system binaries to load and patches them
|
||||||
|
@ -109,7 +106,7 @@ class LinuxAlphaSystem : public AlphaSystem
|
||||||
* PC based event to skip the dprink() call and emulate its
|
* PC based event to skip the dprink() call and emulate its
|
||||||
* functionality
|
* functionality
|
||||||
*/
|
*/
|
||||||
DebugPrintkEvent *debugPrintkEvent;
|
Linux::DebugPrintkEvent *debugPrintkEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Skip calculate_delay_loop() rather than waiting for this to be
|
* Skip calculate_delay_loop() rather than waiting for this to be
|
||||||
|
|
|
@ -39,8 +39,6 @@ class IdleStartEvent;
|
||||||
#include "arch/mips/system.hh"
|
#include "arch/mips/system.hh"
|
||||||
#include "params/BareIronMipsSystem.hh"
|
#include "params/BareIronMipsSystem.hh"
|
||||||
|
|
||||||
using namespace MipsISA;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class contains linux specific system code (Loading, Events).
|
* This class contains linux specific system code (Loading, Events).
|
||||||
* It points to objects that are the system binaries to load and patches them
|
* It points to objects that are the system binaries to load and patches them
|
||||||
|
|
|
@ -381,6 +381,4 @@ namespace MipsISA
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
using namespace MipsISA;
|
|
||||||
|
|
||||||
#endif // __ARCH_MIPS_ISA_TRAITS_HH__
|
#endif // __ARCH_MIPS_ISA_TRAITS_HH__
|
||||||
|
|
|
@ -32,9 +32,6 @@
|
||||||
#define __ARCH_MIPS_LINUX_LINUX_HH__
|
#define __ARCH_MIPS_LINUX_LINUX_HH__
|
||||||
|
|
||||||
#include "kern/linux/linux.hh"
|
#include "kern/linux/linux.hh"
|
||||||
#include <string>
|
|
||||||
|
|
||||||
using std::string;
|
|
||||||
|
|
||||||
class MipsLinux : public Linux
|
class MipsLinux : public Linux
|
||||||
{
|
{
|
||||||
|
|
|
@ -43,9 +43,6 @@ class IdleStartEvent;
|
||||||
#include "kern/linux/events.hh"
|
#include "kern/linux/events.hh"
|
||||||
#include "params/LinuxMipsSystem.hh"
|
#include "params/LinuxMipsSystem.hh"
|
||||||
|
|
||||||
using namespace MipsISA;
|
|
||||||
using namespace Linux;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class contains linux specific system code (Loading, Events).
|
* This class contains linux specific system code (Loading, Events).
|
||||||
* It points to objects that are the system binaries to load and patches them
|
* It points to objects that are the system binaries to load and patches them
|
||||||
|
@ -112,7 +109,7 @@ class LinuxMipsSystem : public MipsSystem
|
||||||
* PC based event to skip the dprink() call and emulate its
|
* PC based event to skip the dprink() call and emulate its
|
||||||
* functionality
|
* functionality
|
||||||
*/
|
*/
|
||||||
DebugPrintkEvent *debugPrintkEvent;
|
Linux::DebugPrintkEvent *debugPrintkEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Skip calculate_delay_loop() rather than waiting for this to be
|
* Skip calculate_delay_loop() rather than waiting for this to be
|
||||||
|
|
|
@ -45,7 +45,6 @@
|
||||||
#include "base/misc.hh"
|
#include "base/misc.hh"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
namespace MipsISA
|
namespace MipsISA
|
||||||
{
|
{
|
||||||
|
@ -164,7 +163,7 @@ forkThread(TC *tc, Fault &fault, int Rd_bits, int Rs, int Rt)
|
||||||
success = 1;
|
success = 1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
std::cerr << "Bad VPEs" << endl;
|
std::cerr << "Bad VPEs" << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,7 @@
|
||||||
//#include "params/DerivO3CPU.hh"
|
//#include "params/DerivO3CPU.hh"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
using namespace MipsISA;
|
||||||
|
|
||||||
std::string MiscRegFile::miscRegNames[NumMiscRegs] =
|
std::string MiscRegFile::miscRegNames[NumMiscRegs] =
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,8 +41,6 @@
|
||||||
#include "cpu/inorder/pipeline_traits.hh"
|
#include "cpu/inorder/pipeline_traits.hh"
|
||||||
#include "cpu/inorder/cpu.hh"
|
#include "cpu/inorder/cpu.hh"
|
||||||
|
|
||||||
using namespace ThePipeline;
|
|
||||||
|
|
||||||
class FetchSeqUnit : public Resource {
|
class FetchSeqUnit : public Resource {
|
||||||
public:
|
public:
|
||||||
typedef ThePipeline::DynInstPtr DynInstPtr;
|
typedef ThePipeline::DynInstPtr DynInstPtr;
|
||||||
|
|
Loading…
Reference in a new issue