From patchwork Sat Sep 16 21:40:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 723586 Delivered-To: patch@linaro.org Received: by 2002:adf:f0d1:0:b0:31d:da82:a3b4 with SMTP id x17csp1028412wro; Sat, 16 Sep 2023 14:42:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGOe/P3LSGZGfvyoTvY15lr/h6DPVBdEdjVflrNkjZy64Mb2Z1/+BLAbg6rMgFoiYXghZmp X-Received: by 2002:a05:622a:228a:b0:417:a051:5621 with SMTP id ay10-20020a05622a228a00b00417a0515621mr3938984qtb.3.1694900570204; Sat, 16 Sep 2023 14:42:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694900570; cv=none; d=google.com; s=arc-20160816; b=r15qSoWvzJLJ0NFqC2qk3A/Vzb8CEM3iscMF5QkaEvMGoJGb6DmVPnXsCxNr+eaAUC kIX+fndsQRPqP6G7YC0Jq4ymfz7fp1BrDv/lSAB1WQnOs8QIVxyVTbbMWR0J/hPGjMrT udkRTs/9CzbxsFHTwg9mrPZ+RryHpRoK0SLmNSRFclmbKUMjSvvs4zB+nviVAxbdTAsw dhNDWut5EvTax55NZfvNq1+fCjOJsTXPyPWz/qDHMD0IoVyYbcYQ4h7M3sdR9bNWHYPG YZj11UDv/a51EMCBsa43aFfFAITYusUEfDAYQlixlWfpRPjxvOoJg0HCns2KBUYzvsyO nGeQ== 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=6QVLNJyN2G52bpcFup5Ax4sLOIg8vU0FXaShnSFcJ5A=; fh=d3q967Ss27yOZEBNWb7WV1pwIIYORDjfLhLmomzC17w=; b=kNv5s22iqKVxl7Pm+tcBwi3iUrMQWHLfzsVufU6xaUrVsV+laK48ZRwaRjZw5leBJg mJOXM8CbxegQNCNldVaXQuEazRmIeyV41bJM2M5CuJ+j3KyTio9gLlTxEgrZqxaPYivk 1YRbXBOS/XPmNTIB0eLzhuEFtjyyPcGabFg3Pj+RyZ4kkuJ4FceOMsOTc1EO6Sd6E3xY nYLIiR6A1q7v/y4KNzGLmhSp04HjpQgnz/gDcuW/mF/sy2z2vIAdD3XCeciMBuAaZyx4 VbfuvtJyWDVOZYOKoyIrX7bcqeNoo2xTbnZpKhCShs0OCAUyhkQ7pUQ5hssRODbt51Lg fCYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RP0Ao3mF; 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 t21-20020ac85895000000b00413619e868fsi2509762qta.233.2023.09.16.14.42.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 16 Sep 2023 14:42:50 -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=RP0Ao3mF; 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 1qhd2z-0005Af-4V; Sat, 16 Sep 2023 17:41:49 -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 1qhd2w-00058o-1m for qemu-devel@nongnu.org; Sat, 16 Sep 2023 17:41:46 -0400 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qhd2r-0000SS-2g for qemu-devel@nongnu.org; Sat, 16 Sep 2023 17:41:45 -0400 Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-68fdd5c1bbbso2359774b3a.1 for ; Sat, 16 Sep 2023 14:41:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694900500; x=1695505300; 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=6QVLNJyN2G52bpcFup5Ax4sLOIg8vU0FXaShnSFcJ5A=; b=RP0Ao3mFU/fMl9Jvrg3UruhBM3LguDCUmSmf2O9jGZXbCrGFftNNMMLpkuWDYXaS7x aZ5yh9ccRByPZDtyn3NXIfcHrVkEOQitg2whNwww+3Kf4FmslHbfKHGWStvSBpZ0k072 Khk8v2HLZUonH9FoqK/gf24ycixIUZxmIARxZiXgkl5LHldFIeFgBxpYXvw9spVEAK9e xFpFjazFkA96MJcLU3ePuTK+uDpCZVnkO2/CDSIACzLzePDxOz8/oi8wFjF+V6sKgV+S juFUMj2T3hc79FIgFEJlkPiYLoB8mD58/KKRPbMGMa/jU0oZzW3ySac/9BcZvsABTqfE Pe4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694900500; x=1695505300; 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=6QVLNJyN2G52bpcFup5Ax4sLOIg8vU0FXaShnSFcJ5A=; b=hC/N1hvv8as0cSpnw9FVp47iCfxpNT3aPnjQs6+BI4oulcg/YKDTir/BuBeYIh9s/0 9JLvwgdDHpkVoXEMQgsyja4sFB7yzHrI0Vn3km+cWoX5mddWOTkrtSOa4imid607o4rY njZuVraCvF1lpiGvNqMnOmM0rEdzjtocz/O/wgZw6OQpqEPSeJQlIBbbqzyuapane2g4 D2yfQ4U9pOqK8iiBDFcVMrHaMlk9y2fjfiJrpfd6cworEPU/JhHcfhktux1QaEowFN3u 6sBlqXfuPo+C+NoBsnKrGTuwyaoOP9dRWNH0oKrCDsb0mJ3g1gWvh5xfIx1B7fzplzVg CWzg== X-Gm-Message-State: AOJu0YyX+30U3t7SBo5tEeNsOunkJ2VsmNlv94HspO/jIzIKCCOXS9Ad lFRtu+dNNjsU6ZJRP86ElqzCpSBwlvr15quTWr4= X-Received: by 2002:a05:6a00:3014:b0:68f:cdb8:ae33 with SMTP id ay20-20020a056a00301400b0068fcdb8ae33mr12517557pfb.10.1694900499894; Sat, 16 Sep 2023 14:41:39 -0700 (PDT) Received: from stoup.. ([71.212.131.115]) by smtp.gmail.com with ESMTPSA id n21-20020aa79055000000b0068fde95aa93sm4871708pfo.135.2023.09.16.14.41.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 14:41:39 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: philmd@linaro.org, anjo@rev.ng Subject: [PATCH v3 14/39] accel/tcg: Remove env_neg() Date: Sat, 16 Sep 2023 14:40:58 -0700 Message-Id: <20230916214123.525796-15-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230916214123.525796-1-richard.henderson@linaro.org> References: <20230916214123.525796-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x433.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 Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- 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 477e59b4b3..af9516654a 100644 --- a/include/exec/cpu-all.h +++ b/include/exec/cpu-all.h @@ -451,17 +451,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 @@ -470,7 +459,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 */