From nobody Tue Feb 10 19:51:00 2026 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1622711123; cv=none; d=zohomail.com; s=zohoarc; b=TAAywAOyzLRQhBYjXxePC4gs3gNHOMiO9XTklK+VAw/isANZMlxOsedRP0fAS1MzONa654acxfTICeFcKz7R7XroKFFN2C6VkF9ZYW6piMbHBbqxASUpKmsh6PtNUBNOFHJG5rYdTWzEZ6PbRKFcwfJOyM/Ny/VKrLqZPnfBidk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622711123; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ycDqdBNMfE6sy0aNiEZr8G7a3sAQ4DzhtUJazHFG448=; b=lDpDrnuB8rVvYWl1QpKIOkgutHLQtAVYi/zdT4JICN3uHg+oGIiwa2l+bHXPMWJYtUja3ONwGX4UV0RwIeftSsahXHiJVAsy4UXISIqTr6HMG0WIDLKMjyHm2GTv3VX07JNDatY5H9dXWnCoRxLIevZTHnRTuU4pvk4lnCIVvBk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1622711123745533.6015998411434; Thu, 3 Jun 2021 02:05:23 -0700 (PDT) Received: from localhost ([::1]:38316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lojI2-0006Si-NV for importer2@patchew.org; Thu, 03 Jun 2021 05:05:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47584) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lojG4-0003qM-Tk for qemu-devel@nongnu.org; Thu, 03 Jun 2021 05:03:21 -0400 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]:45802) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lojG3-0008Vn-EF for qemu-devel@nongnu.org; Thu, 03 Jun 2021 05:03:20 -0400 Received: by mail-ej1-x635.google.com with SMTP id k7so8068096ejv.12 for ; Thu, 03 Jun 2021 02:03:18 -0700 (PDT) Received: from x1w.redhat.com (235.red-83-57-168.dynamicip.rima-tde.net. [83.57.168.235]) by smtp.gmail.com with ESMTPSA id z19sm491776edr.77.2021.06.03.02.03.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Jun 2021 02:03:17 -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=ycDqdBNMfE6sy0aNiEZr8G7a3sAQ4DzhtUJazHFG448=; b=Gb1x1GerQQu/ps4AXoeAG0KMSGDYzaSDzSNDL7UCCzwonF03v50XjR3qAczlHcK5/B GNaXbKvfKw3CXgKa6CSouH/FSFQclrEH50LobGdXLNOeKxE/xV1TSHWoCcQqwQ1nzNOe ZCYqdNhI7jmt7zLxF6tc9VS6/A6pujkOU75JzPxLhYb9hNoh6rqG+Zj1TmI80DnVsy9/ qKsrLtSzyLykBfI10cw2pQWoqMKHRm0DSzoCqFyIcTxa0/oHROkPs5TIqsh54B7Q/tMd vO29QNkdFNgVFS+v59SbS3UYSTKdyijdarIK8ZNbipsuIjpyRXkcbIlamvXibtvW4Mws qPdQ== 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=ycDqdBNMfE6sy0aNiEZr8G7a3sAQ4DzhtUJazHFG448=; b=mPmSkvhfv1sDkEN2m8mAcdtYbfNSpDDYYN7p4tGo7X4WnaXDDmJwkW92D3/mCZZCML ElcCYzhHUUIROrvsGoWvDSvONBUPs8sKdJnJt6nRD1mAxGKD263XqOGPcJ9jim9vEbsA z0wa7WSZIa9eyt8mXIpe9lRKPyswiIJKsOynQDAw63vD5LJGPIr5mzISS/Ofq+KovwWl YchpYp8ZVIRQMdZAwdUvggekJst44ndUphUPtt+byLDgGamshrLBfUrJlnovD8pXyW5k MdOgdOhwIvhr7xkieBYStt3OojM7KXXfbTXahRdqMPUhi5YqcyJ5wTKFvqdcXF4yoVGX L0Ig== X-Gm-Message-State: AOAM530h/bkSGXur7fiqF2XeMb1T73HN6th0E2Qm35eCUAIF2SvHBs9o GsgH6oZbbj1dMDAXaZY1AtBWtYEw8S5Hqw== X-Google-Smtp-Source: ABdhPJwso4LzkdxtufJAanXZwFgGzbjUIjTPycJPJsabexUSQrZuEUzbFauLC0IUYu3bjJdsvtfSSg== X-Received: by 2002:a17:906:180a:: with SMTP id v10mr5955483eje.22.1622710997629; Thu, 03 Jun 2021 02:03:17 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 1/6] target/microblaze: Use the IEC binary prefix definitions Date: Thu, 3 Jun 2021 11:03:05 +0200 Message-Id: <20210603090310.2749892-2-f4bug@amsat.org> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210603090310.2749892-1-f4bug@amsat.org> References: <20210603090310.2749892-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::635; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-ej1-x635.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Edgar E. Iglesias" , Richard Henderson , Alistair Francis , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) IEC binary prefixes ease code review: the unit is explicit. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Alistair Francis Reviewed-by: Edgar E. Iglesias Reviewed-by: Richard Henderson --- target/microblaze/mmu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/target/microblaze/mmu.c b/target/microblaze/mmu.c index cc40f275eaf..1481e2769f1 100644 --- a/target/microblaze/mmu.c +++ b/target/microblaze/mmu.c @@ -19,14 +19,15 @@ */ =20 #include "qemu/osdep.h" +#include "qemu/units.h" #include "cpu.h" #include "exec/exec-all.h" =20 static unsigned int tlb_decode_size(unsigned int f) { static const unsigned int sizes[] =3D { - 1 * 1024, 4 * 1024, 16 * 1024, 64 * 1024, 256 * 1024, - 1 * 1024 * 1024, 4 * 1024 * 1024, 16 * 1024 * 1024 + 1 * KiB, 4 * KiB, 16 * KiB, 64 * KiB, 256 * KiB, + 1 * MiB, 4 * MiB, 16 * MiB }; assert(f < ARRAY_SIZE(sizes)); return sizes[f]; --=20 2.26.3