From: Steve Chamberlain Date: Thu, 8 Jun 1995 21:37:35 +0000 (+0000) Subject: * run.c (main): Grab return value from right register. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c8aea29bd6939b93f896603843baa20502738105;p=binutils-gdb.git * run.c (main): Grab return value from right register. --- diff --git a/sim/arm/ChangeLog b/sim/arm/ChangeLog new file mode 100644 index 00000000000..b620f609d78 --- /dev/null +++ b/sim/arm/ChangeLog @@ -0,0 +1,9 @@ +Thu Jun 8 14:37:14 1995 Steve Chamberlain + + * run.c (main): Grab return value from right register. + +Wed May 24 14:37:31 1995 Steve Chamberlain + + * New. + + diff --git a/sim/arm/run.c b/sim/arm/run.c index 3b911d2bf4c..8cdf6dbca22 100644 --- a/sim/arm/run.c +++ b/sim/arm/run.c @@ -117,11 +117,11 @@ main (ac, av) sim_info (0); /* Assume we left through the exit system call, - in which case r5 has the exit code */ + in which case r0 has the exit code */ { unsigned char b[4]; - sim_fetch_register (5, b); - return b[3]; + sim_fetch_register (0, b); + return b[0]; } }