arch-arm: Add chdir implementation to the Syscall Table

Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Change-Id: I584d9269b0445347dd65071f7fc5569c8ac24b89
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/51549
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Giacomo Travaglini
2021-10-13 16:40:41 +01:00
parent 54d48c0244
commit 133997d515

View File

@@ -158,7 +158,7 @@ class SyscallTable32 : public SyscallDescTable<EmuLinux::SyscallABI32>
{ base + 9, "link" },
{ base + 10, "unlink", unlinkFunc },
{ base + 11, "execve", execveFunc<ArmLinux32> },
{ base + 12, "chdir" },
{ base + 12, "chdir", chdirFunc },
{ base + 13, "time", timeFunc<ArmLinux32> },
{ base + 14, "mknod" },
{ base + 15, "chmod", chmodFunc<ArmLinux32> },
@@ -547,7 +547,7 @@ class SyscallTable64 : public SyscallDescTable<EmuLinux::SyscallABI64>
{ base + 46, "ftruncate64", ftruncate64Func },
{ base + 47, "fallocate", fallocateFunc<ArmLinux64> },
{ base + 48, "faccessat", faccessatFunc<ArmLinux64> },
{ base + 49, "chdir" },
{ base + 49, "chdir", chdirFunc },
{ base + 50, "fchdir" },
{ base + 51, "chroot" },
{ base + 52, "fchmod" },