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 1525339298695755.0395472711449; Thu, 3 May 2018 02:21:38 -0700 (PDT) Received: from localhost ([::1]:54840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fEAQj-00020I-Tj for importer@patchew.org; Thu, 03 May 2018 05:21:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fEAOg-0000eN-A7 for qemu-devel@nongnu.org; Thu, 03 May 2018 05:19:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fEAOd-0004wU-LO for qemu-devel@nongnu.org; Thu, 03 May 2018 05:19:30 -0400 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]:39271) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fEAOd-0004vv-DB for qemu-devel@nongnu.org; Thu, 03 May 2018 05:19:27 -0400 Received: by mail-lf0-x242.google.com with SMTP id j193-v6so24916484lfg.6 for ; Thu, 03 May 2018 02:19:27 -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 r72-v6sm2772439lfi.78.2018.05.03.02.19.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 May 2018 02:19:24 -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=7j0i7sCaID+WFQCOspKzTmDQXAiBr3Rd7pgeaEneGBo=; b=pl9A9WdnDl8D8RgIn4o2Bf1ddiz4EWcJUj7vw11qxx1+uXi+D/pNVnHlvxHV8HA1rY 5ceXLF/VH4ovUmbzR9a3RHzkZZOLOMfHc1oyPmape6rTOxBJOt539oGtP9aOJRBXQLNX 38x/L/DzvGUmmoPvhEBQWCsSrOE3VdOuDLrQ778Ir1QOcq1ARJTm7kVY5bL1Tq/OusDb U2u8AJYkI3QIgsMrs+8/HJ+E19Su0Lf+ms7IXk3S3pioc0b5I5xM3yBqPm1cA9LYNbET hjcaBK8Qj+AS4eYLp2mx7jzSy6ULxg8CcKCrf7Y529nbSMJBUTYekHycqE2EJCh/Cj0o 0IlA== 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=7j0i7sCaID+WFQCOspKzTmDQXAiBr3Rd7pgeaEneGBo=; b=fuRMLW1T0fqVwtTFHiZsK4rpOKr4j1rrKTSzxKAHFRnf4DvlrgEiwA0dWXR0wp7Ygw gcbjE3XOqXwbafTXyHI+pWbLiLIc1gu3xdmutCflZoq4mMAOqivF46QntTfUf3TLgMvh V2xzibijfsqrUyGUGnE5NJXqnDQyE1dltS3k/PNNukHU06Lf+qeRQOShW3iLt2i4CPK1 zD67kv+WW6PIKd1ldm/x8xHh16UPUzLhbjOs/GCvllgoJCDQYdzWbsqoVfKuj+kBKdSZ Oc6IfqrafeG5A6R7pRLWLzNebbTnVPpXRWKQKHT+7C+Cee8DSsHir+h6GuVD7djWVUq8 5v+Q== X-Gm-Message-State: ALQs6tBbDMIQjik4JvIf14jjZ6iZvmOIK+vRarbxUL4EsbZfFkdQxqc1 Es5jcwblm8OWXFJCGEAi9YBQyQ== X-Google-Smtp-Source: AB8JxZpz6p+YNPKqlWEsjYoDUarYzPX7CwSfac3OKrlD/CI9wDt8FGWlH9mwQbK5nKMC4Iglm1XIKA== X-Received: by 2002:a2e:8705:: with SMTP id m5-v6mr3373815lji.62.1525339165869; Thu, 03 May 2018 02:19:25 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Thu, 3 May 2018 11:18:54 +0200 Message-Id: <20180503091922.28733-2-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::242 Subject: [Qemu-devel] [PATCH v1 01/29] target-microblaze: dec_load: Use bool instead of unsigned 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 unsigned 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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index 100883e2cc..33f21aa5b7 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -897,14 +897,15 @@ static inline TCGv *compute_ldst_addr(DisasContext *d= c, TCGv *t) static void dec_load(DisasContext *dc) { TCGv t, v, *addr; - unsigned int size, rev =3D 0, ex =3D 0; + unsigned int size; + bool rev =3D false, ex =3D false; TCGMemOp mop; =20 mop =3D dc->opcode & 3; size =3D 1 << mop; if (!dc->type_b) { - rev =3D (dc->ir >> 9) & 1; - ex =3D (dc->ir >> 10) & 1; + rev =3D extract32(dc->ir, 9, 1); + ex =3D extract32(dc->ir, 10, 1); } mop |=3D MO_TE; if (rev) { --=20 2.14.1