Go to the documentation of this file.
29 #ifndef __SIM_PROCESS_IMPL_HH__
30 #define __SIM_PROCESS_IMPL_HH__
38 template<
class AddrType>
41 AddrType array_ptr, AddrType data_ptr,
44 AddrType data_ptr_swap;
46 data_ptr_swap =
htog(data_ptr,
bo);
47 memProxy.
writeBlob(array_ptr, &data_ptr_swap,
sizeof(AddrType));
49 array_ptr +=
sizeof(AddrType);
50 data_ptr += strings[
i].size() + 1;
55 memProxy.
writeBlob(array_ptr, &data_ptr,
sizeof(AddrType));
void writeBlob(Addr addr, const void *p, int size) const
Same as tryWriteBlob, but insists on success.
void writeString(Addr addr, const char *str) const
Same as tryWriteString, but insists on success.
T htog(T value, ByteOrder guest_byte_order)
This object is a proxy for a port or other object which implements the functional response protocol,...
void copyStringArray(std::vector< std::string > &strings, AddrType array_ptr, AddrType data_ptr, const ByteOrder bo, PortProxy &memProxy)
Generated on Wed Sep 30 2020 14:02:14 for gem5 by doxygen 1.8.17