qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [Bug 1028260] [NEW] ARM: stellaris lm3s6965evb machine


From: Peter Maydell
Subject: Re: [Qemu-devel] [Bug 1028260] [NEW] ARM: stellaris lm3s6965evb machine model broken
Date: Tue, 24 Jul 2012 11:20:32 +0100

On 24 July 2012 07:09, Peter Crosthwaite
<address@hidden> wrote:
>> The Stellaris lm3s6965evb Machine model is broken:
>> qemu-system-arm: 
>> /home/peterc/Petalogix/Internal/plgx_src/qemu/hw/qdev.c:309: 
>> qdev_get_gpio_in: Assertion `n >= 0 && n < dev->num_gpio_in' failed.

>> Bisection points at this commit:
>>
>> commit 1e8cae4dfea2bcc91d3820dcf4f9284e7b0abb28
>> Author: Peter Maydell <address@hidden>
>> Date:   Wed May 2 16:49:42 2012 +0000
>>
>>     hw/armv7m_nvic: Make the NVIC a freestanding class
>>
>>     Rearrange the GIC and NVIC so both are straightforward
>>     subclasses of a common class, rather than having the NVIC
>>     source file textually include arm_gic.c.
>>
>>     Signed-off-by: Peter Maydell <address@hidden>

Yes. I think this was OK in review but got committed at
about the same time as a qdev reworking that meant that
every class in the hierarchy could have qdev properties
rather than the subclass always winning. There's a 'num-irq'
property for both armv7m-nvic and its parent class arm-gic-common
and I think they're clashing so we get the default value
specified by the parent class rather than the subclass.

I'm going to try a fix suggested by Paolo of deleting the
subclass property and instead adding an instance init fn
which fiddles the superclass's default value.

-- PMM



reply via email to

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