diff options
author | 2017-07-07 15:42:55 +0100 | |
---|---|---|
committer | 2017-07-14 17:59:42 +0100 | |
commit | fefa92565f9a032dce974a0a6e1f296d449498f3 (patch) | |
tree | 89f991aaa840b748f8eacaaa7177f36e9405238d /bsd-user/bsdload.c | |
parent | hw/block/pflash_cfi01, pflash_cfi02: Use memory_region_init_rom_device() (diff) | |
download | qemu-fefa92565f9a032dce974a0a6e1f296d449498f3.tar.xz qemu-fefa92565f9a032dce974a0a6e1f296d449498f3.zip |
hw/pci/pci.c: Use memory_region_init_rom()
Since we pass the same DeviceState object to
memory_region_init_rom_nomigrate() and vmstate_register_ram(), we can
switch to using memory_region_init_rom() instead.
(This isn't entirely obvious from the code since it is using
&pdev->qdev rather than DEVICE(pdov) for some reason, but
PCIDevice does indeed use 'qdev' for its parent DeviceState member.)
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1499438577-7674-10-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'bsd-user/bsdload.c')
0 files changed, 0 insertions, 0 deletions