Fix fclose() emulation
authorNick Clifton <nickc@redhat.com>
Mon, 14 Feb 2000 19:49:48 +0000 (19:49 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 14 Feb 2000 19:49:48 +0000 (19:49 +0000)
sim/mcore/ChangeLog
sim/mcore/interp.c

index 0ded4fb57f48215646b217438cb3f86e4734f701..d2c5b586cf70dfe89833d565c8abd7f4c654e660 100644 (file)
@@ -1,3 +1,8 @@
+2000-02-14  Nick Clifton  <nickc@cygnus.com>
+
+       * interp.c (handle_trap1): Fix handling of fclose system call.
+       Patch submitted by <drew.sarkisian@motorola.com>.
+
 2000-02-10  Nick Clifton  <nickc@cygnus.com>
 
        * interp.c (target_big_endian): New variable.
index 711326b6a45438852a20da6ce3ed378914200027..c1a39e7b83d2626222dde9f0ebebd3cbe72f17e0 100644 (file)
@@ -545,7 +545,7 @@ handle_trap1 ()
       break;
       
     case 6:
-      a[0] = (unsigned long) (cpu.gr[4]);
+      a[0] = (unsigned long) (cpu.gr[PARM1]);
       /* Watch out for debugger's files. */
       if (is_opened (a[0]))
        {