From patchwork Tue May 29 10:49:36 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: 10434927 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 A993A602BF for ; Tue, 29 May 2018 10:54:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 995A2286BA for ; Tue, 29 May 2018 10:54:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8D539286C1; Tue, 29 May 2018 10:54:40 +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=-3.8 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 1828A286BA for ; Tue, 29 May 2018 10:54:39 +0000 (UTC) Received: from localhost ([::1]:60101 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNcH1-0004ik-3s for patchwork-qemu-devel@patchwork.kernel.org; Tue, 29 May 2018 06:54:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNcCr-0001AW-IS for qemu-devel@nongnu.org; Tue, 29 May 2018 06:50:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fNcCq-0003lZ-Mb for qemu-devel@nongnu.org; Tue, 29 May 2018 06:50:21 -0400 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:33535) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fNcCq-0003kn-HF for qemu-devel@nongnu.org; Tue, 29 May 2018 06:50:20 -0400 Received: by mail-wm0-x230.google.com with SMTP id x12-v6so47287717wmc.0 for ; Tue, 29 May 2018 03:50:20 -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=IK8sKCZThIvfWq9Uw79HzpJyYdrdeaOe3xkftg+GOwXYYVew4tkKJ3acDCgIUM2PLY bO5IDAtnq03zJb2SSfwWcGjzqA4fFKrTR+gd1Y8DqpCrE+IQHSZAXgdRjo1Hm7Or2UWw h4TJqwALns1IxbuXrLKIt3jsSuDEt8f+TBPfO7QVA6CNtuMWEqD3imIsQauVv7usfmhy pL1lXQ16afK+43/R7dz+zlCDgeJqbEcE1opOlwWKuDNC2jUANnb9C8aHz1kgP4FD1yGw MKLQRtFfOmLX3D6xKLSwqn89bWqlipiGeDAI8VOK9+7tTUVBezWEISn5KnRJ05uJzYJN 9naw== 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=C/NO3226xJTBXoUjzE3q1qqwzcBqDl6nuZ1mq5TmCf0nIN4F+cPF0Ai4D7PgWNkLz4 RlhFw/V66ZDa6QzWb0tZRiaDgcS2Zz9ScWANzvim+jjIb/cE1A1mPLnIMy2vQTmL/28R 6VVQQtMB+QAWLJs9HKlSSWwKq3Sr4hErcPsKSynA8EXALciXryVV1fMKtcrCwoOEw7Jh shNXrGGymN8yUc9D6hYou5O8fIuZpYUDK7QbAPdaHWlaYX7suH7cevuLouAapAxzF9K3 oZx7AfFyCZyXBkTCusgFfnJB+Ib6/7/Rc3EuIVf6b5xaII4gMQicXx+WtAkXv1q4f+oT G67g== X-Gm-Message-State: ALKqPwcySv4RlXJLlALAswArholnm1nec2JvGaGl/ltgxuaTehug5xtk xtTMrrPP9UsjnQKOxoy1cAeV6g== X-Google-Smtp-Source: ADUXVKI3s7yCrwdoj92KraR0/hCEa/S1Djw/66xu3k+X17LjSgJGESG25JDOYAx8vw16oZFnWKY+SQ== X-Received: by 2002:a2e:89d7:: with SMTP id c23-v6mr10918389ljk.22.1527591019126; Tue, 29 May 2018 03:50:19 -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 d5-v6sm7295629lfg.65.2018.05.29.03.50.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 May 2018 03:50:17 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Tue, 29 May 2018 12:49:36 +0200 Message-Id: <20180529105011.1914-4-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180529105011.1914-1-edgar.iglesias@gmail.com> References: <20180529105011.1914-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:c09::230 Subject: [Qemu-devel] [PULL v1 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 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();