From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1EQq-0004wL-EA for qemu-devel@nongnu.org; Tue, 24 Nov 2015 09:19:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1EQp-00016p-JC for qemu-devel@nongnu.org; Tue, 24 Nov 2015 09:18:56 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:58968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1EQp-000154-Cq for qemu-devel@nongnu.org; Tue, 24 Nov 2015 09:18:55 -0500 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1a1EQl-0002j0-TT for qemu-devel@nongnu.org; Tue, 24 Nov 2015 14:18:51 +0000 From: Peter Maydell Date: Tue, 24 Nov 2015 14:18:48 +0000 Message-Id: <1448374731-10445-2-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1448374731-10445-1-git-send-email-peter.maydell@linaro.org> References: <1448374731-10445-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PULL 1/4] xlnx-ep108: Fix minimum RAM check List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org From: Alistair Francis 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 Message-id: fba8112ca7b01efd72553332b8045ecf107b7662.1448021100.git.alistair.francis@xilinx.com Signed-off-by: Peter Maydell --- hw/arm/xlnx-ep108.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 1.9.1