diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-04-18 20:53:03 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-04-18 21:22:31 -0400 |
commit | 7da5cf78fb1ba3e93cc5e79cf5084bd2b03f0fcf (patch) | |
tree | 6b5e493e21e20d52d35e251c11acf48b78919e31 /sim/common/syscall.c | |
parent | sim: d10v: fix build warnings (diff) | |
download | binutils-gdb-7da5cf78fb1ba3e93cc5e79cf5084bd2b03f0fcf.tar.gz binutils-gdb-7da5cf78fb1ba3e93cc5e79cf5084bd2b03f0fcf.tar.bz2 binutils-gdb-7da5cf78fb1ba3e93cc5e79cf5084bd2b03f0fcf.zip |
sim: syscall: add getpid support
Hoist the Blackfin implementation up to the common one.
Diffstat (limited to 'sim/common/syscall.c')
-rw-r--r-- | sim/common/syscall.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/common/syscall.c b/sim/common/syscall.c index fbe8021c8ef..f2883c493ac 100644 --- a/sim/common/syscall.c +++ b/sim/common/syscall.c @@ -578,6 +578,10 @@ cb_syscall (host_callback *cb, CB_SYSCALL *sc) } break; + case CB_SYS_getpid: + result = getpid (); + break; + case CB_SYS_time : { /* FIXME: May wish to change CB_SYS_time to something else. |