From: Ciro Santilli Date: Wed, 26 Sep 2018 13:43:25 +0000 (+0100) Subject: syscall_emul: implement arm openat X-Git-Tag: v19.0.0.0~1449 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8162e0da0285d346046151b2a45ceeb1baf63b8f;p=gem5.git syscall_emul: implement arm openat This is especially important because the Ubuntu 18.04 packaged arm-linux-gnueabihf-gcc uses the system call on the program initialization, which leads all programs to fail with: fatal: syscall openat (#322) unimplemented. Change-Id: I5596162ad19644df7b6d21f2a46acc07030001ae Reviewed-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/c/13004 Maintainer: Andreas Sandberg --- diff --git a/src/arch/arm/linux/process.cc b/src/arch/arm/linux/process.cc index c01dece11..2c64a46ca 100644 --- a/src/arch/arm/linux/process.cc +++ b/src/arch/arm/linux/process.cc @@ -443,7 +443,7 @@ static SyscallDesc syscallDescs32[] = { /* 319 */ SyscallDesc("mbind", unimplementedFunc), /* 320 */ SyscallDesc("get_mempolicy", unimplementedFunc), /* 321 */ SyscallDesc("set_mempolicy", unimplementedFunc), - /* 322 */ SyscallDesc("openat", unimplementedFunc), + /* 322 */ SyscallDesc("openat", openatFunc), /* 323 */ SyscallDesc("mkdirat", unimplementedFunc), /* 324 */ SyscallDesc("mknodat", unimplementedFunc), /* 325 */ SyscallDesc("fchownat", unimplementedFunc),