From nobody Thu Nov 28 11:29:08 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1692822528; cv=none; d=zohomail.com; s=zohoarc; b=J9NEEN+NwbFGPkRdHaaVR2jQfOEAu4fmUaLRH/jUVi7BPxcW+oRL//83kxRLMeAExzawKoZ1hpiZdAnkH94WfVPXzSIGd678ZP2jNQymxD5zz+3w7Vxzu08JiDPfzWnjn8gFQ0AqcFxpvWB9XFj1heP7xTo/nUExgAuMxIf+AoM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692822528; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=j8qLblRcFRCdHPr4hVq4biqvsFQ7fEHYa5+9HoyfNXw=; b=d8fIbPzPIMSRK086Qs7u75OMxyGYBK8+SQU0pc96B42cF2XGe1bBFkWs/vmdjhRC2MMSzEVvGqzQ5y5Ptn4GooWa+wqJR143Q1fP9P6kaaAuqoDH5573Aa/9tCQmvXJO28WMuymiOL/CSdQQp4YH27P8q53zclW0UF94rPNQWlc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1692822528155495.55197074403577; Wed, 23 Aug 2023 13:28:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYuRj-0006Pg-Cz; Wed, 23 Aug 2023 16:27:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYuRd-0005Og-8x for qemu-devel@nongnu.org; Wed, 23 Aug 2023 16:27:13 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYuRb-0006DI-J7 for qemu-devel@nongnu.org; Wed, 23 Aug 2023 16:27:12 -0400 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-68a529e1974so2769469b3a.3 for ; Wed, 23 Aug 2023 13:27:11 -0700 (PDT) Received: from stoup.. ([2602:47:d483:7301:72f0:1ea7:85d2:141e]) by smtp.gmail.com with ESMTPSA id j25-20020aa783d9000000b006873aa079aasm10117871pfn.171.2023.08.23.13.27.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Aug 2023 13:27:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692822430; x=1693427230; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=j8qLblRcFRCdHPr4hVq4biqvsFQ7fEHYa5+9HoyfNXw=; b=zdolvyQ4niPv/WR0CODfQgBCMu1Ps0PykOOyqAgz5tEtfRHZLQh9pM2MyQTtIveYUB MLMjuoOIbqSWe2KCEdnV3gZgMnK8R2UVDH673f0VxsGOZGI7pUt1QCyk4lN9dqtYA3Pq qhzDQ7wxUcJVleR/I4CyujEbteFnOP5/1mZHws0hpwAaghbZfZ4y1EeZF4z8cQVCbE9b mfD6pZuFrZzvVPrcb5ad3oI7nshpJ/Vvj0M9JH1thLpkXYTPRNw9yUH1afZnRh+qoezv g3/uqvaEwTPcEs4aOqHM7c4s62iK/K60M8dT6D8Uu4PyMnhF8Te9NzKZHeIkS/gGOCzH Wy4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692822430; x=1693427230; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=j8qLblRcFRCdHPr4hVq4biqvsFQ7fEHYa5+9HoyfNXw=; b=ez1CLfy8zQo5xbk5IEms8p8eeQ8Vddxv5y6UrRb4HRFJST0Em0s/SuLvL4kOlYmvTw Q0LwsWmwQpFBZo749BXTShMVfUO7BvG6TqzvO2/3omw8nAdgSPO56djfr7+02v/0nqpp MiO3d+5J8YcT5UO6Zq2r7xJrwrxIV1TsGUlijClEKaV3PGH0GaOKWPqbIXIlX0LcP6gI /Gc5b8KFChoEn1FPUaZY1/Tt+C0lpAGpo/cYvd2vA+v+vIZNftkjWviKKfrTCrJM4Lps 2jS53cWVK5sPfvpR/vOovX/3UhN6o6F/kWII4Q/BEmehWOXwHo+xlkD32HzqRH0nFBT7 CYCA== X-Gm-Message-State: AOJu0YxcLpuzVqto690oWJi81fl11RpoNS+uJUtQ/YJeLCU1vwhW03Nz HIcQutIREY6xA7ABsA5xaTGv4+dbMSIp3c7hJWs= X-Google-Smtp-Source: AGHT+IFQXidTj/9noRDOhDxrGT4Pzo9ThuiKIn2rlK30+ez+8OLf9R/HLv4LDufTk94u1mQF/e58gw== X-Received: by 2002:a05:6a21:3291:b0:140:56b6:4137 with SMTP id yt17-20020a056a21329100b0014056b64137mr14440042pzb.52.1692822430154; Wed, 23 Aug 2023 13:27:10 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 46/48] target/cris: Fix a typo in gen_swapr() Date: Wed, 23 Aug 2023 13:23:24 -0700 Message-Id: <20230823202326.1353645-47-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230823202326.1353645-1-richard.henderson@linaro.org> References: <20230823202326.1353645-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1692822528824100005 From: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20230823145542.79633-9-philmd@linaro.org> Signed-off-by: Richard Henderson --- target/cris/translate.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/target/cris/translate.c b/target/cris/translate.c index 0b3d724281..42103b5558 100644 --- a/target/cris/translate.c +++ b/target/cris/translate.c @@ -411,15 +411,17 @@ static inline void t_gen_swapw(TCGv d, TCGv s) tcg_gen_or_tl(d, d, t); } =20 -/* Reverse the within each byte. - T0 =3D (((T0 << 7) & 0x80808080) | - ((T0 << 5) & 0x40404040) | - ((T0 << 3) & 0x20202020) | - ((T0 << 1) & 0x10101010) | - ((T0 >> 1) & 0x08080808) | - ((T0 >> 3) & 0x04040404) | - ((T0 >> 5) & 0x02020202) | - ((T0 >> 7) & 0x01010101)); +/* + * Reverse the bits within each byte. + * + * T0 =3D ((T0 << 7) & 0x80808080) + * | ((T0 << 5) & 0x40404040) + * | ((T0 << 3) & 0x20202020) + * | ((T0 << 1) & 0x10101010) + * | ((T0 >> 1) & 0x08080808) + * | ((T0 >> 3) & 0x04040404) + * | ((T0 >> 5) & 0x02020202) + * | ((T0 >> 7) & 0x01010101); */ static void t_gen_swapr(TCGv d, TCGv s) { --=20 2.34.1