From 6e73e7ed648bdb2fdd4d36d75a4a824a9adc39a6 Mon Sep 17 00:00:00 2001 From: Stephane Carrez Date: Fri, 24 Nov 2000 20:53:35 +0000 Subject: Fix device memory allocation in 68hc11 simulator --- sim/m68hc11/dv-m68hc11eepr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/m68hc11/dv-m68hc11eepr.c') 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; -- cgit v1.1