sim_core.c: extended data type to 32 bits for eicall/eijmp instruction.
[simavr] / simavr / cores / sim_megax.h
index f192780..b80469d 100644 (file)
@@ -38,7 +38,7 @@ void mx_init(struct avr_t * avr);
 void mx_reset(struct avr_t * avr);
 
 /*
- * This is a template for all of the 8/32/64 devices, hopefuly
+ * This is a template for all of the 8/32/64 devices, hopefully
  */
 struct mcu_t {
        avr_t          core;
@@ -314,6 +314,7 @@ const struct mcu_t SIM_CORENAME = {
                .twi = {
                        .enable = AVR_IO_REGBIT(TWCR, TWIE),
                        .raised = AVR_IO_REGBIT(TWCR, TWINT),
+                       .raise_sticky = 1,
                        .vector = TWI_vect,
                },
        },