From c8aea29bd6939b93f896603843baa20502738105 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Thu, 8 Jun 1995 21:37:35 +0000 Subject: [PATCH] * run.c (main): Grab return value from right register. --- sim/arm/ChangeLog | 9 +++++++++ sim/arm/run.c | 6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 sim/arm/ChangeLog 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]; } } -- 2.30.2