* sparc-stub.c (handle_exception): Flush instruction cache just

before returning to the user.  (hexToInt):  Fix overzealous cleanup.
This commit is contained in:
Stu Grossman
1992-08-25 03:47:53 +00:00
parent 817b5a60ab
commit ee97d6736c
2 changed files with 12 additions and 1 deletions

View File

@@ -546,7 +546,7 @@ hexToInt(char **ptr, int *intValue)
*intValue = (*intValue << 4) | hexValue;
numChars ++;
*ptr++;
(*ptr)++;
}
return (numChars);
@@ -727,6 +727,12 @@ handle_exception (registers)
registers[NPC] = addr + 4;
}
/* Need to flush the instruction cache here, as we may have deposited a
breakpoint, and the icache probably has no way of knowing that a data ref to
some location may have changed something that is in the instruction cache.
*/
flush_i_cache();
return;
/* kill the program */