src/sim/syscall_emul_buf.hh
/**
     * Allocate a buffer of size 'size' representing the memory at
     * target address 'addr'.
     */
Allocate a buffer of size 'size' representing the memory at
target address 'addr'.
Allocate a buffer of size ' size ' representing the memory at target address ' addr ' .
BaseBufferArg(Addr _addr, int _size)
        : addr(_addr), size(_size), bufPtr(new uint8_t[size])
    {
        memset(bufPtr, 0, size);
    }
BaseBufferArg ( Addr _addr , int _size ) : addr ( _addr ) , size ( _size ) , bufPtr ( new uint8_t [ size ] ) { memset ( bufPtr , 0 , size ) ; }
Allocate a buffer of size 'size' representing the memory at
 target address 'addr'.
Allocate a buffer of size ' size ' representing the memory at target address ' addr ' .
// clear out buffer: in case we only partially populate this, // and then do a copyOut(), we want to make sure we don't // introduce any random junk into the simulated address space