Arm: Get rid of the unused copyStringArray32 method from Arm process classes.
authorGabe Black <gblack@eecs.umich.edu>
Thu, 24 Mar 2011 18:00:15 +0000 (14:00 -0400)
committerGabe Black <gblack@eecs.umich.edu>
Thu, 24 Mar 2011 18:00:15 +0000 (14:00 -0400)
src/arch/arm/process.cc
src/arch/arm/process.hh

index a5460ac195e23662c6e85791a996b58f30238de5..829911a7c9d4dd3a782554366e002519a97d91ab 100644 (file)
@@ -93,26 +93,6 @@ ArmLiveProcess::startup()
     }
 }
 
-void
-ArmLiveProcess::copyStringArray32(std::vector<std::string> &strings,
-        Addr array_ptr, Addr data_ptr,
-        TranslatingPort* memPort)
-{
-    Addr data_ptr_swap;
-    for (int i = 0; i < strings.size(); ++i) {
-        data_ptr_swap = htog(data_ptr);
-        memPort->writeBlob(array_ptr, (uint8_t*)&data_ptr_swap,
-                sizeof(uint32_t));
-        memPort->writeString(data_ptr, strings[i].c_str());
-        array_ptr += sizeof(uint32_t);
-        data_ptr += strings[i].size() + 1;
-    }
-    // add NULL terminator
-    data_ptr = 0;
-
-    memPort->writeBlob(array_ptr, (uint8_t*)&data_ptr, sizeof(uint32_t));
-}
-
 void
 ArmLiveProcess::argsInit(int intSize, int pageSize)
 {
index 3f7af2c9bcdded623e024465e31d17b9a4602336..6017f764903b3deae1134762018b1b18d0160c2d 100644 (file)
@@ -49,10 +49,6 @@ class ArmLiveProcess : public LiveProcess
 
     void startup();
 
-    void copyStringArray32(std::vector<std::string> &strings,
-            Addr array_ptr, Addr data_ptr,
-            TranslatingPort* memPort);
-
   public:
     void argsInit(int intSize, int pageSize);