From patchwork Wed Apr 17 18:27:53 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: 789319 Delivered-To: patch@linaro.org Received: by 2002:adf:e6ca:0:b0:346:15ad:a2a with SMTP id y10csp172748wrm; Wed, 17 Apr 2024 11:29:40 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUAf0khaPsndThw2inoJ5/uprBXVD2pSv6ODsf1t32BDiDhbF7z/jQRE+6qrgbxEDf2aIO1au2xSwrMp4GevJu1 X-Google-Smtp-Source: AGHT+IFFwQDm2+8G6Wvqk7ozFfglTQpu/8hdNTJXAyz4asCZbCWjYr1qLlBMnOoKTleic/NVkduZ X-Received: by 2002:a05:622a:38f:b0:436:5e08:9aef with SMTP id j15-20020a05622a038f00b004365e089aefmr9290584qtx.5.1713378580239; Wed, 17 Apr 2024 11:29:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1713378580; cv=none; d=google.com; s=arc-20160816; b=YZDGHOfi32ms2o+9DwTWqfN7rUI+OPCp2YIVdWQJeh5kgLsfBdTG7/ciauVCaY6lcH TJtPtp86dOI41bozu0Z2n8VHSf5KJSHM/TMibrEYb2KpWrQBuu+vQYn7HfJExDnIvOtW wwduL8ja5xCUIgXF3uFscwrVoydQsOe8JflC2g7wdwmzpqHpbvTxEUQ7J80KyxIups46 YNEohpbv/UHEcmTXgfV9VmEunEgkoXF6+QQBgZ3i1dx7BNjBpj9VNh9tNiBGNbaZN6KV EzNcREhZh8RNNrVwSWUVZH87I9Y5TeSu2gVivoyRWKyySHvy95h6Eo5kRGRBswBg8Lhk 0axQ== 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=E03TQ0GvhSAU3PvcwPGXVXyQZvjAqNweStAhT2Ncf1c=; fh=AGplSnt+WUiov1DMvmsoICTNBRvGlJbdW0SrX8Rpgr8=; b=Ob3Fgag9iKHzcSjmKFmN9yaI9b7Kbnkscuzsm8PWuJOly3Wn7lLGXRu3Upu06a2TLt sB1rNPc/D/PKhOPcpzIMoXr3lXykqeoPss8ErjhuNzAfNgwIzt/qbeJfH7rhucI82iPy KdYzX4u8Df91jWAoRosmfbVyAasdkGN3+82pZunH0EOyYlwfkel5VypyY4mL4nSIA+Wa ZR5lP2tdFUIRgdQQbU0HH5gvCktp3BJ/HJW4Z0lxK0Tb31ddPXDgBB44sickpVIVaAsK 6+npUE1HYboTudWDplELAB7ZPqoRJI7qL4TmkdK9yB2ddrHAoqVOHtZ1tdlno9zmNteW y3hA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="JQ/NRJMt"; 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 u29-20020a05622a199d00b0042edcfb1f28si15209304qtc.92.2024.04.17.11.29.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Apr 2024 11:29:40 -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="JQ/NRJMt"; 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 1rxA1r-0008Fc-Mv; Wed, 17 Apr 2024 14:29:07 -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 1rxA1k-0007x6-RO for qemu-devel@nongnu.org; Wed, 17 Apr 2024 14:29:01 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rxA1h-0003O4-Id for qemu-devel@nongnu.org; Wed, 17 Apr 2024 14:29:00 -0400 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-343c2f5b50fso4284247f8f.2 for ; Wed, 17 Apr 2024 11:28:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713378535; x=1713983335; 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=E03TQ0GvhSAU3PvcwPGXVXyQZvjAqNweStAhT2Ncf1c=; b=JQ/NRJMt1Vn60L8+lh7elzkyOF784pD/goOS0QjxO+lEPxMsiallW1zC368ZuBL0t5 7GSYuAZHIyeLjcHJyrQmkgmAqzynD+OUsANYNJ+2TTt4ScK3MmuzuqWnf/t8EB5WnV9i L6Wp2vLBYFY2G2zTqcuYyAc/OjIdVDpbpQjgdl3sN/ZNmrEDEvnNVAy/3uiByDLVY8DJ VdVJ1Dp0OoooYn4NQUXzJH+1REVfOivLz9zj/CnqUpj7EkeNF6yITvYGoAJLFKKsKu8G aPu/uH5B+XsZRs4dfPFeJRfw2kyeJfxe42kszf4XwsWpsgGn53qdOWM8iFNFTLOgiPli Gj+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713378535; x=1713983335; 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=E03TQ0GvhSAU3PvcwPGXVXyQZvjAqNweStAhT2Ncf1c=; b=pEx9TjrenEeXXMP4cuIG6EHsIgKEVzx1t5ayuduLDuwFA8iWHp3nGySZIgE4/n7TXq LyXM1kFoIVIWyDWhJOCUYN3A+0gXeJB/jXNlNoODowapmXOjKxfjDAn3hWisYm4weKs+ sebjQLSbfdNaCa1ucRyPKh9KrrgdRF7rnU1f2i5I+PfwxvFLkIBNjP8ZSv6RS5QKjfFQ 8YA9TGuZTQc0aKH/abhVaM1Hs4SGJv0y4rsous6Oh9KCGetYYzdEQFNZAlS5gQAgQ+gx 1Mb2CxoKtLjxPTH5ihUMeuewY2GplqjpAJIYSO+Y28gEMO4NOCt4hGWsVv6t6Gty5pkC pFFQ== X-Gm-Message-State: AOJu0YyG9LzT/LSbwQGdPemK8IHmRpxNzL3c0A8XDB5ATLhX6bBsaAVF +4LKpxS0n2dJfV0NXhtTaQznwDlYD2ivjaehQK9sUOGwBH0P4U5T87m/LHg1lkrVd74Jqk44xgu s X-Received: by 2002:adf:f943:0:b0:349:bd11:1bea with SMTP id q3-20020adff943000000b00349bd111beamr97629wrr.11.1713378535418; Wed, 17 Apr 2024 11:28:55 -0700 (PDT) Received: from m1x-phil.lan ([176.187.201.23]) by smtp.gmail.com with ESMTPSA id k9-20020adff289000000b0033e45930f35sm18185709wro.6.2024.04.17.11.28.54 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 17 Apr 2024 11:28:55 -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?= , Warner Losh Subject: [PATCH 08/21] gdbstub: Include missing 'hw/core/cpu.h' header Date: Wed, 17 Apr 2024 20:27:53 +0200 Message-ID: <20240417182806.69446-9-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240417182806.69446-1-philmd@linaro.org> References: <20240417182806.69446-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=philmd@linaro.org; helo=mail-wr1-x432.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=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 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"