51 #include "arch/vtophys.hh" 58 :
PortProxy(tc->getCpuPtr()->getSendFunctional(),
59 tc->getSystemPtr()->cacheLineSize()), _tc(tc)
88 p =
static_cast<uint8_t *
>(
p) + gen.size();
107 p =
static_cast<const uint8_t *
>(
p) + gen.size();
A MasterPort is a specialisation of a BaseMasterPort, which implements the default protocol for the t...
void writeBlobPhys(Addr addr, Request::Flags flags, const void *p, int size) const
Write size bytes from p to physical address.
void readBlobPhys(Addr addr, Request::Flags flags, void *p, int size) const
Fixed functionality for use in base classes.
ThreadContext is the external interface to all thread state for anything outside of the CPU...
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...
bool tryWriteBlob(Addr addr, const void *p, int size) const override
Version of tryWriteBlob that translates virt->phys and deals with page boundries. ...
bool tryReadBlob(Addr addr, void *p, int size) const override
Version of tryReadblob that translates virt->phys and deals with page boundries.
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?
FSTranslatingPortProxy(ThreadContext *tc)
This object is a proxy for a port or other object which implements the functional response protocol...
std::function< void(PacketPtr pkt)> SendFunctionalFunc
TranslatingPortProxy Object Declaration for FS.
bool tryMemsetBlob(Addr address, uint8_t v, int size) const override
Fill size bytes starting at addr with byte value val.
Declaration and inline definition of ChunkGenerator object.