From patchwork Tue Dec 12 12:33:42 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: 753066 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c83:0:b0:333:3a04:f257 with SMTP id z3csp1876151wrs; Tue, 12 Dec 2023 04:37:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4BDwBbzv/Eu8p5WYFNmdgQMC9DlqXIb0e04W135ggAqR7V4Pz9lnu7fk27kZ85OEtTsN+ X-Received: by 2002:a05:622a:4ce:b0:425:953d:1831 with SMTP id q14-20020a05622a04ce00b00425953d1831mr7769235qtx.46.1702384642144; Tue, 12 Dec 2023 04:37:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702384642; cv=none; d=google.com; s=arc-20160816; b=apPWRNL5HsTlO99YPIz+h38KDsY1mrIvLBeWsTk4gu0StwiY3MVqbt2wTUTOpZGC/e usvsSpxjAVL61U52nhlplbf2VaK45gEprfsEuRBgiqZvtqL5hJ1gVHEDC1ChZ7nbOQEj My0t7BefJAa/JUM8hrh0LnqnXuXZ1R8jwgJ/irySWrrf4SveuGLnk4hthSg+OgHQNKaX jATKNvuV+dIr9LVjc4Yc1V7pL0de9+RKfiEW9XxCnIJmhEWrvFqaDJ67YIIdDggaYR74 HU4dSvUl8jyAz7NRHz3ryj/MeKwxMwYn/U53eorSKqJte45U+5XSOtUwoAZB2IlA2Qdd 9crg== 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=81Lrxkba5TiSEWNy5rmSbN+DrKv9XHIGlVRArHRoC/Y=; fh=vlFEGdij83GYetLrOUaCnR04sbYRvtckD5L7fw5192c=; b=B6MxilooVry7s9aS+oVBCoMf7LUWSrN3wyaLLVGcwfuRdTE8635CkolmAezJGYz5fE 3DQjR23Sk63ng5algTiCd6oO7LCncPsu3j3gyD27+Uv6rqk1Nb3oTIHynb8xQMTMiDKE NQqOmnxLIFtYAwgjLHPtoRN8Akb9yY8smOYGLVphgfkCkaiNPQUeqS3yVKdI5tSoOJPb e46iKAAbutGJCaOjUzxep7fhWEl9zQtcqce3Dq4szf9f5VNeg0gWZmWmRJHSxDZQJG8v hGVMyjLj6Hob/V4ZepdI607g8DtpHomkAll/WH8R4q7sIsDNDoveOYM1gj8pD45rGcaI 48IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C3ya4RPF; 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 kr2-20020ac861c2000000b0040fe32ab0b6si10008046qtb.286.2023.12.12.04.37.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Dec 2023 04:37:22 -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=C3ya4RPF; 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 1rD1yR-0007xs-80; Tue, 12 Dec 2023 07:34:55 -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 1rD1yP-0007sg-SO for qemu-devel@nongnu.org; Tue, 12 Dec 2023 07:34:53 -0500 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rD1yM-0006kq-GQ for qemu-devel@nongnu.org; Tue, 12 Dec 2023 07:34:53 -0500 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a1f0616a15bso631907066b.2 for ; Tue, 12 Dec 2023 04:34:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702384488; x=1702989288; 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=81Lrxkba5TiSEWNy5rmSbN+DrKv9XHIGlVRArHRoC/Y=; b=C3ya4RPFhCDuc/pU0ehFvvJl4i8hK1IjTN3lfOamjANhtPBXG1rl49uZkkcSXEOrmC iF14n3i1q83C4PdBcTMcePvbyfd2uWuZgvh65Z2+BiPrnA/YKm9Rw6NfdW6JozMNYFWb +fuExi70lUD7HdUlN4N/mTuWWWdzthEdKicXhp65OLfnIm+YV07LPFxVhj0/caTm1RsE shUArjcTqG2P2UXBQrIVVbpoIoEzYR1KAtqP/oDVV3xP3ce0XI8iA+Ja6rjB9woI+tn6 Gu5i1yfABnQ3T32E2EngWMyvXn4v8CnhrfbbqrhvfFugBL+8f3iV9DBCvYnZEdKxZXSc 0pmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702384488; x=1702989288; 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=81Lrxkba5TiSEWNy5rmSbN+DrKv9XHIGlVRArHRoC/Y=; b=h4b0KBcveTS7063jlVQi7P+pLpAMcG6hpblwOop9K0bGAqus78MtcYhjiluqg3GCaA a+VmXmYyfq3S+M1IsSE19722BTONeFlo8evMZjeIrpxFn9FhQ3/NToSSSbUMYPTDRqcu LTGtqVQ5c1Gyg8Tw2TLARH/z2wCxE8R9d4QIDNTH0h0biTQ5/IWJjR8UWSTPGo+4zDk7 MWZRK0AWvq+GtdOAi1UncGeBjfd1+tPqrSKyyPze3kDHvSQXrwT1EkAG/HaGRJIglk/5 ZaofTcdKroXhU4vGy7oiwpwaeP8I8l1G+WDyn6hchgbkON7Ycttg56aYvWwWg7+xAnrY HQIw== X-Gm-Message-State: AOJu0YwBAXV0CDgxhsTeQFCUaS6OPFxvHaHfbqhw+00Z+sIxiekv27Oj 0H1qmPGHTtdF/WFIWknrVqMe3YI3SdHjMQVQacLx7w== X-Received: by 2002:a17:906:5a49:b0:9e0:4910:166a with SMTP id my9-20020a1709065a4900b009e04910166amr3516231ejc.32.1702384488777; Tue, 12 Dec 2023 04:34:48 -0800 (PST) Received: from m1x-phil.lan ([176.176.175.193]) by smtp.gmail.com with ESMTPSA id re14-20020a170907a2ce00b00a1f751d2ba4sm5517119ejc.99.2023.12.12.04.34.46 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 12 Dec 2023 04:34:48 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Claudio Fontana , qemu-ppc@nongnu.org, qemu-s390x@nongnu.org, Richard Henderson , qemu-riscv@nongnu.org, Brian Cain , Thomas Huth , Paolo Bonzini , qemu-arm@nongnu.org, Manos Pitsidianakis , =?utf-8?q?Alex_Benn=C3=A9e?= , Anton Johansson , Warner Losh , =?utf-8?q?Phil?= =?utf-8?q?ippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 06/23] semihosting/uaccess: Avoid including 'cpu.h' Date: Tue, 12 Dec 2023 13:33:42 +0100 Message-ID: <20231212123401.37493-7-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231212123401.37493-1-philmd@linaro.org> References: <20231212123401.37493-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=philmd@linaro.org; helo=mail-ej1-x62e.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 "semihosting/uaccess.h" only requires declarations from "exec/cpu-defs.h". Avoid including the huge "cpu.h". Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- include/semihosting/uaccess.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/semihosting/uaccess.h b/include/semihosting/uaccess.h index 3963eafc3e..6c8835fbcb 100644 --- a/include/semihosting/uaccess.h +++ b/include/semihosting/uaccess.h @@ -14,7 +14,7 @@ #error Cannot include semihosting/uaccess.h from user emulation #endif -#include "cpu.h" +#include "exec/cpu-defs.h" #define get_user_u64(val, addr) \ ({ uint64_t val_ = 0; \