sim-se: implement the getcpu syscall
Change-Id: I63a1384646829b8cf68453c42aed6a7d12172787 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/28590 Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2010-2013, 2015 ARM Limited
|
||||
* Copyright (c) 2010-2013, 2015, 2020 ARM Limited
|
||||
* All rights reserved
|
||||
*
|
||||
* The license below extends only to copyright in the software and shall
|
||||
@@ -476,7 +476,7 @@ class SyscallTable32 :
|
||||
{ base + 342, "tee" },
|
||||
{ base + 343, "vmsplice" },
|
||||
{ base + 344, "move_pages" },
|
||||
{ base + 345, "getcpu" },
|
||||
{ base + 345, "getcpu", getcpuFunc },
|
||||
{ base + 346, "epoll_pwait" },
|
||||
{ base + 347, "sys_kexec_load" },
|
||||
{ base + 348, "sys_utimensat" },
|
||||
@@ -681,7 +681,7 @@ class SyscallTable64 :
|
||||
{ base + 165, "getrusage", getrusageFunc<ArmLinux64> },
|
||||
{ base + 166, "umask" },
|
||||
{ base + 167, "prctl" },
|
||||
{ base + 168, "getcpu" },
|
||||
{ base + 168, "getcpu", getcpuFunc },
|
||||
{ base + 169, "gettimeofday", gettimeofdayFunc<ArmLinux64> },
|
||||
{ base + 170, "settimeofday" },
|
||||
{ base + 171, "adjtimex" },
|
||||
|
||||
@@ -566,7 +566,7 @@ static SyscallDescTable<X86_64LinuxProcess::SyscallABI> syscallDescs64 = {
|
||||
{ 306, "syncfs" },
|
||||
{ 307, "sendmmsg" },
|
||||
{ 308, "setns" },
|
||||
{ 309, "getcpu" },
|
||||
{ 309, "getcpu", getcpuFunc },
|
||||
{ 310, "proess_vm_readv" },
|
||||
{ 311, "proess_vm_writev" },
|
||||
{ 312, "kcmp" },
|
||||
@@ -914,7 +914,7 @@ static SyscallDescTable<I386LinuxProcess::SyscallABI> syscallDescs32 = {
|
||||
{ 315, "tee" },
|
||||
{ 316, "vmsplice" },
|
||||
{ 317, "move_pages" },
|
||||
{ 318, "getcpu" },
|
||||
{ 318, "getcpu", getcpuFunc },
|
||||
{ 319, "epoll_pwait" },
|
||||
{ 320, "utimensat" },
|
||||
{ 321, "signalfd" },
|
||||
|
||||
Reference in New Issue
Block a user