#include "sim/syscall_return.hh"
#include "sim/system.hh"
-using namespace std;
using namespace MipsISA;
MipsProcess::MipsProcess(const ProcessParams ¶ms,
// Set up region for mmaps. Start it 1GB above the top of the heap.
Addr mmap_end = brk_point + 0x40000000L;
- 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
int auxv_array_size = intSize * 2 * (auxv.size() + 1);
int arg_data_size = 0;
- for (vector<string>::size_type i = 0; i < argv.size(); ++i) {
+ for (std::vector<std::string>::size_type i = 0; i < argv.size(); ++i) {
arg_data_size += argv[i].size() + 1;
}
int aux_data_size = numRandomBytes;
int env_data_size = 0;
- for (vector<string>::size_type i = 0; i < envp.size(); ++i) {
+ for (std::vector<std::string>::size_type i = 0; i < envp.size(); ++i) {
env_data_size += envp[i].size() + 1;
}
#include "params/MipsTLB.hh"
#include "sim/process.hh"
-using namespace std;
using namespace MipsISA;
///////////////////////////////////////////////////////////////////////
}
table[Index]=pte;
// Update fast lookup table
- lookupTable.insert(make_pair(table[Index].VPN, Index));
+ lookupTable.insert(std::make_pair(table[Index].VPN, Index));
}
}
ScopedCheckpointSection sec(cp, csprintf("PTE%d", i));
table[i].unserialize(cp);
if (table[i].V0 || table[i].V1) {
- lookupTable.insert(make_pair(table[i].VPN, i));
+ lookupTable.insert(std::make_pair(table[i].VPN, i));
}
}
}