target/avr: Fix handling of interrupts above 33.
commitfc97167f1fc716b2f4d57adcd34f9bb4544976c9
authorLucas Dietrich <ld.adecy@gmail.com>
Wed, 14 Jun 2023 14:07:49 +0000 (14 16:07 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 8 Jul 2023 04:24:38 +0000 (8 07:24 +0300)
treec2ab484111f80570730006f4bb7e91fd687da61e
parentc92ac07c4a4991c1e1e3d0c8c9b2516b2592c7da
target/avr: Fix handling of interrupts above 33.

This commit addresses a bug in the AVR interrupt handling code.
The modification involves replacing the usage of the ctz32 function
with ctz64 to ensure proper handling of interrupts above 33 in the AVR
target.

Previously, timers 3, 4, and 5 interrupts were not functioning correctly
because most of their interrupt vectors are numbered above 33.

Signed-off-by: Lucas Dietrich <ld.adecy@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Michael Rolnik <mrolnik@gmail.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
(Mjt: updated subject line to have subsytem prefix)
target/avr/helper.c