new global_logger, used in AVR_LOG(), default is stdout/stderr
[simavr] / simavr / cores / sim_mega164.c
index d9f2c91..b2db8d2 100644 (file)
 #define _AVR_IO_H_
 #define __ASSEMBLER__
 #include "avr/iom164.h"
-// instanciate the new core
+// instantiate the new core
 #include "sim_megax4.h"
 
 static avr_t * make()
 {
-       return &SIM_CORENAME.core;
+       return avr_core_allocate(&SIM_CORENAME.core, sizeof(struct mcu_t));
 }
 
 avr_kind_t mega164 = {