Go to the documentation of this file.
29 #ifndef __SIM_SYSCALL_EMUL_BUF_HH__
30 #define __SIM_SYSCALL_EMUL_BUF_HH__
173 #endif // __SIM_SYSCALL_EMUL_BUF_HH__
void writeBlob(Addr addr, const void *p, int size) const
Same as tryWriteBlob, but insists on success.
TypedBufferArg is a class template; instances of this template represent typed buffers in target user...
Base class for BufferArg and TypedBufferArg, Not intended to be used directly.
BaseBufferArg(Addr _addr, int _size)
Allocate a buffer of size 'size' representing the memory at target address 'addr'.
T * operator->()
Enable the use of '->' to reference fields where T is a struct type.
const int size
buffer size
BufferArg represents an untyped buffer in target user space that is passed by reference to an (emulat...
This object is a proxy for a port or other object which implements the functional response protocol,...
const Addr addr
address of buffer in target address space
void readBlob(Addr addr, void *p, int size) const
Higher level interfaces based on the above.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
BufferArg(Addr _addr, int _size)
Allocate a buffer of size 'size' representing the memory at target address 'addr'.
bool copyIn(const PortProxy &memproxy)
copy data into simulator space (read from target memory)
T & operator*()
Convert TypedBufferArg<T> to a reference to T that references the internal buffer value.
TypedBufferArg(Addr _addr, int _size=sizeof(T))
Allocate a buffer of type T representing the memory at target address 'addr'.
uint8_t *const bufPtr
pointer to buffer in simulator space
bool copyOut(const PortProxy &memproxy)
copy data out of simulator space (write to target memory)
void * bufferPtr()
Return a pointer to the internal simulator-space buffer.
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
T & operator[](int i)
Enable the use of '[]' to reference fields where T is an array type.
Generated on Sun Jul 30 2023 01:57:00 for gem5 by doxygen 1.8.17