summaryrefslogtreecommitdiff
path: root/src/sim/syscall_emul.hh
diff options
context:
space:
mode:
authorRick Strong <rstrong@cs.ucsd.edu>2007-11-29 00:22:46 -0500
committerRick Strong <rstrong@cs.ucsd.edu>2007-11-29 00:22:46 -0500
commit376c7285eedf5b235a414accf9f5253a4d55633e (patch)
tree1382af9b9573e5948df9720d0c1a2465aca6bd9d /src/sim/syscall_emul.hh
parentab598eadbfeefceb6501d4cca13147b660642d9e (diff)
downloadgem5-376c7285eedf5b235a414accf9f5253a4d55633e.tar.xz
Serialization: Fix serialization of file descriptors. Make sure open
file descriptors are reopened and the file pointer is in the same place as when the checkpoint occured. Signed-off by: Ali Saidi --HG-- extra : convert_revision : d9d2cd388c9c02f60e1269d6845891c35f94fc47
Diffstat (limited to 'src/sim/syscall_emul.hh')
-rw-r--r--src/sim/syscall_emul.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh
index abab356df..e35b0a75b 100644
--- a/src/sim/syscall_emul.hh
+++ b/src/sim/syscall_emul.hh
@@ -518,7 +518,7 @@ openFunc(SyscallDesc *desc, int callnum, LiveProcess *process,
// open the file
int fd = open(path.c_str(), hostFlags, mode);
- return (fd == -1) ? -errno : process->alloc_fd(fd);
+ return (fd == -1) ? -errno : process->alloc_fd(fd,path.c_str(),hostFlags,mode, false);
}