From: Tony Gutierrez Date: Fri, 30 Nov 2018 17:19:21 +0000 (-0500) Subject: arch-x86: Add sys/syscall.h to x86 process.cc/syscall_emul.cc X-Git-Tag: v19.0.0.0~1340 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b7f8c22f4cca8de7222432066273912b65424e3;p=gem5.git arch-x86: Add sys/syscall.h to x86 process.cc/syscall_emul.cc Change a66d12c guards the selection of getdents() in x86's process.cc file with SYS_getdents, however process.cc does not include the right header for SYS_getdents, which leads to x86 choosing the unimplemented call. This change adds sys/syscall.h to address the problem. This change also adds sys/syscall.hh to syscall_emu.cc, which only includes syscall.hh and may not be supported on all systems. Change-Id: If1adcf41e9e455de5f2827ba98c542fdcacdc22e Reviewed-on: https://gem5-review.googlesource.com/c/14775 Reviewed-by: Ciro Santilli Reviewed-by: Nikos Nikoleris Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Maintainer: Brandon Potter --- diff --git a/src/arch/x86/linux/process.cc b/src/arch/x86/linux/process.cc index 22fe0026c..49d3e5aa8 100644 --- a/src/arch/x86/linux/process.cc +++ b/src/arch/x86/linux/process.cc @@ -39,6 +39,8 @@ #include "arch/x86/linux/process.hh" +#include + #include "arch/x86/isa_traits.hh" #include "arch/x86/linux/linux.hh" #include "arch/x86/registers.hh" diff --git a/src/sim/syscall_emul.cc b/src/sim/syscall_emul.cc index 4a6fafa27..3d17b5d75 100644 --- a/src/sim/syscall_emul.cc +++ b/src/sim/syscall_emul.cc @@ -32,7 +32,7 @@ #include "sim/syscall_emul.hh" #include -#include +#include #include #include