From 8162e0da0285d346046151b2a45ceeb1baf63b8f Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Wed, 26 Sep 2018 14:43:25 +0100 Subject: [PATCH] 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 --- src/arch/arm/linux/process.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- 2.30.2