diff options
author | Steve Chamberlain <sac@cygnus> | 1995-06-08 21:37:35 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1995-06-08 21:37:35 +0000 |
commit | c8aea29bd6939b93f896603843baa20502738105 (patch) | |
tree | 33b03d4c6e9b1959f5168a4400d5211aa0e9a002 /sim/arm/run.c | |
parent | ba0784fe48b448739710c5443b655734cde5e664 (diff) | |
download | gdb-c8aea29bd6939b93f896603843baa20502738105.zip gdb-c8aea29bd6939b93f896603843baa20502738105.tar.gz gdb-c8aea29bd6939b93f896603843baa20502738105.tar.bz2 |
* run.c (main): Grab return value from right register.
Diffstat (limited to 'sim/arm/run.c')
-rw-r--r-- | sim/arm/run.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/arm/run.c b/sim/arm/run.c index 3b911d2..8cdf6db 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]; } } |