From patchwork Wed Apr 17 18:27:54 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: 789320 Delivered-To: patch@linaro.org Received: by 2002:adf:e6ca:0:b0:346:15ad:a2a with SMTP id y10csp172791wrm; Wed, 17 Apr 2024 11:29:47 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUYl3YduVCw4yP6+ogS4TdkHiNIDv5lNMkt0IMzucnx6mgBZrVXhKJPilOY4uZEwLUJTAK+OtFZkruuvgmGUX/G X-Google-Smtp-Source: AGHT+IHC5SqoqpeYGZ7I1Ju3epbcFqKI1VRJ+M+gLuUmR+FMZ9KUnZuD8kgQgk1vYuDoo+RL/ph+ X-Received: by 2002:ac8:7e90:0:b0:435:9c32:ae57 with SMTP id w16-20020ac87e90000000b004359c32ae57mr363203qtj.26.1713378587205; Wed, 17 Apr 2024 11:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1713378587; cv=none; d=google.com; s=arc-20160816; b=Jnz/C40IGiL33cnmXjAJ2Ikbu5WQRqS0O2d+ZxchLhDbcc4X0vARtPhezxeEr94OfM 9GOYwpwsNpkiVtVlDb2Net6/N/6jLQpBRgx8/Ae4o4n+xTgfV3053cUDfpJRy67u3SYI iEeRP+1Dllly+ObXDyF8EQP1+jEwdF1ZJ1Pq2+VoMVHSQFX/Mqfx39QtMr64lJiMq8/A MQLn8D/1FR4crl0iSmQ6tKOQI6oyUETi+DK1CD9kNMJuaeYNnU7juSI3XZP1RAyVQu6t /VzfhI8nASwEOTLfEOijOYwM7F537oRe0vwehdiDL6OlEWW+GP6YBThSF5s0z0X13ssL M7Ng== 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=mlDIlSZfoByeUVHG5RjMJLlAMS8788/zBZZra99rGV8=; fh=ZXDWg7hKG7Hj19AbRuutTLw+Zvn/B9RsGUUw/YagpFI=; b=Z0tsS/DZ8wqEJ+6rBiudcD8PqDfm4v4OmefnpXEW8pyzZe7vaxjoSkMZ1xMLJUJ8EX PRF9FeIYW/AHRGiZ4TrcYfdGVEapennRT1N7IxcIOoQwkJeWYo90e04UTHaBG+u0+TNs mvPH3Eqp4G+o1JcPFI9ult2YfPEIsvyJ+jqhA5NZGcYWmKB/1kOtu2lmejYNzc7m1FFp WJLmqfqOxRrxGRlMtZCPAcIoFBcj7SQkpk342ero338MbslrsTflbgxbiM045Nzpm7sB hhJd8WYhxccpDC6etsLDMLXQj/VIE+V16OFupINAHMmXNT9hCXrAIJgwM4lcP7/wCVRu omDQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qfjEnzYi; 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 s13-20020a05622a178d00b004349123a99asi15686220qtk.83.2024.04.17.11.29.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Apr 2024 11:29:47 -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=@linaro.org header.s=google header.b=qfjEnzYi; 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 1rxA1t-0008Tr-8W; Wed, 17 Apr 2024 14:29:09 -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 1rxA1o-0008EK-LM for qemu-devel@nongnu.org; Wed, 17 Apr 2024 14:29:05 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rxA1n-0003P8-0Y for qemu-devel@nongnu.org; Wed, 17 Apr 2024 14:29:04 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-418c0d83d18so421295e9.0 for ; Wed, 17 Apr 2024 11:29:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713378541; x=1713983341; 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=mlDIlSZfoByeUVHG5RjMJLlAMS8788/zBZZra99rGV8=; b=qfjEnzYi7aD1ajqa5SACCtHgCz0qE8UouotLgHvRT/xOwEDdHgLIaOD+fI9zN+Yqul NItBd80J+vKnZfH6L9Xy3eY+qZH58EjdzB+4HCNoqF6r59UXpM2MxbuNJYTixY3L4lCQ gl2AbxK3iLqXOkLj+q+KNLRVyi6ij3cpoz6KlN8JWJ3A/jf8uvhhLNFMwL8pN9GwoyfH vFF2IqmkOBnUgzWP4Awr0GaY11hSxJ7sjyWCtHdgoNbE9GrivA6+5cCw55O600ho6v8n sn5EQrFdnrq0wKxaf/G680jqxOPH8qQdDl6iXXUK6NrI7cg2iy/paJRTQ+fzOrZ+a7xo DGPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713378541; x=1713983341; 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=mlDIlSZfoByeUVHG5RjMJLlAMS8788/zBZZra99rGV8=; b=qZhSQ8rOGNsW+AWzBYDJX5yLjzO/d4mCKB++5zK7xeAuQkQKHiw5RcvYj72WwOdKER XUQGF/LPGP1w+9HU7F+lLrj3Cv9f424OZFdAnBMCt4112xYBpL2VSMpsILwbkS5d2sMB mBtKkBBhO13Oh94/yokyGbPOKntJA7vnTbRO8kxRpUup9Zt6WP/mpVJLW9Z/iGokHpbm sjTjNz6hNV8Atnsx8wVbAl0vSM8e+BcSwwzNNo7aMzQekMA46xbGptQ1sohjP+VyBP1n 6qHjXpSutfibbPUr2VoDhm3kSBGhaZjMWbAjINFZzp6cxmLOZHzB88QOnltnMZDljVCJ RYrA== X-Gm-Message-State: AOJu0YwqagPYVRTFkN06RHmuJvUht5vExKueWoakhGuJO+MshIgLT3GG 2dR8S+pKVFIDHNpZhiTRo/96c5zI7UwX5LQeepeKwrUAjsoF15+RIklAKuUoFhxqJGoSQdITsKV / X-Received: by 2002:a5d:4049:0:b0:347:f7fe:135d with SMTP id w9-20020a5d4049000000b00347f7fe135dmr74713wrp.18.1713378540796; Wed, 17 Apr 2024 11:29:00 -0700 (PDT) Received: from m1x-phil.lan ([176.187.201.23]) by smtp.gmail.com with ESMTPSA id g4-20020adfa484000000b0034330c9eccasm18314606wrb.79.2024.04.17.11.28.59 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 17 Apr 2024 11:29:00 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= Subject: [PATCH 09/21] semihosting/uaccess: Avoid including 'cpu.h' Date: Wed, 17 Apr 2024 20:27:54 +0200 Message-ID: <20240417182806.69446-10-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240417182806.69446-1-philmd@linaro.org> References: <20240417182806.69446-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=philmd@linaro.org; helo=mail-wm1-x32b.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 "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 Message-Id: <20231211212003.21686-6-philmd@linaro.org> --- 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; \