From patchwork Fri Apr 26 19:41:26 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: 792349 Delivered-To: patch@linaro.org Received: by 2002:adf:cc13:0:b0:346:15ad:a2a with SMTP id x19csp625069wrh; Fri, 26 Apr 2024 12:43:49 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVYbeeIhPx5DeidukMDGwRAAPedv6XhrOBDSG9blaL+5kgpPo+jOSEQbdXEViUBYaCYNjPZhwcE+ACppMsdxp1e X-Google-Smtp-Source: AGHT+IGBw8TLiHKpd1Fzr439jZW8wQabgwuq1DIs9EWq9lkBxHj7PkKp3Wjow9e6EcBN17jKvrke X-Received: by 2002:a05:620a:410a:b0:790:aec1:d4b8 with SMTP id j10-20020a05620a410a00b00790aec1d4b8mr3605792qko.12.1714160628869; Fri, 26 Apr 2024 12:43:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1714160628; cv=none; d=google.com; s=arc-20160816; b=KV/3TiP8mdgNxcq6B3hBPqBa9B8Bcihox/6t8sC1d09Gd1bMTOHu/HbOMET/Csqtsq mV4rCWc6jN+l0wZdUMy8i1hmdaIv6Hg/108QuAo6ePQ2WvOWDcTmTlZtACSo3XkXdPTl IJMJLkBSTgn0DpZ9gPXLBy6j/agTb/AIkj4GPATNnlNFm+kCzDk/ozikPUVNa73jgF1A a2zY+bKnH8D0YSoH6/C5FeugLPS+Bp2pNWXothfbakagU6Y0ztNnK05oHCZ4bIog/27T 6lTTDM7OoOcF1mYNC8wh7IerKENNGKq8h4JZDsXVFjhM06ANwXdYT5IPE7flDvKeV+dR qWpw== 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=4X/VhmwXvkdhIQuo7rHVj9w7BkqzRhVw95Tx0jafh5o=; fh=4dj4UoQTeCVg6RIgAm5X93FgKRA3s9MM3phQRm83OmY=; b=jhFQ0vp9R7nW1sEqDLUtePnHtPosF6irPWBzMpZPwbJcS/hrRAhf7t48O9qe5G/8aF dtwPwh+YAcf5cXngDcxLTvZQgGAhQp9gBd/aivBKW18F3DiIKkhoKQBQAN+V4wZ+ET3j 39Msf+JN4/DjRNqhULpfCMuoGOJCk7jhYaVs92jikBmkLy686J5il4yIgdr7Nx2NCbWy d6kGxKuFA0FJnArjLjbub4LgeiUJe5RDRVDnLpK8TgDp04jUgJoj2TKTmJD85SbMLz/d hO8z8RYNe5yrmx0ztaCWPh3KRNCG+VsjzCOsGRvyXh/Iqc/90teEb94grwq9EqrfE1kR 2jLQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l9DqV5US; 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 wg5-20020a05620a568500b0078ed77c0a24si20226994qkn.192.2024.04.26.12.43.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Apr 2024 12:43:48 -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=l9DqV5US; 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 1s0RT3-0000cr-Mv; Fri, 26 Apr 2024 15:42:45 -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 1s0RT1-0000bT-U5 for qemu-devel@nongnu.org; Fri, 26 Apr 2024 15:42:43 -0400 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s0RSz-0002vc-9F for qemu-devel@nongnu.org; Fri, 26 Apr 2024 15:42:43 -0400 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-56e6acb39d4so3272355a12.1 for ; Fri, 26 Apr 2024 12:42:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714160559; x=1714765359; 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=4X/VhmwXvkdhIQuo7rHVj9w7BkqzRhVw95Tx0jafh5o=; b=l9DqV5US4XkYQL/ZnZc0L9FJ61xIS7vuMqTfa7mzfRLeohtqgjPS9ATJzwIkSvJfKC bQcqvM8U4/mVaNOeei/kl+dRPTE8aeV6JM4KkeOfTKyDfJnacmFXj+4PGsnn+9jn9fEG VatWhEfItd20RGFa6E9sy6/2YY+R9bCssHVMGWAtJprHvlq2vrw7PlKp9DZZtbK5aQuN PO4VJG4KzUGrbHrZH3Q29CaJBoQIo850T8wEdjbP3COASE2+23OUT6ImGfYNnzu9/ZsY JuLEw32lXebkM2Iuah7oPowiYuzN6V5SSIh9TPl9TvSzlK8ttRnVdLkAn2xu8CVjy0J+ lVUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714160559; x=1714765359; 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=4X/VhmwXvkdhIQuo7rHVj9w7BkqzRhVw95Tx0jafh5o=; b=dMs27XVVJ6/qJU5ZdKOOfhbZBlO5nj1TC/fLwyBlSl95OLxLvjMO05hELzY43fA0LQ PgqSwGAHCW6okFb+3OsAHup+yqkTGkQHTurCIygJCJQ7VeCRkiXzLvzPMyzSuVhho3sf eeoLlCF4wzUrPAU+sVDo4fVZuHR/PgwMotPDvF+pvcCXZdYHINHKVGEhukHFiBT6yFrR CJutrS4nWzZ32Go8q7XKN5Pu+fqosB26IvFmnLa59zLqcXGjL5IQBGLDRLFXNjsqATDv GA7kTSXdagacrsGvkkDcq+xaoJxvHSXJZfMMpSpY+1k0pfvEf1hBUt2MXOrYnBjhsVsc TC6Q== X-Gm-Message-State: AOJu0YxlHMWldyp3s5Bsxc/j4HIuh9dnS/M2DlUULxfmzs1Fzntfenvq UIknir35Hc5z903FHE9Ga/51iJ6gGFIjYCPh2ikfDaG266CNoQw506Gbyt9r01TqeaCiPTq2Bin hZyg= X-Received: by 2002:a17:906:28d9:b0:a55:63de:9aa9 with SMTP id p25-20020a17090628d900b00a5563de9aa9mr2581937ejd.49.1714160559645; Fri, 26 Apr 2024 12:42:39 -0700 (PDT) Received: from m1x-phil.lan (aul93-h02-176-184-11-147.dsl.sta.abo.bbox.fr. [176.184.11.147]) by smtp.gmail.com with ESMTPSA id n11-20020a170906b30b00b00a5242e285aesm10798927ejz.184.2024.04.26.12.42.38 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 26 Apr 2024 12:42:39 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-riscv@nongnu.org, qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Warner Losh , Richard Henderson , =?utf-8?q?Alex_Benn=C3=A9?= =?utf-8?q?e?= Subject: [PULL 06/38] gdbstub: Include missing 'hw/core/cpu.h' header Date: Fri, 26 Apr 2024 21:41:26 +0200 Message-ID: <20240426194200.43723-7-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240426194200.43723-1-philmd@linaro.org> References: <20240426194200.43723-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::529; envelope-from=philmd@linaro.org; helo=mail-ed1-x529.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=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 Functions such gdb_get_cpu_pid() dereference CPUState so require the structure declaration from "hw/core/cpu.h": static uint32_t gdb_get_cpu_pid(CPUState *cpu) { ... return cpu->cluster_index + 1; } Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Warner Losh Message-Id: <20231211212003.21686-15-philmd@linaro.org> Reviewed-by: Richard Henderson --- gdbstub/gdbstub.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c index 9c23d44baf..9c2b8b5d0a 100644 --- a/gdbstub/gdbstub.c +++ b/gdbstub/gdbstub.c @@ -37,6 +37,7 @@ #include "hw/cpu/cluster.h" #include "hw/boards.h" #endif +#include "hw/core/cpu.h" #include "sysemu/hw_accel.h" #include "sysemu/runstate.h"