From nobody Tue Nov 4 18:44:21 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1530339709922399.0903361838316; Fri, 29 Jun 2018 23:21:49 -0700 (PDT) Received: from localhost ([::1]:45723 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZ9GX-000576-5G for importer@patchew.org; Sat, 30 Jun 2018 02:21:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZ968-0004CR-VY for qemu-devel@nongnu.org; Sat, 30 Jun 2018 02:11:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZ968-000264-15 for qemu-devel@nongnu.org; Sat, 30 Jun 2018 02:11:04 -0400 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:34556) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fZ967-00024f-QH for qemu-devel@nongnu.org; Sat, 30 Jun 2018 02:11:03 -0400 Received: by mail-wm0-x22d.google.com with SMTP id l15-v6so3502429wmc.1 for ; Fri, 29 Jun 2018 23:11:03 -0700 (PDT) Received: from donizetti.lan ([82.84.124.111]) by smtp.gmail.com with ESMTPSA id 24-v6sm563454wrz.94.2018.06.29.23.11.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Jun 2018 23:11:02 -0700 (PDT) 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=/hLXVQXwcSAJ3TZFDnrRpV/W+A9+XUkY2m//Q+rcMrM=; b=sB5mH5u7UfWtaEfn9/QCNwXbhO8D/u9w4wQVXGJ0OK6H+gHf9HEKBWWdx7zvlT2AVV 9Qv3BJDyD9TosNYcwRcLO6pulRMtbF9UC1nUCo19in22ptJ6+Fww1Y3ZcCPBR6p4tTHx QNE7f1u+4KIjqQJNtH2cP3us3GS/sCbhRQV7WOkFXoHxIgcxEaive/2B+NeSsgHNBDJm YidsMZP6MIP0VRGmK2epKemIVgzAtj3jUBSHWRPrF9yUluKKq2ybJepRiJbIJJOnjYzs y8Y0Cz27WPivbvAP8Y04bAJr7s7pZs6c8HLnRSkvj2yNizjQ7x/o8jXCQaXspTyJnmeL O7Xg== 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=/hLXVQXwcSAJ3TZFDnrRpV/W+A9+XUkY2m//Q+rcMrM=; b=EtE/wtqDG4GrZaAY35/rHBosW1cB/BVGvZ5nsXEF5dHr2yI1lTDM8afH2s6xcENxee 9mh3oFU5oPR0Q3bN/WV2hm5S7Dy5MLx5ER3QGagJjYLTZ5Kbjw31tDq3nKPkZQP+gt6v Sg/JwkNwstHxqdq5WPhagYoqIsC3egFhkD9ClybY31Lmo7LSQKdjTqHQW4PZC8HX8Lay gOeJRtyDIm476Y5ZOpx6QvH1ye5ERkDzAmY+CeaJRjdeHKTv5bZV5E6kLBvcTp1Rcob6 1VPqOiIcNhoQwZyhZrXXuKB2EyGOhYUbFPVhURiYapMmJO16hWAiDagnGwrzb1IjMj3i Ixzg== X-Gm-Message-State: APt69E310WNNykqY7FRjLMmPqXmybqEoWtsdIVMuGL/VETKWshr1A0Li bSt4ZHD9MZtM0kd/IyXh+NymaQns X-Google-Smtp-Source: AAOMgpcUqnWaHH4RONyUemYWX7mJ6g4DROZFn67MYasDVCPWybiH11ePVuzMHrlH3/WYiQjw8r8R4Q== X-Received: by 2002:a1c:91c4:: with SMTP id t187-v6mr3743834wmd.51.1530339062635; Fri, 29 Jun 2018 23:11:02 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Sat, 30 Jun 2018 08:10:12 +0200 Message-Id: <20180630061040.6018-20-pbonzini@redhat.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180630061040.6018-1-pbonzini@redhat.com> References: <20180630061040.6018-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22d Subject: [Qemu-devel] [PULL 19/47] hw/m68k: Use the IEC binary prefix definitions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 From: Philippe Mathieu-Daud=C3=A9 It eases code review, unit is explicit. Patch generated using: $ git grep -E '(1024|2048|4096|8192|(<<|>>).?(10|20|30))' hw/ include/hw/ and modified manually. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Thomas Huth Message-Id: <20180625124238.25339-18-f4bug@amsat.org> Signed-off-by: Paolo Bonzini --- hw/m68k/mcf5208.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/m68k/mcf5208.c b/hw/m68k/mcf5208.c index ae3dcc9..0f2245d 100644 --- a/hw/m68k/mcf5208.c +++ b/hw/m68k/mcf5208.c @@ -6,6 +6,7 @@ * This code is licensed under the GPL */ #include "qemu/osdep.h" +#include "qemu/units.h" #include "qemu/error-report.h" #include "qapi/error.h" #include "qemu-common.h" @@ -241,7 +242,7 @@ static void mcf5208evb_init(MachineState *machine) memory_region_add_subregion(address_space_mem, 0x40000000, ram); =20 /* Internal SRAM. */ - memory_region_init_ram(sram, NULL, "mcf5208.sram", 16384, &error_fatal= ); + memory_region_init_ram(sram, NULL, "mcf5208.sram", 16 * KiB, &error_fa= tal); memory_region_add_subregion(address_space_mem, 0x80000000, sram); =20 /* Internal peripherals. */ --=20 1.8.3.1