From patchwork Thu Sep 14 19:52:26 2023 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: 722602 Delivered-To: patch@linaro.org Received: by 2002:ab3:5684:0:b0:23f:8cfb:5ad7 with SMTP id d4csp688648ltc; Thu, 14 Sep 2023 12:53:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEK2zLu0+mpabLan5ZNUdbWt2hcEh64NFfQ1p1NIXYf7R0F4SD09AOECwigcFMsaCDJAdhU X-Received: by 2002:a05:620a:371f:b0:76e:f638:bce6 with SMTP id de31-20020a05620a371f00b0076ef638bce6mr3583982qkb.21.1694721199421; Thu, 14 Sep 2023 12:53:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694721199; cv=none; d=google.com; s=arc-20160816; b=rqBzB44nonQ/1QnBqJW3tZc8NCdaxm0f0iMiC2cjIna1Flv+/Y/zYD+Bt3nsUuAW/x tyTxFb5wE2kdK9hVAyNCNkUe+sGEBzdWtdxSfjMwO2iAVXOB9izm3tBBr7yY25Naq9Xd c+yqBs0p0QhumIpVoVQiN29Xq262utrHLBCUNYNmCOalAG4hAZCCYlLMamNEybTE5AnG 3FXZkvwdSAdWZeQYLEFyN6MZi+fRwPFer8O6aBWXG6XvVNBADv8wwD6S+xWaS4g2aMdU 2RLJRqYK++Z/k44dCN+PnFZhiGYtoN99Z+pnZf0jEsQNoVW0Y83HDcoka380aduDUmcH Z8fw== 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=rqTzRZqnlvONF3ZM8t6uAZIEh+prXa466EdrDg1ej9c=; fh=FiyyUy7EBP2sturit0nQSzeCXKIF9fai8v0bS20tHfg=; b=z2VW3f6anh9thDqhT7UQMKqm3Rc8QKAHQ0UslOEhj4X6RIUtn5Wn7gFc7doyeOq44V 8vLSIGacf8qKByrDJDl6+H/WTxHRYlDvVcuS0NDhe05EoYYxOyRZh76P4JFFGVwU5rHN 6zyxs0G1X87YYpGgrSJHrbu7yjRyH85xhcFApDeWq2vJPMhzaeYCsV3LTgl9obbtQhBz 3+CI5axjukGmomk9zkDKRLioSsho3k1L/m/UiqGNb+MP8wEQyGtEsi4VqFjJ8piTulQQ +rd+uaS4fVEucLuAcqHh4kB//6VnbzLS3V7IIJKNXh7i3OZ6k4B1CftLUeFZDXrtDR1s L6aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kf2+Srpg; 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 f15-20020a05620a408f00b007726499db83si1389186qko.229.2023.09.14.12.53.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Sep 2023 12:53:19 -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=kf2+Srpg; 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 1qgsOL-0005gi-1H; Thu, 14 Sep 2023 15:52:45 -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 1qgsOK-0005eA-3X for qemu-devel@nongnu.org; Thu, 14 Sep 2023 15:52:44 -0400 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgsOI-0006lg-KS for qemu-devel@nongnu.org; Thu, 14 Sep 2023 15:52:43 -0400 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-99bdcade7fbso174725866b.1 for ; Thu, 14 Sep 2023 12:52:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694721161; x=1695325961; 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=rqTzRZqnlvONF3ZM8t6uAZIEh+prXa466EdrDg1ej9c=; b=kf2+SrpgyHqHM2Gc3hX4ijG3xeBkFSYk4IdA16cFVmon5JM3nu7n0RFhjhuaZF7QDl 0dm1uu1Ju6eATFi+gdSvjPoz19zwdoOxJ7Ss3cIswZS79KjgJiyV+FksPynr8zB0bOQK KEIPIYnGV53K/kWYK7mcdYEAIQ+RE2vbfSeLiz4VShT5+FeWNdhSxWlQGFKFvy0LGB/b eea5X4gzwBXejlSHjk1rbq9Jhb5MkA4Yvi+ryu/I5pESFGxY9YM0R3uPQaaDl6dHAn0j 5ciI5h6GnEhTXBrZU2LqrcUEB6TkTJUsAO6WaPdDOjI7FIA/Su8E+39ASpqX2lknW7Wu AofA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694721161; x=1695325961; 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=rqTzRZqnlvONF3ZM8t6uAZIEh+prXa466EdrDg1ej9c=; b=bxGoZ+yJd6tVqCLTN70eyv3e8EQQnZemincctiW8t6Kh97wmL7NuYuF003KQ2iqST7 NH1wsZ3NqeqWuYbazO5a7lhycYluZrZ+s6NUtZ+e/6QWCYuYdR6CPCAYIEsKxhjYy4jA h2dIbQ93Qvh8NEfbL/ebwss7zpzS0/a1djYtbDn8pzkHuXyBwMwfBmSRiyaT6BhA63Ek fTn3rla9Y7kRSlfCOkWHqzPWioxPg7d2p51JECTime8YD4G3ap7avih4GeQ9H/IYpdID afENUFT4/Cos1Yl1F9zZPkwpfA6nTI/sV794dL7Qmk+V4kjEU68o6HKcY2+PLBXeGe60 AfnA== X-Gm-Message-State: AOJu0YxPe6mFW+bL/nHDZcJsFv4Yzyl6jxN3SL6eLiH13jyKn3t/u7Gg J48nQwgZ822WZyt76cvVuotBVuI4DdSSkfVvvjE= X-Received: by 2002:a17:906:300c:b0:993:d5bd:a757 with SMTP id 12-20020a170906300c00b00993d5bda757mr5694413ejz.19.1694721160831; Thu, 14 Sep 2023 12:52:40 -0700 (PDT) Received: from m1x-phil.lan (176-131-223-129.abo.bbox.fr. [176.131.223.129]) by smtp.gmail.com with ESMTPSA id uz3-20020a170907118300b0099cc36c4681sm1423925ejb.157.2023.09.14.12.52.38 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 14 Sep 2023 12:52:40 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Greg Kurz , Anton Johansson , Yanan Wang , Richard Henderson , David Gibson , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Eduardo Habkost , Marcel Apfelbaum , Daniel Henrique Barboza , =?utf-8?q?Alex_Benn=C3=A9e?= , Paolo Bonzini , Harsh Prateek Bora , qemu-ppc@nongnu.org Subject: [PATCH 1/4] accel/tcg: Remove tlb_set_dirty() stub Date: Thu, 14 Sep 2023 21:52:26 +0200 Message-ID: <20230914195229.78244-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230914195229.78244-1-philmd@linaro.org> References: <20230914195229.78244-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=philmd@linaro.org; helo=mail-ej1-x62e.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 Since commit 34d49937e4 ("accel/tcg: Handle atomic accesses to notdirty memory correctly") there is only a single call to tlb_set_dirty(), within accel/tcg/cputlb.c itself where the function is defined. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Harsh Prateek Bora --- accel/stubs/tcg-stub.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/accel/stubs/tcg-stub.c b/accel/stubs/tcg-stub.c index a9e7a2d5b4..f088054f34 100644 --- a/accel/stubs/tcg-stub.c +++ b/accel/stubs/tcg-stub.c @@ -18,10 +18,6 @@ void tb_flush(CPUState *cpu) { } -void tlb_set_dirty(CPUState *cpu, vaddr vaddr) -{ -} - void tcg_flush_jmp_cache(CPUState *cpu) { } From patchwork Thu Sep 14 19:52:27 2023 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: 722603 Delivered-To: patch@linaro.org Received: by 2002:ab3:5684:0:b0:23f:8cfb:5ad7 with SMTP id d4csp688643ltc; Thu, 14 Sep 2023 12:53:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEAYLPMa94KiQP43M+gRXSf+n4CTkyAv9YJW8u0ksGMYz9LIWvyL4mbvULKaLhRtEIZGf5D X-Received: by 2002:a05:620a:371f:b0:76e:f638:bce6 with SMTP id de31-20020a05620a371f00b0076ef638bce6mr3583979qkb.21.1694721199393; Thu, 14 Sep 2023 12:53:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694721199; cv=none; d=google.com; s=arc-20160816; b=URrVihltmSGmpJutux8mwy9+SEcR2eZcAoMYWwy4HZ5644CTBy8XPEH0qLnIPoeObZ o9yrLg6R3E+b7J6SCdIys0w12sI1uBozwskknCnsVvWldiFxzzCmgefhkD3sVvVAc/W0 djMXR1WQC1oRmsu+3cpUjo81ef2Ewu72+89phL5WyslRxepc4bjym9QkN4Rgqsyu0Iet HhEbUbgYZPcZxEwbgC/24w0I+EPFWroR5KnEiPE9GS+pC1i9piJ80iNMg9JAtKLoPDND OYiFH/apMrMI+H+9456nDopV+3aPCIgM6d18Bbp9mWTI8kek0LIvaPknzVIdNokhqoF5 YwSw== 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=apJ9rfBp2rCZyyq835aOveYeTS1oCQzV0m60yDVlahc=; fh=FiyyUy7EBP2sturit0nQSzeCXKIF9fai8v0bS20tHfg=; b=wFEUr2+NQ99ScddzwEYNLtrFnVADIjBhteVqVQwsorPcWA2SVygpWh3Ex0eJK5ojsw lfH2uhZb193mDAVj6fMCxCqkjfThwRSF/vgMCXMHocpdr6KG2mlhOt/ClST6hMGDNhmz O/NrUFe1TmSujhfv4aI1WZX6uV/Ia2aQqdE0fASbMbLgU+EkeD+CCXha+krx6yh0rBm8 3iRxTF9q1893CtSlUm8vdh/u6W9YC1X24T6kUJucnRM+2BGt5Fd2ni3KWYwsAQbBpJ9m OLK62Y23QoMvu+Ja44kQSABQ2bYwlUN57VIevBxFgWM9Qafs+XN6MsKp0YAEdhpwQSTx GchQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GZZCPpTT; 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 v8-20020a05622a014800b00403b84be504si1374808qtw.580.2023.09.14.12.53.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Sep 2023 12:53:19 -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=GZZCPpTT; 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 1qgsOS-00066y-5L; Thu, 14 Sep 2023 15:52:52 -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 1qgsOQ-00066i-Ut for qemu-devel@nongnu.org; Thu, 14 Sep 2023 15:52:50 -0400 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgsOP-0006mz-DN for qemu-devel@nongnu.org; Thu, 14 Sep 2023 15:52:50 -0400 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-502f302b68dso78609e87.2 for ; Thu, 14 Sep 2023 12:52:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694721167; x=1695325967; 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=apJ9rfBp2rCZyyq835aOveYeTS1oCQzV0m60yDVlahc=; b=GZZCPpTTYI2SNlPvEXgyhQxb2lDljhAhgdZZzf14Kw1dfoiq9cuEacXRwdZQ4TZKW2 8GEYWIpUKARMV0cWLPdZdE85m3tcf1FOmUhTFZLtkBpiqWwY+LFlu2ViTKmhSKIHSqVR LIDKzDJ9yRziQE3T8dEM2RS44ifh5nDvSMNemBcaHrkwn4Ws5XTVt9zfCvxSfZoAbGq8 d4hV+lTeKMYbru3qRSQQpK3zHbw3GsHCdisgQj8r3Fvn35myuc0FV6bGg/jj8RwLn09L 2HPY5x3FRW1sIrbGvpto0LwYOoS2fax7J0qP1oole6Gmdt8l+KWKbXK/fraOK+BCuWTj Uoag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694721167; x=1695325967; 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=apJ9rfBp2rCZyyq835aOveYeTS1oCQzV0m60yDVlahc=; b=MkpR9kBL0KQvnVvmHnNEkI+KlIFS1nCyJysR+UkDHM7TEYdIT3V05aFoSbD6UwZXFU Y+pdgr/bgRayQMlpSnuta2tlFAtLbuXHGo84zobTdbuaibI+aDUGXiny+Nhyax66aOsx wZGWWz+k31SL8zgzmh+fWybPVApA4M1aFpgJh2+whEMDuqyDtAqWvXBDGzzY52n3LcSg LbebF2RcPHjHDgTTeJY4vn1mzf2edhCTkqmyO0puClSth+7C4E638JGaJObU63npN2ey fGFRovfRGYPyeNjXGm/R1I0WSmqnQYVxmDH2MflbmmUycLHaJZnVqxLCT//jXA0tLFKo fm6Q== X-Gm-Message-State: AOJu0Yx80Tsb/GcPZyaWZI/Y55D7wAnS1F4W9QUFw9/fH/oWZGM3y2Xd gSFAYwkwBNkvcBeUmECP4LRdECbmtFZmNbez1GE= X-Received: by 2002:a05:6512:2354:b0:4fb:ca59:42d7 with SMTP id p20-20020a056512235400b004fbca5942d7mr6586346lfu.33.1694721167222; Thu, 14 Sep 2023 12:52:47 -0700 (PDT) Received: from m1x-phil.lan (176-131-223-129.abo.bbox.fr. [176.131.223.129]) by smtp.gmail.com with ESMTPSA id z21-20020a170906241500b0099b76c3041csm1439481eja.7.2023.09.14.12.52.45 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 14 Sep 2023 12:52:46 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Greg Kurz , Anton Johansson , Yanan Wang , Richard Henderson , David Gibson , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Eduardo Habkost , Marcel Apfelbaum , Daniel Henrique Barboza , =?utf-8?q?Alex_Benn=C3=A9e?= , Paolo Bonzini , Harsh Prateek Bora , qemu-ppc@nongnu.org Subject: [PATCH 2/4] accel/tcg: Remove unused tcg_flush_jmp_cache() stub Date: Thu, 14 Sep 2023 21:52:27 +0200 Message-ID: <20230914195229.78244-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230914195229.78244-1-philmd@linaro.org> References: <20230914195229.78244-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=philmd@linaro.org; helo=mail-lf1-x135.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 Since commit ba7d3d1858 ("cpu_common_reset: wrap TCG specific code in tcg_enabled()") we protect the single call to tcg_flush_jmp_cache() with a check on tcg_enabled(). The stub isn't needed anymore. Signed-off-by: Philippe Mathieu-Daudé --- accel/stubs/tcg-stub.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/accel/stubs/tcg-stub.c b/accel/stubs/tcg-stub.c index f088054f34..dd890d6cf6 100644 --- a/accel/stubs/tcg-stub.c +++ b/accel/stubs/tcg-stub.c @@ -18,10 +18,6 @@ void tb_flush(CPUState *cpu) { } -void tcg_flush_jmp_cache(CPUState *cpu) -{ -} - int probe_access_flags(CPUArchState *env, vaddr addr, int size, MMUAccessType access_type, int mmu_idx, bool nonfault, void **phost, uintptr_t retaddr) From patchwork Thu Sep 14 19:52:28 2023 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: 722605 Delivered-To: patch@linaro.org Received: by 2002:ab3:5684:0:b0:23f:8cfb:5ad7 with SMTP id d4csp688975ltc; Thu, 14 Sep 2023 12:54:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFSA7dSJo2k7UI6YaVcUhymAqZqme3oJXdEu42m5Z8UsaZLnTzzGoNimdbnQ6VQt32D09at X-Received: by 2002:a05:6358:5e01:b0:13a:d269:bd22 with SMTP id q1-20020a0563585e0100b0013ad269bd22mr6583328rwn.25.1694721246037; Thu, 14 Sep 2023 12:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694721246; cv=none; d=google.com; s=arc-20160816; b=pfbKVqGolTAw/inwcIYUpcBLL94vc7Jfvyw5L75lh9A/O+co6kqlp4CStxY69mffih YpUxZOm9q5nTVwqSAZGt7iuSa/u610k4iwevxIl/DtkYO9yK6giuENKvDEXEwu0agqsz EIwB3O0Z0bDVuvGdcdKUL1z1pO4zSqsIFS49XRf7YqVUm7GEU9fFXcT1WMB/ZyqaeaOB Z5dn6XVwguXgG7O2DMWR+E4KteJG55w0mn+bv3gfBnbV0FOG3PeBzWoxG6cIOgcYl3v0 9MSyjQBxSJRn5tlleaGasA7+Rt1AKx0XLORsr2Rh1oBDkDWuhmhDe2ht2l1XZ7kRxadj GFdA== 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=lC0eqEcpZkzcebyqzBpj4lWhTpO2Tul/IUzv4m4V3NM=; fh=FiyyUy7EBP2sturit0nQSzeCXKIF9fai8v0bS20tHfg=; b=vtjwwi7qdkieK/iVYNbBohhLBDqs3coHnHJY/krs9CHCzqabSgSERKviZbgJWtURGH 7z1Tih0IZujknGq6+0exh0e7AVzOW+fsxpViaznXahhmLaVvKTI0h2+S/k36Acr0goHw 456dRbB+mJHdTIDYt2sowfms/CPWP8mnCr1pDRYf6pAMJruiv7pCSUl6jaVUCHKN3vHR 20oPXARgTu4qFmbiOtU/KuJITJ3E/sJ6QCnuixrsVF0r9HYDZwxQeQQvaep4Eb/otXO5 6jpuYHVYpIqps2HrCDY6ImAnkWpHEEOr4/+kq1dCOa9kslPVHKO4ZcmeukmAW/Yyr1w7 lL2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YmEhr+zi; 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 f7-20020a05622a104700b00403b55ed4bfsi1403680qte.487.2023.09.14.12.54.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Sep 2023 12:54:06 -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=YmEhr+zi; 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 1qgsOY-0006JQ-IH; Thu, 14 Sep 2023 15:52:58 -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 1qgsOX-0006IV-DX for qemu-devel@nongnu.org; Thu, 14 Sep 2023 15:52:57 -0400 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgsOV-0006oP-OF for qemu-devel@nongnu.org; Thu, 14 Sep 2023 15:52:57 -0400 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-52eed139ec2so1536781a12.2 for ; Thu, 14 Sep 2023 12:52:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694721174; x=1695325974; 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=lC0eqEcpZkzcebyqzBpj4lWhTpO2Tul/IUzv4m4V3NM=; b=YmEhr+zix4f82ecf50zwAaci9Z9aEsISrk4hb/Wg6AfRobG9MTwq2BCUvZGOOZuoL1 oTdoQWQz4UsVO5HCBgfLgVXl6rhQBSYoCDK/kfGPRECKi8carT26ckLTbhn50Z63kUap XOvLZnR3R71IcIYuKZAFbvykZTsNGUNMged5UWTKqX8fci6FqVxlxhZMCwOJ6hyVrix8 UtgYw+j7gfVvVsIbS4yX+22JLcCHyZJ7mDuQO6rO+syDeruVdKieIHEaoCj+vTfJMpMV scJYsW3I9uQ8zt0OUuHOepDRWyab3epAHQU3xpSCtYlVbHZmet5uU2p5Z1wetkk11yzO pu1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694721174; x=1695325974; 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=lC0eqEcpZkzcebyqzBpj4lWhTpO2Tul/IUzv4m4V3NM=; b=Z3KshpOR9PlYHrBH4bIfsS6+DCagTGAIwzSbyE15LN8eX53fixB8yIV4ckk5TrREmM fT4h7WOkk0GhmRRbvqWWo36mvx48PY1+lcCqDH0kOUPCQs032inq2dMteTm8x4fRywqd fAuT2A7Yb5Dj0twit4kEFkJaa4hJa7D6ga8DeH/6gJ6pnKjmn4+Ebcrf8F8DzD+4eYVi 90xT4/W/k/PQpxWLa4rzzZ/qQl/3JmpmF1PbMKL9NsH7cCLI8MHyBBhwVTqGv+Sf8o4l 8MK1HpIq4a0msc9ku4d7CoGGqJ5W9tokQHibELOPTCm5miAOVO9ZRJBjEfX6E1FI/l8C wg8w== X-Gm-Message-State: AOJu0YxxX1povpVI2GKx+JOwrIQln9mjlOD/7I7Vc593+sqjQci1dC9L sGme4LP20pACcnKwnKffejrXX/5AYk3ZboEcOPI= X-Received: by 2002:a05:6402:1355:b0:522:b929:9f01 with SMTP id y21-20020a056402135500b00522b9299f01mr5472979edw.9.1694721173836; Thu, 14 Sep 2023 12:52:53 -0700 (PDT) Received: from m1x-phil.lan (176-131-223-129.abo.bbox.fr. [176.131.223.129]) by smtp.gmail.com with ESMTPSA id ba30-20020a0564021ade00b00525c01f91b0sm1315928edb.42.2023.09.14.12.52.51 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 14 Sep 2023 12:52:53 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Greg Kurz , Anton Johansson , Yanan Wang , Richard Henderson , David Gibson , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Eduardo Habkost , Marcel Apfelbaum , Daniel Henrique Barboza , =?utf-8?q?Alex_Benn=C3=A9e?= , Paolo Bonzini , Harsh Prateek Bora , qemu-ppc@nongnu.org Subject: [RFC PATCH 3/4] accel/tcg: Guard tb_flush() with tcg_enabled() and remove the stub Date: Thu, 14 Sep 2023 21:52:28 +0200 Message-ID: <20230914195229.78244-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230914195229.78244-1-philmd@linaro.org> References: <20230914195229.78244-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=philmd@linaro.org; helo=mail-ed1-x52f.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 The check on tcg_enabled() make it clearer we want this call under TCG. Signed-off-by: Philippe Mathieu-Daudé --- accel/stubs/tcg-stub.c | 4 ---- cpu.c | 15 +++++++++------ gdbstub/softmmu.c | 5 ++++- hw/ppc/spapr_hcall.c | 2 +- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/accel/stubs/tcg-stub.c b/accel/stubs/tcg-stub.c index dd890d6cf6..7d9846f7f2 100644 --- a/accel/stubs/tcg-stub.c +++ b/accel/stubs/tcg-stub.c @@ -14,10 +14,6 @@ #include "exec/tb-flush.h" #include "exec/exec-all.h" -void tb_flush(CPUState *cpu) -{ -} - int probe_access_flags(CPUArchState *env, vaddr addr, int size, MMUAccessType access_type, int mmu_idx, bool nonfault, void **phost, uintptr_t retaddr) diff --git a/cpu.c b/cpu.c index 0769b0b153..ce3b04f21f 100644 --- a/cpu.c +++ b/cpu.c @@ -57,12 +57,15 @@ static int cpu_common_post_load(void *opaque, int version_id) cpu->interrupt_request &= ~0x01; tlb_flush(cpu); - /* loadvm has just updated the content of RAM, bypassing the - * usual mechanisms that ensure we flush TBs for writes to - * memory we've translated code from. So we must flush all TBs, - * which will now be stale. - */ - tb_flush(cpu); + if (tcg_enabled()) { + /* + * loadvm has just updated the content of RAM, bypassing the + * usual mechanisms that ensure we flush TBs for writes to + * memory we've translated code from. So we must flush all TBs, + * which will now be stale. + */ + tb_flush(cpu); + } return 0; } diff --git a/gdbstub/softmmu.c b/gdbstub/softmmu.c index 9f0b8b5497..edd13f047d 100644 --- a/gdbstub/softmmu.c +++ b/gdbstub/softmmu.c @@ -21,6 +21,7 @@ #include "sysemu/cpus.h" #include "sysemu/runstate.h" #include "sysemu/replay.h" +#include "sysemu/tcg.h" #include "hw/core/cpu.h" #include "hw/cpu/cluster.h" #include "hw/boards.h" @@ -170,7 +171,9 @@ static void gdb_vm_state_change(void *opaque, bool running, RunState state) } else { trace_gdbstub_hit_break(); } - tb_flush(cpu); + if (tcg_enabled()) { + tb_flush(cpu); + } ret = GDB_SIGNAL_TRAP; break; case RUN_STATE_PAUSED: diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c index b7dc388f2f..306f8fdf55 100644 --- a/hw/ppc/spapr_hcall.c +++ b/hw/ppc/spapr_hcall.c @@ -296,7 +296,7 @@ static target_ulong h_page_init(PowerPCCPU *cpu, SpaprMachineState *spapr, if (flags & (H_ICACHE_SYNCHRONIZE | H_ICACHE_INVALIDATE)) { if (kvm_enabled()) { kvmppc_icbi_range(cpu, pdst, len); - } else { + } else if (tcg_enabled()) { tb_flush(CPU(cpu)); } } From patchwork Thu Sep 14 19:52:29 2023 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: 722604 Delivered-To: patch@linaro.org Received: by 2002:ab3:5684:0:b0:23f:8cfb:5ad7 with SMTP id d4csp688845ltc; Thu, 14 Sep 2023 12:53:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHPcTENqvRbKdxyAakZFrowdwpDIn5IXhDMZ1zjVscH0Fcde3nA+6Bzxyy7Iu6r5HQ3qSwR X-Received: by 2002:a0c:b408:0:b0:64f:3f48:b6e1 with SMTP id u8-20020a0cb408000000b0064f3f48b6e1mr6891975qve.19.1694721227094; Thu, 14 Sep 2023 12:53:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694721227; cv=none; d=google.com; s=arc-20160816; b=SWaUJTHRAroMsiA5vh7oAujHoatsjrJkdeMjawjxpdIl+cL+odF20ICFPXHBouQTfZ np8B/O93OctC0oFlRm1X6GolbUMEuyNSDDLZR1r/FjjaeD/bsoxbxFmYV7vP5f6CpQcR 4fsn5nPAI/rnakHfH3UsUFdUSGw23MLCqA/1iQWdMSPa0QXfeqltrh0yHYR5erJXEMnj 2ioZg0Nzo22kYgenIFjS36Sz8SGLsZ3V/ryL/m0ezYjNWCk+toxKHrWX8v2fUfrLiOkk jcLfFJIsLYviDRsjJ18/2nYtgq5OP1hQKIa+bpx9y0VQtOibnURYbzGBCB81ueXXKwRO PWrA== 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=WMU91LA7BSC1SezrVUaA2bGYSFbwZkyvMxsyUhJZ/iI=; fh=FiyyUy7EBP2sturit0nQSzeCXKIF9fai8v0bS20tHfg=; b=k8sOkPEpniNMmeyRJr42AHH1TpAVWi5a32AYhxQ2vN7ni/eRZhiKz1yDP/n79V/y50 WsFc6Teq3HrJwtIxF0gwQmt7QYlfGugbzZoHz6FY1hFgXIV+r2N8O+3dJTzAFXdUa2+T wBSuo3x/AAbYxMftb6w4mOMdba8mUu6hgUryfucMNT0TgL/PZK9A3f1R9/id/FQrVjYv t8l1f5GckeeZlW6H3dgZ9VmLRXUxvqSgbitjvV1ok1812vdxnu0mjtmEoID7BX683Jb2 9ZQ3WDW131kKi1Tddt62LDweLt5iUQW82DEsqmJK+HLwSq0eSWcQrUl35afEkG2u3pqf fF0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FezRqLgX; 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 c27-20020a05620a269b00b00769892a9d35si1369744qkp.571.2023.09.14.12.53.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Sep 2023 12:53:47 -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=FezRqLgX; 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 1qgsOf-0006N0-6c; Thu, 14 Sep 2023 15:53:05 -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 1qgsOe-0006MZ-Ep for qemu-devel@nongnu.org; Thu, 14 Sep 2023 15:53:04 -0400 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 1qgsOc-0006pl-1A for qemu-devel@nongnu.org; Thu, 14 Sep 2023 15:53:04 -0400 Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-31f7400cb74so1164441f8f.2 for ; Thu, 14 Sep 2023 12:53:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694721180; x=1695325980; 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=WMU91LA7BSC1SezrVUaA2bGYSFbwZkyvMxsyUhJZ/iI=; b=FezRqLgX83XjU7AY3UAwehBVqyVGKt/1L1XDJsrKu6r84EQ3KQJvW4P6O+2UaoyMyj DeCSzyqYl3LEheCOEi25pBAJ/t0t2fhgTfd0ymRnGSpRtrMIrhU8aYH4DJQgklpliHx/ 52xsdvIEryJChhRMvE6G+kcgwcTyKNJiP4MBHjW3WBImeER0ULmrm0XNNNDbdEI1V7Q8 hprlNFkIXllWZL8fHbMqkcmhBOYmbDaatmz89Ig4DLuFZ7qqJYby6GVEdtAEhTf+3MDl jbxfEcf1vCnZKNrn5j30k8/EXdt26HICL24IejU8Rmx/TJ5iFGJQnCqcTUtyKb3DnEGO 932A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694721180; x=1695325980; 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=WMU91LA7BSC1SezrVUaA2bGYSFbwZkyvMxsyUhJZ/iI=; b=u2YmjiiaIrWrXDnLhJjPAslefmghjTBvUv0eKcoiC03E74ErMddSfrrZ+WhsnN3JZl HivL36QUxk3VK+HIxxnQtSMujKNwEjV8OUG9WziqOu+HoyEvxsr3+n+n+o/1qslJDfq0 8/t46t91T9NnlT04gyxyrBD3VVcD6iKCSUvf5cSpxL5Ifxu1rkHAHeGO4uNIr53X8dP8 TWbNN4W+WbOswzrWzkHMDBs19W55pbFC4/fp4Tjxd0LQPz+FS9kW4hPBmioTV4jPHSI/ qI5TJO0C0hKrN1WqZrxmHhIGa3dfDN7GfgzmrEjeZGktMFbNgJV/og/3IHnFbfcerUpe Js3w== X-Gm-Message-State: AOJu0Yy1jykqEclDIbybfQ0pyP37dTRANH5kEXXOyyEd9vn2wtL0PmtI tliQz7tTIl/6TkycB8sVtjrzNj0gaPeIY2UK1AU= X-Received: by 2002:adf:ebc8:0:b0:31a:e6c2:770d with SMTP id v8-20020adfebc8000000b0031ae6c2770dmr5628938wrn.36.1694721180203; Thu, 14 Sep 2023 12:53:00 -0700 (PDT) Received: from m1x-phil.lan (176-131-223-129.abo.bbox.fr. [176.131.223.129]) by smtp.gmail.com with ESMTPSA id d14-20020a50fb0e000000b00521953ce6e0sm1281656edq.93.2023.09.14.12.52.58 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 14 Sep 2023 12:52:59 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Greg Kurz , Anton Johansson , Yanan Wang , Richard Henderson , David Gibson , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Eduardo Habkost , Marcel Apfelbaum , Daniel Henrique Barboza , =?utf-8?q?Alex_Benn=C3=A9e?= , Paolo Bonzini , Harsh Prateek Bora , qemu-ppc@nongnu.org Subject: [RFC PATCH 4/4] accel/tcg: Keep tlb_set_dirty() internal Date: Thu, 14 Sep 2023 21:52:29 +0200 Message-ID: <20230914195229.78244-5-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230914195229.78244-1-philmd@linaro.org> References: <20230914195229.78244-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 Since commit 34d49937e4 ("accel/tcg: Handle atomic accesses to notdirty memory correctly") tlb_set_dirty() is only used (once) in the very same file it is defined... Make it static. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Harsh Prateek Bora --- include/exec/exec-all.h | 1 - accel/tcg/cputlb.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index b2f5cd4c2a..59efa7bc28 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -695,7 +695,6 @@ static inline void mmap_unlock(void) {} #define WITH_MMAP_LOCK_GUARD() void tlb_reset_dirty(CPUState *cpu, ram_addr_t start1, ram_addr_t length); -void tlb_set_dirty(CPUState *cpu, vaddr addr); MemoryRegionSection * address_space_translate_for_iotlb(CPUState *cpu, int asidx, hwaddr addr, diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c index c643d66190..fe9d702f3e 100644 --- a/accel/tcg/cputlb.c +++ b/accel/tcg/cputlb.c @@ -1062,7 +1062,7 @@ static inline void tlb_set_dirty1_locked(CPUTLBEntry *tlb_entry, /* update the TLB corresponding to virtual page vaddr so that it is no longer dirty */ -void tlb_set_dirty(CPUState *cpu, vaddr addr) +static void tlb_set_dirty(CPUState *cpu, vaddr addr) { CPUArchState *env = cpu->env_ptr; int mmu_idx;