From patchwork Wed May 16 18:51:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 10404679 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8AD5A601C8 for ; Wed, 16 May 2018 18:54:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 79DBB28649 for ; Wed, 16 May 2018 18:54:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6E86628662; Wed, 16 May 2018 18:54:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, FSL_HELO_FAKE, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D655D28649 for ; Wed, 16 May 2018 18:54:34 +0000 (UTC) Received: from localhost ([::1]:34110 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ1ZJ-00059H-Uh for patchwork-qemu-devel@patchwork.kernel.org; Wed, 16 May 2018 14:54:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ1Wl-0002rW-Hk for qemu-devel@nongnu.org; Wed, 16 May 2018 14:51:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJ1Wk-0000gF-RA for qemu-devel@nongnu.org; Wed, 16 May 2018 14:51:55 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:38868) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJ1Wk-0000fr-Kx for qemu-devel@nongnu.org; Wed, 16 May 2018 14:51:54 -0400 Received: by mail-wr0-x241.google.com with SMTP id 94-v6so2762889wrf.5 for ; Wed, 16 May 2018 11:51:54 -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=jRTJB7ZZ/3zTL+WIHH6mMI0kgyuPzDFACNn53TEunws=; b=g6a0OfOAMR29MqmdyC8ArG0/to3Uy/H5H668PNKgvSDP0+v0RWmz6Rwi+2M+A9XePb TlAUCpYkAco2brpuR3V1EktX8GSwGzKura7UFxBwFEmGUAXrVrdt/XSE/6Hf+0wbTvpG owPFbOL0vi/t7BGSXxCubBQ7WTlR98MIDCCUV4FCaqRfxfycN+yK7XlIrMj41OJkw65F lQafV7z6YbauNlayOKEcsUijIvPWoE9V9ggEVhtSyrhAyzVX5+iF82fWOmIjVGRMfMC6 tI6td7MRGzVo/SMc9CTwloST24C0kvl7DnxqfiUyObgzo2mQTHu7vKpKms4odlq9Tyct 9rrQ== 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=jRTJB7ZZ/3zTL+WIHH6mMI0kgyuPzDFACNn53TEunws=; b=nplDqX5ui56ajdmy57XNzOG12mqTx1hDg7FpvS8USeETrzrbx1LFQLcHaWfaCrcQvI 0M0fqHxvHCfVAafY0G8VHyT/rfhEKDpWYwgtxHFbcWC2Heh6jRZV7xRXWxpUqNQnHlBU h+Iz53LsMSqvuLWhJdryY3ksgFSdVslTBA9y+mIxUCcgkPT6KzE2hDtTLsNQNV0xbQ2r eOdHov0ZrY+NK+IlO6qBxyibB3DvC9hDuVHcajjlvoIsjbiy8698VjtvhMjYFd5zsQBN /RWkK3OZ+XErJaS6bTitmxg1ldFcxc1p5+UtWUh26uDQdcd2Z7xWGhEDoUGcabR3dKbp OJXg== X-Gm-Message-State: ALKqPwevUb54f0YeG4z+koLeeby6rENe9Eughl2qreJHDm+j6hkrzQQm WVqNwg1NeWcAVwJGfW46MQhfaA== X-Google-Smtp-Source: AB8JxZrTr74Z69AjhNj5J5zbKqRGm9223vwptx0aHQ/fI5ujH550+liqH+/ZnyVWeg9TzrBuuRpJuA== X-Received: by 2002:a19:94c7:: with SMTP id o68-v6mr16543254lfk.111.1526496713155; Wed, 16 May 2018 11:51:53 -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 38-v6sm770439lfp.90.2018.05.16.11.51.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 May 2018 11:51:52 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Wed, 16 May 2018 20:51:11 +0200 Message-Id: <20180516185146.30708-4-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180516185146.30708-1-edgar.iglesias@gmail.com> References: <20180516185146.30708-1-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::241 Subject: [Qemu-devel] [PATCH v3 03/38] 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, sstabellini@kernel.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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 413e683aec..46595e6336 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -845,13 +845,13 @@ static void dec_imm(DisasContext *dc) static inline TCGv *compute_ldst_addr(DisasContext *dc, TCGv *t) { - unsigned int extimm = dc->tb_flags & IMM_FLAG; - /* Should be set to one if r1 is used by loadstores. */ - int stackprot = 0; + bool extimm = dc->tb_flags & IMM_FLAG; + /* Should be set to true if r1 is used by loadstores. */ + bool stackprot = false; /* All load/stores use ra. */ if (dc->ra == 1 && dc->cpu->cfg.stackprot) { - stackprot = 1; + stackprot = true; } /* Treat the common cases first. */ @@ -864,7 +864,7 @@ static inline TCGv *compute_ldst_addr(DisasContext *dc, TCGv *t) } if (dc->rb == 1 && dc->cpu->cfg.stackprot) { - stackprot = 1; + stackprot = true; } *t = tcg_temp_new();