#include "sim/full_system.hh"
#include "sim/process.hh"
-using namespace std;
-
namespace SparcISA
{
tc->setMiscRegNoEffect(MISCREG_TT, tt);
// Update GL
- tc->setMiscReg(MISCREG_GL, min<int>(GL+1, MaxGL));
+ tc->setMiscReg(MISCREG_GL, std::min<int>(GL+1, MaxGL));
bool priv = pstate.priv; // just save the priv bit
pstate = 0;
// Update the global register level
if (!gotoHpriv)
- tc->setMiscReg(MISCREG_GL, min<int>(GL + 1, MaxPGL));
+ tc->setMiscReg(MISCREG_GL, std::min<int>(GL + 1, MaxPGL));
else
- tc->setMiscReg(MISCREG_GL, min<int>(GL + 1, MaxGL));
+ tc->setMiscReg(MISCREG_GL, std::min<int>(GL + 1, MaxGL));
// pstate.mm is unchanged
pstate.pef = 1; // PSTATE.pef = whether or not an fpu is present
#include "sim/sim_exit.hh"
using namespace SparcISA;
-using namespace std;
}};
#include "sim/syscall_return.hh"
#include "sim/system.hh"
-using namespace std;
using namespace SparcISA;
SparcProcess::SparcProcess(const ProcessParams ¶ms,
std::vector<AuxVector<IntType>> auxv;
- string filename;
+ std::string filename;
if (argv.size() < 1)
filename = "";
else
#include "sim/process.hh"
#include "sim/system.hh"
-using namespace std;
using namespace SparcISA;
RemoteGDB::RemoteGDB(System *_system, ThreadContext *c, int _port)
#include "sim/system.hh"
using namespace SparcISA;
-using namespace std;
void
}
// These functions map register indices to names
-static inline string
+static inline std::string
getMiscRegName(RegIndex index)
{
- static string miscRegName[NumMiscRegs] =
+ static std::string miscRegName[NumMiscRegs] =
{/*"y", "ccr",*/ "asi", "tick", "fprs", "pcr", "pic",
"gsr", "softint_set", "softint_clr", "softint", "tick_cmpr",
"stick", "stick_cmpr",