qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC] generic-gpio-led & stm32-gpio-led


From: Liviu Ionescu
Subject: Re: [Qemu-devel] [RFC] generic-gpio-led & stm32-gpio-led
Date: Wed, 17 Jun 2015 12:43:33 +0300

> On 17 Jun 2015, at 03:25, Peter Crosthwaite <address@hidden> wrote:
> 
>> ...
>> connecting a gpio_out to a gpio_in seems not possible, gpio_in irqs are 
>> parented to the device and parenting them to the gpio_out fail with the 
>> parent != 0 assertion.
>> 
> 
> This should work. Can I see the backtrace of that abort?

**
ERROR:/Users/ilg/Work/qemu/gnuarmeclipse-qemu.git/qom/object.c:1274:object_get_canonical_path_component:
 assertion failed: (obj->parent != NULL)

gpio-led

    // state->irq = qemu_allocate_irq(gpio_led_irq_handler, obj, 0);
    qdev_init_gpio_in(DEVICE(obj), gpio_led_irq_handler, 1);


mchine creation

    // qemu_irq irq = GPIO_LED_STATE(led)->irq;
    qemu_irq irq = qdev_get_gpio_in(led, 0);
    qdev_connect_gpio_out(
                DEVICE(object_resolve_path("/machine/stm32/gpio[c]", NULL)), 12,
                irq);

the functional solution is commented out.


regards,

Liviu




reply via email to

[Prev in Thread] Current Thread [Next in Thread]