[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[NOTFORMERGE PATCH 04/10] target/avr: Fix IRQ count
From: |
Philippe Mathieu-Daudé |
Subject: |
[NOTFORMERGE PATCH 04/10] target/avr: Fix IRQ count |
Date: |
Thu, 28 Nov 2019 02:50:24 +0100 |
Fix a SEGV when using IRQ#57 by expanding to 64 IRQs.
64 is a magic number.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
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
- [RFC PATCH 00/10] hw/avr: Introduce the Arduino board, Philippe Mathieu-Daudé, 2019/11/27
- [NOTFORMERGE PATCH 01/10] hw/avr: Kludge to fix build failure, Philippe Mathieu-Daudé, 2019/11/27
- [PATCH 02/10] target/avr: Remove unused include, Philippe Mathieu-Daudé, 2019/11/27
- [PATCH 03/10] target/avr: Add missing definitions, Philippe Mathieu-Daudé, 2019/11/27
- [NOTFORMERGE PATCH 04/10] target/avr: Fix IRQ count,
Philippe Mathieu-Daudé <=
- [RFC PATCH 05/10] hw/char/avr: Reduce USART I/O size, Philippe Mathieu-Daudé, 2019/11/27
- [RFC PATCH 07/10] hw/avr: Add few Arduino boards, Philippe Mathieu-Daudé, 2019/11/27
- [PATCH 08/10] tests/acceptance: Keep multilines comment consistent with other tests, Philippe Mathieu-Daudé, 2019/11/27
- [RFC PATCH 06/10] hw/avr: Add ATmega microcontrollers, Philippe Mathieu-Daudé, 2019/11/27