Fix a SEGV when using IRQ#57 by expanding to 64 IRQs.
64 is a magic number.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
target/avr/cpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/avr/cpu.c b/target/avr/cpu.c
index 52ec21dd16..8198f9d49c 100644
--- a/target/avr/cpu.c
+++ b/target/avr/cpu.c
@@ -129,7 +129,7 @@ static void avr_cpu_initfn(Object *obj)
#ifndef CONFIG_USER_ONLY
/* Set the number of interrupts supported by the CPU. */
- qdev_init_gpio_in(DEVICE(cpu), avr_cpu_set_int, 57);
+ qdev_init_gpio_in(DEVICE(cpu), avr_cpu_set_int, 64);
#endif
}
--
2.21.0