From patchwork Mon Dec 11 21:19:51 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: 1874764 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=Y3wkVg3X; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=patchwork.ozlabs.org) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Spvw03zjSz20H7 for ; Tue, 12 Dec 2023 08:27:12 +1100 (AEDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCnjA-0003Xr-DQ; Mon, 11 Dec 2023 16:22:12 -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 1rCnj7-0003Iz-KV for qemu-devel@nongnu.org; Mon, 11 Dec 2023 16:22:09 -0500 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rCnj5-0005hB-25 for qemu-devel@nongnu.org; Mon, 11 Dec 2023 16:22:09 -0500 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a1c8512349dso660401766b.2 for ; Mon, 11 Dec 2023 13:22:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702329725; x=1702934525; 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=U3EU22bNfiIc1b+ZyOtnWaIQVzLfNzz6gZyDB25Dnbs=; b=Y3wkVg3XNYjJIvA9dxOqQT23TFfDeKNAX4AYoe6SXSn7gY5l7j8HgGDtYSnBDI7LjY s9k19FUQFLsjKdpkCJ3D0rZs6oPmEZ6DfqijnVSmFxd4pY5K3YGO9eiBoWAvuKR739VY H8pbthaN/4bujicNaAX+iYD2AAGjK7uogsib7NCOpJy4v0AHam1qt9eQbuSxMjXUsIDP JQJSBbUCMg3yCC01DmwAvJITKWXRpsnGxO1uYKntvpgUBDODrjVOJ0rlocVHhr1r4sQW zrm+RFXLaLLWrV5uZkJ6CGN23/+ZtKVAJofbJEWCRNJX1itB1NkePPFgBwewfE1d+GA7 ZN1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702329725; x=1702934525; 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=U3EU22bNfiIc1b+ZyOtnWaIQVzLfNzz6gZyDB25Dnbs=; b=EB497vTZIxT9S0Wubusx0kts01uyqEZ1RpNKcuiZPlC68KGTWPUTOM0GW4g39QbeqS CNooODYCSUwIDyb7PpzLCQraNpU5DLsPRtn2I3SXDEOBz7D7RehOmQ/fmgS9Ao8stxA1 2rYAotED1zp2iLv8wwSq5cINIypMqrVGusRa+qrcNVJw4kI6LVYLxcHPwHyk33sIUDke T36n1B/FLMDINELONOYudoDcshpLZiqtC6HcnWBO1UKTSg58mzpRA0zNkX6JH28LxB00 N3iakbTZsZXnq+Sm2uafisNBKm5Ukx/CwxVzyTYfWG8rNdjRRknpDmrqeJmXnfc6ahNV jhlQ== X-Gm-Message-State: AOJu0YzBaXZMUQ+vyEEsXvU/YCf/98CFz73qNBU0gqL1eZZzDicxCVeR D1fRJ74p9HxFi+DGGbaMY/7r9e0+fYVSm+04gMZoHA== X-Google-Smtp-Source: AGHT+IGzl3xQjm7C+9LNWEf4YaTjOxsCCunkMYfPCy1U1wU+AE7F8A7uN4M+yUT3A/jdokc1MR9z5A== X-Received: by 2002:a17:906:c2d6:b0:a1c:1f65:f4b6 with SMTP id ch22-20020a170906c2d600b00a1c1f65f4b6mr3223070ejb.144.1702329725658; Mon, 11 Dec 2023 13:22:05 -0800 (PST) Received: from m1x-phil.lan ([176.176.175.193]) by smtp.gmail.com with ESMTPSA id rm6-20020a1709076b0600b00a1db194b777sm5310183ejc.78.2023.12.11.13.22.03 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 11 Dec 2023 13:22:05 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Ilya Leoshkevich , Peter Xu , Liu Zhiwei , Peter Maydell , Mark Cave-Ayland , Eduardo Habkost , qemu-arm@nongnu.org, Paolo Bonzini , qemu-ppc@nongnu.org, qemu-s390x@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , qemu-riscv@nongnu.org, David Hildenbrand , Warner Losh , Claudio Fontana , Brian Cain , Daniel Henrique Barboza , Richard Henderson , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 14/24] gdbstub: Include missing 'hw/core/cpu.h' header Date: Mon, 11 Dec 2023 22:19:51 +0100 Message-ID: <20231211212003.21686-15-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231211212003.21686-1-philmd@linaro.org> References: <20231211212003.21686-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=philmd@linaro.org; helo=mail-ej1-x62e.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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.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"