From patchwork Sat Apr 27 15:57:03 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: 792669 Delivered-To: patch@linaro.org Received: by 2002:adf:cc13:0:b0:346:15ad:a2a with SMTP id x19csp973467wrh; Sat, 27 Apr 2024 08:58:15 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUxcfl228fltTs54IIDzSuUj0TJ6KeeBL6TS8xyk5XJtYLqW4hlugIcPXs2H9uxEBaA/A2eQMcavk17wB0Ta6HB X-Google-Smtp-Source: AGHT+IEjQggn3EqgJ1WlSYtjG1QN9yxPUVjQp4K/oiBj1qjsSskSNipXpI9C6KNOBGAmkaVmZ15G X-Received: by 2002:ad4:596a:0:b0:6a0:b479:52bb with SMTP id eq10-20020ad4596a000000b006a0b47952bbmr4475822qvb.11.1714233494845; Sat, 27 Apr 2024 08:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1714233494; cv=none; d=google.com; s=arc-20160816; b=J0wu6arpdH8m0F7fnWUfhpOssAdsSOhOw2W/unMtvCM+IwNvhOKDnaYFXpccwaCw8+ WXdqJrpm7gpLvpnaFnTd3hdl42x4u0Z5uR8Gw2e7SDpzgjuvHl2T/sC9ImgX2eu/f38R zyK6fFYAmK1BrNbmXn9li1pzVV69/PW5cNo5HTgQA5d4pJP/IabKbVwZCFNa6ffDwAPb 7FrNhs2HXTGjUcwH2xDgKjLV/nh6fhC7nmQp0iNrQi+IYMoFDJ3OE5XOP+z64CBNa7Xq i6RMXHQDaqu3V1wNmvgVTNiT1uNRj00YhhhUQlr62EG175AQ779WpEi4r1rulhZHMnBq BJlg== 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=e0W1pDBAxPisymJilpn3Ssy5zQkizzAMOErHk8we8co=; fh=ZXDWg7hKG7Hj19AbRuutTLw+Zvn/B9RsGUUw/YagpFI=; b=LXeyr9IAP12Zc1KHwZxNWfsHqVjeyBVVnbffu9vUBs0q+SuaPfBOHOydm7a+C1acZt n671HQ6hFXwdgmhx8g3Uty1ON8/N1xc9CPIjR7B4P4OtdNxYHmZ0dZvFY1MQDMZZtntN +JkU2L30pNAoj/KwB6hM4T2OCe1ttkfMU1wILzxAY44QkPNR8bAsHz7VEcCgdO73G5Tx WFtzeGo64ZyVt+FhGaFBsmHBD44g3EhujrA++JPW1Dj0KSUQkOsJs++j73YmGCR2ZNy9 DPzzIZDp5UZJAvhxJKjdks6879pRpiKwQOyYJstkA1apBrINfNZvEwlYYJQr/bA+4wqY xyqQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="kDFv7Hw/"; 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 h11-20020a0562140dab00b0069b70d8b4f5si22091894qvh.35.2024.04.27.08.58.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 27 Apr 2024 08:58:14 -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="kDFv7Hw/"; 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 1s0kQt-0002nm-Rh; Sat, 27 Apr 2024 11:57:47 -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 1s0kQq-0002md-SG for qemu-devel@nongnu.org; Sat, 27 Apr 2024 11:57:44 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s0kQj-0005Md-VC for qemu-devel@nongnu.org; Sat, 27 Apr 2024 11:57:44 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-41b5e74fa2fso16883125e9.1 for ; Sat, 27 Apr 2024 08:57:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714233456; x=1714838256; 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=e0W1pDBAxPisymJilpn3Ssy5zQkizzAMOErHk8we8co=; b=kDFv7Hw/dPe2Ja2cQaBXauxYS03cifPAv1Fps3Snf5kCYPFqYvYDqos8rU11pyydJI acDSCKA3/WY4Tl5tBMrx0GvdKJIw9ZCXZVc9hbRKfZioyjr1efiHjs5uOOWxj2ZOBx4i L/NFvQMLHR+sAdqF6bbal+5dyDXXRjwUg7R8oNTMcWScTzUTb7PpfSpBQTvZG3gCMiEW tEHjPf4lsAOz24raja6kPk4hb6+SgK5e297pBy9R5r667IvgCk/0Hxa5WbhkRR+NHShT YD3tV4sw44T9J4RzTHh39qGgb9yiLYzoVnS7O/nOsa7pEHA5bW8m1b4+We+ro5zdhzQs LDVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714233456; x=1714838256; 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=e0W1pDBAxPisymJilpn3Ssy5zQkizzAMOErHk8we8co=; b=ESpJ/1hu7qwwSU7mCijCuOkYoVeyx3jcdzvdlbAEuxY2zzDDP30XGn62bOHLd6QG/E wNc052j+UZOmpj5Ge8f3v6N9xBbMTh3nB3zyRBdHwYDUx87LNlv4M0I1AfDb0FZFCmv5 eN3vOnPqq+WbjkW36Qk25uYX34zZg5Hzq52ZLhCmgxZ97NZDxLle+C4jltI9TfKLnm1P F0/P8QwDtYMP58tEJV0+xGoNdzlgcAh2mnc/KMrhsYSxgN5kDsgwabdQUTd4U22JDv4S YvxljNx6SEhDdys2+hYlOBSeoryfDdkcfZBvkkifhDtLzQFvNlP5RpqVlLNH6o6UjSM4 6a9w== X-Gm-Message-State: AOJu0YzPFl/NRkBjCEeViOEOiUG7Zu/kGts8k9hBDO+2xLsb/5k+jwXF maxW19nF9JT9zJuCaPbhgcMnawjeJojK+Jcl6QukzJAzo9dke58sMUXDMBILZlh3c6VU8uRpa4H ftI8= X-Received: by 2002:a7b:c414:0:b0:41b:4d5d:9687 with SMTP id k20-20020a7bc414000000b0041b4d5d9687mr3960968wmi.24.1714233456184; Sat, 27 Apr 2024 08:57:36 -0700 (PDT) Received: from m1x-phil.lan ([176.187.209.2]) by smtp.gmail.com with ESMTPSA id bh18-20020a05600c3d1200b0041bd920d41csm2549565wmb.1.2024.04.27.08.57.35 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 27 Apr 2024 08:57:35 -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 03/14] plugins/api: Only include 'exec/ram_addr.h' with system emulation Date: Sat, 27 Apr 2024 17:57:03 +0200 Message-ID: <20240427155714.53669-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240427155714.53669-1-philmd@linaro.org> References: <20240427155714.53669-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=philmd@linaro.org; helo=mail-wm1-x32a.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, T_SPF_TEMPERROR=0.01 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 "exec/ram_addr.h" shouldn't be used with user emulation. Signed-off-by: Philippe Mathieu-Daudé Acked-by: Richard Henderson --- plugins/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/api.c b/plugins/api.c index 8fa5a600ac..eaee344d8e 100644 --- a/plugins/api.c +++ b/plugins/api.c @@ -42,10 +42,10 @@ #include "tcg/tcg.h" #include "exec/exec-all.h" #include "exec/gdbstub.h" -#include "exec/ram_addr.h" #include "disas/disas.h" #include "plugin.h" #ifndef CONFIG_USER_ONLY +#include "exec/ram_addr.h" #include "qemu/plugin-memory.h" #include "hw/boards.h" #else