]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/pci/pci.c
memory: Rename memory_region_init_rom() and _rom_device() to _nomigrate()
[mirror_qemu.git] / hw / pci / pci.c
index 0c6f74a34760f0e051a9c063f6e5ebcdf63b3692..e73279a0c907380527905d668101bcc9fd250d42 100644 (file)
@@ -2235,7 +2235,7 @@ static void pci_add_option_rom(PCIDevice *pdev, bool is_default_rom,
         snprintf(name, sizeof(name), "%s.rom", object_get_typename(OBJECT(pdev)));
     }
     pdev->has_rom = true;
-    memory_region_init_rom(&pdev->rom, OBJECT(pdev), name, size, &error_fatal);
+    memory_region_init_rom_nomigrate(&pdev->rom, OBJECT(pdev), name, size, &error_fatal);
     vmstate_register_ram(&pdev->rom, &pdev->qdev);
     ptr = memory_region_get_ram_ptr(&pdev->rom);
     load_image(path, ptr);