Message ID | 20180215042900.16078-20-f4bug@amsat.org |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="CIhZBI5X"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zhkR12m6Jz9sRW for <incoming@patchwork.ozlabs.org>; Thu, 15 Feb 2018 15:52:29 +1100 (AEDT) Received: from localhost ([::1]:37675 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1emBX1-0002bt-E1 for incoming@patchwork.ozlabs.org; Wed, 14 Feb 2018 23:52:27 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>) id 1emBBP-00084W-Fv for qemu-devel@nongnu.org; Wed, 14 Feb 2018 23:30:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>) id 1emBBO-0004B1-OS for qemu-devel@nongnu.org; Wed, 14 Feb 2018 23:30:07 -0500 Received: from mail-qt0-x244.google.com ([2607:f8b0:400d:c0d::244]:36662) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>) id 1emBBO-0004AJ-JV for qemu-devel@nongnu.org; Wed, 14 Feb 2018 23:30:06 -0500 Received: by mail-qt0-x244.google.com with SMTP id q18so10489661qtl.3 for <qemu-devel@nongnu.org>; Wed, 14 Feb 2018 20:30:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UGCcO1GUKgL/AeKJawXK0v3GcIEuTBnnchgSUdRurJM=; b=CIhZBI5XWnll3mnPmcAYGGkSULYCiMJdtn1jrNE5lsXBIc2bCZuUGc4JBPAmcb+ajW RVxCU/Co9qrMiiQAMcmbziE52Fpb6dEsC6gjfrXK/eAj5ueoAXHo5ZOx16F6XBejWNXU NnKT5qPn6p1QvgAG2sFhZm90VR5pnOCADTGMmgWydTcev2uJZDcVS6zED/8S36aVCZwf 8yap65evyjhV6d4bSSsO+70b1O07Q7t8Px3T4PORsauWnbwLMgB1HoYmOxWV/CPZ57f6 rFbNsAqVeQSgMvuMWUpw5XkSlKJWkdd8JbaZx3dpuU6/WjfMPErnkAxkLPj3GV1tTLpf gDJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=UGCcO1GUKgL/AeKJawXK0v3GcIEuTBnnchgSUdRurJM=; b=dv/fgKCkQjqQ1Xhsta79XkSrR9PV8e+5Hx2TGiKImx2IoVFYQt7Djp9nhd6S7oKBWh 5P24hM82u0uJOfBisQ/EviQrUyTXRFBx3nkwBdi97ohDX6o2Kfc6WPuNWDRZ1VOAonSZ 0WupdMfVTdHd5YY+ulm5bZk7toHaGG4W9S2HBq1E9nyvRPXJWzF4fKxMJP4IGahuAt2D tfMhEOtVcBoO8mYyaXjcK8BU+E+iqPaQBoS6GHwuWJloIZ7m8TXS9sr4O1PaZNOpde2D ZK97JYiQoHyCQHOkUELGL8aPc207fgxUPwQHSKFCrg1w2I6L2+0AFh/CXW/uwGiCO7m6 yJUA== X-Gm-Message-State: APf1xPDN5XGEg8BUyPr73HMwwKlsstZXcderBxfrYHENAwbOrhklygZD SKjOj+tAsruwAx4UYXqXAFQjCW/m X-Google-Smtp-Source: AH8x225wKYdHUGmptdUajBdtvcelnHV7p5jhPS7Fax/jP3ZYtr+U5OhkuGdazJfF6agN6TgqqMGT+Q== X-Received: by 10.200.20.149 with SMTP id l21mr2361160qtj.332.1518669006028; Wed, 14 Feb 2018 20:30:06 -0800 (PST) Received: from x1.local ([138.117.48.219]) by smtp.gmail.com with ESMTPSA id t33sm10680312qtc.14.2018.02.14.20.30.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Feb 2018 20:30:05 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org> To: qemu-devel@nongnu.org Date: Thu, 15 Feb 2018 01:28:49 -0300 Message-Id: <20180215042900.16078-20-f4bug@amsat.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180215042900.16078-1-f4bug@amsat.org> References: <20180215042900.16078-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::244 Subject: [Qemu-devel] [PATCH 19/30] hw/nios2: use the BYTE-based definitions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Marek Vasut <marex@denx.de>, Chris Wulff <crwulff@gmail.com>, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org> Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
hw: use the BYTE-based definitions when useful
|
expand
|
diff --git a/hw/nios2/boot.c b/hw/nios2/boot.c index 771e00267b..911f28c0d8 100644 --- a/hw/nios2/boot.c +++ b/hw/nios2/boot.c @@ -176,7 +176,7 @@ void nios2_load_kernel(Nios2CPU *cpu, hwaddr ddr_base, high = ddr_base + kernel_size; } - high = ROUND_UP(high, 1024 * 1024); + high = ROUND_UP(high, 1 * M_BYTE); /* If initrd is available, it goes after the kernel, aligned to 1M. */ if (initrd_filename) {
It ease code review, unit is explicit. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> --- hw/nios2/boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)