]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/ppc/ppc4xx_devs.c
Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging
[mirror_qemu.git] / hw / ppc / ppc4xx_devs.c
index 2b5d2cd6c31b02b636cfa07539cb90ab4eb06ec4..2f38ff7d262565c665409cfc92af6e0c1852131a 100644 (file)
@@ -422,7 +422,7 @@ static void sdram_set_bcr(ppc4xx_sdram_t *sdram,
                                     &sdram->containers[n]);
         memory_region_del_subregion(&sdram->containers[n],
                                     &sdram->ram_memories[n]);
-        memory_region_destroy(&sdram->containers[n]);
+        object_unparent(OBJECT(&sdram->containers[n]));
     }
     *bcrp = bcr & 0xFFDEE001;
     if (enabled && (bcr & 0x00000001)) {