mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 19:09:31 +08:00
Make simulator event-queue manager a bit more signal safe.
This commit is contained in:
@ -1,5 +1,26 @@
|
|||||||
Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
||||||
|
|
||||||
|
* sim-events.c (sim_events_zalloc): Signal save memory allocator -
|
||||||
|
stop tk interrupting malloc calls.
|
||||||
|
(sim_events_zalloc): Converse.
|
||||||
|
|
||||||
|
* Make-common.in (sim_main_headers): Add sim-events.h.
|
||||||
|
|
||||||
|
* sim-events.c (sim_events_schedule_after_signal): Change return
|
||||||
|
type to void - signal events are strictly internal.
|
||||||
|
(sim_events_init): Allocate a finite buffer for signal events.
|
||||||
|
(sim_events_schedule_after_signal): Enter signal events into the
|
||||||
|
signal buffer.
|
||||||
|
|
||||||
|
* sim-engine.c (sim_engine_halt): Check SIM_DESC magic.
|
||||||
|
(sim_engine_restart): Ditto.
|
||||||
|
(sim_engine_abort): Ditto.
|
||||||
|
* sim-stop.c (sim_stop): Ditto.
|
||||||
|
(control_c_simulation): Ditto.
|
||||||
|
* sim-resume.c (sim_resume): Ditto.
|
||||||
|
(has_stepped): Ditto.
|
||||||
|
* sim-abort.c (sim_engine_abort): Ditto.
|
||||||
|
|
||||||
* sim-basics.h (transfer_type): New type.
|
* sim-basics.h (transfer_type): New type.
|
||||||
|
|
||||||
* sim-core.c (sim_core_signal): New function. Print core signal
|
* sim-core.c (sim_core_signal): New function. Print core signal
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Mon May 19 14:58:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
||||||
|
|
||||||
|
* sim-calls.c (sim_open): Set the simulator base magic number.
|
||||||
|
|
||||||
Fri May 16 14:35:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
Fri May 16 14:35:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
||||||
|
|
||||||
* insns (illegal, fp_unavailable): Halt instead of abort the
|
* insns (illegal, fp_unavailable): Halt instead of abort the
|
||||||
|
@ -53,6 +53,7 @@ SIM_DESC
|
|||||||
sim_open (SIM_OPEN_KIND kind, char **argv)
|
sim_open (SIM_OPEN_KIND kind, char **argv)
|
||||||
{
|
{
|
||||||
STATE_OPEN_KIND (&simulation) = kind;
|
STATE_OPEN_KIND (&simulation) = kind;
|
||||||
|
STATE_MAGIC (&simulation) = SIM_MAGIC_NUMBER;
|
||||||
|
|
||||||
/* establish the simulator configuration */
|
/* establish the simulator configuration */
|
||||||
sim_config (&simulation,
|
sim_config (&simulation,
|
||||||
|
Reference in New Issue
Block a user