summaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
authorBrandon Potter <brandon.potter@amd.com>2015-04-22 07:51:27 -0700
committerBrandon Potter <brandon.potter@amd.com>2015-04-22 07:51:27 -0700
commit4991c2996516b3226c37cde7ea4b05552e66277a (patch)
tree60fdc46ad2a057da7fd23e8018fc5be81fcee76a /src/arch/x86
parent00e3cab8fc3ffce89c4bbb2e6c4ab3aea873a18d (diff)
downloadgem5-4991c2996516b3226c37cde7ea4b05552e66277a.tar.xz
syscall_emul: implement clock_gettime system call
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/linux/process.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/x86/linux/process.cc b/src/arch/x86/linux/process.cc
index 05a323bd4..9a2bb96b5 100644
--- a/src/arch/x86/linux/process.cc
+++ b/src/arch/x86/linux/process.cc
@@ -446,7 +446,7 @@ static SyscallDesc syscallDescs64[] = {
/* 225 */ SyscallDesc("timer_getoverrun", unimplementedFunc),
/* 226 */ SyscallDesc("timer_delete", unimplementedFunc),
/* 227 */ SyscallDesc("clock_settime", unimplementedFunc),
- /* 228 */ SyscallDesc("clock_gettime", unimplementedFunc),
+ /* 228 */ SyscallDesc("clock_gettime", clock_gettimeFunc<X86Linux64>),
/* 229 */ SyscallDesc("clock_getres", unimplementedFunc),
/* 230 */ SyscallDesc("clock_nanosleep", unimplementedFunc),
/* 231 */ SyscallDesc("exit_group", exitGroupFunc),
@@ -806,7 +806,7 @@ static SyscallDesc syscallDescs32[] = {
/* 262 */ SyscallDesc("timer_getoverrun", unimplementedFunc),
/* 263 */ SyscallDesc("timer_delete", unimplementedFunc),
/* 264 */ SyscallDesc("clock_settime", unimplementedFunc),
- /* 265 */ SyscallDesc("clock_gettime", unimplementedFunc),
+ /* 265 */ SyscallDesc("clock_gettime", clock_gettimeFunc<X86Linux32>),
/* 266 */ SyscallDesc("clock_getres", unimplementedFunc),
/* 267 */ SyscallDesc("clock_nanosleep", unimplementedFunc),
/* 268 */ SyscallDesc("statfs64", unimplementedFunc),