OLD | NEW |
1 /* | 1 /* |
2 * This file is part of SIS. | 2 * This file is part of SIS. |
3 * | 3 * |
4 * SIS, SPARC instruction simulator V1.6 Copyright (C) 1995 Jiri Gaisler, | 4 * SIS, SPARC instruction simulator V1.6 Copyright (C) 1995 Jiri Gaisler, |
5 * European Space Agency | 5 * European Space Agency |
6 * | 6 * |
7 * This program is free software; you can redistribute it and/or modify it under | 7 * This program is free software; you can redistribute it and/or modify it under |
8 * the terms of the GNU General Public License as published by the Free | 8 * the terms of the GNU General Public License as published by the Free |
9 * Software Foundation; either version 2 of the License, or (at your option) | 9 * Software Foundation; either version 2 of the License, or (at your option) |
10 * any later version. | 10 * any later version. |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 void | 381 void |
382 sim_stop_reason(sd, reason, sigrc) | 382 sim_stop_reason(sd, reason, sigrc) |
383 SIM_DESC sd; | 383 SIM_DESC sd; |
384 enum sim_stop * reason; | 384 enum sim_stop * reason; |
385 int *sigrc; | 385 int *sigrc; |
386 { | 386 { |
387 | 387 |
388 switch (simstat) { | 388 switch (simstat) { |
389 case CTRL_C: | 389 case CTRL_C: |
390 *reason = sim_stopped; | 390 *reason = sim_stopped; |
391 » *sigrc = TARGET_SIGNAL_INT; | 391 » *sigrc = GDB_SIGNAL_INT; |
392 break; | 392 break; |
393 case OK: | 393 case OK: |
394 case TIME_OUT: | 394 case TIME_OUT: |
395 case BPT_HIT: | 395 case BPT_HIT: |
396 *reason = sim_stopped; | 396 *reason = sim_stopped; |
397 » *sigrc = TARGET_SIGNAL_TRAP; | 397 » *sigrc = GDB_SIGNAL_TRAP; |
398 break; | 398 break; |
399 case ERROR: | 399 case ERROR: |
400 *sigrc = 0; | 400 *sigrc = 0; |
401 *reason = sim_exited; | 401 *reason = sim_exited; |
402 } | 402 } |
403 ctrl_c = 0; | 403 ctrl_c = 0; |
404 simstat = OK; | 404 simstat = OK; |
405 } | 405 } |
406 | 406 |
407 /* Flush all register windows out to the stack. Starting after the invalid | 407 /* Flush all register windows out to the stack. Starting after the invalid |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 sregs.bpts[i] = sregs.bpts[i + 1]; | 517 sregs.bpts[i] = sregs.bpts[i + 1]; |
518 sregs.bptnum -= 1; | 518 sregs.bptnum -= 1; |
519 if (sis_verbose) | 519 if (sis_verbose) |
520 (*sim_callback->printf_filtered) (sim_callback, "removed HW BP at %x
\n", addr); | 520 (*sim_callback->printf_filtered) (sim_callback, "removed HW BP at %x
\n", addr); |
521 return 0; | 521 return 0; |
522 } | 522 } |
523 return 1; | 523 return 1; |
524 } | 524 } |
525 | 525 |
526 #endif | 526 #endif |
OLD | NEW |