changeset e8536709cbc0 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=e8536709cbc0
description:
        x86: remove unnecessary parameter from functions

diffstat:

 src/arch/x86/process.cc |  10 +++++-----
 src/arch/x86/process.hh |   6 +++---
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (78 lines):

diff -r 3bfed693ff22 -r e8536709cbc0 src/arch/x86/process.cc
--- a/src/arch/x86/process.cc   Mon Feb 27 13:18:51 2017 -0500
+++ b/src/arch/x86/process.cc   Mon Feb 27 14:09:30 2017 -0500
@@ -188,7 +188,7 @@
 {
     X86Process::initState();
 
-    argsInit(sizeof(uint64_t), PageBytes);
+    argsInit(PageBytes);
 
        // Set up the vsyscall page for this process.
     allocateMem(vsyscallPage.base, vsyscallPage.size);
@@ -632,7 +632,7 @@
 {
     X86Process::initState();
 
-    argsInit(sizeof(uint32_t), PageBytes);
+    argsInit(PageBytes);
 
     /*
      * Set up a GDT for this process. The whole GDT wouldn't really be for
@@ -749,7 +749,7 @@
 template<class IntType>
 void
 X86Process::argsInit(int pageSize,
-        std::vector<AuxVector<IntType> > extraAuxvs)
+                     std::vector<AuxVector<IntType> > extraAuxvs)
 {
     int intSize = sizeof(IntType);
 
@@ -1034,7 +1034,7 @@
 }
 
 void
-X86_64Process::argsInit(int intSize, int pageSize)
+X86_64Process::argsInit(int pageSize)
 {
     std::vector<AuxVector<uint64_t> > extraAuxvs;
     extraAuxvs.push_back(AuxVector<uint64_t>(M5_AT_SYSINFO_EHDR,
@@ -1043,7 +1043,7 @@
 }
 
 void
-I386Process::argsInit(int intSize, int pageSize)
+I386Process::argsInit(int pageSize)
 {
     std::vector<AuxVector<uint32_t> > extraAuxvs;
     //Tell the binary where the vsyscall part of the vsyscall page is.
diff -r 3bfed693ff22 -r e8536709cbc0 src/arch/x86/process.hh
--- a/src/arch/x86/process.hh   Mon Feb 27 13:18:51 2017 -0500
+++ b/src/arch/x86/process.hh   Mon Feb 27 14:09:30 2017 -0500
@@ -70,7 +70,7 @@
 
         template<class IntType>
         void argsInit(int pageSize,
-                std::vector<AuxVector<IntType> > extraAuxvs);
+                      std::vector<AuxVector<IntType> > extraAuxvs);
 
       public:
         Addr gdtStart()
@@ -101,7 +101,7 @@
         VSyscallPage vsyscallPage;
 
       public:
-        void argsInit(int intSize, int pageSize);
+        void argsInit(int pageSize);
         void initState();
 
         X86ISA::IntReg getSyscallArg(ThreadContext *tc, int &i);
@@ -127,7 +127,7 @@
         VSyscallPage vsyscallPage;
 
       public:
-        void argsInit(int intSize, int pageSize);
+        void argsInit(int pageSize);
         void initState();
 
         void syscall(int64_t callnum, ThreadContext *tc, Fault *fault);
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to