From patchwork Thu Sep 7 12:59:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 720609 Delivered-To: patch@linaro.org Received: by 2002:adf:eec5:0:b0:31d:da82:a3b4 with SMTP id a5csp225885wrp; Thu, 7 Sep 2023 06:11:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFF5VH8MR3PjQeMoblRtBoPeB2Ng4XwCNKUHiJsRL9wdMPsizYadkQUo1Q3n1U+PxDrP8qT X-Received: by 2002:a5d:590c:0:b0:319:8333:a2cb with SMTP id v12-20020a5d590c000000b003198333a2cbmr5718699wrd.13.1694092299345; Thu, 07 Sep 2023 06:11:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694092299; cv=none; d=google.com; s=arc-20160816; b=zZc5VeSrMOFyJTkyURbG2RVypUOLSYgksHZzCeFxZ6rybwuKkPPFLOJktet06m6VDr 40PWbgLM4LGyAIo8GTcCMv/B5LaJRt+7eExoLKC2i7SaX3/Zxwhcqu8L41JoZT07znue 5rutvv2Lk8mM27MjMPaukn2lytRV9PLZUAlarl5VBHWTnotsYOvBOaPvigiDEdSkOk0b 0LAcgiSR8S8hFSeKmZpz4s6Hs0YbNlEB4sBzEcOd4cgH1QHsbIUcWH3WSo9YAmcTDX7T B4N4pipXx7/f9XBbQPqfRyNIWGfxHsFwk5VcXvgxnPVZQBbWtRfUnk89P4FUn3KreaL8 7fVA== 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=f5QQm0oilMjeexogAgNze3HLGFf4cWGHlkML0hXaL90=; fh=kQadAhxV42GJ3cd2VUw1RyURv/zJQGvmUdF7iLEVTtc=; b=Q/o2VUmov+SoEdOf8ig9QtkDI154ojVckWK1YhG3eLqDOyghst2wqhalBUqMsm6vqq W2pm4b6Y8UX/p4wLA+NOu0GSn6b0BQuxFnl7+r4ezuRvacsE/H9tQuLyqCkoo226jrYK Q9WCpfmo0YG8VgZXYOzFRxVO9T44dWBj8y9/ryMZ14+xTMzBCvCdRk5ySX94BdZeLO2l axLqIKilRSbngdtHNMFtwbGt9rOUB9SnRMgmZ1MmPMb4nDyTmMd/xJIklnBHFkwB3kzS 5kABLAxXn7+3HLHmwCHjWYmqXsuqSKL+M7m21cYkrmBF/OiyWdiQrtXQyMeT8eCp15iV YE4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="FYi+k/lQ"; 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=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id q4-20020adfea04000000b0031c4fc1df78si8272386wrm.822.2023.09.07.06.11.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Sep 2023 06:11:39 -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=@redhat.com header.s=mimecast20190719 header.b="FYi+k/lQ"; 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=redhat.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeEeY-0005e1-SZ; Thu, 07 Sep 2023 09:02:34 -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 1qeEdk-0003tz-6A for qemu-devel@nongnu.org; Thu, 07 Sep 2023 09:01:44 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qeEdh-0007SV-Qj for qemu-devel@nongnu.org; Thu, 07 Sep 2023 09:01:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694091701; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=f5QQm0oilMjeexogAgNze3HLGFf4cWGHlkML0hXaL90=; b=FYi+k/lQIC1kMy/9WLSSaMgkjoS7ki1VD2yUs7gJwHoWnpv7DKs/1VOPG6oz8An0AuTozu 4/0KhTIp1LlOxYGUMSVWa/61Ck0hNG2H0IpaKMSOdvDx3m6cGO+SewToTTyNv68Hgfvqst f5dlS7o787S5Uc9GbnfWU9xrPcvrYkc= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-29-7tOSXF9xOECLA_xICvG19Q-1; Thu, 07 Sep 2023 09:01:38 -0400 X-MC-Unique: 7tOSXF9xOECLA_xICvG19Q-1 Received: by mail-lj1-f200.google.com with SMTP id 38308e7fff4ca-2ba1949656bso11289741fa.0 for ; Thu, 07 Sep 2023 06:01:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694091695; x=1694696495; 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=f5QQm0oilMjeexogAgNze3HLGFf4cWGHlkML0hXaL90=; b=CWhMN9EZn8UJrQDXgIXEBo1lAe+TOPTdCxOaGN9tCkzKOuJ2tTmoh0QI4YjvqlgRCm KphjHkE3k6TWYgtYGuq3MC1TWtx1RJc2KdAA6Z3+9WvZ0rKB00FCBlgU2VEZr7Klk3Oi aZJgJf7dq8AospLfuHclAiSnYmi9Sq5x2pfWBr5Zz91YvJ0ONAtNu2Q4VwCigx5/7zfR YMF3WkHyWy4cMRqgNKGxGOoUDDg7q2/3hC7GJtnU83C425uGUxhoFVsRC/AG6n3wkZp3 POXNpTcOF+jKq5kONwNmlVJumh5WirEP/evsDwl0SZYdlExFmtQCcD/pl9Ain8hRU6br 7emw== X-Gm-Message-State: AOJu0YzM98Ie56hSLouEpWhvN+XGOizgfDM/5ZtAh1bZwNIPrMM2ywAk 5vWQamXVpQyQUoUn/LOvQQqmMTvaNwmlWckyYeshIMT17DJZ0JtySVl3zoa/Nff3oH7B9fRQdv2 0GAlUaM3rs41LzG/TnGQGunaDyJMmLsI9b5l0JcsME4MRAew5/vS7KvpPRPKWLtfSsFv7xylSpN E= X-Received: by 2002:a2e:87cd:0:b0:2bc:d097:2b72 with SMTP id v13-20020a2e87cd000000b002bcd0972b72mr4796096ljj.48.1694091695510; Thu, 07 Sep 2023 06:01:35 -0700 (PDT) X-Received: by 2002:a2e:87cd:0:b0:2bc:d097:2b72 with SMTP id v13-20020a2e87cd000000b002bcd0972b72mr4796079ljj.48.1694091695189; Thu, 07 Sep 2023 06:01:35 -0700 (PDT) Received: from [192.168.1.174] ([151.48.237.81]) by smtp.gmail.com with ESMTPSA id y25-20020a7bcd99000000b0040210a27e29sm2454449wmj.32.2023.09.07.06.01.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Sep 2023 06:01:34 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 38/51] hw/i386/pc: Include missing 'cpu.h' header Date: Thu, 7 Sep 2023 14:59:47 +0200 Message-ID: <20230907130004.500601-39-pbonzini@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230907130004.500601-1-pbonzini@redhat.com> References: <20230907130004.500601-1-pbonzini@redhat.com> MIME-Version: 1.0 Received-SPF: pass client-ip=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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 From: Philippe Mathieu-Daudé Both pc_piix.c and pc_q35.c files use CPU_VERSION_LEGACY which is defined in "target/i386/cpu.h". Signed-off-by: Philippe Mathieu-Daudé Message-ID: <20230904124325.79040-3-philmd@linaro.org> Signed-off-by: Paolo Bonzini --- hw/i386/pc_piix.c | 1 + hw/i386/pc_q35.c | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index ce1ac952749..f0df12f6fa8 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -69,6 +69,7 @@ #include "hw/mem/nvdimm.h" #include "hw/i386/acpi-build.h" #include "kvm/kvm-cpu.h" +#include "target/i386/cpu.h" #define MAX_IDE_BUS 2 #define XEN_IOAPIC_NUM_PIRQS 128ULL diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c index 43413dd1ac4..8ecc78c822b 100644 --- a/hw/i386/pc_q35.c +++ b/hw/i386/pc_q35.c @@ -58,6 +58,7 @@ #include "hw/hyperv/vmbus-bridge.h" #include "hw/mem/nvdimm.h" #include "hw/i386/acpi-build.h" +#include "target/i386/cpu.h" /* ICH9 AHCI has 6 ports */ #define MAX_SATA_PORTS 6