From patchwork Tue Jun 27 11:51:23 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: 696837 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp3724672wrm; Tue, 27 Jun 2023 04:53:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ48m17GnZ+khvwwFl3R8MJ82kpeGsOhWnXCukTb1YKOkU4x+97AKyFtvF669ua+L35zsl2o X-Received: by 2002:a05:620a:f07:b0:765:8986:a3bd with SMTP id v7-20020a05620a0f0700b007658986a3bdmr6698922qkl.69.1687866780238; Tue, 27 Jun 2023 04:53:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687866780; cv=none; d=google.com; s=arc-20160816; b=bS38Ssaw4lpdrAZ3+hbz2h8zicbuVsMM8rTkBz7RKXK6TmqpQyw3qMA/F0jvoMxrF5 g+6jJUuBpYXTu9xy0h0lxkadjuAlguc1CJYZBQiztaikmcETWxI2FfnPq4Jj9iPWT7UD aNb9dVKr2s3gOwRqZ0dTNzBrzOxOo5IahD0YoT8qrWJ33O9ZN/KZ1TaDgmf2rGWI4Kdv B29n6tAUD9YXzjOiDXFW7noqFLEWF2cgzKtUi06OfBTECD5Fa0w5LZwBmuX+kK4peQMA fOCmQvCFaWqJcAbcXhaSWkDx7uejoqTTILy6fD2+fLqUiAXwhKpXDKwHngSqkqsga8/n E73g== 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=VO9Kit1sdoJ392FVmc33R5cx+Y6OihE9F+t/ncxHt8c=; fh=HTfWIrJzOLTRsca7VdqVkZSV2mA14Yhlo/G1nQOSMq0=; b=EeBySmJ0viTbSzpscbD16hIjAh1RC0QXiMItViDcIYSjszty8bBWUzKYqgpKSdueXp QD8KW3uTeM947BM9BwCFZHMjSBRlWj6GtEPQCZY6aK55VAW0QhJ98FUXI57yQtT0r2yi 09lRWNk2UbfOrMGc+X9As/xq8zrTh8haQoZSSaVTeWVtx/HSxJ/FZJUeForzHCUyjIzx GNcN9IIqtWJGTSWG34T4/4lNaasvP7Td6lRo6TGu0k3rcQGYDEwz/209lYO8h0fpzuYp 5M4cBefqGSv0Gjq7EdABy9H6Z1BTCfYRPPVHz9yQbt+QDlp7Qr7cwmgV3PiU9mWCZqZB Oq/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YT5YuAOO; 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 r16-20020a05620a299000b00767069d79e8si799258qkp.11.2023.06.27.04.53.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Jun 2023 04:53:00 -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=YT5YuAOO; 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 1qE7Ep-00020X-BP; Tue, 27 Jun 2023 07:52:03 -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 1qE7En-0001zy-CN for qemu-devel@nongnu.org; Tue, 27 Jun 2023 07:52:01 -0400 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qE7El-0004nM-Oe for qemu-devel@nongnu.org; Tue, 27 Jun 2023 07:52:01 -0400 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-9920a6a6cb0so105715666b.3 for ; Tue, 27 Jun 2023 04:51:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687866717; x=1690458717; 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=VO9Kit1sdoJ392FVmc33R5cx+Y6OihE9F+t/ncxHt8c=; b=YT5YuAOOsTqqfatWHVtR5bkFlY0OTtUHvz/0s46L5ULvuQ9jKzUP8DdeP4Gvihrma4 p3ihWqPzfDEhIHOOPHC+rsh5mMYQeIQ3JnTnrFzesbzAqWnLmlojrINFWAaITg2IsoRa fFIVnpjnh0gaHLZeA0mtf9bEsjWc7j+R1jKgwpen8bJanw32gRd8dXnt/1Jln2WieGxc SfADtn16kwQiMn1ONmCxcXlGIEhWJ91N3aoLX3XCIWTMHMS7sJOPVwM7N15G+1CRoRf0 cb1rzlPPnpb0DCmjSUxVMvNUof956VdbGliqmdPEL8p2bsAS8PUXfgobj2cWf3KG5MOu rvAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687866717; x=1690458717; 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=VO9Kit1sdoJ392FVmc33R5cx+Y6OihE9F+t/ncxHt8c=; b=gmFym7uPN2L03nCCNwNT/dJvqXLEDdo111gt0KoGLKbWhyollcJyYcqwCNJDi47KjO SeSan9uSu1yZCbJxslMd1LcvHLg3Sp7kZGiVGMEvNs5mOF9t/TBlj0/9pM47dP8cnO7B 3tEbGomhz1Kci1Wn7vsTtfFDiHJGi7FV/Za2/5ZRPKjAzAbmCBVcduz6p3IObu67OKmW LDWXEoZVNUYom00GBoS5Mhje/9ckzfGZW2lTj9nimnxzMkvgMm5LyM1p2X8DY8CHj7ll uyN2AKj8sZyTire0KIqviyRdnB5/m32VbbEUMiD/5tScWt2AiBmvFJhqwLtmF+tdE/tA nwwQ== X-Gm-Message-State: AC+VfDw0BSR15uB4OJrjiANd25Va3H8VqXwxfkUaE7MciEmLpBZjxitp huy4vMoyZ8fP/aDGTHLnxB6nHiEVwFGnAULdk0s= X-Received: by 2002:a17:907:9450:b0:989:3670:3696 with SMTP id dl16-20020a170907945000b0098936703696mr17867636ejc.58.1687866717193; Tue, 27 Jun 2023 04:51:57 -0700 (PDT) Received: from m1x-phil.lan ([176.187.199.204]) by smtp.gmail.com with ESMTPSA id a2-20020a1709065f8200b009827b97c89csm4455614eju.102.2023.06.27.04.51.55 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 27 Jun 2023 04:51:56 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: David Gibson , Daniel Henrique Barboza , =?utf-8?q?C=C3=A9dric_Le_G?= =?utf-8?q?oater?= , qemu-ppc@nongnu.org, Paolo Bonzini , Greg Kurz , kvm@vger.kernel.org, Nicholas Piggin , =?utf-8?q?Philipp?= =?utf-8?q?e_Mathieu-Daud=C3=A9?= Subject: [PATCH v3 5/6] target/ppc: Restrict 'kvm_ppc.h' to sysemu in cpu_init.c Date: Tue, 27 Jun 2023 13:51:23 +0200 Message-Id: <20230627115124.19632-6-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230627115124.19632-1-philmd@linaro.org> References: <20230627115124.19632-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=philmd@linaro.org; helo=mail-ej1-x630.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, T_SCC_BODY_TEXT_LINE=-0.01 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 User emulation shouldn't need any of the KVM prototypes declared in "kvm_ppc.h". Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Cédric Le Goater Reviewed-by: Greg Kurz --- target/ppc/cpu_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/ppc/cpu_init.c b/target/ppc/cpu_init.c index aeff71d063..f2afb539eb 100644 --- a/target/ppc/cpu_init.c +++ b/target/ppc/cpu_init.c @@ -21,7 +21,6 @@ #include "qemu/osdep.h" #include "disas/dis-asm.h" #include "gdbstub/helpers.h" -#include "kvm_ppc.h" #include "sysemu/cpus.h" #include "sysemu/hw_accel.h" #include "sysemu/tcg.h" @@ -49,6 +48,7 @@ #ifndef CONFIG_USER_ONLY #include "hw/boards.h" #include "hw/intc/intc.h" +#include "kvm_ppc.h" #endif /* #define PPC_DEBUG_SPR */