From fafce69ab16b45fb1ac6bd2ec5afc8e8dbed0374 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 27 Aug 1997 04:44:41 +0000 Subject: Add ABFD argument to sim_create_inferior. Document. Add file sim-hload.c - generic load for hardware only simulators. Review each simulators sim_open, sim_load, sim_create_inferior so that they more closely match required behavour. --- sim/w65/ChangeLog | 1 + sim/w65/interp.c | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'sim/w65') diff --git a/sim/w65/ChangeLog b/sim/w65/ChangeLog index 5f42c3b..ecc66ed 100644 --- a/sim/w65/ChangeLog +++ b/sim/w65/ChangeLog @@ -1,6 +1,7 @@ Tue Aug 26 10:43:11 1997 Andrew Cagney * interp.c (sim_kill): Delete. + (sim_create_inferior): Add ABFD argument. Set PC from same. Mon Aug 25 16:34:33 1997 Andrew Cagney diff --git a/sim/w65/interp.c b/sim/w65/interp.c index f2080de..6416b25 100644 --- a/sim/w65/interp.c +++ b/sim/w65/interp.c @@ -360,14 +360,18 @@ sim_load (prog, from_tty) void -sim_create_inferior (start_address, argv, env) - SIM_ADDR start_address; +sim_create_inferior (abfd, argv, env) + struct _bfd *abfd; char **argv; char **env; { - /* ??? We assume this is a 4 byte quantity. */ + SIM_ADDR start_address; int pc; - + if (abfd != NULL) + start_address = bfd_get_start_address (abfd); + else + start_address = 0; /*??*/ + /* ??? We assume this is a 4 byte quantity. */ pc = start_address; sim_store_register (16, (unsigned char *) &pc); } -- cgit v1.1