arch-mips: Stop "using namespace std"
Change-Id: I0ad5ad71d8ba2d7c050d3f368341ce98d3f87a90 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/39559 Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br> Maintainer: Gabe Black <gabe.black@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -35,7 +35,6 @@
|
||||
#include "sim/serialize.hh"
|
||||
|
||||
using namespace MipsISA;
|
||||
using namespace std;
|
||||
|
||||
int32_t
|
||||
MipsISA::bitrev(int32_t value)
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
output header {{
|
||||
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
/**
|
||||
* Base class for instructions whose disassembly is not purely a
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
//
|
||||
output header {{
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
/**
|
||||
* Base class for integer operations.
|
||||
*/
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
//
|
||||
output header {{
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
/**
|
||||
* Base class for integer operations.
|
||||
*/
|
||||
|
||||
@@ -80,7 +80,7 @@ output decoder {{
|
||||
|
||||
std::string inst2string(MachInst machInst)
|
||||
{
|
||||
string str = "";
|
||||
std::string str = "";
|
||||
uint32_t mask = 0x80000000;
|
||||
|
||||
for(int i=0; i < 32; i++) {
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
#include "sim/syscall_return.hh"
|
||||
#include "sim/system.hh"
|
||||
|
||||
using namespace std;
|
||||
using namespace MipsISA;
|
||||
|
||||
MipsProcess::MipsProcess(const ProcessParams ¶ms,
|
||||
@@ -68,9 +67,9 @@ 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
|
||||
@@ -126,7 +125,7 @@ MipsProcess::argsInit(int pageSize)
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -134,7 +133,7 @@ MipsProcess::argsInit(int pageSize)
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
@@ -143,7 +143,6 @@
|
||||
#include "mem/page_table.hh"
|
||||
#include "sim/full_system.hh"
|
||||
|
||||
using namespace std;
|
||||
using namespace MipsISA;
|
||||
|
||||
RemoteGDB::RemoteGDB(System *_system, ThreadContext *tc, int _port)
|
||||
|
||||
@@ -46,7 +46,6 @@
|
||||
#include "params/MipsTLB.hh"
|
||||
#include "sim/process.hh"
|
||||
|
||||
using namespace std;
|
||||
using namespace MipsISA;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
@@ -169,7 +168,7 @@ TLB::insertAt(PTE &pte, unsigned Index, int _smallPages)
|
||||
}
|
||||
table[Index]=pte;
|
||||
// Update fast lookup table
|
||||
lookupTable.insert(make_pair(table[Index].VPN, Index));
|
||||
lookupTable.insert(std::make_pair(table[Index].VPN, Index));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -211,7 +210,7 @@ TLB::unserialize(CheckpointIn &cp)
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,6 @@
|
||||
#include "sim/serialize.hh"
|
||||
|
||||
using namespace MipsISA;
|
||||
using namespace std;
|
||||
|
||||
namespace MipsISA {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user