From: Michael Levenhagen <mjleven@sandia.gov>
Date: Tue, 23 Apr 2013 20:21:30 +0000 (-0500)
Subject: x86: enable gettimeofday and getppid system calls
X-Git-Tag: stable_2013_10_14~126
X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=794d00257add206cd5fdbcc1f106fbba23079a38;p=gem5.git

x86: enable gettimeofday and getppid system calls

Committed by: Nilay Vaish <nilay@cs.wisc.edu>
---

diff --git a/src/arch/x86/linux/syscalls.cc b/src/arch/x86/linux/syscalls.cc
index 19f09998a..f1cc3fe7c 100644
--- a/src/arch/x86/linux/syscalls.cc
+++ b/src/arch/x86/linux/syscalls.cc
@@ -309,7 +309,7 @@ SyscallDesc X86_64LinuxProcess::syscallDescs[] = {
     /*  93 */ SyscallDesc("fchown", unimplementedFunc),
     /*  94 */ SyscallDesc("lchown", unimplementedFunc),
     /*  95 */ SyscallDesc("umask", unimplementedFunc),
-    /*  96 */ SyscallDesc("gettimeofday", unimplementedFunc),
+    /*  96 */ SyscallDesc("gettimeofday", gettimeofdayFunc<X86Linux64>),
     /*  97 */ SyscallDesc("getrlimit", getrlimitFunc<X86Linux64>),
     /*  98 */ SyscallDesc("getrusage", getrusageFunc<X86Linux64>),
     /*  99 */ SyscallDesc("sysinfo", sysinfoFunc<X86Linux64>),
@@ -323,7 +323,7 @@ SyscallDesc X86_64LinuxProcess::syscallDescs[] = {
     /* 107 */ SyscallDesc("geteuid", geteuidFunc),
     /* 108 */ SyscallDesc("getegid", getegidFunc),
     /* 109 */ SyscallDesc("setpgid", unimplementedFunc),
-    /* 110 */ SyscallDesc("getppid", unimplementedFunc),
+    /* 110 */ SyscallDesc("getppid", getppidFunc),
     /* 111 */ SyscallDesc("getpgrp", unimplementedFunc),
     /* 112 */ SyscallDesc("setsid", unimplementedFunc),
     /* 113 */ SyscallDesc("setreuid", unimplementedFunc),