summaryrefslogtreecommitdiff
path: root/sim/mcore
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-02-14 19:49:48 +0000
committerNick Clifton <nickc@redhat.com>2000-02-14 19:49:48 +0000
commit3dfcd3c61445346803959b44aae59be88035784f (patch)
tree960ad6c22be045f90a6736e5bbc5560a9d256b12 /sim/mcore
parente18ef0bde6af71f469ce1fb084b8a9b28c893ebc (diff)
downloadbinutils-gdb-3dfcd3c61445346803959b44aae59be88035784f.tar.gz
Fix fclose() emulation
Diffstat (limited to 'sim/mcore')
-rw-r--r--sim/mcore/ChangeLog5
-rw-r--r--sim/mcore/interp.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/sim/mcore/ChangeLog b/sim/mcore/ChangeLog
index 0ded4fb57f4..d2c5b586cf7 100644
--- a/sim/mcore/ChangeLog
+++ b/sim/mcore/ChangeLog
@@ -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.
diff --git a/sim/mcore/interp.c b/sim/mcore/interp.c
index 711326b6a45..c1a39e7b83d 100644
--- a/sim/mcore/interp.c
+++ b/sim/mcore/interp.c
@@ -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]))
{