- fixed gdb_stub

git-svn-id: http://moon:8086/svn/mips@105 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
2017-01-19 18:26:01 +00:00
parent f3e297c9e6
commit 677d40b6a5
-14
View File
@@ -524,21 +524,7 @@ handle_exception (unsigned long *registers)
hex2mem(ptr, (char *)&registers[PC], 4, 0);
ptr += 4 * 2;
*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");
}
break;