From nobody Tue Feb 10 01:34:45 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.218.51 as permitted sender) client-ip=209.85.218.51; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-ej1-f51.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.218.51 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1622711003; cv=none; d=zohomail.com; s=zohoarc; b=FwAD5fl14FtoMnGxmNGeWM9Ouf0kzQk6Mh5CRRXdam79vTlko5kHxyZ/smdxX0lMYBYxYdDBKqJVFZnvr4CCMzvUtgoYhIbCUAOA6u1uzQyyiv+2Bwg8i0R6zgUBXBYkZ+ZXlVtNsKyBJ9Yv2NsuSMbiIU8YL6xBsXL2xcpwySQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622711003; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ycDqdBNMfE6sy0aNiEZr8G7a3sAQ4DzhtUJazHFG448=; b=Q3pSvvisipyvBK+U2CBzH5tkntRZBIHGHHJWj5zy13/338zQKbj3K4EJgLy8+gumMVIWtO/nG9NdT8HkV7YKhs/xT76ws5/XavekcgkrX0tVVfNMYXZ3XGgxK/kosTWPQiHokEeOulrmd0M3uP1Cp574Eojyn+7wovOiA22umYM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.218.51 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) by mx.zohomail.com with SMTPS id 1622711003477969.5116379670153; Thu, 3 Jun 2021 02:03:23 -0700 (PDT) Received: by mail-ej1-f51.google.com with SMTP id og14so2815518ejc.5 for ; Thu, 03 Jun 2021 02:03:21 -0700 (PDT) Return-Path: Return-Path: 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=LP4Y55A0iz9HG4LILS4oZoZdeeSCOBtvjIy8CJ7/E76qbjVRPdvF5NO0ZXj0ipp+ql N4NLeBZzM6RHKdksfKQPDtX9n+iO+F59Cxx3WTnXW7p3F3G9PI87gSnF6k8PIInepnjs 4XPJCaswSBykklxujynKJ4HboaklkXuUK2rcAVGxt/PuIuLPmksyhdBpFcSKFIX7xg9f xJ85H0Cz0s92AhUfdVSMKifgvhycwdK9S7BICW6ZjfgknQykX72BH1ApCVayjbUr+YvM l3xFIGXYBXr7dIA9SV44l7N7L8Pc5j7hn+0w7QC8Ckh5WG+wvU+OVZSJUDL4+kN9YZ66 ni6g== X-Gm-Message-State: AOAM533FlJWcirdcg7h/hHPmKA21CqEvzcnH6UNnLrjGwOLykvqqwRu6 jzogXquDqNakW2GLA7wl1AnxK1v8JqS0Sg== 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) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Alistair Francis , "Edgar E. Iglesias" , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= 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 X-ZohoMail-DKIM: pass (identity @gmail.com) 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