Clean up "using" declarations.
arch/alpha/isa_traits.hh:
No unprotected "using" in header files.
cpu/simple/cpu.cc:
Fix ISA namespace "using" statement.
--HG--
extra : convert_revision : 317ea40f8de00748d7613a0116edab05770bdc72
This commit is contained in:
@@ -30,7 +30,6 @@
|
||||
#define __ARCH_ALPHA_ISA_TRAITS_HH__
|
||||
|
||||
namespace LittleEndianGuest {}
|
||||
using namespace LittleEndianGuest;
|
||||
|
||||
#include "arch/alpha/types.hh"
|
||||
#include "arch/alpha/constants.hh"
|
||||
@@ -79,6 +78,8 @@ class SyscallReturn {
|
||||
namespace AlphaISA
|
||||
{
|
||||
|
||||
using namespace LittleEndianGuest;
|
||||
|
||||
// redirected register map, really only used for the full system case.
|
||||
extern const int reg_redir[NumIntRegs];
|
||||
|
||||
@@ -109,6 +110,4 @@ extern const int reg_redir[NumIntRegs];
|
||||
#endif
|
||||
};
|
||||
|
||||
using namespace AlphaISA;
|
||||
|
||||
#endif // __ARCH_ALPHA_ISA_TRAITS_HH__
|
||||
|
||||
@@ -75,11 +75,7 @@
|
||||
#endif // FULL_SYSTEM
|
||||
|
||||
using namespace std;
|
||||
|
||||
//The SimpleCPU does alpha only
|
||||
//Change this to include arch/isa_traits.hh?
|
||||
//using namespace AlphaISA;
|
||||
#include "arch/isa_traits.hh"
|
||||
using namespace TheISA;
|
||||
|
||||
SimpleCPU::TickEvent::TickEvent(SimpleCPU *c, int w)
|
||||
: Event(&mainEventQueue, CPU_Tick_Pri), cpu(c), width(w)
|
||||
|
||||
Reference in New Issue
Block a user