X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fsim%2Fprocess_impl.hh;h=b1905834b342af76d6b0a8e25cbdbe728698c658;hb=da0c770943a26cd258fcd9bf608e1c78ff8e6be5;hp=944c55ec0c2bfbd629ef5a3fefb0f87f8e3640e5;hpb=5b433568f05c6f1b093628c2a90f8383abfc1168;p=gem5.git diff --git a/src/sim/process_impl.hh b/src/sim/process_impl.hh index 944c55ec0..b1905834b 100644 --- a/src/sim/process_impl.hh +++ b/src/sim/process_impl.hh @@ -35,7 +35,7 @@ #include #include -#include "mem/translating_port.hh" +#include "mem/se_translating_port_proxy.hh" #include "sim/byteswap.hh" //This needs to be templated for cases where 32 bit pointers are needed. @@ -43,21 +43,21 @@ template void copyStringArray(std::vector &strings, AddrType array_ptr, AddrType data_ptr, - TranslatingPort* memPort) + SETranslatingPortProxy& memProxy) { AddrType data_ptr_swap; for (std::vector::size_type i = 0; i < strings.size(); ++i) { - data_ptr_swap = htog(data_ptr); - memPort->writeBlob(array_ptr, (uint8_t*)&data_ptr_swap, + data_ptr_swap = TheISA::htog(data_ptr); + memProxy.writeBlob(array_ptr, (uint8_t*)&data_ptr_swap, sizeof(AddrType)); - memPort->writeString(data_ptr, strings[i].c_str()); + memProxy.writeString(data_ptr, strings[i].c_str()); array_ptr += sizeof(AddrType); data_ptr += strings[i].size() + 1; } // add NULL terminator data_ptr = 0; - memPort->writeBlob(array_ptr, (uint8_t*)&data_ptr, sizeof(AddrType)); + memProxy.writeBlob(array_ptr, (uint8_t*)&data_ptr, sizeof(AddrType)); } #endif