From nobody Wed Oct 29 11:50:24 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 1525339298547242.91680316310953; Thu, 3 May 2018 02:21:38 -0700 (PDT) Received: from localhost ([::1]:54838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fEAQj-0001zg-PG for importer@patchew.org; Thu, 03 May 2018 05:21:37 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fEAOi-0000fi-04 for qemu-devel@nongnu.org; Thu, 03 May 2018 05:19:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fEAOh-0004xz-4q for qemu-devel@nongnu.org; Thu, 03 May 2018 05:19:31 -0400 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]:42889) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fEAOg-0004xL-Se for qemu-devel@nongnu.org; Thu, 03 May 2018 05:19:31 -0400 Received: by mail-lf0-x241.google.com with SMTP id u21-v6so24909449lfu.9 for ; Thu, 03 May 2018 02:19:30 -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 a189-v6sm2765299lfa.6.2018.05.03.02.19.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 May 2018 02:19:27 -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=Sv2Fyw2j0HcjXd5yBo7DMkzQulraonYDcGBoO8rtiIE=; b=JCBIGa/bRE2MCKRRDqRW2TKyTJ74UGRisLVgF453DL/q963sTCmhd7tOJDg3ih4auo lZgsYw5Ke/nl71ls2AzWIXFTga0OL4xBggE6juf74d2D4RKfhUHKYjftmDjosTUMv+sw UVRTyHAYNzp8R2OsgA2ETzZt5antuk+H2LBFBwEuMU/+tal+zH1NILps21fXmxUBj0fC JGi2this8BD5UwAAs7SvABQ47gHVpUIIZBCVmMphzBl/WEWdRfJYXZtjjVLqQvuTeOjR y9cqojK9bS92oUICTlE8Zjse/Twu63+yGVf3jkbzb8esvq3sY0oKFAuGZFoXF/hrOXgO NtQA== 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=Sv2Fyw2j0HcjXd5yBo7DMkzQulraonYDcGBoO8rtiIE=; b=LZTkE+ghR6WlSFg7zxBlhOBAKqi+spP1pt/XVJx1ulRYqz+VGIEX6n1WZ70kzIg6H3 J3qXqsonEgV24P8hn5Hlb9s4CTR2U9cmcrl278JcVQ9BQJIgRXVV9m6ZTYNw07UsC96d NkRpxcThC5Hr7Oz2ZnteB07VK/Y4wbvS5WH/DyhtlZLqN1RXPg+sKRsJzAeLX21xI/v6 +cxevfASFHTvPkBOLREDr2eVZW1y5EMMBtBwxFw0VBKa4KAdSR7jG+LvNVB+qIVbgDS1 XXyDD2Vcdpo5qhRFI1fS0FkePreudH+A4fCcQr471e5FCl9W+oJrX5a64xxK8nGe2y0M OaiQ== X-Gm-Message-State: ALQs6tAvaS6Mo8mWzpCz89kpObKS4o/PFA85gnSrcZWWdrxOtwohRfCR qJhhdIgxcuhcKOOcoAAdpXdatw== X-Google-Smtp-Source: AB8JxZrxdPCW0IE5c+19LDFXyAJi4KsOohAmPu2rcVzJ3RGW2NLdfpGj2JSFcz7FWb/0MPWKZ9f3qg== X-Received: by 2002:a19:434c:: with SMTP id m12-v6mr14550786lfj.120.1525339169180; Thu, 03 May 2018 02:19:29 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Thu, 3 May 2018 11:18:56 +0200 Message-Id: <20180503091922.28733-4-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180503091922.28733-1-edgar.iglesias@gmail.com> References: <20180503091922.28733-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::241 Subject: [Qemu-devel] [PATCH v1 03/29] 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 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. Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis Reviewed-by: Richard Henderson --- 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