qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 25/26] target/riscv: remove .instance_post_init


From: Paolo Bonzini
Subject: Re: [PATCH 25/26] target/riscv: remove .instance_post_init
Date: Mon, 12 May 2025 12:39:10 +0200

On Mon, May 12, 2025 at 12:35 PM Philippe Mathieu-Daudé
<philmd@linaro.org> wrote:
>
> Hi Paolo,
>
> On 12/5/25 11:52, Paolo Bonzini wrote:
> > Unlike other uses of .instance_post_init, accel_cpu_instance_init()
> > *registers* properties, and therefore must be run before
> > device_post_init() which sets them to their values from -global.
>
> Does x86_cpu_post_initfn() suffer from the same problem?

No, in fact this whole patch series is motivated by fixing a bug in
target/i386: target/i386 *wants* the order of instance_post_init to be
what patch 26 provides. This info was present in the postings up to
v3, see for example
https://patchew.org/QEMU/20250228102747.867770-1-pbonzini@redhat.com/.

Paolo

> > In order to move all registration of properties to .instance_init,
> > call accel_cpu_instance_init() at the end of riscv_cpu_init().
> >
> > Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> > ---
> >   target/riscv/cpu.c | 8 ++------
> >   1 file changed, 2 insertions(+), 6 deletions(-)
>




reply via email to

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