hw/arm/virt-acpi-build: Fix wrong size of flash in ACPI table
commitcd37aaf876717a75d7af3a7465e8706cc4e13661
authorShannon Zhao <shannon.zhao@linaro.org>
Thu, 24 Sep 2015 00:29:37 +0000 (24 01:29 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 24 Sep 2015 00:29:37 +0000 (24 01:29 +0100)
tree622faf9a81743aec7219901223f4b324c09286c3
parentb92ad3949bc9cacd1652b4e07e7f6003b9e512af
hw/arm/virt-acpi-build: Fix wrong size of flash in ACPI table

While virt machine creates two flash devices with total size 0x08000000,
the ACPI table generation code was wrongly using this total size as the
size of each flash device, so it would overlap other MMIO spaces.
Make each device entry in the table half the total; this brings the
ACPI table into line with the code which generates the device tree
and which creates the flash devices themselves.

Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Wei Huang <wei@redhat.com>
Tested-by: Graeme Gregory <graeme.gregory@linaro.org>
Message-id: 1442455041-6596-1-git-send-email-shannon.zhao@linaro.org
[PMM: edited commit message]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt-acpi-build.c