From patchwork Thu Feb 4 01:56:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 376229 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp869397jah; Wed, 3 Feb 2021 18:56:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmR4pozm4upWlhLWhZ+0jPy0eC6pcK4xuuNrS2ZRePw+jXx+IvDAKMhab7FsBEP/nnrWrd X-Received: by 2002:a5b:745:: with SMTP id s5mr8987824ybq.265.1612407370278; Wed, 03 Feb 2021 18:56:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612407370; cv=none; d=google.com; s=arc-20160816; b=KQkLHXPRlfVcU4GmDEuk4GuQWShQ8kzHi2oX4B8mgGQ9rsUPKzZEoXjILS8A/lCbGS aDY1v9LFQT7F5iiL43M7Rl1yAg9Q7lRQwdy7SQGMlJscsq6Tcw7p2TSWznjcaBOUIISV wy2+ibofXbAyTrTJr9ZoWkuyk73kIWPIjMh08C041rIQ2ifwQCphXqdoikjpINpAo32z 8OXU7Q2PYTPGQzRmu6Q19PgDwrxOA5MQktdiLfALKKgnX9SNekbk5cVQg2ntedqxu09N xTz7JNqr9vcrkWHB2Rqgr5u6KBh9UFCaDPlCijXNF6wadDNg6wsa88+7k6JWVpKWBTgs YnAg== 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=TruuNr96bF3+V7zQWLM58B+oKjg5gAoszXCP3L6e76rT/nEsNeWpIJ3Rl3346UxkkZ 8NddUQOTf4dy4lX5kjoEkQSReOQXW/DIqxbt1g1knfipoKK1RUfr83/xiC2qIX1RIYHR DDe+JrfcTdIDTYCOzYtiE4rsrUmNFX5iB48nPxgvXS2trY7BCR/sPjEBknescuFzIePf 5Y+dkKe4aB4DMfV+Cx+oTDb5z/dPwORraHi1xSmfhGE19EWbGWnZLEJoJCEBgoPPjXrc goKOHS8pPjZkyZBOGbjekMprjGd4WaKHC62VdHzMtDN9ui6PqGITkvL+FJ8qfn5R5/H2 ffMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y98clrTj; 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 i16si4165957ybq.31.2021.02.03.18.56.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Feb 2021 18:56:10 -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=y98clrTj; 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]:55210 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7UoT-0004Ep-L5 for patch@linaro.org; Wed, 03 Feb 2021 21:56:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7Tsm-0000oQ-Oi for qemu-devel@nongnu.org; Wed, 03 Feb 2021 20:56:34 -0500 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:36078) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l7Tsk-0006wR-6u for qemu-devel@nongnu.org; Wed, 03 Feb 2021 20:56:32 -0500 Received: by mail-pl1-x62d.google.com with SMTP id e9so909162plh.3 for ; Wed, 03 Feb 2021 17:56:29 -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=y98clrTjWIslQr7/0N1ZO/1eufhFRNXArBMNDrLF3Dvpv3FwkLYxxJ8qNZ2eMJ7PcS 8Rz5a93IuM8lRMEPPCWrg8f+QHcPDfavmyLcj6EUxvx/sW2H0iLvWDR3Mpc3h/oaysjk mnvLqOh5CGSfrIr13WD5hAL44ooylfq8ZXuhH00yd/8xDlTrmKoKhNdQtKshFs5tcpTB smem7YenO9FjFc7xQ1M5fac9KYjTziXY7zzESgU5R14Q/2Xox1RykGpZekn7SDPuhHkF SYmuYIXHx5I01NeVKL/78JKeo5FdGYXec8Apb4BOSNO2HzN4+pNzVnB4CvPm/PUzSA7k Xcfg== 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=eeV1FujTDTBSTnqFxcYp3HRV+ElAI3GYJGKI9+oIpcgbyEqd6gJEiOfKwEjsZFNxRR gK2GAx5rQEmJqH63qygAPmOtzko9Y/OfIzRXhEBuBg7pGButfQ38INxLTHdbScihHweJ BgFvYswRWT60ZJXXEEHym65zfJxtWeA49pJAIElKrqi7NVPqhfGlqN8abfuoSQuAboqj vov4NazwJeD7vR0AXZuStWPzEnaEAUDTxqccPcUdHm8OX/oV87rIG0+DixkyM3PdZM3k l+cTomCjcYB2+wVmnXP/514BLjTSMmYWuPimYEzFcetY99PybQgOS6PJNBPJPulmlLb1 ZajA== X-Gm-Message-State: AOAM530tYpm9c6QI1uG1OST/9DzTojB0xAY2IiK0ZwYsWGiwvpQJiW6M iottn9thZfi56urbIJBCI2L0wu6tZ+HfMH6P X-Received: by 2002:a17:90a:bb82:: with SMTP id v2mr5947807pjr.178.1612403788981; Wed, 03 Feb 2021 17:56:28 -0800 (PST) Received: from localhost.localdomain (cpe-66-27-222-29.hawaii.res.rr.com. [66.27.222.29]) by smtp.gmail.com with ESMTPSA id a18sm1432841pfr.220.2021.02.03.17.56.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Feb 2021 17:56:28 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 85/93] tcg/tci: Remove tci_write_reg Date: Wed, 3 Feb 2021 15:56:26 -1000 Message-Id: <20210204015626.885554-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210204014509.882821-1-richard.henderson@linaro.org> References: <20210204014509.882821-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62d.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. */