From 76ab87c809dc1c22a39676551e5befb54c399697 Mon Sep 17 00:00:00 2001 From: Kyle Roarty Date: Fri, 6 Nov 2020 18:47:01 -0600 Subject: [PATCH] arch-x86: include system syscall header in syscall table files The getdents syscall is only implemented on hosts that define SYS_getdents, which is located in . That header was missed when splitting the syscall tables into their own files; this patch adds the header to the syscall table files. Change-Id: I28d54f6ea2874aa533c89ed7520561e19fe5e5f9 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/37195 Reviewed-by: Matt Sinclair Reviewed-by: Matthew Poremba Maintainer: Matt Sinclair Maintainer: Gabe Black Tested-by: kokoro --- src/arch/x86/linux/syscall_tbl32.cc | 2 ++ src/arch/x86/linux/syscall_tbl64.cc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/arch/x86/linux/syscall_tbl32.cc b/src/arch/x86/linux/syscall_tbl32.cc index 855de8833..50d0969b0 100644 --- a/src/arch/x86/linux/syscall_tbl32.cc +++ b/src/arch/x86/linux/syscall_tbl32.cc @@ -25,6 +25,8 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include + #include "arch/x86/linux/linux.hh" #include "arch/x86/linux/se_workload.hh" #include "arch/x86/linux/syscalls.hh" diff --git a/src/arch/x86/linux/syscall_tbl64.cc b/src/arch/x86/linux/syscall_tbl64.cc index 3516ea295..8630265e0 100644 --- a/src/arch/x86/linux/syscall_tbl64.cc +++ b/src/arch/x86/linux/syscall_tbl64.cc @@ -25,6 +25,8 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include + #include "arch/x86/linux/linux.hh" #include "arch/x86/linux/se_workload.hh" #include "arch/x86/linux/syscalls.hh" -- 2.30.2