* interp.c (sim_open): Disable chunk of code that wrote code in

vector table entries.
This commit is contained in:
Alexandre Oliva 2002-04-18 19:47:14 +00:00
parent f4f9705a2d
commit b882a66bfc
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-04-18 Alexandre Oliva <aoliva@redhat.com>
* interp.c (sim_open): Disable chunk of code that wrote code in
vector table entries.
2002-03-19 Chris Demetriou <cgd@broadcom.com>
* cp1.c (FP_S_s, FP_D_s, FP_S_be, FP_D_be, FP_S_e, FP_D_e, FP_S_f)

View File

@ -698,10 +698,14 @@ sim_open (kind, cb, abfd, argv)
sim_write (sd, 0x80000000, (char *) halt, sizeof (halt));
sim_write (sd, 0x80000180, (char *) halt, sizeof (halt));
sim_write (sd, 0x80000200, (char *) halt, sizeof (halt));
#if 0
/* This is wrong. We're not supposed to write code to the
vector tables, but rather pointers to code. */
/* XXX: Write here unconditionally? */
sim_write (sd, 0xBFC00200, (char *) halt, sizeof (halt));
sim_write (sd, 0xBFC00380, (char *) halt, sizeof (halt));
sim_write (sd, 0xBFC00400, (char *) halt, sizeof (halt));
#endif
}
}