hw/display/tcx: Init memory regions in realize
Thomas reported test failure: $ export QTEST_QEMU_BINARY=./qemu-system-sparc $ tests/qtest/device-introspect-test -m thorough ... # Testing device 'sun-tcx' RAMBlock "tcx.prom" already registered, abort! Broken pipe ../../devel/qemu/tests/qtest/libqtest.c:210: kill_qemu() detected QEMU death from signal 6 (Aborted) (core dumped) Aborted (core dumped) Issue is the qom introspect test will create yet another sun-tcx device causing double register of the memory region. Fix it by removing the init method and move memory region creation in realize. Reported-by: Thomas Huth <thuth@redhat.com> Link: https://lore.kernel.org/r/3b87e6d9-a027-4dcd-a995-857e16c8b2e6@redhat.com Fixes: 653c4fa5b0 hw/display/{cg3.tcx}: Do not use memory_region_init_rom_nomigrate Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Link: https://lore.kernel.org/r/20260316130651.5C8735968DE@zero.eik.bme.hu [peterx: amend commit message, fix tag, add link] Signed-off-by: Peter Xu <peterx@redhat.com>