diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-07-07 15:42:55 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-07-14 17:59:42 +0100 |
commit | fefa92565f9a032dce974a0a6e1f296d449498f3 (patch) | |
tree | 89f991aaa840b748f8eacaaa7177f36e9405238d /hw/display | |
parent | bba3ddf72e75e0a0067aff2af424a5fd27004883 (diff) |
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 'hw/display')
0 files changed, 0 insertions, 0 deletions