* run.c (main): Grab return value from right register.
authorSteve Chamberlain <sac@cygnus>
Thu, 8 Jun 1995 21:37:35 +0000 (21:37 +0000)
committerSteve Chamberlain <sac@cygnus>
Thu, 8 Jun 1995 21:37:35 +0000 (21:37 +0000)
sim/arm/ChangeLog [new file with mode: 0644]
sim/arm/run.c

diff --git a/sim/arm/ChangeLog b/sim/arm/ChangeLog
new file mode 100644 (file)
index 0000000..b620f60
--- /dev/null
@@ -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.
+
+
index 3b911d2bf4c830f7b240fcdbdd48e43d6b2d750e..8cdf6dbca2271d31669b8c2fdec896a66fd4fd03 100644 (file)
@@ -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];
          }
 
        }