Re: [PATCH] hw/sparc/sun4m_iommu: Fix crash when introspecting sun4m-iommu from the CLI

Markus Armbruster <[email protected]>
Newsgroups org.nongnu.qemu-trivial,org.nongnu.qemu-devel
Message-ID <[email protected]>
Thomas Huth <[email protected]> writes:

> From: Thomas Huth <[email protected]>
>
> QEMU currently crashes when introspecting the sun4m-iommu device from the
> command line interface:
>
>  $ ./qemu-system-sparc -display none -device sun4m-iommu,help
>  qemu-system-sparc: ../../devel/qemu/system/physmem.c:1401:
>   register_multipage: Assertion `num_pages' failed.
>  Aborted (core dumped)
>
> There does not seem to be a compelling reason for initializing the
> memory regions from the instance_init function, so let's simply move
> the code into a realize() function instead to fix this issue.
>
> Signed-off-by: Thomas Huth <[email protected]>

Reported-by: Markus Armbruster <[email protected]>
Tested-by: Markus Armbruster <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.