Message ID | 20180215042900.16078-14-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="WFCsvGwb"; 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 3zhk9N2zdKz9t2l for <incoming@patchwork.ozlabs.org>; Thu, 15 Feb 2018 15:40:39 +1100 (AEDT) Received: from localhost ([::1]:37563 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 1emBLY-0007rx-Jp for incoming@patchwork.ozlabs.org; Wed, 14 Feb 2018 23:40:36 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>) id 1emBBB-0007sQ-AF for qemu-devel@nongnu.org; Wed, 14 Feb 2018 23:29:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>) id 1emBBA-00044C-Fa for qemu-devel@nongnu.org; Wed, 14 Feb 2018 23:29:53 -0500 Received: from mail-qt0-x243.google.com ([2607:f8b0:400d:c0d::243]:34210) 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 1emBBA-00043u-C5 for qemu-devel@nongnu.org; Wed, 14 Feb 2018 23:29:52 -0500 Received: by mail-qt0-x243.google.com with SMTP id d14so10486165qtg.1 for <qemu-devel@nongnu.org>; Wed, 14 Feb 2018 20:29:52 -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=nxoO8yEtmncBwEKg3LwRif4NbaNfXnPnBGBIGHUayqA=; b=WFCsvGwbzTKgGfetJ+zThsVNcqwk/owzqtnLpy1BckE9QN74WaObpHibA1/lGgHYcq GP+M6Lfi4F79KSdi3a6VqKgvIOmiNi0kuTtj+gWNj/h/aSGREEomqLR6qFx24/XW7mRn GBSqabbZ7sl/bimniXMmcZDkjnIA787VIAt8AKEU8Z9EoZOTBxfByY5Af7y1F97FJemv Tc4Vy3JCZvu4YHQk153V2kG4AsLKhezi5xvxekdb5scX1urP7afc79/hVIqGoYFSnee6 eR0IKE0PH+xlEd2Uo464uty4w6zh6B3bydvRTdksx3m54TgwrV8vIYKNgwck86TCEbQT J6gQ== 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=nxoO8yEtmncBwEKg3LwRif4NbaNfXnPnBGBIGHUayqA=; b=cXNtRnve95G0qnxVyxy0dfOHlppeWVyr+dW+q8eWUibVgPszzwUUV48F1kr3U2R3Nr 1oJUdUjsHXFsdVI8sOeT0RTk7P62wOAUvz6zNDrm5NOG42DTDJyvh4imANGBk4JxMsHs iTiRd1H6WIaIMMMCSksLT7NRx0xB9AanwW0WFefzGLUFcOB5y/CRXRpyYus+2pwSI2Bl dA7SEWtAJksG1lB1Tg/Nwdb60G/eCv81ZDNs+riFscTkLCs2A2hmx9RLs9KuyjFy5NJr F2/831/8um4EOro+Vt1cf2MDLPQNmqStLQhti+4MR9VyW26RMsy+ui+4eNlgXQqAwyRx BVCA== X-Gm-Message-State: APf1xPDcZ1/Fi+bBoM8bAtiRmPaJ7GWlRQA+Wqq4GVP4lgYINEuCsYAt JcWvcqoTM7vMvbYlG80C7EM88VVv X-Google-Smtp-Source: AH8x225CKIy34fzb8QkZ5j6qj3foz6luJ8bjcUpz7ZxW89VzQf0jP5f3n6qvvJkO1UCvJ0WqdT8fow== X-Received: by 10.237.37.196 with SMTP id y4mr2377778qtc.182.1518668991843; Wed, 14 Feb 2018 20:29:51 -0800 (PST) Received: from x1.local ([138.117.48.219]) by smtp.gmail.com with ESMTPSA id t33sm10680312qtc.14.2018.02.14.20.29.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Feb 2018 20:29:51 -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:43 -0300 Message-Id: <20180215042900.16078-14-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::243 Subject: [Qemu-devel] [PATCH 13/30] hw/xtensa: 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: Max Filippov <jcmvbkbc@gmail.com>, =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?b?w6k=?= <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
|
On Wed, Feb 14, 2018 at 8:28 PM, Philippe Mathieu-Daudé <f4bug@amsat.org> wrote: > It ease code review, unit is explicit. > > Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> > --- > hw/xtensa/xtfpga.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Max Filippov <jcmvbkbc@gmail.com> Michael, could you please take it into the qemu-trivial?
diff --git a/hw/xtensa/xtfpga.c b/hw/xtensa/xtfpga.c index 70686a2eb1..922417af15 100644 --- a/hw/xtensa/xtfpga.c +++ b/hw/xtensa/xtfpga.c @@ -230,7 +230,7 @@ static void xtfpga_init(const XtfpgaBoardDesc *board, MachineState *machine) const char *kernel_cmdline = qemu_opt_get(machine_opts, "append"); const char *dtb_filename = qemu_opt_get(machine_opts, "dtb"); const char *initrd_filename = qemu_opt_get(machine_opts, "initrd"); - const unsigned system_io_size = 224 * 1024 * 1024; + const unsigned system_io_size = 224 * M_BYTE; int n; for (n = 0; n < smp_cpus; n++) {
It ease code review, unit is explicit. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> --- hw/xtensa/xtfpga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)