misc: Point to correct simavr include dirs
[simavr] / simavr / cores / sim_mega328.c
index 3ed50d0..3466939 100644 (file)
 #define _AVR_IO_H_
 #define __ASSEMBLER__
 #include "avr/iom328p.h"
-// instanciate the new core
+// instantiate the new core
 #include "sim_megax8.h"
 
 static avr_t * make()
 {
-       return &SIM_CORENAME.core;
+       return avr_core_allocate(&SIM_CORENAME.core, sizeof(struct mcu_t));
 }
 
 avr_kind_t mega328 = {