From patchwork Tue Dec 12 12:33:41 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: 753069 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c83:0:b0:333:3a04:f257 with SMTP id z3csp1876370wrs; Tue, 12 Dec 2023 04:37:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IHeH9mgCXJswv7v5hMnFI/F50zfOYANKbXLw+iShK5M0VWHWQYXAaAskpM4enQOz/9lPnnq X-Received: by 2002:ac8:7c46:0:b0:425:8f81:6c8b with SMTP id o6-20020ac87c46000000b004258f816c8bmr10399848qtv.53.1702384671970; Tue, 12 Dec 2023 04:37:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702384671; cv=none; d=google.com; s=arc-20160816; b=JuTz8ooCZzikz2FIz5iTuDA7+784HsQcNUrLI7miCUoMngHolBUHkX9v0oLHef/tIA KVzowEVFLePUgs+Zqj5EM3luSP8nZV7gOTRhG8QhHc30X1iTL1tkaNV095/BReDVSpAK eStr81Gaq5rYHHQp06Oi9K0RRN+d/y9s8cn4huJmRH02YaRfCClS//fhW9s3LORTEFVu zxN8yZ2+99Pv7/2WldGkRPKCwCJnyY526+5l3Sy2wd9bcGLwNc4eW1d5kaWwVhg2nWoM 8DQGiXzz+K47tlhBl+8r9WbxHC8UJnxiMbpXx3ihSDl+vWquZruq2ZwjislanPdTxUJ+ F8lg== 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=hNDHIJ1gpHeb2DpFjhHXsFTasuOwWoH4S7CHuQ8aaek=; fh=vlFEGdij83GYetLrOUaCnR04sbYRvtckD5L7fw5192c=; b=F+Xk1oIKL1I2VFcAdWDIZXgwgqywOdpZOjrtpYtw31ZI+cWtWHKK6pyuScfzJHkcq2 gH0CZfy1Wzb+wWZN+2nTAIgKZZx3MAVfY8/G/og05Rg/2CWAglnh1wHSwXwEahJpLWF0 B11u2kz7o0R6meqks3f07TaTEdZ+jgtWg4IbjHq1AvClKwr9uuMfF8+FY9r5FfAUbVGw p/h57qNuNg4NtpezGQ46gDKFHjk5yS9/EI0XI7tDsLqGmq3Nd8wNANbpmYE7hfBpv2Ab /BL3iO4H/cOoUjTrvWaIVye2N5Tt/sAhTkTWnU7n2vxMwHyIeqrZ7ghuQGRPyKJ1mFjf yt5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ojx0WGqE; 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 d8-20020ac86688000000b00425868d0d56si10339051qtp.28.2023.12.12.04.37.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Dec 2023 04:37:51 -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=ojx0WGqE; 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 1rD1yc-00088W-6P; Tue, 12 Dec 2023 07:35:06 -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 1rD1yX-000853-UX for qemu-devel@nongnu.org; Tue, 12 Dec 2023 07:35:02 -0500 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rD1yF-0006jf-SF for qemu-devel@nongnu.org; Tue, 12 Dec 2023 07:35:00 -0500 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-a1db6c63028so640850566b.2 for ; Tue, 12 Dec 2023 04:34:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702384482; x=1702989282; 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=hNDHIJ1gpHeb2DpFjhHXsFTasuOwWoH4S7CHuQ8aaek=; b=ojx0WGqEhwWpQJ9gSrJkBwvq+gLt6iEtHEYJcQ9rC6FXxXhY5DeTulIMw209Bl3owE TTldd7D8uGxsqxxjvOjwIBt3QZJSy4Ym8q73MMz62RsMASr6spAOMBkLWlFGN6kqGn7j aqaEBmERxFz21bU2NSwh2JQDC1KgE+v1xemBKeNJjnWs9K+itYLnzgV3yzqAdDVWi5l0 gL41/NhlS5JcWUsb0dEhcZvNwsHsARwaNIk9AE+7rnFvVHvpngIvZoTHnkQnex0XaXnD o/Dgk6MRzy4Skc1XThzC2DXfd+YpY6LUm5GDAyL8/mJ346Fu9OGdjZ2KdxVQ66lIZ0e7 ySTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702384482; x=1702989282; 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=hNDHIJ1gpHeb2DpFjhHXsFTasuOwWoH4S7CHuQ8aaek=; b=b5sDsGMTu9Vm4rOH6+3J6+cTY6b9KfwTqrsqUTOO4y1XfiaFkZ0ymEv3mP9YcG237K QilO49EzK0T3XBGac/Z/RbKvwjEXGyGHDFHKZRRVjqwk+qcM6OvNZ2KSTjaOCmUVq5td e9hVbDMsbfRnX+CG94J4w1E34f8/0Z6Kcj6jthLbXnPOkQWHKpOCcG4d0ghqH0xkmbbG o3kC9//LL+I2H5yt8ajxwUkLV1p8g1AChVpSgNOXPG7oJCxfyN2FnMhdXQPVp7O52vuA pbSt+mva+GaPOakea7qey9N4W/0Fx9LdUxbGPNHApfeanFKDf8q/osp8nnTJ0+KcgCPI JdLg== X-Gm-Message-State: AOJu0Yx+jyGocJloBKpWDAvofNkekdQuuvzQjLh2NSXJm9+dIKV4gquR hmM9JJDgkKI+GXzVIN9z2H2LRqlGpOpEbMqD56EVPg== X-Received: by 2002:a17:906:13:b0:a18:cdd7:3987 with SMTP id 19-20020a170906001300b00a18cdd73987mr3301144eja.2.1702384482325; Tue, 12 Dec 2023 04:34:42 -0800 (PST) Received: from m1x-phil.lan ([176.176.175.193]) by smtp.gmail.com with ESMTPSA id tb19-20020a1709078b9300b00a1cd30d06d1sm6337726ejc.14.2023.12.12.04.34.40 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 12 Dec 2023 04:34:41 -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 05/23] gdbstub: Include missing 'hw/core/cpu.h' header Date: Tue, 12 Dec 2023 13:33:41 +0100 Message-ID: <20231212123401.37493-6-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::631; envelope-from=philmd@linaro.org; helo=mail-ej1-x631.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, 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 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 --- gdbstub/gdbstub.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c index 46d752bbc2..034a4ac211 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"