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)