From nobody Fri Oct 24 20:18:50 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of _spf.google.com designates 209.85.216.195 as permitted sender) client-ip=209.85.216.195; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-qt0-f195.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of _spf.google.com designates 209.85.216.195 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-qt0-f195.google.com (mail-qt0-f195.google.com [209.85.216.195]) by mx.zohomail.com with SMTPS id 151866900682616.88898606939938; Wed, 14 Feb 2018 20:30:06 -0800 (PST) Received: by mail-qt0-f195.google.com with SMTP id d26so8886243qtj.4 for ; Wed, 14 Feb 2018 20:30:06 -0800 (PST) Return-Path: Return-Path: 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) 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=emSd3DfhsS+Xi3AVeanAJqSPNN2h5hFDtW4KocwRJahIBDZoe8h/FDiIuxWNnXlJtN qv4LhXo3Qj6DD6RIa7JJ6W/FODzdKg19bg885mNfatPNp16C1P8b6+PdkUBQpmrLQvx3 dMAUy8dCaistHvS3kn+h3nR/windI0EuHb7kabVUlNNKxscEAn+9lAWLnghC5eYMxZMF lh4gXsIxHGRRIkOh0lMarJBK4dd7e0FrsmVoDMwzyf93/L3FzDG1f1mhFXeJCzfL5zXB 9GVF3hESzhesvbaA5ENKBRg+0f0ybt7Inx0TpL5oziwpWrjhjOoL3KhYHWsQVZ0v9Ko+ AyCw== X-Gm-Message-State: APf1xPDFtn/KK8PKqyl0JFOKfUGHS9ZLXXdZVnv/lyyjcDDX+kltkjpq HEsenfeZhLaFqtfQvnoJHcY= 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) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Chris Wulff , Marek Vasut Subject: [PATCH 19/30] hw/nios2: use the BYTE-based definitions 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: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZohoMail: RDKM_0 RSF_0 Z_629925259 SPT_0 It ease code review, unit is explicit. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/nios2/boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 =3D ddr_base + kernel_size; } =20 - high =3D ROUND_UP(high, 1024 * 1024); + high =3D ROUND_UP(high, 1 * M_BYTE); =20 /* If initrd is available, it goes after the kernel, aligned to 1M= . */ if (initrd_filename) { --=20 2.16.1