aboutsummaryrefslogtreecommitdiff
path: root/sim/w65
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-08-27 04:44:41 +0000
committerAndrew Cagney <cagney@redhat.com>1997-08-27 04:44:41 +0000
commitfafce69ab16b45fb1ac6bd2ec5afc8e8dbed0374 (patch)
treeeaab2b03e17f79cd61e73a0b510942da3f20dcc3 /sim/w65
parent9f64f00adaa7fb89b13ed291a778a262260dc409 (diff)
downloadfsf-binutils-gdb-fafce69ab16b45fb1ac6bd2ec5afc8e8dbed0374.zip
fsf-binutils-gdb-fafce69ab16b45fb1ac6bd2ec5afc8e8dbed0374.tar.gz
fsf-binutils-gdb-fafce69ab16b45fb1ac6bd2ec5afc8e8dbed0374.tar.bz2
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.
Diffstat (limited to 'sim/w65')
-rw-r--r--sim/w65/ChangeLog1
-rw-r--r--sim/w65/interp.c12
2 files changed, 9 insertions, 4 deletions
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 <cagney@b1.cygnus.com>
* interp.c (sim_kill): Delete.
+ (sim_create_inferior): Add ABFD argument. Set PC from same.
Mon Aug 25 16:34:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
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);
}