44 void *
p,
int size)
const 49 auto req = std::make_shared<Request>(
53 pkt.dataStatic(static_cast<uint8_t *>(p));
55 p =
static_cast<uint8_t *
>(
p) + gen.size();
61 const void *
p,
int size)
const 66 auto req = std::make_shared<Request>(
70 pkt.dataStaticConst(static_cast<const uint8_t *>(p));
72 p =
static_cast<const uint8_t *
>(
p) + gen.size();
78 uint8_t
v,
int size)
const 81 uint8_t *buf =
new uint8_t[size];
83 std::memset(buf, v, size);
virtual bool tryWriteBlob(Addr addr, const void *p, int size) const
Write size bytes from p to address.
virtual bool tryReadBlob(Addr addr, void *p, int size) const
Methods to override in base classes.
void writeBlobPhys(Addr addr, Request::Flags flags, const void *p, int size) const
Write size bytes from p to physical address.
const unsigned int _cacheLineSize
Granularity of any transactions issued through this proxy.
void readBlobPhys(Addr addr, Request::Flags flags, void *p, int size) const
Fixed functionality for use in base classes.
bool tryWriteString(Addr addr, const char *str) const
Write the string str into guest memory at address addr.
This master id is used for functional requests that don't come from a particular device.
PortProxy Object Declaration.
void memsetBlobPhys(Addr addr, Request::Flags flags, uint8_t v, int size) const
Fill size bytes starting at physical addr with byte value val.
This class takes an arbitrary memory region (address/length pair) and generates a series of appropria...
SendFunctionalFunc sendFunctional
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
bool done() const
Are we done? That is, did the last call to next() advance past the end of the region?
A Packet is used to encapsulate a transfer between two objects in the memory system (e...
Declaration and inline definition of ChunkGenerator object.
bool tryReadString(std::string &str, Addr addr) const
Reads the string at guest address addr into the std::string str.