From patchwork Tue Jun 1 15:00:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 451399 Delivered-To: patch@linaro.org Received: by 2002:a02:c735:0:0:0:0:0 with SMTP id h21csp1872626jao; Tue, 1 Jun 2021 08:10:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/xNJH19YUeoYRnV2zsTjIUowDQhrX7/qaN6azbuI5zG/2O43hXvXAktuW9MuUxCH09vh4 X-Received: by 2002:a1c:98c7:: with SMTP id a190mr7648134wme.77.1622560220484; Tue, 01 Jun 2021 08:10:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622560220; cv=none; d=google.com; s=arc-20160816; b=uK6MylBozPdUE5UH1Lt4eYxV+hYHUtYBCHij5981uPgQw/hQR4Frfu+5H65IuKKt8R cu2f2eX9M7aVScoV5T1TPdOCcddij6GvDKzI9Pxh2m34CZ07xjjJ7w1L6IcfxfseaM0y NsZ/sX3FYxGirjgdoVjVhxmzWJSTgzVlATmqMxn5dFdF/wFfv0CcB6nijLIZey9kJg5z fLq4OpKEmWJAJGs4tAiLvIj3y/UABfs0SPmIyusoONE7+7pzXmoShr3teKZ+gutMBXed 5wRxJkOyC3BeepipaAEfPtT/dGIJlENxIRD5m4DvVevNVre7JepoYySJVCnrANINhDP+ c6Ag== 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=fQ1sUn3tVUA0H73iQzaZ5hPqk1opvmQuGcxkF8I6bWo=; b=fLo0aDYu2LsDZccYiwY2ZNGfjsToaxY4gwSJfy7L73Fdf7mpxbPBfnvbBzBCjCj25I YJjvZAY/RlEmCaxS4xsOHHLn5s0AY3JcVsVVCavEL7lHiBcTpr7e7N0s4ScvHor1K4sP +K4xhkyd66F+zsQv9Une3yXBQTp38dCMp2/h5/UDJsiyWptobav1q6crmBSie+mHjLqI yyJHBkSZ39cB7gc3n6VHyu4MbeDxSD2FL8SrmOtB7oRrKlsBCRHoLv7/vED+FQw5LJmo RePOutYsDitSr/YiVwfL4VrW6fwK4DhbvqhoKIM0J5THPmHRUft5e2v+z23l683fRxaP t9mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s7wfyaXb; 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 m7si2610421edd.561.2021.06.01.08.10.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 01 Jun 2021 08:10:20 -0700 (PDT) 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=s7wfyaXb; 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]:60822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lo627-0002WM-HM for patch@linaro.org; Tue, 01 Jun 2021 11:10:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lo5tr-0002Tv-5v for qemu-devel@nongnu.org; Tue, 01 Jun 2021 11:01:47 -0400 Received: from mail-io1-xd30.google.com ([2607:f8b0:4864:20::d30]:44883) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lo5tb-0002ce-Dc for qemu-devel@nongnu.org; Tue, 01 Jun 2021 11:01:46 -0400 Received: by mail-io1-xd30.google.com with SMTP id v9so15628293ion.11 for ; Tue, 01 Jun 2021 08:01:28 -0700 (PDT) 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=fQ1sUn3tVUA0H73iQzaZ5hPqk1opvmQuGcxkF8I6bWo=; b=s7wfyaXbHeO4XSJ0NbUsa5Z29/zoVzMtmikgfEIFC/gsLPHC2aqFOWCYBtYA4en3BH 9W9WUGBqR0Gxya6t9viJT3tcaUF9ovcSPy38x9WVMPR5A7ubVAW3ENgLN2P1iwfiI+aI 6Zx/okq2JY8kayerDuk51VlFd8jviaSoj5JQfsK+5o1225zF1E04J5azZhEYzHr5kG8G fpzU0ifUobv5lN3f8ULaRxdO4lPzQYMQZxGHDL9/ZO+JQon2APY86EVqgrcUmm5UAkiw akfNPmGM2MqZr3FFSf80O2H1s4pJMus7qF3CTxBVGv0PRvlvcSLIVMOlyc5KA49g5udK 48pQ== 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=fQ1sUn3tVUA0H73iQzaZ5hPqk1opvmQuGcxkF8I6bWo=; b=Tup26DOEYinszaKJAketK4xlF7yRsujb2g4qEK47dCzYXtCG/0V0bB68w1Rj8eL/eA qPt3Y0yGi6idj2ON0T5MnaDjCpi2aXsDOyclrGRFxw9fah0P4+M2gB2KkB3pEa8+WmFi HW5VrUgs2zPka7iP27JkJj3eNsca5IlZ6aSkaZvHa5I0XcZ2/oowDlbiwKN+R8dQwjBV 7JLRwg3R0adGQK9MJu39HW7Ya3Go6G/Iz/3OOyad4zM0OVzdBAToo69BGp4IdO8mz5tM DGLX77SlhP00PpizTShUGdHcaTglEvf+OLIM63GIoxpSEOI53ZCsxsbCrz6wwqt1s3UZ J7FA== X-Gm-Message-State: AOAM530F1cGDd7m1y6PegYF4EQyKUTST/KFAeIlRzMe1qTyl9GG9IShs +iviVKR6RIE+3kO0/JC0VIis2OlJo/cakHTs X-Received: by 2002:a05:6602:8d0:: with SMTP id h16mr21510816ioz.145.1622559688229; Tue, 01 Jun 2021 08:01:28 -0700 (PDT) Received: from localhost.localdomain ([2607:fb90:806c:3e8a:9cf0:b3be:5e07:b99f]) by smtp.gmail.com with ESMTPSA id f8sm4109909ilj.37.2021.06.01.08.01.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jun 2021 08:01:28 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v7 14/27] tcg/tci: Remove tci_write_reg Date: Tue, 1 Jun 2021 08:00:53 -0700 Message-Id: <20210601150106.12761-15-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210601150106.12761-1-richard.henderson@linaro.org> References: <20210601150106.12761-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::d30; envelope-from=richard.henderson@linaro.org; helo=mail-io1-xd30.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: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= 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. Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé 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 1e9e89458b..7dcf7f9529 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. */