From patchwork Mon Feb 27 12:36:51 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: 656963 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2326561wrb; Mon, 27 Feb 2023 04:40:30 -0800 (PST) X-Google-Smtp-Source: AK7set8Edqyzd3nicD8UhsElg7lAHcsdn9nlEyd5wqmo2mFOEVMc32It4eqx0RfuJEPj1Uy2xV0/ X-Received: by 2002:ac8:5d88:0:b0:3b8:6442:2575 with SMTP id d8-20020ac85d88000000b003b864422575mr34792925qtx.49.1677501630094; Mon, 27 Feb 2023 04:40:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677501630; cv=none; d=google.com; s=arc-20160816; b=KsViM8nburcqliXhSD7y5aNzhp5UzIC9ngzH3MBPPjLbYtQy4Rxvstr70JsBYzMYUN IFtc1IZdxNDywRRIwklj61ZgKF48NItSVvs2SYMuyIseE9ttU/1v7g6lpOXq6rfB+yln oD05U/qLY+PjtwmgdGnwxpsaCf9PnmVIfAjPnPw2ZOVjMPS3oTgZ+Re3XlySWaYrHiCx JPCaUFuh8XsnwwoNdDex5cfLxLzmi+TdR+zEcsYhZd0///9UhED2vCFCkoCGeByxxf1u D9WOYpE3u88vYzWMw+8JA+ubuUNWQDJ3m5ZqMuVejb7mfc3guTH5k1+/TqDZQbxfvHQD 0exQ== 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=iz98TPI8pAawLZtmAnBjh4eyfxt6fssvCcKRTUKmqs8=; b=NdZvUqf28sjo0QtdKeq8EwQ7NedW6u7INDIhVtg+eFYPGkWPyHnyHkq7DeZC8ccni9 tRlU9HxJf5/XiTRMskthZxdf3j5nvISX8FZnVmLlMKr4O1+A6jUAZ/8CYZ5YPBb8SW4s BTXhVQE/kAddHIzbi6v4OPiL9BWuRgHBiXZGfkFitQrBE3BFPxD/VxeqyXv1QeXjXGGm nM3QrfnIdYGJfN0tml32UUpeXzNIQPwqYEOwaHxfOMZGyP28ni/EV8rKKqG3CpmJeyym jG9FfRTQp4wS/u8UDXogx/v3YRNVfCpxqWizoF9/5rTJoHY0sE0mYEKXkCnJ2wjXLEeg xDjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tJTT79UN; 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 j7-20020ac84047000000b003b9b4028d7csi5614521qtl.403.2023.02.27.04.40.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Feb 2023 04:40:30 -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=tJTT79UN; 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 1pWcnb-0003XV-89; Mon, 27 Feb 2023 07:40:11 -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 1pWcn8-0003GS-0Z for qemu-devel@nongnu.org; Mon, 27 Feb 2023 07:39:43 -0500 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWcn5-0001GA-L4 for qemu-devel@nongnu.org; Mon, 27 Feb 2023 07:39:41 -0500 Received: by mail-wm1-x335.google.com with SMTP id o38-20020a05600c512600b003e8320d1c11so6523812wms.1 for ; Mon, 27 Feb 2023 04:39:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=iz98TPI8pAawLZtmAnBjh4eyfxt6fssvCcKRTUKmqs8=; b=tJTT79UN+NMChJDxXh9QdGDQd7s5bmoqfu9WDJG0MBgmgOnAKeyZRoUAg1gX78OOoQ 3mi9b7MyGBVGEHSSSm3t1Ja+SKKm4ECHboqaduQWVK7in7EG+kQT82QERSU1zY8HCUfB Ha7LR9pRa6phYbGzuP97rNq+EnoTVA/CZHmf6LsqBb8FogF0QNO/TQgCY/skb4TTLVJK UfbrIagrqseusfDzCbxR9uLJFTaPbBjWMn15YIDj+jf2B+UYdwHFlGsmw9q7D2hHAVMX JMZ7qg5QHifIIBMo+xyAe1Ot4KxV4yc2I0+zSq4MpGj4wcNPfOBo16wO5nLFcSG//Ww0 838w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=iz98TPI8pAawLZtmAnBjh4eyfxt6fssvCcKRTUKmqs8=; b=JVjh8WxOlsA8dwogp2WRTQ6IuEiKzZwyaKsaRnxz5lMSquzkrdHuIZatKRfTbvI1kQ JpQK7GfgHwoWbJdA+EzwvK72HcsJ823Ccp2OmE6HlGJTTnsyXtXX2eCYI7XeW+5hXFrl OhAAyA0JQP0mR3lADRERjN8lS7+6W6XbzIebX/xrqN7LCUlrNJKLTYRRyF3V7Ed3pUjA Ep8l0k0tWL6i/UcU5nogjcJ8Awzg3/0l7Oi2KDPZ179Ievil6827zjI5Py/ktp6Is6V8 7XfIjW9GHx6UWQVWsd3k0ToPHht5b9UGRsLzEwtk57xpn/BWuqIIE1Nftjbw4z/xJkFf R4bA== X-Gm-Message-State: AO0yUKVe71H4KlWH23E9AXjYo5vQPW/MdaAM3LyyLrwnvrkl8KQ/qXf/ XTARkmbGXNckZX84UnK1DyyU4WzBQnqBxWjH X-Received: by 2002:a05:600c:3b9e:b0:3ea:f6c4:5f26 with SMTP id n30-20020a05600c3b9e00b003eaf6c45f26mr9473682wms.17.1677501578116; Mon, 27 Feb 2023 04:39:38 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id f12-20020a05600c154c00b003eb2e33f327sm10797003wmg.2.2023.02.27.04.39.36 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 27 Feb 2023 04:39:37 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Peter Maydell , John Snow , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson , Cameron Esfahani , Roman Bolshakov Subject: [PULL 007/123] target/i386: Remove NEED_CPU_H guard from target-specific headers Date: Mon, 27 Feb 2023 13:36:51 +0100 Message-Id: <20230227123847.27110-8-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230227123847.27110-1-philmd@linaro.org> References: <20230227123847.27110-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=philmd@linaro.org; helo=mail-wm1-x335.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 NEED_CPU_H is always defined for these target-specific headers. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20221216220158.6317-2-philmd@linaro.org> --- target/i386/hax/hax-i386.h | 2 -- target/i386/hvf/hvf-i386.h | 4 ---- 2 files changed, 6 deletions(-) diff --git a/target/i386/hax/hax-i386.h b/target/i386/hax/hax-i386.h index efbb346238..409ebdb4af 100644 --- a/target/i386/hax/hax-i386.h +++ b/target/i386/hax/hax-i386.h @@ -49,7 +49,6 @@ struct hax_vm { struct hax_vcpu_state **vcpus; }; -#ifdef NEED_CPU_H /* Functions exported to host specific mode */ hax_fd hax_vcpu_get_fd(CPUArchState *env); int valid_hax_tunnel_size(uint16_t size); @@ -66,7 +65,6 @@ int hax_sync_vcpu_state(CPUArchState *env, struct vcpu_state_t *state, int set); int hax_sync_msr(CPUArchState *env, struct hax_msr_data *msrs, int set); int hax_sync_fpu(CPUArchState *env, struct fx_layout *fl, int set); -#endif int hax_vm_destroy(struct hax_vm *vm); int hax_capability(struct hax_state *hax, struct hax_capabilityinfo *cap); diff --git a/target/i386/hvf/hvf-i386.h b/target/i386/hvf/hvf-i386.h index 76e9235524..95b47c1c2e 100644 --- a/target/i386/hvf/hvf-i386.h +++ b/target/i386/hvf/hvf-i386.h @@ -24,11 +24,7 @@ void hvf_handle_io(CPUArchState *, uint16_t, void *, int, int, int); -#ifdef NEED_CPU_H -/* Functions exported to host specific mode */ - /* Host specific functions */ int hvf_inject_interrupt(CPUArchState *env, int vector); -#endif #endif