cores: Now duplicate the global structure
[simavr] / simavr / cores / sim_tiny84.c
index a868bfe..70bae75 100644 (file)
@@ -35,7 +35,7 @@
 
 static avr_t * make()
 {
-    return &SIM_CORENAME.core;
+       return avr_core_allocate(&SIM_CORENAME.core, sizeof(struct mcu_t));
 }
 
 avr_kind_t tiny84 = {