32 #ifndef __SIM_PROCESS_IMPL_HH__ 33 #define __SIM_PROCESS_IMPL_HH__ 41 template<
class AddrType>
44 AddrType array_ptr, AddrType data_ptr,
47 AddrType data_ptr_swap;
49 data_ptr_swap =
htog(data_ptr, bo);
50 memProxy.
writeBlob(array_ptr, &data_ptr_swap,
sizeof(AddrType));
52 array_ptr +=
sizeof(AddrType);
53 data_ptr += strings[
i].size() + 1;
58 memProxy.
writeBlob(array_ptr, &data_ptr,
sizeof(AddrType));
void writeString(Addr addr, const char *str) const
Same as tryWriteString, but insists on success.
T htog(T value, ByteOrder guest_byte_order)
void writeBlob(Addr addr, const void *p, int size) const
Same as tryWriteBlob, but insists on success.
void copyStringArray(std::vector< std::string > &strings, AddrType array_ptr, AddrType data_ptr, const ByteOrder bo, PortProxy &memProxy)
This object is a proxy for a port or other object which implements the functional response protocol...
TranslatingPortProxy Object Declaration for SE.