From patchwork Sat Jun 19 18:14:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 463908 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:102:0:0:0:0 with SMTP id x2csp1052184jao; Sat, 19 Jun 2021 11:28:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeHgLpVVNXNma8z2cYtTrJSHEWXY2Fq6Qifz/ikssd9zwSOyBjRIKPYTBWBlmmLMJRhOtN X-Received: by 2002:a05:620a:f03:: with SMTP id v3mr15612846qkl.96.1624127293408; Sat, 19 Jun 2021 11:28:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624127293; cv=none; d=google.com; s=arc-20160816; b=Zh4wV11+wkN1N0tqujNXLYB3N788w8w+/L5+gk2wLWN7syQCmSCmTWlRewaD1+aP4j nDxKZhmbyxdTdlYJjDAE1fxZ4SpQ1FZUo8OEQzpG6t/eFJgCqz384U8x+LzH9hF1SIR6 fqzl4VV2wjsl7ItjD8t2hGJ8R2gqct4gajs06RtHUDJjjWwOf73nZ28mEtk8+ug8EeTw 9dUPdYoWJYbTwj2lE4uBxA6azOOxJRu6eKooFCwzWxufB4PEIx7d7TmgMkTON5o3XBGY H5MWD1vPNOgJR6y3N50Yw809XPMzm+anb1jZukwOYVtR23xdhp24DYPKcAZPzzSQTSs5 yPpQ== 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=vE1OJEIR9F5uVVqwRhGWH88diro5kD/GK3hhxvFNkQ4=; b=uBzN+EgYDMYgthIOObJsPSHo5i2uvSpUVxhmcUrTSliOjHk69Sxq8GV35A8R2z3pHL pA+C3iXHsbNRXFcGQJIPqupwb40vjG7kG60yyBdhVM6nJXzAvdkoP6QbWw2ANxcB6Bue pJZlkFrI2xJg/HqSX03XrnjGBrhwYPOhRZFyrLWkhl4BijMbK/5qv3CJBODTRPS+vhza bXcgNS4lRiu8AxwYqlbN2OrttccZdWY6VkeZveSPS7WdlC6OzCsqqmZanG4uV7hCO62G IAnbXOe7aNbraZwU4ebeF+yExoYQQgDmqo6yeLOfzwTVWYIBXf0kKVPVeXnl89HOwQaF j7bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kDeSHUIL; 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 m18si3287974qtx.247.2021.06.19.11.28.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 19 Jun 2021 11:28:13 -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=kDeSHUIL; 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]:43752 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lufhU-0004Ma-RJ for patch@linaro.org; Sat, 19 Jun 2021 14:28:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lufUo-0000oZ-Fu for qemu-devel@nongnu.org; Sat, 19 Jun 2021 14:15:07 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:44879) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lufUk-0002IB-Nt for qemu-devel@nongnu.org; Sat, 19 Jun 2021 14:15:06 -0400 Received: by mail-pj1-x102a.google.com with SMTP id p4-20020a17090a9304b029016f3020d867so5690981pjo.3 for ; Sat, 19 Jun 2021 11:15:02 -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=vE1OJEIR9F5uVVqwRhGWH88diro5kD/GK3hhxvFNkQ4=; b=kDeSHUILd304QDyxew7USDq3jiZv6+vvdx0qEx9xnbcLTBmGaNW25fov6SuzpPZwDB QtpdEnL+JJigxr2D61FaT4e3CIwg18eFmZGez7r8BoODxtQsfvceV9sdEotmoeB0zxyw Mbx8aSSUeD5UqiYl3YT02Z59VLwiHKTHbGFsDvYZ03tFDs+0mrGfrn4Ad6gzEpZB8tL1 HeqD2H3DGzrTnYnQZOnnZqOUcEpJxzIwHtPiqbtXiDm3AN/oUflzcd8TF9xHgRe8oYsH 7ZZC7G9lyAnnY26VbzUrVWPGfhPwCtHRDmTCk4ifXXs2o+Ko3u/KCnmbHAJIL/HHKWI0 QdPA== 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=vE1OJEIR9F5uVVqwRhGWH88diro5kD/GK3hhxvFNkQ4=; b=dN8LU+gNaQFx9+HWjnpZYVZJXqDk+R1YhB0QhTGXx+ap5gHpWpEBR4EBEgr/+qGAqV 9C+AXZNU5bTs0xGEI40GSE7j696FNTKsdg+EBr+1jS9+JH0phlPYGxmbzY/HmT/qrL79 Eh58qyIlzg6EpqUP2l2AXlVN5c9X0y4ofyQIiH+OetzwDf5Naou7JMu/l9++aloQZi0i xyfbaWs7RDNKGAPT8KAJpCYFZ5dqMbq/zzxZhl6p3MyQ0xqgIozaEc0rjZSsND6JSomQ c8Ri54pPfNlYChvBW3RQdZc1K8vAT+G8lJFNSe5p1GLG9oEBGGthVxsumuHkh3rPh02C H6Rg== X-Gm-Message-State: AOAM530D+llEEQX6qs9L3UYuDuWlhJ6ux7FfIpICDFV3PoV5By88u/ou Fl42FiklRg3nml1TlmG3cy8a+fiAIoC2jw== X-Received: by 2002:a17:90b:78e:: with SMTP id l14mr16365527pjz.4.1624126501498; Sat, 19 Jun 2021 11:15:01 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id k35sm12059113pgi.21.2021.06.19.11.15.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Jun 2021 11:15:01 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 14/33] tcg/tci: Remove tci_write_reg Date: Sat, 19 Jun 2021 11:14:33 -0700 Message-Id: <20210619181452.877683-15-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210619181452.877683-1-richard.henderson@linaro.org> References: <20210619181452.877683-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102a.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: peter.maydell@linaro.org, =?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 dfaa9c0fa0..613b94997c 100644 --- a/tcg/tci.c +++ b/tcg/tci.c @@ -38,20 +38,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. */