mirror of
https://github.com/qemu/qemu.git
synced 2025-08-07 23:16:19 +00:00
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 <alex.williamson@redhat.com> Reported-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
1d5bf692e5
commit
64fa25a0ef
@ -1128,8 +1128,14 @@ static uint64_t vfio_rom_read(void *opaque, hwaddr addr, unsigned size)
|
|||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void vfio_rom_write(void *opaque, hwaddr addr,
|
||||||
|
uint64_t data, unsigned size)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
static const MemoryRegionOps vfio_rom_ops = {
|
static const MemoryRegionOps vfio_rom_ops = {
|
||||||
.read = vfio_rom_read,
|
.read = vfio_rom_read,
|
||||||
|
.write = vfio_rom_write,
|
||||||
.endianness = DEVICE_LITTLE_ENDIAN,
|
.endianness = DEVICE_LITTLE_ENDIAN,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user