From patchwork Thu Apr 18 19:25:18 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: 789845 Delivered-To: patch@linaro.org Received: by 2002:adf:e6ca:0:b0:346:15ad:a2a with SMTP id y10csp735998wrm; Thu, 18 Apr 2024 12:31:18 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVZk4aE+JeMgQFbJxNVBoT/uLOz0+5gggIFkZMyt6n2CPUglwAZzm/QW6HuiLK3D0WuUi08XVlaEPN6HbUWsePG X-Google-Smtp-Source: AGHT+IGcV6edwudMDSiAe9StNe20TrGgVGRXz/9b1rsYGF7wGsNOWgudLpx2C4nvninZzEUs3P/H X-Received: by 2002:a05:6102:496:b0:47b:be49:8482 with SMTP id n22-20020a056102049600b0047bbe498482mr2289187vsa.6.1713468678528; Thu, 18 Apr 2024 12:31:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1713468678; cv=none; d=google.com; s=arc-20160816; b=vxAk2Y0OSGn9FatP+8SnW6evvEoOkDBiNtGAw7OcMKITptnujmeHc7ZuKmGnik94TG DMrZMdyqbcejbFIg2HybLmd5S6QmsSaTkSlmtua68ByKpVi1mIB1xokKYBQ4UnkZEf7n QBhAU+iSecIwyf3arZkflHTXl9hWFq61t4Jy0c6coWYM2zK6A1R0wzmMxB0tu7RNmNNg Qp4A16rBBL0HEEjDfTnmz4SrRgf/fy5gWBlqwd0dZK7D8elnodOJQq2vtNObsGTjR4OK 5L11vTgDF3btx3Mam+esXmxu5kFgCI0dWoITLl2L2ZzPP8oWq36cbas3R+AVvrQ/WTMz wsww== 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=/V78U8y8hgVchZketDvNFCqr9+uicpA2z97iCqadZGc=; fh=e2GGFsfsy2/W8frF1jqXqbSIouVq4pCnw7ANWeCk5gI=; b=uE22SfS4Kxtau+QLxbz9RvwmnRn9v6l4gEGkrUtse1g7KwHAMcHhMvKndwvtw26dWe X5TrvvWsK3UAH/N6Txugd0yx96NtolWe0yXmFdQJ8baAF03F/HaRASD2eongrlN8qDuu 5B3JfGM+p91Z8DRGeqrkyZ1hEdXCrqfJzIM/H7GkfL8F9tocxneDbph6Q+8YIMarvpo9 GnGwKVb6MXKa5ZJEMiXZ3tJ1PwqSSbJ9UCOM2dyxpC8z8uhtFUnm2drBPOajAwbKqQX2 DjaDWWyRwq/GtM89AyE+l+s5pNfcwslfD7fJ4uIDa938VHLAqU+fFyMXkaT3n8GErBla UNzw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wyC/eYyo"; 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 c26-20020a0561023c9a00b0047bbe45a245si549812vsv.305.2024.04.18.12.31.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Apr 2024 12:31:18 -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="wyC/eYyo"; 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 1rxXSj-0001Qc-IP; Thu, 18 Apr 2024 15:30:25 -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 1rxXQQ-0001a2-1H for qemu-devel@nongnu.org; Thu, 18 Apr 2024 15:28:04 -0400 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rxXQM-0007h7-Nc for qemu-devel@nongnu.org; Thu, 18 Apr 2024 15:28:01 -0400 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a51a80b190bso68952166b.3 for ; Thu, 18 Apr 2024 12:27:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713468476; x=1714073276; 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=/V78U8y8hgVchZketDvNFCqr9+uicpA2z97iCqadZGc=; b=wyC/eYyoz//UopNQW2IrLAYje4uYdyEW4RD1c5JxS/M+q4Z/a6vNGDtKPhOveYFsi8 qx+GSFHAhWtRkLfrGLZ/bnJ7wy7w25mLuhzEITbI5BUeW3qrfM8fZGZfyzmO/zeayZxk nof+a9Z5wYD9DKupd8gVsfekXI0VYQV6fIrdUYS+iMmU1UfrF0wBDd2+j11Tk1C34hMt nObOA4Gyik2MHqb1FB1MYwEsrbgAlrtUoS/7NSHIwcNaMDm9ptbVa6hee9ODAubCRmYk EohyjTKSautlagCgDNeKLAQNFKzNfKkS/66Vt+OncqQzEoBXIvTbmbxyMTutYy+I0byO WFkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713468476; x=1714073276; 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=/V78U8y8hgVchZketDvNFCqr9+uicpA2z97iCqadZGc=; b=UASLTnmVnZyIrpXa/CYUwRIRM8nAuOC9Nt9IW56kAgvtRV9pEpPmT0tz339yoPwVJl c62fB9N3qGNtNtm1plxnGBgVOb59Fi67f9IqpLweev+g/pF/SYzbsCBimI6RlbF/IoyM qi9UlO0phm238NTpeL/nJrHeVun976cS7SYES4aBYIh1aHwnfZvkwu95S4g0+OXAp9J3 KHYw4KfAl0Nsx01YQzEZukHuMTqEk1PQEe7DEtbSP54o1eAk3S/6X6etCrPCWcaIfhy7 v5zBV0WPmUxIBsCVdCNXqV7A5jqn9zIjjl+yvjw6CpisWfC0ACO1VmsjaLA4vzyOg/rM FrcQ== X-Gm-Message-State: AOJu0YwmvFfysrlHTyV2OD7O3fflU7Qu7RXnY629M9bhq+zIOdLDWgtR tzqO/azwcqAnDw3yb2QHEV9dqTs/UyjDnuWGat2TVDz07AQcBo0Sp8udhuhXflYUnTX5HBZ/aKN h X-Received: by 2002:a50:cd1d:0:b0:56e:d54:6d63 with SMTP id z29-20020a50cd1d000000b0056e0d546d63mr104698edi.15.1713468476332; Thu, 18 Apr 2024 12:27:56 -0700 (PDT) Received: from m1x-phil.lan ([176.176.151.213]) by smtp.gmail.com with ESMTPSA id fe7-20020a056402390700b00571c16323b4sm736740edb.48.2024.04.18.12.27.54 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 18 Apr 2024 12:27:55 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson , qemu-arm@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, David Hildenbrand , =?utf-8?q?Alex_Benn=C3=A9e?= , Anton Johansson , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Michael Rolnik , Bastian Koppelmann Subject: [PATCH 19/24] gdbstub: Avoid including 'cpu.h' in 'gdbstub/helpers.h' Date: Thu, 18 Apr 2024 21:25:18 +0200 Message-ID: <20240418192525.97451-20-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240418192525.97451-1-philmd@linaro.org> References: <20240418192525.97451-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62c; envelope-from=philmd@linaro.org; helo=mail-ej1-x62c.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 We only need the "exec/tswap.h" and "cpu-param.h" headers. Only include "cpu.h" in the target gdbstub.c source files. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- include/gdbstub/helpers.h | 3 ++- target/avr/gdbstub.c | 1 + target/tricore/gdbstub.c | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/gdbstub/helpers.h b/include/gdbstub/helpers.h index 6277a858a1..26140ef1ac 100644 --- a/include/gdbstub/helpers.h +++ b/include/gdbstub/helpers.h @@ -16,7 +16,8 @@ #error "gdbstub helpers should only be included by target specific code" #endif -#include "cpu.h" +#include "exec/tswap.h" +#include "cpu-param.h" /* * The GDB remote protocol transfers values in target byte order. As diff --git a/target/avr/gdbstub.c b/target/avr/gdbstub.c index 2eeee2bf4e..d6d3c1479b 100644 --- a/target/avr/gdbstub.c +++ b/target/avr/gdbstub.c @@ -20,6 +20,7 @@ #include "qemu/osdep.h" #include "gdbstub/helpers.h" +#include "cpu.h" int avr_cpu_gdb_read_register(CPUState *cs, GByteArray *mem_buf, int n) { diff --git a/target/tricore/gdbstub.c b/target/tricore/gdbstub.c index f9309c5e27..29a70051ff 100644 --- a/target/tricore/gdbstub.c +++ b/target/tricore/gdbstub.c @@ -19,6 +19,7 @@ #include "qemu/osdep.h" #include "gdbstub/helpers.h" +#include "cpu.h" #define LCX_REGNUM 32