From: Gabe Black Date: Thu, 12 Mar 2020 01:05:32 +0000 (-0700) Subject: x86: Hook up pread64 in 32/64 bit linux, and pwrite64 in 32 bit. X-Git-Tag: v20.0.0.0~334 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6bc95729143becf35ec2a549c539db65f732187a;p=gem5.git x86: Hook up pread64 in 32/64 bit linux, and pwrite64 in 32 bit. My new computer has a dynamic linker which seems to use the pread64 system call, and since that gets pulled in when running tests, that needs to be implemented for tests to pass on that machine, making it possible to detect problems the failure might ohterwise mask. This is only really necessary for 64 bit linux, but while I'm here I hooked it up for 32 bit linux as well. I also added pwrite64 for 32 bit linux since that was only enabled for 64 bit. Change-Id: I8d2061d30e98a1581c5e30b522b6ba12aea20ecd Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/26604 Reviewed-by: Matthew Poremba Maintainer: Bobby R. Bruce Tested-by: kokoro --- diff --git a/src/arch/x86/linux/process.cc b/src/arch/x86/linux/process.cc index 36a75d79c..5d6e5f56d 100644 --- a/src/arch/x86/linux/process.cc +++ b/src/arch/x86/linux/process.cc @@ -272,7 +272,7 @@ static SyscallDescABI syscallDescs64[] = { /* 14 */ { "rt_sigprocmask", ignoreWarnOnceFunc }, /* 15 */ { "rt_sigreturn" }, /* 16 */ { "ioctl", ioctlFunc }, - /* 17 */ { "pread64" }, + /* 17 */ { "pread64", pread64Func }, /* 18 */ { "pwrite64", pwrite64Func }, /* 19 */ { "readv", readvFunc }, /* 20 */ { "writev", writevFunc }, @@ -783,8 +783,8 @@ static SyscallDescABI syscallDescs32[] = { /* 177 */ { "rt_sigtimedwait" }, /* 178 */ { "rt_sigqueueinfo" }, /* 179 */ { "rt_sigsuspend" }, - /* 180 */ { "pread64" }, - /* 181 */ { "pwrite64" }, + /* 180 */ { "pread64", pread64Func }, + /* 181 */ { "pwrite64", pwrite64Func }, /* 182 */ { "chown" }, /* 183 */ { "getcwd", getcwdFunc }, /* 184 */ { "capget" },