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: 13523192 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B51B31A73 for ; Thu, 18 Jan 2024 20:08:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705608483; cv=none; b=QDj4nQuxL5knh4fE9DKWvnAOWEG1/OUbodg2KJpVjAzkZ90cOTd4Nr2cuZY93aKvJ0PF3kveMmKIt+HdRO64Dd5BkHT4cXWn09npTUaSnaTNwHzHydSKONjWOEN1lrRzloiYDLPVdYyWeYp9RUAbCjSDJ5Wd11E5qbUVcOWBxsw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705608483; c=relaxed/simple; bh=1GWzJA2hXX8z2G9I3aCH1yJ7z0+NgAdv2RboAlgWSUU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=FdEZu4clAzw8cWH2GFzjUn5DCwOhS/xwEFNXwyt6TlBijVv+mH1AnDesy7CsYRTA914ja1FWRK9CXzd9zNwqunHWgX1XrN1Dj8j9tAoXqYkttBRNlA8fC2qww3bDCWbvpzMmdx1zFhZa+1VbaORjLvMACljCW5hFIPkcjJU/rP0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=yjf92Dw4; arc=none smtp.client-ip=209.85.221.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="yjf92Dw4" Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-3366e78d872so12448700f8f.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=vger.kernel.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=yjf92Dw4hg8PM+T0arUNwZUKCzY6XQRWoYpvZl7wmcV+nl/nPKQiC5oydWx4KG3fqN /XYhzRGktC3Adt5q7iWbBqml5ma4TMHL39eKP8gBTN5SJPaICfvPuiLyPAT5psxOYq12 DMg9dRk4MPN4lb8FGjhgvRTuZSzx3f87M3C5Aecupl5Ptn3+/Nr2fOYizj//tT8TFgau 9Od55Jdstypj+Ym/sIPHcr9rVFSkhDrV16tddLMoNEUUHK+uMySH9C72sd0N4DxKYP/n 2ExkEJ/TuEkBG95YSLn/PLhmXl/2y9GunXvguUNSxDlDVJft2wpq7C/BCgKS6osiXTfz mJaw== 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=HMZiDHsKpu8CUDj8pl8c6V9mbFj94f1lfh8npcdlx8on6f1ZEgPQmTZod6u7p3WCTT wi6TwUom9tKSvyotDzK8bqdBkWG1vieB/9FKLXiNPm/WrpCb2sCLHZWE94WxH33s9p2L syODE2A1PHqB04MCV8+IRDNZgndBvCWzxnfZOG3mCCyZGGjLOQeHuBH6SWg7Y4B7OPax OcUU5sMC7h/HqG5eGPSSPi3BUELUvhKjaLIPa6B4eQERcwXjvkSH1M2UdcN3Dy0yY2XU 8bOUH55lSLDiU3WZx6ojyJL/8ZWrL0Sp782k/kLvf661HdTPUL9tlJ1Ds7dkaEpD+AMP rfiw== X-Gm-Message-State: AOJu0YyBFUmQhbZ0hQXstlm5vGsNo+j7GLOx2H9ykCzc2InCga7PQb3R gCPZuhpjtLjLujJfwyiHfCcCQM4I5QMYuu/eBpZJGQ2SPlQGh0PJvEfPp5BnvpY= X-Google-Smtp-Source: AGHT+IG1NAQIyrQe5pBXYsFsuXHLRNDmJDK8Q6CLF/Mb6tUVdicirciB4E9QrAoXLgL7l3NvgakNmg== 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> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 "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"