summaryrefslogtreecommitdiff
path: root/sim
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
commit77996682226cbdcb0d9fd609ee2c60730d1ed9e4 (patch)
tree36f474ceffc3afa4fd0bb0da35658a3f499b50b7 /sim
parentc5ebe9d65fdccf2edfca83732216b27d9fd05da9 (diff)
downloadgdb-77996682226cbdcb0d9fd609ee2c60730d1ed9e4.tar.gz
* compile.c (sim_load): Update sd->memory_size.
Diffstat (limited to 'sim')
-rw-r--r--sim/h8300/ChangeLog4
-rw-r--r--sim/h8300/compile.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/sim/h8300/ChangeLog b/sim/h8300/ChangeLog
index c6f8dcd1469..b77fcfc529d 100644
--- a/sim/h8300/ChangeLog
+++ b/sim/h8300/ChangeLog
@@ -1,3 +1,7 @@
+2004-06-28 Alexandre Oliva <aoliva@redhat.com>
+
+ * compile.c (sim_load): Update sd->memory_size.
+
2004-06-10 Michael Snyder <msnyder@redhat.com>
Patch submitted by Nitin Yewale <NitinY@KPITCummins.com>.
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. */