2006-03-07 Paul Brook <paul@codesourcery.com>
authorPaul Brook <paul@codesourcery.com>
Tue, 7 Mar 2006 19:55:55 +0000 (19:55 +0000)
committerPaul Brook <paul@codesourcery.com>
Tue, 7 Mar 2006 19:55:55 +0000 (19:55 +0000)
* elfos.c (ARMul_OSHandleSWI): Call correct function for IsTTY.

sim/arm/ChangeLog
sim/arm/armos.c

index df88ef1c42ab2514ceb0e041fe097d1821e12935..c4ea3bd007511b39fc262b3b49b75f4d4a8a6335 100644 (file)
@@ -1,3 +1,7 @@
+2006-03-07  Paul Brook  <paul@codesourcery.com>
+
+       * elfos.c (ARMul_OSHandleSWI): Call correct function for IsTTY.
+
 2006-02-01  Shaun Jackman  <sjackman@gmail.com>
 
        * armos.c (ARMul_OSHandleSWI): Handle the RedBoot system
index 8e346c73784c18eacdfa7d4ac5b227c140a3a69e..77390521009889ffe65dbcec4a78c35d72796528 100644 (file)
@@ -747,8 +747,8 @@ ARMul_OSHandleSWI (ARMul_State * state, ARMword number)
              break;
 
            case AngelSWI_Reason_IsTTY:
-             state->Reg[0] = sim_callback->close (sim_callback,
-                                                  ARMul_ReadWord (state, addr));
+             state->Reg[0] = sim_callback->isatty (sim_callback,
+                                                   ARMul_ReadWord (state, addr));
              OSptr->ErrorNo = sim_callback->get_errno (sim_callback);
              break;