From patchwork Thu Jan 18 20:06:34 2024 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: 763647 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a08:0:b0:337:62d3:c6d5 with SMTP id m8csp109456wrq; Thu, 18 Jan 2024 12:09:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IHh3mBAXTEZ17k64kBN/WzVIx9Jfs5VA8Q86sXvwmKYaj+ax70jEHHo6oMCZoH42oQysRc8 X-Received: by 2002:ac8:5954:0:b0:429:d02d:28aa with SMTP id 20-20020ac85954000000b00429d02d28aamr1443113qtz.90.1705608571039; Thu, 18 Jan 2024 12:09:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705608571; cv=none; d=google.com; s=arc-20160816; b=eCFhiDiIMNZfcpIqD1IsuCTJrMsTZj24limryDK8K3ocPpCjvu3tx5y++zHcmGRrSB WWXrpchfIgmU+1EdXUSkqYRgvcIc7grL1c3lkNFa0QntQVW9Kmv8Ipy5NNVr8FbV7A8+ 8OJYsdwRK9z1JpM+D7KU6/EK/t7adsmqld50fBu6wccckv3x3MoWzKqDIw66BbpbnMmI WOKjMSfgwDGCDKL8N1IGiexa0tuq0T+56cYDSQ1ChwGNNQZC8cIQb7V53ikX+FEBklse 4c56ikeCJtSENbv+/E8M0dWRmxJXR1GXL9a6vSJYNZPnSRGvbXufL4sHBNoo5nxMeDDg +KYQ== 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=o0rOeZxLobaeC+GA5Yjm4BlTG768XBMgHhLq69UHP94=; fh=cUgEM3TMHOIH70RmHTmTZxZmItZJnKfBWHSaci49aLY=; b=Sy/zEu8fEfqq8ll4BSvE6l8UqIwPCMz7LZo/rHe0pfN6oFHR4X6CauGCsJqZJ+mJ+q oROH6PlTMDRppqNq6fwUflI4b3CihEfRRLfgcfJBCBho1J/CtZUeZsFzke7ULUvYCGqf 7wsvEnDXPlERdu1elQgv+Y1NlCRK2Rj+RGiORRUJt73WE3M4LfDeRE6sDZqUSBAYovds ac0YrMm7IsH+E9XbSObdcZFnxBh6XKep6ROVQ3G5+xXd7ZnriorvA4S8HltYmy7WCkN9 a9SCUlE4PQNmo5IYToM/1tWe12fiDfffvyWUH2iFs4S9D172crGgysZg1qXlUbq0ZaVY xK0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w69l6bmA; 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 s10-20020a05622a1a8a00b0042a00130b0csi6391426qtc.654.2024.01.18.12.09.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Jan 2024 12:09:31 -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=w69l6bmA; 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 1rQYgH-0005Hr-DM; Thu, 18 Jan 2024 15:08:05 -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 1rQYgF-0005BR-Mm for qemu-devel@nongnu.org; Thu, 18 Jan 2024 15:08:03 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rQYgD-00073O-Vo for qemu-devel@nongnu.org; Thu, 18 Jan 2024 15:08:03 -0500 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40e800461baso231585e9.3 for ; Thu, 18 Jan 2024 12:08:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705608480; x=1706213280; 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=o0rOeZxLobaeC+GA5Yjm4BlTG768XBMgHhLq69UHP94=; b=w69l6bmA/cVmFfsYvmbK6uTb73mAIsjn4cCaX5P0EtpVO62mhJ6AtF6wffgm7ObCt7 yjbgTHRG9Zs4J6QOoaRT9NRd6xogK4gSn+7Vmax9GgkLIK2qbCufDYp/w+3QhC/PbgGc TDQ8L9AMn117sXBgBakPIwabzFteqiST5VG72OtBacjcovoMmS+UjqF5yHypmC16oLYn TSHV6AUdFffzvYaAbom01U224eHPjr8PD5Ecd5A5sCS+XgiHSKz8VvqO0I/45PllJitO PqSO83JTwOhntnIQML+mMNl4xMOyuhzI4Zeycq7UtYfM90kUwzAsaPrv3vj3orNkuKcJ M3rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705608480; x=1706213280; 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=o0rOeZxLobaeC+GA5Yjm4BlTG768XBMgHhLq69UHP94=; b=MnqIo5FGkL8CnZsT9JD8UF8xh0GNCXJOxDya2eA6YG1n8oNrzJbW8lwdfLvlabQAkF zpU20XteU1p1f89mNnR5fbvyUphhv7lautHxsGaSl5Rl3te/7bxKHfUWkSt/3kmmH2L+ kWyBXidY1iRJdKBLsOWiA0dqyIDRtFCdPHNtXVFw32/ae5Wt/GmmOBAJjpNL/HwbFqI5 Qccmk37kNyqSjp+Me0SecYqJ8g8C20mOIyOF7Vd5kcuz63cNghy1ZmDkfw20lVt3T5ju RDdeNlWmiKjWlwsD85ajnqpsTDVKWit0cjJ6eWMqQKfpEyJprh2t3l7wDH8HPRyU0Isr 5C0Q== X-Gm-Message-State: AOJu0Ywb2p8HiwcsGdJd5Tob+MprUXEkMcCJ4dfjSCwrspkA5sGSNqt7 6vfXd9akvy9gGsLNTmBD5TvMDtzlLCDqImJVMm6BB3Zz33gStEsfP66orQ/bGHTwxDkYCQuVzhi Z9Ri0a8zD X-Received: by 2002:a05:6000:186a:b0:337:ac2c:cfd9 with SMTP id d10-20020a056000186a00b00337ac2ccfd9mr389531wri.196.1705608480329; Thu, 18 Jan 2024 12:08:00 -0800 (PST) Received: from localhost.localdomain ([78.196.4.158]) by smtp.gmail.com with ESMTPSA id p13-20020adf9d8d000000b00337bcae5eb1sm4764752wre.72.2024.01.18.12.07.58 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 18 Jan 2024 12:08:00 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Igor Mitsyanko , qemu-arm@nongnu.org, Strahinja Jankovic , "Edgar E. Iglesias" , Igor Mammedov , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Eric Auger , Niek Linnenbank , "Michael S. Tsirkin" , Jan Kiszka , Marcin Juszkiewicz , Alistair Francis , Radoslaw Biernacki , Andrew Jeffery , Andrey Smirnov , Rob Herring , Shannon Zhao , Tyrone Ting , Beniamino Galvani , Alexander Graf , Leif Lindholm , Ani Sinha , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Peter Maydell , Paolo Bonzini , Jean-Christophe Dubois , Joel Stanley , Hao Wu , kvm@vger.kernel.org Subject: [PATCH 13/20] hw/misc/xlnx-versal-crl: Include generic 'cpu-qom.h' instead of 'cpu.h' Date: Thu, 18 Jan 2024 21:06:34 +0100 Message-ID: <20240118200643.29037-14-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240118200643.29037-1-philmd@linaro.org> References: <20240118200643.29037-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=philmd@linaro.org; helo=mail-wm1-x332.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 "target/arm/cpu.h" is target specific, any file including it becomes target specific too, thus this is the same for any file including "hw/misc/xlnx-versal-crl.h". "hw/misc/xlnx-versal-crl.h" doesn't require any target specific definition however, only the target-agnostic QOM definitions from "target/arm/cpu-qom.h". Include the latter header to avoid tainting unnecessary objects as target-specific. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/misc/xlnx-versal-crl.h | 2 +- hw/misc/xlnx-versal-crl.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/hw/misc/xlnx-versal-crl.h b/include/hw/misc/xlnx-versal-crl.h index dfb8dff197..dba6d3585d 100644 --- a/include/hw/misc/xlnx-versal-crl.h +++ b/include/hw/misc/xlnx-versal-crl.h @@ -11,7 +11,7 @@ #include "hw/sysbus.h" #include "hw/register.h" -#include "target/arm/cpu.h" +#include "target/arm/cpu-qom.h" #define TYPE_XLNX_VERSAL_CRL "xlnx-versal-crl" OBJECT_DECLARE_SIMPLE_TYPE(XlnxVersalCRL, XLNX_VERSAL_CRL) diff --git a/hw/misc/xlnx-versal-crl.c b/hw/misc/xlnx-versal-crl.c index 1f1762ef16..1a596f1cf5 100644 --- a/hw/misc/xlnx-versal-crl.c +++ b/hw/misc/xlnx-versal-crl.c @@ -18,6 +18,7 @@ #include "hw/register.h" #include "hw/resettable.h" +#include "target/arm/cpu.h" #include "target/arm/arm-powerctl.h" #include "target/arm/multiprocessing.h" #include "hw/misc/xlnx-versal-crl.h"