On 2015/6/4 22:32, Michael Tokarev wrote:
04.06.2015 17:30, Shannon Zhao wrote:
>>BTW, there's also cpu_exit_irq in this function whose allocation also
>>suffers from qemu_allocate_irqs(..., 1) API abuse.
>
>Yeah, missed this one.
This one isn't that simple, because it passes the result to DMA_init
which expects a pointer, even if it uses only one element of the
array.
Yeah, but I think something like below would work.
cpu_exit_irq = &qemu_allocate_irq(cpu_request_exit, NULL, 0);
DMA_init(0, cpu_exit_irq);
--
Shannon