sim: Convert most of the common syscalls to use the guest ABI.
authorGabe Black <gabeblack@google.com>
Wed, 27 Nov 2019 01:46:37 +0000 (17:46 -0800)
committerGabe Black <gabeblack@google.com>
Sat, 8 Feb 2020 12:59:10 +0000 (12:59 +0000)
commit97c02b000e066bc5c97fb6876cdde32b71410567
tree8216a171f1996fae8083286402ab812d88dd20f4
parentc7cb8bb5d8caf071322524010ad74ad25792655e
sim: Convert most of the common syscalls to use the guest ABI.

A couple tricky instances were left alone for now, specifically one
place where the size of the argument is specified explicitly (the
default ABI always leaves off the size), and two places where the
arguments are variadic which is not yet supported.

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

Change-Id: I2ec19bea77d329de3575e17e9f7209f4fd871aa6
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23193
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/sim/syscall_emul.cc
src/sim/syscall_emul.hh