diff --git a/src/arch/riscv/linux/se_workload.cc b/src/arch/riscv/linux/se_workload.cc index f8053d4e66..dd9a8a2129 100644 --- a/src/arch/riscv/linux/se_workload.cc +++ b/src/arch/riscv/linux/se_workload.cc @@ -185,7 +185,11 @@ SyscallDescTable EmuLinux::syscallDescs64 = { { 58, "vhangup" }, { 59, "pipe2", pipe2Func }, { 60, "quotactl" }, +#if defined(SYS_getdents64) { 61, "getdents64", getdents64Func }, +#else + { 61, "getdents64" }, +#endif { 62, "lseek", lseekFunc }, { 63, "read", readFunc }, { 64, "write", writeFunc }, @@ -436,7 +440,11 @@ SyscallDescTable EmuLinux::syscallDescs64 = { { 1062, "time", timeFunc }, { 1063, "utime" }, { 1064, "creat" }, +#if defined(SYS_getdents) { 1065, "getdents", getdentsFunc }, +#else + { 1065, "getdents" }, +#endif { 1066, "futimesat" }, { 1067, "select", selectFunc }, { 1068, "poll", pollFunc }, @@ -516,7 +524,11 @@ SyscallDescTable EmuLinux::syscallDescs32 = { { 58, "vhangup" }, { 59, "pipe2", pipe2Func }, { 60, "quotactl" }, +#if defined(SYS_getdents64) { 61, "getdents64", getdents64Func }, +#else + { 61, "getdents64" }, +#endif { 62, "lseek", lseekFunc }, { 63, "read", readFunc }, { 64, "write", writeFunc }, @@ -767,7 +779,11 @@ SyscallDescTable EmuLinux::syscallDescs32 = { { 1062, "time", timeFunc }, { 1063, "utime" }, { 1064, "creat" }, +#if defined(SYS_getdents) { 1065, "getdents", getdentsFunc }, +#else + { 1065, "getdents" }, +#endif { 1066, "futimesat" }, { 1067, "select", selectFunc }, { 1068, "poll", pollFunc },