summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Potter <brandon.potter@amd.com>2016-11-09 14:27:42 -0600
committerBrandon Potter <brandon.potter@amd.com>2016-11-09 14:27:42 -0600
commit6c41181b8e39e776ea2f018bf383fed2782c3d4a (patch)
tree49200e2a407754ef2ae9ecc4b63de98348ae7c20
parent49009f170a631eea259dc031b3ce4593f8783d19 (diff)
downloadgem5-6c41181b8e39e776ea2f018bf383fed2782c3d4a.tar.xz
syscall_emul: [patch 9/22] remove unused global variable (num_processes)
-rw-r--r--src/arch/sparc/process.cc2
-rw-r--r--src/arch/x86/process.cc2
-rw-r--r--src/sim/process.cc3
3 files changed, 0 insertions, 7 deletions
diff --git a/src/arch/sparc/process.cc b/src/arch/sparc/process.cc
index 121f2f710..5c4f43b67 100644
--- a/src/arch/sparc/process.cc
+++ b/src/arch/sparc/process.cc
@@ -415,8 +415,6 @@ SparcProcess::argsInit(int pageSize)
// Align the "stack_min" to a page boundary.
stack_min = roundDown(stack_min, pageSize);
-
-// num_processes++;
}
void
diff --git a/src/arch/x86/process.cc b/src/arch/x86/process.cc
index 245fbebf4..dfbd41e4e 100644
--- a/src/arch/x86/process.cc
+++ b/src/arch/x86/process.cc
@@ -1031,8 +1031,6 @@ X86Process::argsInit(int pageSize,
//Align the "stack_min" to a page boundary.
stack_min = roundDown(stack_min, pageSize);
-
-// num_processes++;
}
void
diff --git a/src/sim/process.cc b/src/sim/process.cc
index 50ebc9cec..9510fd71d 100644
--- a/src/sim/process.cc
+++ b/src/sim/process.cc
@@ -90,9 +90,6 @@
using namespace std;
using namespace TheISA;
-// current number of allocated processes
-int num_processes = 0;
-
static int
openFile(const string& filename, int flags, mode_t mode)
{