From b792e9e43c855cdb2fbf71084ee8e60eb4878741 Mon Sep 17 00:00:00 2001 From: Brandon Potter Date: Wed, 9 Nov 2016 14:27:41 -0600 Subject: [PATCH] syscall_emul: [patch 6/22] remove unused fields from Process class It looks like tru64 has some nxm* system calls, but the two fields that are defined in the Process class are unused by any of the code. There doesn't appear to be any reference in the tru64 code. --- src/sim/process.cc | 5 ----- src/sim/process.hh | 4 ---- 2 files changed, 9 deletions(-) diff --git a/src/sim/process.cc b/src/sim/process.cc index ceec47ce4..bcb9b582f 100644 --- a/src/sim/process.cc +++ b/src/sim/process.cc @@ -189,7 +189,6 @@ Process::Process(ProcessParams * params, ObjectFile * obj_file) 0664, false); mmap_end = 0; - nxm_start = nxm_end = 0; // other parameters will be initialized when the program is loaded // load up symbols, if any... these may be used for debugging or @@ -470,8 +469,6 @@ Process::serialize(CheckpointOut &cp) const SERIALIZE_SCALAR(stack_min); SERIALIZE_SCALAR(next_thread_stack_base); SERIALIZE_SCALAR(mmap_end); - SERIALIZE_SCALAR(nxm_start); - SERIALIZE_SCALAR(nxm_end); pTable->serialize(cp); for (int x = 0; x < fd_array->size(); x++) { (*fd_array)[x].serializeSection(cp, csprintf("FDEntry%d", x)); @@ -488,8 +485,6 @@ Process::unserialize(CheckpointIn &cp) UNSERIALIZE_SCALAR(stack_min); UNSERIALIZE_SCALAR(next_thread_stack_base); UNSERIALIZE_SCALAR(mmap_end); - UNSERIALIZE_SCALAR(nxm_start); - UNSERIALIZE_SCALAR(nxm_end); pTable->unserialize(cp); for (int x = 0; x < fd_array->size(); x++) { FDEntry *fde = getFDEntry(x); diff --git a/src/sim/process.hh b/src/sim/process.hh index 4b0428585..5d6835c21 100644 --- a/src/sim/process.hh +++ b/src/sim/process.hh @@ -116,10 +116,6 @@ class Process : public SimObject // instead, so they can override thie method to return false. virtual bool mmapGrowsDown() const { return true; } - // Base of region for nxm data - Addr nxm_start; - Addr nxm_end; - Stats::Scalar num_syscalls; // number of syscalls executed protected: -- 2.30.2