From patchwork Mon Feb 8 02:37:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 378481 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp4329614jah; Sun, 7 Feb 2021 19:23:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnq/KduUGhpG3uRtETAPRMjQhMwIaOVThN/guc1ZPA9yNfVG9BswvJzeavcKtophzxWG9X X-Received: by 2002:a25:cc46:: with SMTP id l67mr8529687ybf.16.1612754634220; Sun, 07 Feb 2021 19:23:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612754634; cv=none; d=google.com; s=arc-20160816; b=we7+dW97T94SlLaHupxmzweK6OoKbyV72ybrLCCD2b/tPlUOUUy0V743tINOoZh0sl yLA2nokDbyCC3y/fixYV2p9PXQZoObFTWNDUMdMMGGqi2A7gYSvuXR92JX4hO3FtMV4b O9nRciCcaJeIJwFoBT6LJHfZvcyTcIJOz/BPE2/O2nwY0Hk83xQeU6UXQNbrZmVPELRW 7REZmXs+PV98r+h5PypqtCio/TEEuiwjc6x/R4Yr2YtogFxh7KSYXGG/VZNGFDy81a1P BbQkdYTzKDKCvP24VMD/UeYzE74VjUUO/iZulJS09+wxvoUNtoGucDHExcHZ2Gmiskpo Qpog== 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=5KjNyz2z06X1nzffKUJIUfEvh2+8GuNK8mnSHukJjZc=; b=hGsocPMsdF0HsNM71i7DfbIlyt+MUbjwOeUiixRQ/qM13MDWC63yKrmRUQnMe4jA20 d9JD/nKdDy8sV8ctNiiPOLUFLbbOm1FntAvYjghZnXKU0hngM6Nk/OCMg/JJuOwC1m8H o8652XX4/i4WrsaSDZEhMvr2G8at3K9A7mLt+mf8FZ6O+AuR3CoBzt4qI/rmyVHryt1l VFk1YB8pER4+dbOemFq8yXtR9lOc/tRDN/qvRZG23NAOh3Q/HDtpDyVsOkI23DTrVdXc caVEQeiCmTVnCWTbcdHFSEhUxdXDzQws7sWF8ddDe9gbyUN+BIymRKpxd5wWIJ6yXKFs z9EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EyS5RtXd; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id l7si18844265ybt.392.2021.02.07.19.23.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 07 Feb 2021 19:23:54 -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=EyS5RtXd; 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]:33916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8x9V-0002Zm-NR for patch@linaro.org; Sun, 07 Feb 2021 22:23:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8wSh-0002yQ-Hj for qemu-devel@nongnu.org; Sun, 07 Feb 2021 21:39:39 -0500 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]:36478) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8wSf-0006Cq-7B for qemu-devel@nongnu.org; Sun, 07 Feb 2021 21:39:39 -0500 Received: by mail-pj1-x102d.google.com with SMTP id gx20so7943328pjb.1 for ; Sun, 07 Feb 2021 18:39:36 -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=5KjNyz2z06X1nzffKUJIUfEvh2+8GuNK8mnSHukJjZc=; b=EyS5RtXdu53W1EcUD9CnTS41D013uMQwN/eqZzRcjoa+b31jlow16/QEK7HkX2PlxD Fbfn5ll/ivHaz4wJI/bp8f+UYhxsRcHJbELppnhF/p1AS3Bj8+Iq9k1969N2WM+WkpaW cJQIZF1+qnt8hvzzd68MPRiW2RfCBq1YOHHzD7Ku5I+pk3s6rKDUrrZ/+PVffjQNq56m 4JH2zIbNgRdXtxVlS8nEKiiY+zgjuMEwILwRplJ2HCq3KSsq7mdLuL8aefdbJpELlJPp 9z6zm7UaOSRQbko+5Tk18SM0Oh+vVhUNvx6UicWq/JrNBjz4TWzfJkNo+qDMEc2r6W65 BYKQ== 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=5KjNyz2z06X1nzffKUJIUfEvh2+8GuNK8mnSHukJjZc=; b=Uz2l0/xTxuoAZQ4t7dUPojsgLNpMsGADcVKLwhyBLnaz1mznEHbwKLG/JlVvZR54Id qR2kD4mrzdbARkcxOkJoygUS8XjoCV3nrV0042mIfBlXJjETyIHMbg6ysrwaM7YQyz6R V6eyCTl0vB6dkvYkiu/GeGEPy3RwfvE3HSrkfIfCDaCebW+LrNwt/RqYhfWph84FOuba Dei5kYGbgXy02BNpQDpM8u4dfo4U+edll0N7co20s06Hy3FOHinsubK9is/+i2viAHqZ ynkq29DRZAZTWM4fb5UHMwqdM0/1DRcZ2CZxga9VALlsTlUKi+/R7GtDRBanWIdxYIIG bpdA== X-Gm-Message-State: AOAM530/30VoVLKPESCCEqYBvnov4kgcH6oRUL+r0Zkx3tauTbyAtxDT xb/Id6MZi7yObk2fz74c1boYPnwTa4qO6A== X-Received: by 2002:a17:90b:4b02:: with SMTP id lx2mr8150869pjb.178.1612751975961; Sun, 07 Feb 2021 18:39:35 -0800 (PST) Received: from localhost.localdomain (174-21-150-71.tukw.qwest.net. [174.21.150.71]) by smtp.gmail.com with ESMTPSA id 74sm650954pfw.53.2021.02.07.18.39.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 18:39:35 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 60/70] tcg/tci: Remove tci_write_reg Date: Sun, 7 Feb 2021 18:37:42 -0800 Message-Id: <20210208023752.270606-61-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 Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102d.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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sw@weilnetz.de Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Inline it into its one caller, tci_write_reg64. Drop the asserts that are redundant with tcg_read_r. Signed-off-by: Richard Henderson --- tcg/tci.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) -- 2.25.1 diff --git a/tcg/tci.c b/tcg/tci.c index e7268b13e1..4f81cbb904 100644 --- a/tcg/tci.c +++ b/tcg/tci.c @@ -36,20 +36,11 @@ __thread uintptr_t tci_tb_ptr; -static void -tci_write_reg(tcg_target_ulong *regs, TCGReg index, tcg_target_ulong value) -{ - tci_assert(index < TCG_TARGET_NB_REGS); - tci_assert(index != TCG_AREG0); - tci_assert(index != TCG_REG_CALL_STACK); - regs[index] = value; -} - static void tci_write_reg64(tcg_target_ulong *regs, uint32_t high_index, uint32_t low_index, uint64_t value) { - tci_write_reg(regs, low_index, value); - tci_write_reg(regs, high_index, value >> 32); + regs[low_index] = value; + regs[high_index] = value >> 32; } /* Create a 64 bit value from two 32 bit values. */