sim: Remove the get*PseudoFunc handlers.
authorGabe Black <gabeblack@google.com>
Sun, 8 Dec 2019 02:14:11 +0000 (18:14 -0800)
committerGabe Black <gabeblack@google.com>
Thu, 12 Mar 2020 01:35:34 +0000 (01:35 +0000)
These were used in Alpha which has been removed.

Change-Id: I801ef71972b0c3d2aa04d682a3a94acfb27ac7ed
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23449
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/sim/syscall_emul.cc
src/sim/syscall_emul.hh

index 913a26591ac12ec3b830d72ea187d3d2952bd9c2..4ab472aaf0bbc607ef1c379cdb6eb0d5fad918bf 100644 (file)
@@ -969,37 +969,6 @@ setpgidFunc(SyscallDesc *desc, int callnum, ThreadContext *tc,
     return 0;
 }
 
-SyscallReturn
-getpidPseudoFunc(SyscallDesc *desc, int callnum, ThreadContext *tc)
-{
-    // Make up a PID.  There's no interprocess communication in
-    // fake_syscall mode, so there's no way for a process to know it's
-    // not getting a unique value.
-
-    auto process = tc->getProcessPtr();
-    return SyscallReturn(process->pid(), process->ppid());
-}
-
-
-SyscallReturn
-getuidPseudoFunc(SyscallDesc *desc, int callnum, ThreadContext *tc)
-{
-    // Make up a UID and EUID... it shouldn't matter, and we want the
-    // simulation to be deterministic.
-
-    auto process = tc->getProcessPtr();
-    return SyscallReturn(process->uid(), process->euid());
-}
-
-
-SyscallReturn
-getgidPseudoFunc(SyscallDesc *desc, int callnum, ThreadContext *tc)
-{
-    // Get current group ID.
-    auto process = tc->getProcessPtr();
-    return SyscallReturn(process->gid(), process->egid());
-}
-
 
 SyscallReturn
 getpidFunc(SyscallDesc *desc, int callnum, ThreadContext *tc)
index 2fd5fa7e56444efcf551793258fee0f008200695..6be574ac887ffdd3bff7e405d73edad816f55071 100644 (file)
@@ -503,20 +503,10 @@ futexFunc(SyscallDesc *desc, int callnum, ThreadContext *tc,
     return -ENOSYS;
 }
 
-
 /// Pseudo Funcs  - These functions use a different return convension,
 /// returning a second value in a register other than the normal return register
 SyscallReturn pipePseudoFunc(SyscallDesc *desc, int num, ThreadContext *tc);
 
-/// Target getpidPseudo() handler.
-SyscallReturn getpidPseudoFunc(SyscallDesc *desc, int num, ThreadContext *tc);
-
-/// Target getuidPseudo() handler.
-SyscallReturn getuidPseudoFunc(SyscallDesc *desc, int num, ThreadContext *tc);
-
-/// Target getgidPseudo() handler.
-SyscallReturn getgidPseudoFunc(SyscallDesc *desc, int num, ThreadContext *tc);
-
 
 /// A readable name for 1,000,000, for converting microseconds to seconds.
 const int one_million = 1000000;