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: 921960 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="IK8sKCZT"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40w9ZZ488Cz9ry1 for ; Tue, 29 May 2018 20:53:58 +1000 (AEST) Received: from localhost ([::1]:60093 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNcGK-0003XL-5V for incoming@patchwork.ozlabs.org; Tue, 29 May 2018 06:53:56 -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+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" 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();