#include "arch/power/insts/integer.hh"
-using namespace std;
using namespace PowerISA;
-string
+std::string
IntOp::generateDisassembly(Addr pc, const Loader::SymbolTable *symtab) const
{
- stringstream ss;
+ std::stringstream ss;
bool printDest = true;
bool printSrcs = true;
bool printSecondSrc = true;
// Generate the correct mnemonic
- string myMnemonic(mnemonic);
+ std::string myMnemonic(mnemonic);
// Special cases
if (!myMnemonic.compare("or") && srcRegIdx(0) == srcRegIdx(1)) {
}
-string
+std::string
IntImmOp::generateDisassembly(Addr pc, const Loader::SymbolTable *symtab) const
{
- stringstream ss;
+ std::stringstream ss;
// Generate the correct mnemonic
- string myMnemonic(mnemonic);
+ std::string myMnemonic(mnemonic);
// Special cases
if (!myMnemonic.compare("addi") && _numSrcRegs == 0) {
}
-string
+std::string
IntShiftOp::generateDisassembly(
Addr pc, const Loader::SymbolTable *symtab) const
{
- stringstream ss;
+ std::stringstream ss;
ccprintf(ss, "%-10s ", mnemonic);
}
-string
+std::string
IntRotateOp::generateDisassembly(
Addr pc, const Loader::SymbolTable *symtab) const
{
- stringstream ss;
+ std::stringstream ss;
ccprintf(ss, "%-10s ", mnemonic);
#include "sim/syscall_return.hh"
#include "sim/system.hh"
-using namespace std;
using namespace PowerISA;
PowerProcess::PowerProcess(
// Set up region for mmaps. For now, start at bottom of kuseg space.
Addr mmap_end = 0x70000000L;
- memState = make_shared<MemState>(this, brk_point, stack_base,
- max_stack_size, next_thread_stack_base,
- mmap_end);
+ memState = std::make_shared<MemState>(
+ this, brk_point, stack_base, max_stack_size,
+ next_thread_stack_base, mmap_end);
}
void
{
std::vector<AuxVector<uint32_t>> auxv;
- string filename;
+ std::string filename;
if (argv.size() < 1)
filename = "";
else
// A sentry NULL void pointer at the top of the stack.
int sentry_size = intSize;
- string platform = "v51";
+ std::string platform = "v51";
int platform_size = platform.size() + 1;
// The aux vectors are put on the stack in two groups. The first group are
#include "mem/page_table.hh"
#include "sim/byteswap.hh"
-using namespace std;
using namespace PowerISA;
RemoteGDB::RemoteGDB(System *_system, ThreadContext *tc, int _port)
#include "sim/full_system.hh"
#include "sim/process.hh"
-using namespace std;
using namespace PowerISA;
///////////////////////////////////////////////////////////////////////
table[Index]=pte;
// Update fast lookup table
- lookupTable.insert(make_pair(table[Index].VPN, Index));
+ lookupTable.insert(std::make_pair(table[Index].VPN, Index));
}
}
for (int i = 0; i < size; i++) {
ScopedCheckpointSection sec(cp, csprintf("PTE%d", i));
if (table[i].V0 || table[i].V1) {
- lookupTable.insert(make_pair(table[i].VPN, i));
+ lookupTable.insert(std::make_pair(table[i].VPN, i));
}
}
}