From 2d3b989529727ccace243b953a181fbae04a30d1 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 14 May 2013 14:29:04 +0200 Subject: acpi: add dummy write function for acpi timer Otherwise the guest can crash qemu (NULL pointer dereference). https://bugzilla.redhat.com/show_bug.cgi?id=947691 Signed-off-by: Gerd Hoffmann Reviewed-by: Laszlo Ersek Message-id: 1368534544-11826-1-git-send-email-kraxel@redhat.com Signed-off-by: Anthony Liguori --- hw/acpi/core.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'hw/acpi/core.c') diff --git a/hw/acpi/core.c b/hw/acpi/core.c index 64b871846d..42eeace6f6 100644 --- a/hw/acpi/core.c +++ b/hw/acpi/core.c @@ -462,8 +462,15 @@ static uint64_t acpi_pm_tmr_read(void *opaque, hwaddr addr, unsigned width) return acpi_pm_tmr_get(opaque); } +static void acpi_pm_tmr_write(void *opaque, hwaddr addr, uint64_t val, + unsigned width) +{ + /* nothing */ +} + static const MemoryRegionOps acpi_pm_tmr_ops = { .read = acpi_pm_tmr_read, + .write = acpi_pm_tmr_write, .valid.min_access_size = 4, .valid.max_access_size = 4, .endianness = DEVICE_LITTLE_ENDIAN, -- cgit v1.2.3