Message ID | 20210208023752.270606-16-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp4310151jah; Sun, 7 Feb 2021 18:44:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxHEOpgtSrfe9cSQAfiTlay07qBBlVZkC9P7EIc95x9B3J5NQZBrGyTEep72AfrOv4X9ydF X-Received: by 2002:a25:33d5:: with SMTP id z204mr22150661ybz.78.1612752252891; Sun, 07 Feb 2021 18:44:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612752252; cv=none; d=google.com; s=arc-20160816; b=LkEgfyLKrW7XjtsV5xKTp6iCze4JcXRo6EkRkqzr8M4eRBRtXwSqQvmfoVQpIJypGa Yu6fbH5yPt/TNnqoubmAQNKfZLm2jhUG78XEtCYRPhKOwH4GWWq/bTu5fgn495wFYvck LpqjV7jRktyPYmg3Ki8NMclu1r4iaagXS+5e67m4b1bsP7etagfLfS2iaUks0HsdEiXX EaodQu+ObmanksZII64C8bVKs5RGE4ZP7vi4hegQ4mZ/UMIaLGOsVZ3Y8EPu69ScUGPm OhtI41mI4lBsj7wowzeOcTEd+zrJXQ3Pl3nHkUOe5gKdPsfNoOXh/Zyqh9af81S5W+lG zw7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=KcXtBKnullZQYp/0sBEeRm33/576gXQq0HPnlvclX78=; b=aXEDSvYN8ElnEBb++2G/WuBZIeGFP3H8KXbKGVsfAxmqflD5jqA6uVEu0uSo1TXWF8 GIM7QvrbpOu6vW7thqYZcXLVKZEGAKmzOyO40u0dcQy5aGZg9iPGMufWXpYUBWqT4a9q U6IUVbW6ODEg+CzbwF1E24+jRbzT7l4XoyMsL9D40UCdhIyE+hc5yzOmj9wilCi20K4H aBcayt7TsFd5M7aJ2WY5TN5U74nC8tub3Xp1mb2q2vhNURZ9TdzOiS/d/XoMcslMRsko bmOmTK7cFSK2f8QFL1DTg905wm/fYwtHusUOeMWh45dCl5ne+gvoZhthYjFt1m2hipt8 NAAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qhwLowwv; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id t1si15643788ybo.308.2021.02.07.18.44.12 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 07 Feb 2021 18:44:12 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qhwLowwv; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:42730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1l8wX6-0008Tv-CX for patch@linaro.org; Sun, 07 Feb 2021 21:44:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1l8wRM-0001QF-Vj for qemu-devel@nongnu.org; Sun, 07 Feb 2021 21:38:17 -0500 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]:43571) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1l8wRK-0005lu-2x for qemu-devel@nongnu.org; Sun, 07 Feb 2021 21:38:16 -0500 Received: by mail-pg1-x52f.google.com with SMTP id n10so9242944pgl.10 for <qemu-devel@nongnu.org>; Sun, 07 Feb 2021 18:38:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KcXtBKnullZQYp/0sBEeRm33/576gXQq0HPnlvclX78=; b=qhwLowwvWpw7Pi31T3PQdv1IxxWtx9tynLB8wu6+JZMxuTI22fvf8i+Ap4Ol/60KDU luq6iVqhVCB+CDj/PhISFOBvdOap4Y7vvXHdbajQU8MV/VOL+bjgi8m4PcjPEaArL464 NQkK8cs6GIleY6E5X3S5o7FLN8r7NLGveaUuR+yAAAm8fO6EBelLBSqMBCBM8VHFfvDy 51SYEBawGClTj30+vgheVmWYo9Q0w9LDBhQritRJLBAOiCsbYlrKk0mgLpRI4hh4I8OB ZQNQldC6kpGijvqjs7EDICz+0HQYxqfS6R7OogNEHzf1NJ4f6RSdC3fSyEPU4CrY9Iwx MI/g== 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:mime-version:content-transfer-encoding; bh=KcXtBKnullZQYp/0sBEeRm33/576gXQq0HPnlvclX78=; b=oCyUbRWjFSxu0vqv482ME0tvJ9JY9Ap2K7y2IYrQh8vppS+hNrI5LTQhpq5mPcymCR AiKD5LA+cq1FwBFJeP9DvCn26KoG+bqVR2Nu7f/qMaKoZb4xL31ni5MGjh3KoAdYv/iQ 7cQKn50eqBdFEGxezVchoyFCYSV5XCnTBODTmldV8OCqdREGASRmUQvpYHFh1qIXgriG zp/ohHwvH0BpqIBBYGtO4CTnnp989CGRk+Q6KdFetURBOCwuIrimW0I0vokBmSNCMRkb wytBGqB0lAKPAaZVYzTy5PdwXRLUAW/UtNWURVZ3oz3A+/r0RfEpjbDfIl0tVYUB+JJ0 z4gw== X-Gm-Message-State: AOAM531g+zRF7wDe7BN2E3Ybb41BDlBzyA54u1W8kGJ2lBdixo2P52Rk WZhEsAk28mKD2NhGw3ayCIGgyFzRN1KlQw== X-Received: by 2002:a63:4082:: with SMTP id n124mr15332554pga.340.1612751892753; Sun, 07 Feb 2021 18:38:12 -0800 (PST) Received: from localhost.localdomain (174-21-150-71.tukw.qwest.net. [174.21.150.71]) by smtp.gmail.com with ESMTPSA id j17sm16158689pfh.183.2021.02.07.18.38.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 18:38:12 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH v3 15/70] tcg/tci: Merge bswap operations Date: Sun, 7 Feb 2021 18:36:57 -0800 Message-Id: <20210208023752.270606-16-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210208023752.270606-1-richard.henderson@linaro.org> References: <20210208023752.270606-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::52f; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52f.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.23 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: sw@weilnetz.de Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
TCI fixes and cleanups
|
expand
|
diff --git a/tcg/tci.c b/tcg/tci.c index 1819652c5a..c979215332 100644 --- a/tcg/tci.c +++ b/tcg/tci.c @@ -652,15 +652,15 @@ uintptr_t QEMU_DISABLE_CFI tcg_qemu_tb_exec(CPUArchState *env, tci_write_reg(regs, t0, (uint16_t)t1); break; #endif -#if TCG_TARGET_HAS_bswap16_i32 - case INDEX_op_bswap16_i32: +#if TCG_TARGET_HAS_bswap16_i32 || TCG_TARGET_HAS_bswap16_i64 + CASE_32_64(bswap16) t0 = *tb_ptr++; t1 = tci_read_r(regs, &tb_ptr); tci_write_reg(regs, t0, bswap16(t1)); break; #endif -#if TCG_TARGET_HAS_bswap32_i32 - case INDEX_op_bswap32_i32: +#if TCG_TARGET_HAS_bswap32_i32 || TCG_TARGET_HAS_bswap32_i64 + CASE_32_64(bswap32) t0 = *tb_ptr++; t1 = tci_read_r(regs, &tb_ptr); tci_write_reg(regs, t0, bswap32(t1)); @@ -808,20 +808,6 @@ uintptr_t QEMU_DISABLE_CFI tcg_qemu_tb_exec(CPUArchState *env, t1 = tci_read_r(regs, &tb_ptr); tci_write_reg(regs, t0, (uint32_t)t1); break; -#if TCG_TARGET_HAS_bswap16_i64 - case INDEX_op_bswap16_i64: - t0 = *tb_ptr++; - t1 = tci_read_r(regs, &tb_ptr); - tci_write_reg(regs, t0, bswap16(t1)); - break; -#endif -#if TCG_TARGET_HAS_bswap32_i64 - case INDEX_op_bswap32_i64: - t0 = *tb_ptr++; - t1 = tci_read_r(regs, &tb_ptr); - tci_write_reg(regs, t0, bswap32(t1)); - break; -#endif #if TCG_TARGET_HAS_bswap64_i64 case INDEX_op_bswap64_i64: t0 = *tb_ptr++;
This includes bswap16 and bswap32. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- tcg/tci.c | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) -- 2.25.1