diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-03-03 03:34:54 +0000 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-03-03 03:34:54 +0000 |
commit | 477afcaf5b16068cdf9577ca9e9a407fb1b191a0 (patch) | |
tree | ee9cc9561b55596b63684018b24caec724f09dac /src/sim/process.cc | |
parent | 4b4b46ea908cfefc9a3b65285eedd4c251821c0c (diff) | |
download | gem5-477afcaf5b16068cdf9577ca9e9a407fb1b191a0.tar.xz |
Fix some issues with 32 bit processes.
--HG--
extra : convert_revision : b01b38bbf185f2279134db4976a9bdb3e381a670
Diffstat (limited to 'src/sim/process.cc')
-rw-r--r-- | src/sim/process.cc | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/sim/process.cc b/src/sim/process.cc index acc509a6f..b3ce182e5 100644 --- a/src/sim/process.cc +++ b/src/sim/process.cc @@ -300,24 +300,6 @@ DEFINE_SIM_OBJECT_CLASS_NAME("Process", Process) //////////////////////////////////////////////////////////////////////// -void -copyStringArray(vector<string> &strings, Addr array_ptr, Addr data_ptr, - TranslatingPort* memPort, int ptr_size) -{ - 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, ptr_size); - memPort->writeString(data_ptr, strings[i].c_str()); - array_ptr += ptr_size; - data_ptr += strings[i].size() + 1; - } - // add NULL terminator - data_ptr = 0; - - memPort->writeBlob(array_ptr, (uint8_t*)&data_ptr, ptr_size); -} - LiveProcess::LiveProcess(const string &nm, ObjectFile *_objFile, System *_system, int stdin_fd, int stdout_fd, int stderr_fd, |