cores: Now duplicate the global structure
[simavr] / simavr / cores / sim_mega644.c
index bc20f6e..0e54e6a 100644 (file)
@@ -32,7 +32,7 @@
 
 static avr_t * make()
 {
-       return &SIM_CORENAME.core;
+       return avr_core_allocate(&SIM_CORENAME.core, sizeof(struct mcu_t));
 }
 
 avr_kind_t mega644 = {