From: Gabe Black Date: Tue, 10 Dec 2019 00:58:25 +0000 (-0800) Subject: sim: Use the new returnInto method in cloneFunc. X-Git-Tag: v20.0.0.0~366 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=204d65cbf317f5221bf74681ae5429c1d4502c79;p=gem5.git sim: Use the new returnInto method in cloneFunc. 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 Reviewed-by: Bobby R. Bruce Maintainer: Gabe Black --- diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh index cc079537c..2503635a9 100644 --- a/src/sim/syscall_emul.hh +++ b/src/sim/syscall_emul.hh @@ -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);