From patchwork Tue May 29 10:50:07 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: 922000 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="Lf00lv67"; 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 40wBFj3V2hz9s0y for ; Tue, 29 May 2018 21:24:25 +1000 (AEST) Received: from localhost ([::1]:60279 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNcjn-00016h-5V for incoming@patchwork.ozlabs.org; Tue, 29 May 2018 07:24:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNcDj-0001zN-5B for qemu-devel@nongnu.org; Tue, 29 May 2018 06:51:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fNcDe-0004Lb-So for qemu-devel@nongnu.org; Tue, 29 May 2018 06:51:15 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:36592) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fNcDe-0004L4-MT for qemu-devel@nongnu.org; Tue, 29 May 2018 06:51:10 -0400 Received: by mail-wm0-x234.google.com with SMTP id v131-v6so20051229wma.1 for ; Tue, 29 May 2018 03:51:10 -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=EPXMHzWKqaEXhQn1ScZ+BaAab5LKhT+XVeFW/6oU/4g=; b=Lf00lv67a7ccwAT+3d5TcVmye9D1tdCC2ccbqAhqCuGpksIGlA4PVbUvtB7AaQZJ69 CRKhKs+H7P19hswl+enqp/OGzdBBcEsvQ1a/y1fvBN55NooxTyZkQvXdDd8xq58BBVy5 OCD/wC2W2TN5RUJeEPXi9M9pwCqYirJHK8mSD9T9eAzAsi/EWZm+DUOee4xjuz7DH1Tw gp2Ve8aDR7syfBxN6ppkdDhd4wMmCBny7HX0JCE9banJ/cXx5bCpJPtc/U9bBLETRcz0 WlP6JeHFymL4hVVJMyj1Aw7MXWvcOqtMR86AJjqpKzV73jDYazyNgAWSZUcBYQvRMNL4 ojHg== 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=EPXMHzWKqaEXhQn1ScZ+BaAab5LKhT+XVeFW/6oU/4g=; b=mQ+aW4O4fuYz53v8BAFdW5KCBHWC4CULcRahErTfBJSjOifKXrpfqH9NhkL+7bojl/ UDEHQfX7SfWt3ZDx3fbsy3JK9EXBQ9QWSppX1QDooKxdo1xok4h6qJWhg/Vud8B6allP MqAqwrX0JCdtNERC5LSOn4bchXFRzzkU14kBVU6EzPASC8cRCULwAtyUpf7tidnIDThJ iw/XynUlNcScKs481g1uEUK1K3yOw+ouDbju1Jn6IBusDkwD3QCILBUorRcQnWNj/ZdZ 1UzPfc8+dPVWFJXIXRqnJB6z4r+tigYlXWlUUA2bP95fX4ckBJOxw4EIcyljXZipY6rn 5opw== X-Gm-Message-State: ALKqPwe4SnSrEj1/ngAiVQp4OvtExA5Tp38qkF3tVITbGTeTpV2zoUMI DJZ4WXPEz0+ui7eSm0HDAtQHNw== X-Google-Smtp-Source: AB8JxZrQYYIza/0a9Wudb8TfPtdtiuR9bYAkh7oudOEXADvC0zuzY5VEqr8oYg9ALIKYxsqRLkTiSg== X-Received: by 2002:a2e:9756:: with SMTP id f22-v6mr10967060ljj.111.1527591069371; Tue, 29 May 2018 03:51:09 -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 o8-v6sm2319877lji.0.2018.05.29.03.51.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 May 2018 03:51:08 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Tue, 29 May 2018 12:50:07 +0200 Message-Id: <20180529105011.1914-35-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::234 Subject: [Qemu-devel] [PULL v1 34/38] target-microblaze: Remove argument b in eval_cc() 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" Remove argument b in eval_cc() as it is always set to zero. No functional change. Reviewed-by: Richard Henderson Signed-off-by: Edgar E. Iglesias --- target/microblaze/translate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index 092e182c2f..d870cb7c43 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -1143,7 +1143,7 @@ static void dec_store(DisasContext *dc) } static inline void eval_cc(DisasContext *dc, unsigned int cc, - TCGv_i32 d, TCGv_i32 a, TCGv_i32 b) + TCGv_i32 d, TCGv_i32 a) { static const int mb_to_tcg_cc[] = { [CC_EQ] = TCG_COND_EQ, @@ -1161,7 +1161,7 @@ static inline void eval_cc(DisasContext *dc, unsigned int cc, case CC_LE: case CC_GE: case CC_GT: - tcg_gen_setcond_i32(mb_to_tcg_cc[cc], d, a, b); + tcg_gen_setcondi_i32(mb_to_tcg_cc[cc], d, a, 0); break; default: cpu_abort(CPU(dc->cpu), "Unknown condition code %x.\n", cc); @@ -1207,7 +1207,7 @@ static void dec_bcc(DisasContext *dc) tcg_gen_movi_i32(env_btarget, dc->pc); tcg_gen_add_i32(env_btarget, env_btarget, *(dec_alu_op_b(dc))); } - eval_cc(dc, cc, env_btaken, cpu_R[dc->ra], tcg_const_i32(0)); + eval_cc(dc, cc, env_btaken, cpu_R[dc->ra]); } static void dec_br(DisasContext *dc)