From patchwork Fri Feb 9 15:00:37 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: 771323 Delivered-To: patch@linaro.org Received: by 2002:adf:9dca:0:b0:33b:4db1:f5b3 with SMTP id q10csp896666wre; Fri, 9 Feb 2024 07:01:58 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCV5poWi4a4+QN2gfbpBTym4wIea23Ydq6rAWQ4L9ZtZuAMt+uDFJ2wPNXdEJWckBR2b5Z2gupYjh6/cakRcE13+ X-Google-Smtp-Source: AGHT+IEMVF2Fzpvbziya/i8IdfI7DbgL5GOWcEVDVaNUW47fx2sQIUHKd5wrP9+G0fh2rxHYUyEh X-Received: by 2002:a05:6512:324a:b0:511:7aa7:197b with SMTP id c10-20020a056512324a00b005117aa7197bmr1016457lfr.60.1707490918381; Fri, 09 Feb 2024 07:01:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1707490918; cv=none; d=google.com; s=arc-20160816; b=J+ltjIQd7/VdhFrUDeCsy7Iy8w9CIe0uGgZ2UtmWxYMF+EECJ+a5EcBKQuggquvM4r X+zJG4u3P83nCQWjMEAXoEhqjhQDuAJTKPgtPsdSaQRpOM0E/A9I1KjcZXqLi4sj5unc WgQS+Lsv/DlruiGgq+UR+Y49YuD61//BXNMQve9X0bfmBfnkCB8HTlKKQihB9gDgbKC3 g71aHSswVvWEDDmYuP6fW31IQDwov9IO38ofePoLwlcS+7wiNTktjB05o3cN5+iYdqUj HnwK0af8HLnexZbzLnUVexYPOnbR/dnTUKCcCdi8exprmD8/b+IzfMA6l3lrhsQMg0AY 3VAw== 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=mg8ftsd7gly0oQXIDNMIRszjMB+Go5UbvZZR9Wb4MxQ=; fh=GcmTvdOTGbIjSgjqErJYQURPq7AiOb+FdVBaXKzxlGc=; b=bl/aCnpzV/bY9e10IKH8Dpz4KsA/Xs/OtPCvVLjvh71hHZsH4wO3a3jiRdSQhctcdl MBbpb3lutMtmtobDdxXxiNOEK1U5MFA1j3f7OiamMSsh1xU+W5N3undLeBcOeMttPU5z 1cpedcfA51EIJsiwxPZ57bIzc5ig0B+xBEAxDKs54se/4gx0x0Q+Z6kpvX7oBi8WxqIw H4TvGSV/IO+7HpQeGHVeqqGEvMlWiMi2QTrot+TW7UmU6t/pLNsUqZ9QhnK1L/bveJ41 ePjorrQiRhkLARcQxGCPDWCyUvPZQcYlp6gNRJqgSpGFK8MIY1gn3KP0RMx1FOcgU/62 HRQg==; darn=linaro.org ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ePICh5mU; 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 X-Forwarded-Encrypted: i=1; AJvYcCVxdEqgxWbC8aeOqLy06nSUSbI8l6JbHKlrD5INF6oBQ+aENsglzEMbx80WRl80ejttBX4rpGnmE4ONZTY+0b2c Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id iv14-20020a05600c548e00b0041058554e31si362427wmb.231.2024.02.09.07.01.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Feb 2024 07:01:58 -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=ePICh5mU; 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 1rYSNC-00079g-AR; Fri, 09 Feb 2024 10:01:02 -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 1rYSN4-000736-Hs for qemu-devel@nongnu.org; Fri, 09 Feb 2024 10:00:56 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rYSN2-0000RC-DC for qemu-devel@nongnu.org; Fri, 09 Feb 2024 10:00:54 -0500 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-41028900b83so8797985e9.3 for ; Fri, 09 Feb 2024 07:00:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707490849; x=1708095649; 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=mg8ftsd7gly0oQXIDNMIRszjMB+Go5UbvZZR9Wb4MxQ=; b=ePICh5mU3hFAH5yjgo2C+G0/5M+3W8zS3ramHgCK61CwBeT3ChIqeUwR48VgQ97/At jQVFMWxOCh+KxagvMBNXNuwmEqE/AB2xw9GzEZwHrfzKeqtRbJEOaTsXjgV8a47YEyGm Fxt15NeRZjMCT4HyBurzLqpanh6DrFvYTX52wJJcl2vvBoNSPQ6jGVs8DsEpzkJWZUft PxlYcQr/TAV1hDQDScw5wKq0174I/4psdJ1hjklkIk5dwvppwu6titN8jAoCsWPFcYtY yWfb9iSgzj/HBmTq6D5L3E2+M7cKRb1io4iEEHygXA3jmZIWNs3vrtI8D2c2ZzQaGoYg Rnug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707490849; x=1708095649; 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=mg8ftsd7gly0oQXIDNMIRszjMB+Go5UbvZZR9Wb4MxQ=; b=w9BkgUbDS5BGE9JnU+DlqvbxTfT4pcN0YjreguXezuSYZRHjFdvx0JkLbdDGWc3dWy uKDsX0mMKHXXpdJUxrBATpCmC091woF+ctjBBpfPl5dV3qajZ0XHQdKpz2MH1D37ygUo vAKGn7hLcdG50ItZZGqkZFBB2+Gx+bbR8I++6KqKYqkWEwf+980Dp9BKfc4WfXzkKnHj IpBPBLJi4dS0Vmtvy2ZbqLgZUZn5ozjUqqkssqzo5il/PASluaSDLIg0WPhSZqwJyIHX 5KYT5v/xNiFeRlj4KBvC4hroNAZReoUgDGE1/iHdzSooKj/TTh5B52V+YEq+eHmOuQEG 2pGQ== X-Gm-Message-State: AOJu0Yz10Suf83E4b7TnIkvbHMal7IhAu88ag0/tJNzOz82F+I/Zj6DI luZ0OvlEus765KNdxtNHLQkCSmJVmNxfFcuCWNbh6bdjY2CXcd/ANVYI7iECGp/fY+nY8xMO+rs l X-Received: by 2002:a05:600c:19c6:b0:410:2b93:4908 with SMTP id u6-20020a05600c19c600b004102b934908mr1346248wmq.4.1707490849482; Fri, 09 Feb 2024 07:00:49 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWc5w4kMIN9nakLOIww9hv3iuRRiZbw196P8LxvSyyz2izeLtVQzA7ht2ENq2tI0oX7u2drLDRgt75zydu4fnATo9bocRaaSxOK1M/q+SPiV2249tq15W9vJ5oqZLy1yyjJY57RLpWMG+BYKOHJ/Y6dYP5F+3pm9v6UO2sSB6eh+dwshU//r51NyEgYfNjOlcf7NuTix1C1vIz0cZBk7tqjyxqqPPXkGFd45kORopKtj2ik23CjHo7p9rvpP9EhVYVyC3T5/DMkBlAQePw1rva526OGVp33Mg== Received: from m1x-phil.lan ([176.187.218.105]) by smtp.gmail.com with ESMTPSA id p7-20020a05600c468700b004105528c61fsm911832wmo.35.2024.02.09.07.00.47 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 09 Feb 2024 07:00:49 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Michael Tokarev , Peter Xu , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-trivial@nongnu.org, "Dr. David Alan Gilbert" , Richard Henderson , Laurent Vivier , David Hildenbrand Subject: [PATCH 1/3] cpu-target: Include missing 'exec/memory.h' header Date: Fri, 9 Feb 2024 16:00:37 +0100 Message-ID: <20240209150039.22211-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240209150039.22211-1-philmd@linaro.org> References: <20240209150039.22211-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=philmd@linaro.org; helo=mail-wm1-x330.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 Include "exec/memory.h" in order to avoid: cpu-target.c:201:50: error: use of undeclared identifier 'TYPE_MEMORY_REGION' DEFINE_PROP_LINK("memory", CPUState, memory, TYPE_MEMORY_REGION, ^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell --- cpu-target.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpu-target.c b/cpu-target.c index 958d63e882..86444cc2c6 100644 --- a/cpu-target.c +++ b/cpu-target.c @@ -31,6 +31,7 @@ #else #include "hw/core/sysemu-cpu-ops.h" #include "exec/address-spaces.h" +#include "exec/memory.h" #endif #include "sysemu/cpus.h" #include "sysemu/tcg.h" From patchwork Fri Feb 9 15:00:38 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: 771324 Delivered-To: patch@linaro.org Received: by 2002:adf:9dca:0:b0:33b:4db1:f5b3 with SMTP id q10csp896933wre; Fri, 9 Feb 2024 07:02:15 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXR9MWiDB+W4wwjM+q0IsIXjU3gOJ7KIYI4vWXGCDBC5xuAKbcWujeFgPE9WYI5I5HNVC86sCcdgFxSUlI4ut1f X-Google-Smtp-Source: AGHT+IEUG3VW6IxVwBnyWoN+A0bDf5Pagg8zHYcmz1VhKNcVIWveOV9CNHDIZPWgJ4DSKawPTXYT X-Received: by 2002:ac8:4e86:0:b0:42b:f649:ea99 with SMTP id 6-20020ac84e86000000b0042bf649ea99mr1996250qtp.7.1707490935642; Fri, 09 Feb 2024 07:02:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1707490935; cv=none; d=google.com; s=arc-20160816; b=eA3K3sRcOffa9IZmRs0Ts/z/y565yjCQ6T+sDZ3ga/vDaGEr1S9hfjCwAXwfWGrRdH rQ18/xjLWZUAcsoujQZsUKf4BXjIF+qP2TZEgC3jUZRul4r6hcQMGKuOM84yY37CBwMS NEoK+7DT5rOu8D1rB0Iuy7ZdIBpXIW1rDPCSG2t+xbNOuHNZsz7EXUMKsVPQ4W+yTtfD jvNo9c9f4D8jIozJnSL3XexWE3iZ0a9gtG7LZH1J7HRoa2TXpYvj1A/Lf7cJ0H3ptdPA AtBGwFxSXt3/nXghie6q1vA32YMb+5ySPPmoGEmtguM4gG1DZY7pyuIcjgutbHNxlhZ2 ZrSg== 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=3TQbFIKBrA58mD0J5hzum2Y6ObE019XfQgAO3Dz+7uI=; fh=6ZekUks3cG0iqZ7rRf2YjCTLZC8AQ+ak+BOPE4QRJus=; b=IDvq66AySecpLBowSqi1Ti8WjnAEkzpx3ODj8NOounFK2Ypzs5Ct9sF7/zhHhAygHn A+GVLa0I7zhDumSSLvgdPVWoyEOcxBtghsHAOS5pTpk/itv4WPUrq1pB1u+x1daDR6c/ RYFSnzqLAUBpFb3HTpgonjTPD634F+U4isNepZxLQFvJp43MQ0oflLtHKefL5o8HZdb7 BwTJc8EOuMkpuIYwPl7e5sgXR5PgqgjYmoR9EHWDYqieqjsBCjHQO3DNmp+hDCeeCowy baCNrmwNXJ19XQGtx0JarNhZkwY9U032ZA7XiH/lHD/JmufOJTqe+P2n6qZjJUkmZ9Tz hLsg==; darn=linaro.org ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kjKI7qaV; 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 X-Forwarded-Encrypted: i=1; AJvYcCXKazKEUDwxkei7fB1sF/tbP3uVwMukNbDoQgUz45cQ3kW4Sj2q9NoP3bIqlhL08XaRfUCFyJrIcG6vDGVoAbVE Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f17-20020a05622a1a1100b0042c41f92d06si1956607qtb.583.2024.02.09.07.02.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Feb 2024 07:02:15 -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=kjKI7qaV; 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 1rYSNM-0007BO-FJ; Fri, 09 Feb 2024 10:01:13 -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 1rYSNE-0007Af-7R for qemu-devel@nongnu.org; Fri, 09 Feb 2024 10:01:04 -0500 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rYSN9-0000Tj-Jj for qemu-devel@nongnu.org; Fri, 09 Feb 2024 10:01:03 -0500 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-33b65b2e43eso434784f8f.1 for ; Fri, 09 Feb 2024 07:00:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707490856; x=1708095656; 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=3TQbFIKBrA58mD0J5hzum2Y6ObE019XfQgAO3Dz+7uI=; b=kjKI7qaVXL1JNbHNVRAQkCcPs3zewIaMbjgu50hhgQh+put+XibSMyBMMYXma63Llf phB8+Dz7L4tk82yxpgps8DOy8uUyBVoSfaG7AA6jgxCTxNEUiVdYnF673Mo98KQul70g blOY7ytU4MoUh01rN6EkmynXdZ4xW35IVyQPd8lEyIL2BRPSSl1Py8hsls7Oav0A9M4P FtnTOk6gjBiob1wAtuk0eqJeygs1l30tvcR9lpvN0z1mi+dTs1J1/XIZ1iBh0i5p2pph QTfuC0sBAj8+g7J0SLqWp0zzUd/Y3zOiU60wL4bKuoiDcq3DgktliGbui3ThWfBAaWHq sLtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707490856; x=1708095656; 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=3TQbFIKBrA58mD0J5hzum2Y6ObE019XfQgAO3Dz+7uI=; b=EUCbvuSiBuOrt6F65sXr8omtxSBlazlbyz9LjPDHI298lYxn1/wDOnuc0tYrlh8ekD VG/1gr0zv7czDy4CnFz0dzvB2UVgF0V5+wyCBqbwmEEygR5vl6flqTdLtOniGk2n+aE3 TAGmISCQ2hk87+i2MsZIU5GjkMuUDlna5GrCDMM/mlYYfekcrZWdDMNLEcJd0ilpvXLq VDOLRSms2Fzu8352YfABGf7u6QKGWKGrP5ow9j9YnR4dxAvn57r9/1M1a+hp2jQVT2WO ljtZkCABu2lifQ4hNDKxmfaKuSqgoaHTb5QLoyB7dWePiCwGqPy8AmHhlLDiMM0bz0br DT2Q== X-Gm-Message-State: AOJu0Yyjj/S+y0KYH3ZhBNGQdReKbJLsuU3Oo0dN01DqrQG7Hn0d0nbz 1Y1noL52Xeyikicwo6WkJGgmqftvpdPUqS7NpQ27pLCuEkJmK73n0f9V9lGfs0gNe3c6368ag1/ 3 X-Received: by 2002:adf:f6c7:0:b0:33b:183f:b194 with SMTP id y7-20020adff6c7000000b0033b183fb194mr1189391wrp.38.1707490856084; Fri, 09 Feb 2024 07:00:56 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUEzHFdSgcsL5aUNJ6sEx57bh/NWSrPJt5Us8drIzBkFyGf02PM9uTiFMRwfWyPvOlAfVUUMjn1efLbjDYCGY4rzHe31488bytV7qD9LINMG3Pts7kcH29DXCeWDBuqUsqk7N/gTv/7vpYiWszNwodbO3KKvhnuf6h8QikuKbaZ17XI0DLZ2/MNof5wHRXx98QHJEI62U7PJFs56ufLSNc9IAK3fbMsW6bTFf59KaH+7ASa4OFz3YTdBL+kPGIL3AlwolMsDA2bo5r5CsEaK9dUcOP1TSsMfw== Received: from m1x-phil.lan ([176.187.218.105]) by smtp.gmail.com with ESMTPSA id bw17-20020a0560001f9100b0033b3b878bf6sm2037509wrb.89.2024.02.09.07.00.54 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 09 Feb 2024 07:00:55 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Michael Tokarev , Peter Xu , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-trivial@nongnu.org, "Dr. David Alan Gilbert" , Richard Henderson , Laurent Vivier , David Hildenbrand Subject: [PATCH 2/3] monitor/target: Include missing 'exec/memory.h' header Date: Fri, 9 Feb 2024 16:00:38 +0100 Message-ID: <20240209150039.22211-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240209150039.22211-1-philmd@linaro.org> References: <20240209150039.22211-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=philmd@linaro.org; helo=mail-wr1-x42b.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 Include "exec/memory.h" in order to avoid: monitor/hmp-cmds-target.c:263:10: error: call to undeclared function 'memory_region_is_ram'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (!memory_region_is_ram(mrs.mr) && !memory_region_is_romd(mrs.mr)) { ^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell --- monitor/hmp-cmds-target.c | 1 + 1 file changed, 1 insertion(+) diff --git a/monitor/hmp-cmds-target.c b/monitor/hmp-cmds-target.c index d9fbcac08d..9338ae8440 100644 --- a/monitor/hmp-cmds-target.c +++ b/monitor/hmp-cmds-target.c @@ -25,6 +25,7 @@ #include "qemu/osdep.h" #include "disas/disas.h" #include "exec/address-spaces.h" +#include "exec/memory.h" #include "monitor/hmp-target.h" #include "monitor/monitor-internal.h" #include "qapi/error.h" From patchwork Fri Feb 9 15:00:39 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: 771322 Delivered-To: patch@linaro.org Received: by 2002:adf:9dca:0:b0:33b:4db1:f5b3 with SMTP id q10csp896654wre; Fri, 9 Feb 2024 07:01:57 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVE2uENNxCvkRHrfoUryz+MV4uHLxUHvdUAwHWd+IR6SkkfzjYEl9kM7tdpviywxRjrihp2HKb8h3ON8EZRAM8q X-Google-Smtp-Source: AGHT+IFsgD0W/5gymMEmhT35KiQ27qyDVTYJ9AZg2Hc3fMLPEkh/FCUfqEchH0VHbrXSBxCSXVGX X-Received: by 2002:a0c:f10e:0:b0:68c:8193:61d0 with SMTP id i14-20020a0cf10e000000b0068c819361d0mr1937506qvl.64.1707490917140; Fri, 09 Feb 2024 07:01:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1707490917; cv=none; d=google.com; s=arc-20160816; b=IlfOIHvRNuY1y4lWjTnDRQi3jHLTmcHQgbMpa9+V8X0DpI+/9SdrKvhfkhlsM7/416 murBesgDwJKl/kHPIJGumbKKYz4YMU30gpl/91tuXW3RMkPxLkcb+fMkAuC3NMsDRWeR /fEGp6ksqLeCTLCKC0UFeQ84PlVqD1+lfuypG2lSgA9ju28lJW0k5rtx19FlKPz0MQaR 7I5AGr19T86oYCbWB9h7NjK8b4i8ITLz09ECrJX/nwKUv/Hrf33zwg/rBFI4ecADotjp sgvTgvIRLvtIog/2DH2Pvvl9VMrkigih8afh29O0OTteI+IZpIqW+vpdpKPsroJZ8Bva qLiA== 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=0+v+hVYqqgGqr1jR1gLh8c+Nc8frKXqRwnR2qVdfBAM=; fh=si+EBRXi3KcxRUtDNlXIi0T5DYzMHHo9s6zDdCBs6BU=; b=TyU6XuJyXGxJeRJOjQgMmvdvh0voUQ4xD88Rj/Pov+2vC+hQm1qCCXK/K/qVjUOr13 K5HfcGK4ubrpBuz+lWmMvzJjbdhA18JslQ8qMnB7+d7Uv5XqBedOXlvgqMEa3iHLdgQu iq7vcEeanpG/ROuspwS8+jAkqvjcOtsidwslmrEGzQksSt3nCCLyQZo+fX5Gzudc85D3 GyVN6Cy9At4CwGlXCuhKzIW5Y7ue5Wat6sKOM5bEFcHNB8tb1S6KTX21MNpBFw+tjs8f mRpb1uuhmJPlmrMJKevoYL8eXbzBW1d/XcWDAYJoGQ0hwa/Rjtds6plglCG6+CJrXBF7 7r8g==; darn=linaro.org ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="gQZ+/++9"; 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 X-Forwarded-Encrypted: i=1; AJvYcCVDxIE5uF5ia7P/yz+dV8o0Hw7C8RHD/dL975ThTZdE9NVO8KJPzF+o1+PxwfdA6pbWnc9pBiJ/fMR+3Day9ilF Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id iv2-20020ad45ce2000000b0068cd43d6de7si1481676qvb.455.2024.02.09.07.01.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Feb 2024 07:01:57 -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="gQZ+/++9"; 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 1rYSNS-0007DW-0v; Fri, 09 Feb 2024 10:01:19 -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 1rYSNM-0007Br-74 for qemu-devel@nongnu.org; Fri, 09 Feb 2024 10:01:12 -0500 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rYSNE-0000WQ-Lz for qemu-devel@nongnu.org; Fri, 09 Feb 2024 10:01:08 -0500 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-51165a488baso1325608e87.2 for ; Fri, 09 Feb 2024 07:01:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707490862; x=1708095662; 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=0+v+hVYqqgGqr1jR1gLh8c+Nc8frKXqRwnR2qVdfBAM=; b=gQZ+/++9DhdhU+cVWQZEWYpuOq9m6m7J8yrpBWBqb7CbPjxkYdNrQE6SBmLr1jloA4 OoyW4vlcTlD/HuY5NKAlfL5Fa/1jC8GAOmQiEtx+xfSVQPHxvqpAqUui0fpWvB4GfZH9 8yK5N+wa17HZWKkkW9J3djnj7WoTK4s++pQeWTASgt4uDIkPWiWGSrv8t2JHUIcvCprh qNpxVa7DFnSiGApdJlDM6R4P+woOAEQdhAJKM/4VpB/zLtXGe63F5zy+FpxOzdpxVYOG 53XOmEjCJlK8PmGEaZOvxxEZzy67cexi6t3qdehwsTv4kSELcKCID+JBczMZLcLs9e97 Dz0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707490862; x=1708095662; 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=0+v+hVYqqgGqr1jR1gLh8c+Nc8frKXqRwnR2qVdfBAM=; b=dR4aUPfv7SKQiieRrlUEb/bWYkLM+cU45eUawCqYkGV5fUVvcKbLBgEYSpY6+YXAdt BcRkh//EnHC5xukcg1DAEmZlRvyMcCAqa6t+hDyGLLaNIGfh5Q2vfR8iW0RUuE79/jso 5GuOQzI6H5fJICRFng0b/05OhKZHZKKZG93Uma01RmQbzROfqia1shqxXI9WmS+VcxS5 BEF1JmDFi1RTLzgTOXOzbGypBsCg7jJOC/oOPwGIb3f/OnaCtNzCKFzwQDRqBcR/kZBU Wg+1JZKyMjLQsmFPQv5mRuBGlfuL0XezYcv1xvuVMFuqvmmPcsqILzwT8zLXhu262ubH hHSg== X-Gm-Message-State: AOJu0YzCjKxd4gXGqmQO/loIHT6aR9Al4yHhfa0o1LvWst/imhKIvzbY laBHR7Imq9FhOoraDLCzE07qbNg70rI1popJ3b8x3hiZWR/CYNNF3aCvVpt3QeduuOiPmtKGNby U X-Received: by 2002:a05:6512:2c96:b0:511:4f29:7fab with SMTP id dw22-20020a0565122c9600b005114f297fabmr1475511lfb.67.1707490862517; Fri, 09 Feb 2024 07:01:02 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWZNjfWqNiyfom6BZ2L7hpksOZx/tzkSC2EQ5fQRv0BbS+gqkdph1PmuO848Z9G/fJWY8ua7PA+mkYC97ImZjv4svlV4205j16Ac9q/xdM3f8cQCx2mBaSBPz0+AfztfvuzbGIogF6yepqAF0bzG/+zdnz+BaoTYkaSShE3mbreVMKgmku5T/0XZUneOm1NLSJ6Vz7iyDivLheiGOb/Mw8DDreeMoJinQbBhTkK43+h+O9oQ7Wu7kd4Ol+1P+H8yCuP9JaHIccIMlN5E9ppCoxqRY/8Wqh3lw== Received: from m1x-phil.lan ([176.187.218.105]) by smtp.gmail.com with ESMTPSA id n14-20020a05600c4f8e00b0040fafd84095sm924049wmq.41.2024.02.09.07.01.00 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 09 Feb 2024 07:01:02 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Michael Tokarev , Peter Xu , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-trivial@nongnu.org, "Dr. David Alan Gilbert" , Richard Henderson , Laurent Vivier , David Hildenbrand Subject: [PATCH 3/3] system/physmem: Assign global system I/O Memory to machine Date: Fri, 9 Feb 2024 16:00:39 +0100 Message-ID: <20240209150039.22211-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240209150039.22211-1-philmd@linaro.org> References: <20240209150039.22211-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=philmd@linaro.org; helo=mail-lf1-x129.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 So far there is only one system I/O and one system memory per machine. Signed-off-by: Philippe Mathieu-Daudé --- system/physmem.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/system/physmem.c b/system/physmem.c index 5e66d9ae36..50947a374e 100644 --- a/system/physmem.c +++ b/system/physmem.c @@ -2554,12 +2554,13 @@ static void memory_map_init(void) { system_memory = g_malloc(sizeof(*system_memory)); - memory_region_init(system_memory, NULL, "system", UINT64_MAX); + memory_region_init(system_memory, OBJECT(current_machine), + "system", UINT64_MAX); address_space_init(&address_space_memory, system_memory, "memory"); system_io = g_malloc(sizeof(*system_io)); - memory_region_init_io(system_io, NULL, &unassigned_io_ops, NULL, "io", - 65536); + memory_region_init_io(system_io, OBJECT(current_machine), + &unassigned_io_ops, NULL, "io", 65535); address_space_init(&address_space_io, system_io, "I/O"); }