Raymond Toy pushed to branch sparc64-dev at cmucl / cmucl
Commits:
-
608fadde
by Raymond Toy at 2018-01-02T10:46:13-08:00
1 changed file:
Changes:
... | ... | @@ -531,10 +531,10 @@ sigill_handler(HANDLER_ARGS) |
531 | 531 |
string = (unsigned char *) &pc[3];
|
532 | 532 |
/*
|
533 | 533 |
* The offset is in 32-bit words, so subtract one for
|
534 |
- * the instruction in the branch delay slot and scale up
|
|
535 |
- * the offet to be in bytes.
|
|
534 |
+ * the instruction itself and one for the branch delay
|
|
535 |
+ * slot and scale up the offet to be in bytes.
|
|
536 | 536 |
*/
|
537 |
- length = 4 * ((pc[1] & 0x7FFFF) - 1);
|
|
537 |
+ length = 4 * ((pc[1] & 0x7FFFF) - 2);
|
|
538 | 538 |
|
539 | 539 |
while (string[length - 1] == '\0') {
|
540 | 540 |
--length;
|