29#ifndef __SIM_PROCESS_IMPL_HH__
30#define __SIM_PROCESS_IMPL_HH__
41template<
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));
This object is a proxy for a port or other object which implements the functional response protocol,...
void writeBlob(Addr addr, const void *p, uint64_t size) const
Same as tryWriteBlob, but insists on success.
void writeString(Addr addr, const char *str) const
Same as tryWriteString, but insists on success.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
T htog(T value, ByteOrder guest_byte_order)
void copyStringArray(std::vector< std::string > &strings, AddrType array_ptr, AddrType data_ptr, const ByteOrder bo, PortProxy &memProxy)