diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2023-06-06 11:46:09 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2023-06-19 11:24:21 +0100 |
| commit | 22c81783c9458f2b41d554e0172c9d0fcf6da4cc (patch) | |
| tree | 1de33e40222c37b53182fe70240f0ca438040998 /hw/timer/nrf51_timer.c | |
| parent | f837b468cdaa7e736b5385c7dc4f8c5adcad3bf1 (diff) | |
| download | focaccia-qemu-22c81783c9458f2b41d554e0172c9d0fcf6da4cc.tar.gz focaccia-qemu-22c81783c9458f2b41d554e0172c9d0fcf6da4cc.zip | |
hw/sd/allwinner-sdhost: Don't send non-boolean IRQ line levels
QEMU allows qemu_irq lines to transfer arbitrary integers. However the convention is that for a simple IRQ line the values transferred are always 0 and 1. The A10 SD controller device instead assumes a 0-vs-non-0 convention, which happens to work with the interrupt controller it is wired up to. Coerce the value to boolean to follow our usual convention. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Tested-by: Guenter Roeck <linux@roeck-us.net> Message-id: 20230606104609.3692557-3-peter.maydell@linaro.org
Diffstat (limited to 'hw/timer/nrf51_timer.c')
0 files changed, 0 insertions, 0 deletions