sim: syscall: add common sim_syscall helpers
authorMike Frysinger <vapier@gentoo.org>
Mon, 15 Jun 2015 13:37:38 +0000 (19:22 +0545)
committerMike Frysinger <vapier@gentoo.org>
Wed, 17 Jun 2015 17:19:51 +0000 (13:19 -0400)
commit7d5c6c43ca8a5dd5491f4a58e977ec5501386ee3
treebc347f539bd5eb379bd6b8ce9adef4cdff2a9248
parent61a0c964e611eaf72489c3049ba206b2f91ea4a9
sim: syscall: add common sim_syscall helpers

Many ports have the same sim syscall logic, so add some helpers to handle
all the common details.  The arches still have to deal with the unpacking
and packing of the syscall arguments, but the rest of the sim<->callback
glue is now shared.
15 files changed:
sim/common/ChangeLog
sim/common/sim-syscall.c
sim/common/sim-syscall.h
sim/common/syscall.c
sim/lm32/ChangeLog
sim/lm32/traps.c
sim/m32r/ChangeLog
sim/m32r/traps-linux.c
sim/m32r/traps.c
sim/mcore/ChangeLog
sim/mcore/interp.c
sim/mn10300/ChangeLog
sim/mn10300/op_utils.c
sim/msp430/ChangeLog
sim/msp430/msp430-sim.c