diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-09-12 02:44:03 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-09-12 02:44:03 +0000 |
commit | 93e7a1b5b74ce4e5a030378b5f39077aed9d0912 (patch) | |
tree | 7ba8a934d602cd9dae5417f8e943cfffe4ebe87e /sim/v850/interp.c | |
parent | 11ac69e0139253d10771787a44adfecb9e4bef70 (diff) | |
download | fsf-binutils-gdb-93e7a1b5b74ce4e5a030378b5f39077aed9d0912.zip fsf-binutils-gdb-93e7a1b5b74ce4e5a030378b5f39077aed9d0912.tar.gz fsf-binutils-gdb-93e7a1b5b74ce4e5a030378b5f39077aed9d0912.tar.bz2 |
Add profiling support to v850*.
Diffstat (limited to 'sim/v850/interp.c')
-rw-r--r-- | sim/v850/interp.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sim/v850/interp.c b/sim/v850/interp.c index 753996f..485a15f 100644 --- a/sim/v850/interp.c +++ b/sim/v850/interp.c @@ -219,7 +219,6 @@ sim_open (kind, cb, abfd, argv) struct _bfd *abfd; char **argv; { - char *buf; SIM_DESC sd = sim_state_alloc (kind, cb); #if 0 struct simops *s; @@ -239,14 +238,11 @@ sim_open (kind, cb, abfd, argv) return 0; /* Allocate core managed memory */ + /* "Mirror" the ROM addresses below 1MB. */ - asprintf (&buf, "memory region 0,0x100000,0x%lx", V850_ROM_SIZE); - sim_do_command (sd, buf); - free (buf); + sim_do_commandf (sd, "memory region 0,0x100000,0x%lx", V850_ROM_SIZE); /* Chunk of ram adjacent to rom */ - asprintf (&buf, "memory region 0x100000,0x%lx", V850_LOW_END - 0x100000); - sim_do_command (sd, buf); - free (buf); + sim_do_commandf (sd, "memory region 0x100000,0x%lx", V850_LOW_END-0x100000); /* peripheral I/O region - mirror 1K across 4k (0x1000) */ sim_do_command (sd, "memory region 0xfff000,0x1000,1024"); /* similarly if in the internal RAM region */ @@ -394,7 +390,7 @@ sim_info (sd, verbose) SIM_DESC sd; int verbose; { - /* do nothing */ + profile_print (sd, STATE_VERBOSE_P (sd), NULL, NULL); } SIM_RC |