From nobody Thu Oct 30 15:21:20 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=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1525801031322790.7158128235187; Tue, 8 May 2018 10:37:11 -0700 (PDT) Received: from localhost ([::1]:52576 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fG6Y2-0003PU-Ei for importer@patchew.org; Tue, 08 May 2018 13:37:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43810) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fG6T3-00082m-NT for qemu-devel@nongnu.org; Tue, 08 May 2018 13:32:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fG6T3-0005Go-19 for qemu-devel@nongnu.org; Tue, 08 May 2018 13:32:01 -0400 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]:39201) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fG6T2-0005GI-Pa for qemu-devel@nongnu.org; Tue, 08 May 2018 13:32:00 -0400 Received: by mail-lf0-x242.google.com with SMTP id j193-v6so47051465lfg.6 for ; Tue, 08 May 2018 10:32:00 -0700 (PDT) Received: from gmail.com (81-231-232-130-no39.tbcn.telia.com. [81.231.232.130]) by smtp.gmail.com with ESMTPSA id q18-v6sm4520391lfi.97.2018.05.08.10.31.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 May 2018 10:31:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Ed0oBkfMX5QBYAz+dXPC0kFodAYeN304698wzLrrAPY=; b=jLggHtXeAtg0MwkycCu4SL9lxGg0paRRPow/Z6NddnOmYwdellpbYDzGfvPJULzc60 KwgUaoWP1pisy6kDbEixDpTLH+yqve/KmGnTI/XGTmgCpdWBjsTf8U3DY6Pzd3jF63vA Wg5UDnxOTTZi32FEEyI5s7XC6Buog+DXR+DwiHokoykDYQN+OoEPWwYk3LnydXP8wSLU PNtJ+GVTwHPFW8mhDQtd4k/w2y/VEDVUgCHQ6sQ6ErEgE7nX5e/N48gSvapjd2flkDrA x4tfLxnSMK/vAz+toTJDwyrBvv3Jza8MVHCn9b82OcHODglhDEXXCY3ySUKY7PiE8u78 nVow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Ed0oBkfMX5QBYAz+dXPC0kFodAYeN304698wzLrrAPY=; b=TzKKQBArzeJodzCPk+plY7B16M9j3Q83phMYA3bpajWsIlCUvB7BxfgVd5l7JTULdZ +fzhj61QX4iT6ntrKynMiQqV2O/FdCGoR6ybfrXxfazsE60fj5hk/vT6yDFz7BFl9PjU kvYyg9w6Hhi2kbQ6QmFY/devqOrl6cqDW64kwL9mQgAoWE5rf9focnUDs4g1Wk5YVCYy 7OiEPOzMJu0aWwa2fE2gI9jaaZl2nnVNZjJCIflYBlLius2xmCVjrOwFBIfHo6HhUhoV pUcoyBt9O3jipSH6RVFHd0leRFSY2LFZBKpVS1IGxKtx2qpIhUlTGlMYPwRZlunq9Qfp edXQ== X-Gm-Message-State: ALQs6tCw4SZYxOYoOutR/hWHvIyL8JSGDlUXkJOPWxNzkm2OQd169Axz unMvsCYO+kQXic2dX/mFKElKqA== X-Google-Smtp-Source: AB8JxZp5IQRG/mqFn4yw+72TuJP0WxGCAka5zcPkEmNT4cj+1ukTXdzBV4VvSAfw8ARD4CfIa4Gkcg== X-Received: by 2002:a2e:9c90:: with SMTP id x16-v6mr25270065lji.13.1525800719255; Tue, 08 May 2018 10:31:59 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Tue, 8 May 2018 19:31:19 +0200 Message-Id: <20180508173152.29327-4-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180508173152.29327-1-edgar.iglesias@gmail.com> References: <20180508173152.29327-1-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::242 Subject: [Qemu-devel] [PATCH v2 03/36] target-microblaze: compute_ldst_addr: Use bool instead of int 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: edgar.iglesias@xilinx.com, peter.maydell@linaro.org, sai.pavan.boddu@xilinx.com, frasse.iglesias@gmail.com, alistair@alistair23.me, richard.henderson@linaro.org, frederic.konrad@adacore.com 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 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: "Edgar E. Iglesias" Use bool instead of int to represent flags. No functional change. Reviewed-by: Alistair Francis Reviewed-by: Richard Henderson Signed-off-by: Edgar E. Iglesias --- target/microblaze/translate.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index 6fe679ca6d..9232b42a8a 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -845,13 +845,13 @@ static void dec_imm(DisasContext *dc) =20 static inline TCGv *compute_ldst_addr(DisasContext *dc, TCGv *t) { - unsigned int extimm =3D dc->tb_flags & IMM_FLAG; - /* Should be set to one if r1 is used by loadstores. */ - int stackprot =3D 0; + bool extimm =3D dc->tb_flags & IMM_FLAG; + /* Should be set to true if r1 is used by loadstores. */ + bool stackprot =3D false; =20 /* All load/stores use ra. */ if (dc->ra =3D=3D 1 && dc->cpu->cfg.stackprot) { - stackprot =3D 1; + stackprot =3D true; } =20 /* Treat the common cases first. */ @@ -864,7 +864,7 @@ static inline TCGv *compute_ldst_addr(DisasContext *dc,= TCGv *t) } =20 if (dc->rb =3D=3D 1 && dc->cpu->cfg.stackprot) { - stackprot =3D 1; + stackprot =3D true; } =20 *t =3D tcg_temp_new(); --=20 2.14.1