From: Alex Williamson Date: Fri, 4 Oct 2013 14:51:36 +0000 (-0600) Subject: vfio-pci: Add dummy PCI ROM write accessor X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~524^2~3^2~104^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64fa25a0efcadda6e8197e8ea578f6117d01bb4b;p=sdk%2Femulator%2Fqemu.git vfio-pci: Add dummy PCI ROM write accessor Just to be sure we don't jump off any NULL pointer cliffs. Signed-off-by: Alex Williamson Reported-by: Paolo Bonzini --- diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 68e25bd8c3..1fbc40b960 100644 --- a/hw/misc/vfio.c +++ b/hw/misc/vfio.c @@ -1128,8 +1128,14 @@ static uint64_t vfio_rom_read(void *opaque, hwaddr addr, unsigned size) return val; } +static void vfio_rom_write(void *opaque, hwaddr addr, + uint64_t data, unsigned size) +{ +} + static const MemoryRegionOps vfio_rom_ops = { .read = vfio_rom_read, + .write = vfio_rom_write, .endianness = DEVICE_LITTLE_ENDIAN, };