1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 61 unchanged lines hidden (view full) --- 70 memset(bufPtr, 0, size); 71 } 72 73 ~BaseBufferArg() { delete [] bufPtr; } 74 75 /** 76 * copy data into simulator space (read from target memory) 77 */ |
78 bool 79 copyIn(PortProxy &memproxy) |
80 { 81 memproxy.readBlob(addr, bufPtr, size); 82 return true; // no EFAULT detection for now 83 } 84 85 /** 86 * copy data out of simulator space (write to target memory) 87 */ |
88 bool 89 copyOut(PortProxy &memproxy) |
90 { 91 memproxy.writeBlob(addr, bufPtr, size); 92 return true; // no EFAULT detection for now 93 } 94 95 protected: 96 const Addr addr; ///< address of buffer in target address space 97 const int size; ///< buffer size --- 73 unchanged lines hidden --- |