syscall_emul_buf.hh (10498:91b05b34b074) | syscall_emul_buf.hh (14020:c9bf7a011602) |
---|---|
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 */ | 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 copyIn(SETranslatingPortProxy &memproxy) | 78 bool 79 copyIn(PortProxy &memproxy) |
79 { 80 memproxy.readBlob(addr, bufPtr, size); 81 return true; // no EFAULT detection for now 82 } 83 84 /** 85 * copy data out of simulator space (write to target memory) 86 */ | 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 */ |
87 bool copyOut(SETranslatingPortProxy &memproxy) | 88 bool 89 copyOut(PortProxy &memproxy) |
88 { 89 memproxy.writeBlob(addr, bufPtr, size); 90 return true; // no EFAULT detection for now 91 } 92 93 protected: 94 const Addr addr; ///< address of buffer in target address space 95 const int size; ///< buffer size --- 73 unchanged lines hidden --- | 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 --- |