From nobody Wed Feb 11 03:25:57 2026 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1528681468174644.1185702820022; Sun, 10 Jun 2018 18:44:28 -0700 (PDT) Received: from localhost ([::1]:45860 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSBsa-0002zF-3P for importer@patchew.org; Sun, 10 Jun 2018 21:44:20 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSBSB-0005p0-81 for qemu-devel@nongnu.org; Sun, 10 Jun 2018 21:17:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSBSA-0003N8-BD for qemu-devel@nongnu.org; Sun, 10 Jun 2018 21:17:03 -0400 Received: from mail-qt0-x232.google.com ([2607:f8b0:400d:c0d::232]:40786) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSBSA-0003Mn-6O; Sun, 10 Jun 2018 21:17:02 -0400 Received: by mail-qt0-x232.google.com with SMTP id q6-v6so18856709qtn.7; Sun, 10 Jun 2018 18:17:02 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id o5-v6sm28237223qtm.60.2018.06.10.18.16.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jun 2018 18:17:01 -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=XRMx06sNGn9QD4msAAo4yEa2rjRv6gP9d/QzD9YEWVA=; b=h3jOfM4sdILXj5A7rTpw1PNegx8a/FkAJIVALG/Hewb0g0vWtVAncHxEJ6bjGZ7b/Y D4P/ITnQdmBSNNP+ZMsTL20uUnIDC277crs+RAHNHwt+rWp9nElbfylnrBWgxFSlXs5u r9f8SF7ANPVGqa5DAGrdzi4wrE+5Dg8iL49yVF7Pv/xR7sg/I5SMl5eaI0zrsQ/E158N Vy0Bc54x2xQG9bk+jmrm7o2dHto8pwTqM82hwiY/+WAA9vg95fbJjIBgKaZc6QO4Al92 yrwt9rJlZ91JHdc+STYkz7hda6w+bGqyFJfY10o8MggslItPlQN998w1D7+f0q7LxFUH 899g== 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=XRMx06sNGn9QD4msAAo4yEa2rjRv6gP9d/QzD9YEWVA=; b=QXIlKzC1piOUFaxJoz4mZuVvyGXjafe6becPEHG86ynWhSF1ltxeYEbDkPBIjZdiL3 RluVMJ+56xNMtzlzaYoP6xkhbPfeDzNfpHYrcve4v1SmgI7gkS45R6mUeNVn27MyvdhF ozLFdD/hFZ/ayG+2FQCm4gdpmzCbEQT0FV3mERngb1gcaKz9LLAJ40i4FDtwHWXqc9ru QR+EDUj9usK0caFNKS43JrWnDT6FwUOZg83hWr+R4dzEPnMnWcSBUKK1sPfbjNkFcKLy 0Bz3Zdm5U5PExq8h/+3fV1aZPJhCOBm7tNGRv/sdvNzoyPgfOpDFslQuFZuRT4Zc7cQ4 yTKA== X-Gm-Message-State: APt69E1nGl35vN9IleS4aqVl/gEj84aIs50tE1bpiwoL2KFOC68NynrW fsmN8SD73d1LKBIY8zFQeuk= X-Google-Smtp-Source: ADUXVKLFwferTXBPSh8LwBxrq5Va1cSttFE2klLsla1brVLcNhljnupFW/zK885DX9WwV/K1J/zL2A== X-Received: by 2002:ac8:2d6c:: with SMTP id o41-v6mr14435186qta.107.1528679821798; Sun, 10 Jun 2018 18:17:01 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Thomas Huth , Stefan Weil Date: Sun, 10 Jun 2018 22:14:49 -0300 Message-Id: <20180611011501.10235-29-f4bug@amsat.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180611011501.10235-1-f4bug@amsat.org> References: <20180611011501.10235-1-f4bug@amsat.org> 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: 2607:f8b0:400d:c0d::232 Subject: [Qemu-devel] [PATCH v4 28/40] hw/sh4: 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: qemu-trivial@nongnu.org, Magnus Damm , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aurelien Jarno , qemu-devel@nongnu.org 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 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 --- hw/sh4/r2d.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/sh4/r2d.c b/hw/sh4/r2d.c index 8fe8766eb9..6a5fc46a47 100644 --- a/hw/sh4/r2d.c +++ b/hw/sh4/r2d.c @@ -24,6 +24,7 @@ */ =20 #include "qemu/osdep.h" +#include "qemu/units.h" #include "qapi/error.h" #include "qemu-common.h" #include "cpu.h" @@ -291,7 +292,7 @@ static void r2d_init(MachineState *machine) dinfo =3D drive_get(IF_PFLASH, 0, 0); pflash_cfi02_register(0x0, NULL, "r2d.flash", FLASH_SIZE, dinfo ? blk_by_legacy_dinfo(dinfo) : NULL, - (16 * 1024), FLASH_SIZE >> 16, + 16 * KiB, FLASH_SIZE >> 16, 1, 4, 0x0000, 0x0000, 0x0000, 0x0000, 0x555, 0x2aa, 0); =20 --=20 2.17.1