summaryrefslogtreecommitdiff
path: root/src/sim
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/process_impl.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sim/process_impl.hh b/src/sim/process_impl.hh
index 75134121b..da51c7f84 100644
--- a/src/sim/process_impl.hh
+++ b/src/sim/process_impl.hh
@@ -42,11 +42,11 @@ template<class AddrType>
void
copyStringArray(std::vector<std::string> &strings,
AddrType array_ptr, AddrType data_ptr,
- PortProxy& memProxy)
+ const ByteOrder bo, PortProxy& memProxy)
{
AddrType data_ptr_swap;
for (std::vector<std::string>::size_type i = 0; i < strings.size(); ++i) {
- data_ptr_swap = TheISA::htog(data_ptr);
+ data_ptr_swap = htog(data_ptr, bo);
memProxy.writeBlob(array_ptr, &data_ptr_swap, sizeof(AddrType));
memProxy.writeString(data_ptr, strings[i].c_str());
array_ptr += sizeof(AddrType);