From patchwork Tue Oct 3 17:30:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 728770 Delivered-To: patch@linaro.org Received: by 2002:a5d:60c8:0:b0:31d:da82:a3b4 with SMTP id x8csp2262734wrt; Tue, 3 Oct 2023 10:38:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGh2pfPtM3URoDmTHDMHRgC/kLJ2IFWIv2wFrdiZmQ8SPN9l+qBaEMzwMJirmAKCjudFZRv X-Received: by 2002:a67:ed48:0:b0:452:e1f9:584c with SMTP id m8-20020a67ed48000000b00452e1f9584cmr25568vsp.29.1696354702170; Tue, 03 Oct 2023 10:38:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696354702; cv=none; d=google.com; s=arc-20160816; b=DTxTWlKFUIL6iF9VPSpLGvF+VR13M1cHL4pvb+G7kIoqmate6TBo507B4Yb2hBJ2fP i46x8jrJQoVIoYr78RH2+X5b02moFa3GPyhGLMMuLTKJZYrRPhlc2dO8qVTvVPJhZOHV vpCXYZgjvnSi6GSheMH4vRbG+cCf/D2+zIpFL/5SqSlKaE7CpqzvqE/9b1e5Hmh89DuG Rg8NWD8PSb2HShV2HABdkvD6zH5ELmtSQB8BfoeGDhsslGU/p0rJfDK6+1tYukLBwVHC jJLB6nbWD3S9PBh+fM1uF5iPzw4lLxaCjddlGDngqCXFzl21l3jTDZh443FmIjie5rU8 1Iig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc:to :from:dkim-signature; bh=n7GxguJ2YETUygbuc4jTMl6jemrPoFbwC2XQ+KXAbU8=; fh=kghyEbKPEBo674H39ODsQAlkSpC57kSEGDu7SZmElLs=; b=Jf0Se3B1h50vfpjiFFv94ZKs250UfHOakoFT5b3dXFjOTUOBJ/juvPyQOMxf18cQl3 Bw0JI81yce2u2iKyrRIyyj4W0kxg3qKvp1olepZ4iX8NmQP62h8zUWsYwbQD+rGyWZlD GGWoFW6hU79j5gYHrvN2QWbrMxf7KfqftP3VZiG7xxW4ngoonFbn0D1co60Nf0JzjnUD +r+q1o5jIOO0YZS5BBEbkOjdp3EQ/u5xc0Gj20wGMJPf6A3QxUak71TrqFGYbaxA7BEq c/7OyOM/gaOMJITjcCZX9/bWlR2rJprnpwQJSulxrP6vUbrZaiSHJjxlnlzUR2LjxdME dOFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GNWmuHOP; 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 d15-20020a05620a240f00b007758e56b4a3si719965qkn.36.2023.10.03.10.38.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Oct 2023 10:38:22 -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=GNWmuHOP; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qnjFC-00005h-AW; Tue, 03 Oct 2023 13:31:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qnjEv-0008Kv-Kn for qemu-devel@nongnu.org; Tue, 03 Oct 2023 13:31:22 -0400 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qnjEu-0007Ui-0O for qemu-devel@nongnu.org; Tue, 03 Oct 2023 13:31:21 -0400 Received: by mail-pg1-x52b.google.com with SMTP id 41be03b00d2f7-578d0d94986so816294a12.2 for ; Tue, 03 Oct 2023 10:31:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696354278; x=1696959078; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=n7GxguJ2YETUygbuc4jTMl6jemrPoFbwC2XQ+KXAbU8=; b=GNWmuHOPhOTK2GzMEqvh4JULnas5KKfbzCV6idrqKqF9LyXppOa160roavjPby3kJG yJzqly5vWms7pWzBYaRZwdd04iJC1qsD4/kaGyXnFc6S44XEqZ1r/bwwXgj0Vp+nufHA ShvhNIaWBAyQxNiUJr4IcBA15E2x4OmUSoVvlvzMyZhr875H4H30YXM128f6wKPOEl9C kfL1b5qg7zW7R5R0Mrhom6oF8XLlJqOnxrth/XPmHJceFmbox05ouAQbCUn5OgKS0hIl oym75dXTIlgWvQtqSHB2VR5JDkFRGhbf9Q14OujlbIVmsgO73QTCNI4yPNUWdeL0Koiq aL+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696354278; x=1696959078; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=n7GxguJ2YETUygbuc4jTMl6jemrPoFbwC2XQ+KXAbU8=; b=vWMOhLrAbvOX+xtJDNv6hLNXhZovzfoQnyqH9yEBJuBebAW5HixFPk054yoIrfPEmr feMvR4EgCLJy9PjpDBhJUfojWQUcDCjsKbF8qzk7iBExcRjz56wQbEVsfDT6OkKcRZVB IMp0V3zkJP6uHFRjYb5l4Jr0iYCjT5VAB24kpAI+ExQADfCTDlZ868w+SZaE4x7pXwlU A/4w3nQzcSGXaaJibgw0uo8sp7mEcZ01Wy6kI60SGbEWhUnMYqy2nVauc0hesvH28Kcd u0nA4ruNqYg8KDncEAGm10YHR4TIWuxktrXqqiffX7zt1s8DtTLmqNdm0haCGSKTLRXD NW+Q== X-Gm-Message-State: AOJu0YyT7ihETVnVIRiW8tGf5ykKuxaCwacvleX7ldranuxejyoRZp3Q 4jGn0DgQqVTSbwKrEXJnwruQqtRR2MPk5F2SFgE= X-Received: by 2002:a05:6a21:7892:b0:15e:96d3:a31b with SMTP id bf18-20020a056a21789200b0015e96d3a31bmr159521pzc.39.1696354278323; Tue, 03 Oct 2023 10:31:18 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id n7-20020aa78a47000000b00692c5b1a731sm1620195pfa.186.2023.10.03.10.31.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 10:31:17 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Anton Johansson , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 21/47] accel/tcg: Remove env_neg() Date: Tue, 3 Oct 2023 10:30:26 -0700 Message-Id: <20231003173052.1601813-22-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231003173052.1601813-1-richard.henderson@linaro.org> References: <20231003173052.1601813-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52b.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Replace the single use within env_tlb() and remove. Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- include/exec/cpu-all.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h index 9d8ab050c2..46e494eeba 100644 --- a/include/exec/cpu-all.h +++ b/include/exec/cpu-all.h @@ -449,17 +449,6 @@ static inline CPUState *env_cpu(CPUArchState *env) return (void *)env - sizeof(CPUState); } -/** - * env_neg(env) - * @env: The architecture environment - * - * Return the CPUNegativeOffsetState associated with the environment. - */ -static inline CPUNegativeOffsetState *env_neg(CPUArchState *env) -{ - return &env_cpu(env)->neg; -} - /** * env_tlb(env) * @env: The architecture environment @@ -468,7 +457,7 @@ static inline CPUNegativeOffsetState *env_neg(CPUArchState *env) */ static inline CPUTLB *env_tlb(CPUArchState *env) { - return &env_neg(env)->tlb; + return &env_cpu(env)->neg.tlb; } #endif /* CPU_ALL_H */