OLD | NEW |
1 /* This file is part of the program psim. | 1 /* This file is part of the program psim. |
2 | 2 |
3 Copyright 1994, 1995, 1996, 1997, 2003 Andrew Cagney | 3 Copyright 1994, 1995, 1996, 1997, 2003 Andrew Cagney |
4 | 4 |
5 This program is free software; you can redistribute it and/or modify | 5 This program is free software; you can redistribute it and/or modify |
6 it under the terms of the GNU General Public License as published by | 6 it under the terms of the GNU General Public License as published by |
7 the Free Software Foundation; either version 2 of the License, or | 7 the Free Software Foundation; either version 2 of the License, or |
8 (at your option) any later version. | 8 (at your option) any later version. |
9 | 9 |
10 This program is distributed in the hope that it will be useful, | 10 This program is distributed in the hope that it will be useful, |
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 } | 585 } |
586 | 586 |
587 | 587 |
588 static void | 588 static void |
589 cntrl_c_simulation(void *data) | 589 cntrl_c_simulation(void *data) |
590 { | 590 { |
591 psim *system = data; | 591 psim *system = data; |
592 psim_halt(system, | 592 psim_halt(system, |
593 psim_nr_cpus(system), | 593 psim_nr_cpus(system), |
594 was_continuing, | 594 was_continuing, |
595 » TARGET_SIGNAL_INT); | 595 » GDB_SIGNAL_INT); |
596 } | 596 } |
597 | 597 |
598 INLINE_PSIM\ | 598 INLINE_PSIM\ |
599 (void) | 599 (void) |
600 psim_stop(psim *system) | 600 psim_stop(psim *system) |
601 { | 601 { |
602 event_queue_schedule_after_signal(psim_event_queue(system), | 602 event_queue_schedule_after_signal(psim_event_queue(system), |
603 0 /*NOW*/, | 603 0 /*NOW*/, |
604 cntrl_c_simulation, | 604 cntrl_c_simulation, |
605 system); | 605 system); |
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1212 line_nr++; | 1212 line_nr++; |
1213 } | 1213 } |
1214 /* parse this line */ | 1214 /* parse this line */ |
1215 current = tree_parse(current, "%s", device); | 1215 current = tree_parse(current, "%s", device); |
1216 } | 1216 } |
1217 fclose(description); | 1217 fclose(description); |
1218 } | 1218 } |
1219 | 1219 |
1220 | 1220 |
1221 #endif /* _PSIM_C_ */ | 1221 #endif /* _PSIM_C_ */ |
OLD | NEW |