diff options
author | Steve Reinhardt <steve.reinhardt@amd.com> | 2014-10-22 15:53:34 -0700 |
---|---|---|
committer | Steve Reinhardt <steve.reinhardt@amd.com> | 2014-10-22 15:53:34 -0700 |
commit | df7f0892ed5f4522a4582aaed7e49622e3a33d9f (patch) | |
tree | 817255949246e509cbe88ce0db197ee3c03cb7a2 /src | |
parent | 44af2c6a6913d35a2c34bd928dbfdef3c16dcaf9 (diff) | |
download | gem5-df7f0892ed5f4522a4582aaed7e49622e3a33d9f.tar.xz |
syscall_emul: devirtualize BaseBufferArg methods
Not clear why they were marked virtual to begin with,
but that doesn't appear to be necessary.
Diffstat (limited to 'src')
-rw-r--r-- | src/sim/syscall_emul_buf.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sim/syscall_emul_buf.hh b/src/sim/syscall_emul_buf.hh index cbd10f2f6..e930846be 100644 --- a/src/sim/syscall_emul_buf.hh +++ b/src/sim/syscall_emul_buf.hh @@ -70,12 +70,12 @@ class BaseBufferArg { memset(bufPtr, 0, size); } - virtual ~BaseBufferArg() { delete [] bufPtr; } + ~BaseBufferArg() { delete [] bufPtr; } /** * copy data into simulator space (read from target memory) */ - virtual bool copyIn(SETranslatingPortProxy &memproxy) + bool copyIn(SETranslatingPortProxy &memproxy) { memproxy.readBlob(addr, bufPtr, size); return true; // no EFAULT detection for now @@ -84,7 +84,7 @@ class BaseBufferArg { /** * copy data out of simulator space (write to target memory) */ - virtual bool copyOut(SETranslatingPortProxy &memproxy) + bool copyOut(SETranslatingPortProxy &memproxy) { memproxy.writeBlob(addr, bufPtr, size); return true; // no EFAULT detection for now |