arch,sim: Convert clone to GuestABI and define a cloneBackwardsFunc.
authorGabe Black <gabeblack@google.com>
Thu, 28 Nov 2019 07:03:14 +0000 (23:03 -0800)
committerGabe Black <gabeblack@google.com>
Thu, 12 Mar 2020 00:43:28 +0000 (00:43 +0000)
commitca867678a6d63f454fcf5d4c751b44a0224b3c76
treefe7dcd894e4c1de2ffe77efc2facc1c63e6077fc
parent382dda67dc88bb5ed4a09ebd4b63ff28954ed679
arch,sim: Convert clone to GuestABI and define a cloneBackwardsFunc.

cloneBackwardsFunc takes its arguments in the order specified for
ARM and RISCV. Because of the new GuestABI mechanism, it can be a
simple wrapper around the normal clone implementation without the need
for #ifdefs.

Jira Issue: https://gem5.atlassian.net/browse/GEM5-187

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