gdb: Read/write SREG values correctly
[simavr] / simavr / cores / sim_tiny45.c
index 1500b54..e94c9cf 100644 (file)
 #define _AVR_IO_H_
 #define __ASSEMBLER__
 #include "avr/iotn45.h"
-// instanciate the new core
+// instantiate the new core
 #include "sim_tinyx5.h"
 
 static avr_t * make()
 {
-       return &SIM_CORENAME.core;
+       return avr_core_allocate(&SIM_CORENAME.core, sizeof(struct mcu_t));
 }
 
 avr_kind_t tiny45 = {