From 204d65cbf317f5221bf74681ae5429c1d4502c79 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 9 Dec 2019 16:58:25 -0800 Subject: [PATCH] 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 --- src/sim/syscall_emul.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2