aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@xilinx.com>2015-11-24 14:12:15 +0000
committerPeter Maydell <peter.maydell@linaro.org>2015-11-24 14:12:15 +0000
commit5b4a047fbe8ceb68ad1a78d51f0fadbe2bb12af7 (patch)
treeab84ef37d26064c6d5efddbf4353fb70de42df0e
parent229c0372cf3ca201c41d2bb121627e6752e776ad (diff)
downloadqemu-5b4a047fbe8ceb68ad1a78d51f0fadbe2bb12af7.zip
qemu-5b4a047fbe8ceb68ad1a78d51f0fadbe2bb12af7.tar.gz
qemu-5b4a047fbe8ceb68ad1a78d51f0fadbe2bb12af7.tar.bz2
xlnx-ep108: Fix minimum RAM check
The minimum RAM check logic for the Xiilnx EP108 was off by one, which caused a false positive. Correct the logic to only print warnings when the RAM is below 0x8000000. Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Message-id: fba8112ca7b01efd72553332b8045ecf107b7662.1448021100.git.alistair.francis@xilinx.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--hw/arm/xlnx-ep108.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/xlnx-ep108.c b/hw/arm/xlnx-ep108.c
index 2899698..85b978f 100644
--- a/hw/arm/xlnx-ep108.c
+++ b/hw/arm/xlnx-ep108.c
@@ -51,7 +51,7 @@ static void xlnx_ep108_init(MachineState *machine)
machine->ram_size = EP108_MAX_RAM_SIZE;
}
- if (machine->ram_size <= 0x08000000) {
+ if (machine->ram_size < 0x08000000) {
qemu_log("WARNING: RAM size " RAM_ADDR_FMT " is small for EP108",
machine->ram_size);
}