- fixed gdb_stub
git-svn-id: http://moon:8086/svn/mips@105 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
@@ -524,21 +524,7 @@ handle_exception (unsigned long *registers)
|
|||||||
hex2mem(ptr, (char *)®isters[PC], 4, 0);
|
hex2mem(ptr, (char *)®isters[PC], 4, 0);
|
||||||
ptr += 4 * 2;
|
ptr += 4 * 2;
|
||||||
*ptr = 0;
|
*ptr = 0;
|
||||||
/* See if the stack pointer has moved. If so, then copy the saved
|
|
||||||
locals and ins to the new location. This keeps the window
|
|
||||||
overflow and underflow routines happy. */
|
|
||||||
|
|
||||||
newsp = (unsigned long *)registers[R29];
|
|
||||||
if (sp != newsp)
|
|
||||||
{
|
|
||||||
sp = memcpy(newsp, sp, 16 * 4);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Don't allow SR:iec, SR:kuc to be modified. */
|
|
||||||
if (sr != registers[SR])
|
|
||||||
{
|
|
||||||
registers[SR] = (sr & ~0x3);
|
|
||||||
}
|
|
||||||
strcpy(remcomOutBuffer,"OK");
|
strcpy(remcomOutBuffer,"OK");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user