* run.c (main): Grab return value from right register.
This commit is contained in:
parent
ba0784fe48
commit
c8aea29bd6
2 changed files with 12 additions and 3 deletions
9
sim/arm/ChangeLog
Normal file
9
sim/arm/ChangeLog
Normal file
|
@ -0,0 +1,9 @@
|
|||
Thu Jun 8 14:37:14 1995 Steve Chamberlain <sac@slash.cygnus.com>
|
||||
|
||||
* run.c (main): Grab return value from right register.
|
||||
|
||||
Wed May 24 14:37:31 1995 Steve Chamberlain <sac@slash.cygnus.com>
|
||||
|
||||
* New.
|
||||
|
||||
|
|
@ -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];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue