sim: Use the new returnInto method in cloneFunc.
authorGabe Black <gabeblack@google.com>
Tue, 10 Dec 2019 00:58:25 +0000 (16:58 -0800)
committerGabe Black <gabeblack@google.com>
Thu, 12 Mar 2020 07:21:13 +0000 (07:21 +0000)
This gets rid of the final use of setSyscallReturn.

Change-Id: I1108df0c5c72b5dec60128dced48ac0fd0356d24
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23504
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Gabe Black <gabeblack@google.com>

src/sim/syscall_emul.hh

index cc079537cc73eb569faf1a3e170d731745d02403..2503635a9d85bec68b498ec484a5013d6be1c03d 100644 (file)
@@ -1529,7 +1529,7 @@ cloneFunc(SyscallDesc *desc, int callnum, ThreadContext *tc,
 
     OS::archClone(flags, p, cp, tc, ctc, newStack, tlsPtr);
 
-    cp->setSyscallReturn(ctc, 0);
+    desc->returnInto(ctc, 0);
 
 #if THE_ISA == SPARC_ISA
     tc->setIntReg(TheISA::SyscallPseudoReturnReg, 0);