Re: [Qemu-devel] ARM cpu object, setting properties from board model

2013-11-20 Thread Peter Maydell
On 20 November 2013 15:19, Andreas Färber wrote: > My first thought without reviewing the code is to just inline > object_new() followed by object_property_set_bool() in the machine - > that's what I've done for my downstream rl78, where I needed to postpone > realizing the CPU until the firmware

Re: [Qemu-devel] ARM cpu object, setting properties from board model

2013-11-20 Thread Andreas Färber
Am 19.11.2013 21:01, schrieb Peter Maydell: > I find myself with a use case where I would like to set > a CPU object property from the board model init function > (specifically, I'd like the board model to be able to say > "this CPU will boot via PSCI so if you're KVM then start > it appropriately"

Re: [Qemu-devel] ARM cpu object, setting properties from board model

2013-11-19 Thread Igor Mammedov
On Tue, 19 Nov 2013 20:01:28 + Peter Maydell wrote: > I find myself with a use case where I would like to set > a CPU object property from the board model init function > (specifically, I'd like the board model to be able to say > "this CPU will boot via PSCI so if you're KVM then start > it

Re: [Qemu-devel] ARM cpu object, setting properties from board model

2013-11-19 Thread Peter Maydell
On 19 November 2013 20:01, Peter Maydell wrote: > I find myself with a use case where I would like to set > a CPU object property from the board model init function > (specifically, I'd like the board model to be able to say > "this CPU will boot via PSCI so if you're KVM then start > it appropria

[Qemu-devel] ARM cpu object, setting properties from board model

2013-11-19 Thread Peter Maydell
I find myself with a use case where I would like to set a CPU object property from the board model init function (specifically, I'd like the board model to be able to say "this CPU will boot via PSCI so if you're KVM then start it appropriately"). I could just reach in and fiddle with the ARMCPU f