diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2000-11-24 20:53:35 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2000-11-24 20:53:35 +0000 |
commit | 6e73e7ed648bdb2fdd4d36d75a4a824a9adc39a6 (patch) | |
tree | c2c7fcd66d0dc3d8cdfb93e5b905d0aefa8adefb /sim/m68hc11/dv-m68hc11eepr.c | |
parent | 3b851bce1db6dd84666a59d7c0134cb502114557 (diff) | |
download | gdb-6e73e7ed648bdb2fdd4d36d75a4a824a9adc39a6.zip gdb-6e73e7ed648bdb2fdd4d36d75a4a824a9adc39a6.tar.gz gdb-6e73e7ed648bdb2fdd4d36d75a4a824a9adc39a6.tar.bz2 |
Fix device memory allocation in 68hc11 simulator
Diffstat (limited to 'sim/m68hc11/dv-m68hc11eepr.c')
-rw-r--r-- | sim/m68hc11/dv-m68hc11eepr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/m68hc11/dv-m68hc11eepr.c b/sim/m68hc11/dv-m68hc11eepr.c index df3b371..d4aeb48 100644 --- a/sim/m68hc11/dv-m68hc11eepr.c +++ b/sim/m68hc11/dv-m68hc11eepr.c @@ -218,7 +218,7 @@ attach_m68hc11eepr_regs (struct hw *me, controller->attach_space = attach_space; controller->base_address = attach_address; - controller->eeprom = (char*) malloc (attach_size + 1); + controller->eeprom = (char*) hw_malloc (me, attach_size + 1); controller->eeprom_min_cycles = 10000; controller->size = attach_size + 1; controller->mapped = 0; |