From patchwork Thu Nov 14 01:13:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 843109 Delivered-To: patch@linaro.org Received: by 2002:adf:9bcc:0:b0:382:184f:390f with SMTP id e12csp49807wrc; Wed, 13 Nov 2024 17:18:46 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCViLw6tjdg4uJgqHgk0iLiQ01DC2tzhgRG/yUYOxly4F8RBzfWsC0apQyLmhUdltVPaWun/gg==@linaro.org X-Google-Smtp-Source: AGHT+IFUfYgXFxOZ1CupfPLrshl1ieYPtLKErc5gVBb7oMEM07RKf3Mb0NwlNwHGMx02pbPknF1q X-Received: by 2002:a05:620a:31aa:b0:7b1:12f5:7af5 with SMTP id af79cd13be357-7b35c09efffmr43236785a.3.1731547125792; Wed, 13 Nov 2024 17:18:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731547125; cv=none; d=google.com; s=arc-20240605; b=IpggjqrUPEsf0zqmHLB3DnwgXG/VuNj8SCmex539PZoHsKwmPMjNXJweQ421QEmCeI k9p8HgPsAjEW+NwzdYy+vYV6q0c3CbL3rihjvEnk9neLWc/aIiteIoBG2IOTAXeP/yWX q7ON/LZnQ7kMRfE6Dia6ZfFAb6TUIdPm6KLkEYCPw/EFKVdR32aa8ACN8zdyaxc5RgwE LNbiaySDQPfsQgoJf2IMYEqrWsodouz0hN/GZ8BJManpQMqk1F0JLiJji8y2Vc+fSsLU jPra3d4lK60BldOb8tOGqobmxkxLhObEFDnV5iJONGoByJsD9OlWW4isbu4/o9O48Dpp HpNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=qrrkoTna7tufOe6qwJFGaLdax+anmf+pXIEo/rEb9w0=; fh=XJBWnyT8CapJ1erqoA8AcjaxZCf1jJRN9q9HW2Bb/uo=; b=KEiCz9BXkiDHEkQYjDhk8Xloc3Ucl3tBdsmTIZxWPOfv9OYJVHgB4SRBjNUT5EM1qr dhklcYl/Ox/evpD0wHgOMpUShHFnk+Msr65DlAUwls42rPbUKh+HGaaUI1FtKErSIEJi QTbAmrfPsdi560ArA1V81DTGcd3GGS5p1H/sceLtdy45CVo/LOEirZ5GjIjODtm56MOU dczLoqJVMkd+s/NoBkzLgoELXCvuswutnv67LUvobBthlfNnB8s2dxTHx4EQrnYYj0O0 4xCjdxA9p6WZdMJ1EPuMYSgeJl8RUIJF+UL6PlPd7dZlvLgct3r97h3982A8KR+w9Fue v83Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dZgLNgco; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b35cae3641si1424585a.589.2024.11.13.17.18.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Nov 2024 17:18:45 -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=dZgLNgco; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBOT3-0002Rz-NX; Wed, 13 Nov 2024 20:16:19 -0500 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 1tBOSO-0001lR-9z for qemu-devel@nongnu.org; Wed, 13 Nov 2024 20:15:36 -0500 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tBOSL-0002e4-J2 for qemu-devel@nongnu.org; Wed, 13 Nov 2024 20:15:36 -0500 Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-37ed3bd6114so67741f8f.2 for ; Wed, 13 Nov 2024 17:15:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1731546932; x=1732151732; 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=qrrkoTna7tufOe6qwJFGaLdax+anmf+pXIEo/rEb9w0=; b=dZgLNgcozHtPt4OyJKjftjLFhPYewJeExpfQDlOrz7AETafJP1JvCVIA7gSjs8+orw MuMg7VDLfYT3WlEdCZLSWeYUvorA7PUHax7ZHcK9BgTomoDhcVjHGPLV3yXyMeEXTklL XF9CdEKKYWnVY84NBEXkq3WQXmL+CEDoQSoSqYIUf4wVGyWNpnm2UztTzLb9Qp37dV0r Pjh7aVWQakr0v3qxnBN1Az8ySiQfru9e3xAXCBVHMkFzmp+CT6LO5/tQysO8s0mucpTz umlrfLWkMrFMorRIh3b3/Y9QAyNMpuO8tExWOGUxZlnlesjXXZRx5liLoOCs77qGQwSu 0nOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731546932; x=1732151732; 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=qrrkoTna7tufOe6qwJFGaLdax+anmf+pXIEo/rEb9w0=; b=Sd68eoSZk7aKjHiZdxC/PBtjYuiOFO5O1X5q0prDchHv52N4RnY/5Jym1W7qZpRgXr BaXmfyvlkXV/3+HMJiGcZ759meQD5CGor5ko9eJ+g/uC+n2T5Gd7TyZipK/bSDtDnTPm dHe6M/AkV5M/pNNgAqkiNcGuyr21N964N891vWs95A3mGxOtiE/3mRgMIELbHWat9DKE v7Mhe5qddDIBnU+sFkxD/9ItOA+Z/7xhQjP2iKUzu3e1CT8fyqkrVonooCxirJNh5Yva s6yfHxcAuEajKUD19hpuuKtfKGbV0gsmGRM0Jp1CvJhEuyhVgp+S+lngHbVb2x8u+wyH yZ2w== X-Forwarded-Encrypted: i=1; AJvYcCVFUcSP1Vvdt2QsZe/OsSozwHBeEyaaavDOCDpJxmVty1ksHuYZ6Wqmx4m0nKOf8gAM3tSdBuaIum/q@nongnu.org X-Gm-Message-State: AOJu0YwT7I5B/Pw3PVoLwbfnXLkD5xl8d962afYp7HUQvIg6yYTRAjsA ErNT/WkV8sTU20Nd1xpAqhbNs3BxHZ1ZD7WbsxFPS8o1x2L4O93euj34/yM8GMU= X-Received: by 2002:a05:6000:186c:b0:381:cfea:2818 with SMTP id ffacd0b85a97d-3821851cc75mr155127f8f.30.1731546931624; Wed, 13 Nov 2024 17:15:31 -0800 (PST) Received: from localhost.localdomain ([176.187.209.238]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432dac0ae51sm1409755e9.34.2024.11.13.17.15.28 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 13 Nov 2024 17:15:30 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: Paolo Bonzini , Richard Henderson , Anton Johansson , qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, Thomas Huth , qemu-arm@nongnu.org, Peter Xu , Pierrick Bouvier , qemu-riscv@nongnu.org, David Hildenbrand , Peter Maydell , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-s390x@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 17/24] exec: Declare tlb_set_page() in 'exec/cputlb.h' Date: Thu, 14 Nov 2024 02:13:02 +0100 Message-ID: <20241114011310.3615-18-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241114011310.3615-1-philmd@linaro.org> References: <20241114011310.3615-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=philmd@linaro.org; helo=mail-wr1-x42f.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=unavailable 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 Move CPU TLB related methods to "exec/cputlb.h". Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Pierrick Bouvier --- include/exec/cputlb.h | 11 +++++++++++ include/exec/exec-all.h | 9 --------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/include/exec/cputlb.h b/include/exec/cputlb.h index ae4798a017..9075d94ec5 100644 --- a/include/exec/cputlb.h +++ b/include/exec/cputlb.h @@ -108,4 +108,15 @@ void tlb_set_page_with_attrs(CPUState *cpu, vaddr addr, hwaddr paddr, MemTxAttrs attrs, int prot, int mmu_idx, vaddr size); +/** + * tlb_set_page: + * + * This function is equivalent to calling tlb_set_page_with_attrs() + * with an @attrs argument of MEMTXATTRS_UNSPECIFIED. It's provided + * as a convenience for CPUs which don't use memory transaction attributes. + */ +void tlb_set_page(CPUState *cpu, vaddr addr, + hwaddr paddr, int prot, + int mmu_idx, vaddr size); + #endif diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index 2b314d658b..2e58540005 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -174,15 +174,6 @@ void tlb_flush_range_by_mmuidx_all_cpus_synced(CPUState *cpu, uint16_t idxmap, unsigned bits); -/* tlb_set_page: - * - * This function is equivalent to calling tlb_set_page_with_attrs() - * with an @attrs argument of MEMTXATTRS_UNSPECIFIED. It's provided - * as a convenience for CPUs which don't use memory transaction attributes. - */ -void tlb_set_page(CPUState *cpu, vaddr addr, - hwaddr paddr, int prot, - int mmu_idx, vaddr size); #else static inline void tlb_flush_page(CPUState *cpu, vaddr addr) {