cores: Now duplicate the global structure
[simavr] / simavr / cores / sim_tiny44.c
index e181eef..25f99a9 100644 (file)
@@ -34,7 +34,7 @@
 
 static avr_t * make()
 {
-    return &SIM_CORENAME.core;
+       return avr_core_allocate(&SIM_CORENAME.core, sizeof(struct mcu_t));
 }
 
 avr_kind_t tiny44 = {