diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-05-20 00:05:27 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-05-20 00:05:27 +0000 |
commit | 24aa2b57afc51bb0d47d8a3cfa470ad40a36cc6b (patch) | |
tree | 85c51478ecca1050b7fe9f99011a5ede31cdc5ba /sim/tic80/sim-calls.c | |
parent | 8c5b6ead7d2880ce708ee185ce3506cda1aeff4d (diff) | |
download | gdb-24aa2b57afc51bb0d47d8a3cfa470ad40a36cc6b.zip gdb-24aa2b57afc51bb0d47d8a3cfa470ad40a36cc6b.tar.gz gdb-24aa2b57afc51bb0d47d8a3cfa470ad40a36cc6b.tar.bz2 |
Depreciate sim_set_callbacks() function. Set simulator callbacks
during sim_open().
Diffstat (limited to 'sim/tic80/sim-calls.c')
-rw-r--r-- | sim/tic80/sim-calls.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sim/tic80/sim-calls.c b/sim/tic80/sim-calls.c index 192d4c4..e62ca13 100644 --- a/sim/tic80/sim-calls.c +++ b/sim/tic80/sim-calls.c @@ -50,11 +50,12 @@ struct sim_state simulation = { 0 }; SIM_DESC -sim_open (SIM_OPEN_KIND kind, char **argv) +sim_open (SIM_OPEN_KIND kind, struct host_callback_struct *callback, char **argv) { SIM_DESC sd = &simulation; STATE_OPEN_KIND (sd) = kind; STATE_MAGIC (sd) = SIM_MAGIC_NUMBER; + STATE_CALLBACK (&simulation) = callback; if (sim_pre_argv_init (sd, argv[0]) != SIM_RC_OK) return 0; @@ -241,10 +242,3 @@ sim_do_command (SIM_DESC sd, char *cmd) if (sim_args_command (sd, cmd) != SIM_RC_OK) sim_io_eprintf (sd, "Unknown command `%s'\n", cmd); } - - -void -sim_set_callbacks (SIM_DESC sd, host_callback *callback) -{ - STATE_CALLBACK (sd) = callback; -} |