summaryrefslogtreecommitdiff
path: root/sim/h8300/compile.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2004-06-28 19:25:43 +0000
committerAlexandre Oliva <aoliva@redhat.com>2004-06-28 19:25:43 +0000
commite4d3c499f58baf4d71323d262f0e122c8a1baf9c (patch)
tree6e4a64dba2a486d22012a6c64d4f5c8956f1ee49 /sim/h8300/compile.c
parent71d39cfcfd3409f3746a20edc34f2106900ae1cb (diff)
downloadbinutils-gdb-e4d3c499f58baf4d71323d262f0e122c8a1baf9c.tar.gz
* compile.c (sim_load): Update sd->memory_size.
Diffstat (limited to 'sim/h8300/compile.c')
-rw-r--r--sim/h8300/compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/h8300/compile.c b/sim/h8300/compile.c
index cd097d68a98..3e8992c09c3 100644
--- a/sim/h8300/compile.c
+++ b/sim/h8300/compile.c
@@ -5096,6 +5096,7 @@ sim_load (SIM_DESC sd, char *prog, bfd *abfd, int from_tty)
calloc (sizeof (char), memory_size));
h8_set_cache_idx_buf (sd, (unsigned short *)
calloc (sizeof (short), memory_size));
+ sd->memory_size = memory_size;
h8_set_eightbit_buf (sd, (unsigned char *) calloc (sizeof (char), 256));
/* `msize' must be a power of two. */