[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: QEMU 6.2.0: Segfault while calling address_space_init from emulated
From: |
Karthik Poduval |
Subject: |
Re: QEMU 6.2.0: Segfault while calling address_space_init from emulated device |
Date: |
Tue, 17 May 2022 01:19:19 -0700 |
Hi Peter,
I am building it from git but not directly but via Yocto Kirkstone (it
was originally designed to build via downloaded tarball archive). I
will add the --enable-werror to the build recipe.
May I ask why address_space_init should be called from device realize
and not init ?
On Tue, May 17, 2022 at 12:40 AM Peter Maydell <peter.maydell@linaro.org> wrote:
>
> On Tue, 17 May 2022 at 04:39, Karthik Poduval <karthik.poduval@gmail.com>
> wrote:
> > Ok digging deeper, there was a compiler warning about a missing
> > prototype of get_system_memory but I never thought it would lead to
> > this sort of an issue.
>
> If you're building QEMU from git it should default to
> "warnings are errors". If you're not, then pass configure
> --enable-werror to do that.
>
> PS: not related to your problem, but you should really do
> the address_space_init() in device realize, not init.
>
> thanks
> -- PMM
--
Regards,
Karthik Poduval