cores: Now duplicate the global structure
[simavr] / simavr / cores / sim_tiny24.c
index 4a424f5..7babdf9 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 tiny24 = {