From patchwork Tue Mar 7 21:21:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 659866 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2608479wrb; Tue, 7 Mar 2023 13:31:02 -0800 (PST) X-Google-Smtp-Source: AK7set/MvCXfX/pt/Fsb+q4T4GjRAvLKTZdeg2XuheAMKhFirof89RXfWnC7JkDPyoQUxi87FgAE X-Received: by 2002:a05:622a:349:b0:3ba:265d:6793 with SMTP id r9-20020a05622a034900b003ba265d6793mr28905964qtw.42.1678224662421; Tue, 07 Mar 2023 13:31:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678224662; cv=none; d=google.com; s=arc-20160816; b=lOSbMUl4YyeEm4jNDrd/Nad40J+MemgRrKiAteRVFeRJJr1d9nNGL+yLrisVpVFHdG NR3y2vaR1c1IPmtwLqoNTHY6bcd7t7D0EQP57Sltgi1xo2k3oAdAcbj+cK5VbnUVTnPJ vHxLA0KYTjmFcMY9Tshi2bDYeGXhUASkYIeo29w9j8mWFs1i6kJuO8TBn9zLc07VqDkh 067/O/s8xSZ+lzqyRv6Kr01y0qtYhJBBARHZY9y+MYR8t/hjv+W0Htx5iq7w/TvHBGmX P2BgOu63R1icMeynXnAzKHwCFsT0ot7e89D0oAUWf04lCxcVepK3WW9aDCmnhJSQACAw DbmA== 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=zl004Ztdx+ncMhjo78lnbFMoRF4r79GXD1PmC56py4I=; b=SOcievpqRjiK7c3Apz5OWgBUrnCmPuwQY893KqXnkQkVK3Lf6XKLLEznE9Yv7IdX6Z MJZZ2kMwMJX9GvA3ihtsU3LK0N0HiJRkQjms4EnfGZWNzZYC3hiQje4m6BuF0JYbmpBD ElrE4f8eWH0j52akX8bO+JficF4W+zb7zGnnYITEpuGC/I8hADaVVkP5NbwMPrUVNS8r NQpfswP5qM+cf48Wp+4lAz6wLI4aOkxb1zy6ATwFZgsys6Wz/tWwojviNTJyNOo5wNER x3XWdag0LgiK5Bu2jCl2MAULB/20QgfDYBi5t2dljABvc7QVnRSJRUrH5dVUxWGPeyuI iYsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cdg7macd; 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 63-20020a370842000000b00738fdf4b50bsi9842874qki.484.2023.03.07.13.31.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Mar 2023 13:31:02 -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=cdg7macd; 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 1pZesA-0004hT-FM; Tue, 07 Mar 2023 16:29:26 -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 1pZes8-0004fg-9B for qemu-devel@nongnu.org; Tue, 07 Mar 2023 16:29:24 -0500 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZes6-0000v5-Iq for qemu-devel@nongnu.org; Tue, 07 Mar 2023 16:29:23 -0500 Received: by mail-wr1-x435.google.com with SMTP id r18so13539869wrx.1 for ; Tue, 07 Mar 2023 13:29:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678224560; 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=zl004Ztdx+ncMhjo78lnbFMoRF4r79GXD1PmC56py4I=; b=cdg7macd9u+5luzgJQ2QFOtqP6xusVqOyiA9NdbwXgCcTeeV9O7XGN1zs9/VmP7/uV qKabDY0fEmP2JN3CX+4QyFqkT3RVLuC4Ei8bzqVV7Fu22kVu/sIu1qnhHYNM6sAG6Red DSNMgOEnuAdnnCE6oKtm1zbuE8BOHJoXiiPZn+3KDupNlExFlhaUGGUXMy933F9g9S0k s0QbYI0oAsWwgtx3O3cGPhtG0pMxMawux2thXxz6wXsZCyeJsPQ5Z5QZxQJ+JkjEK/kZ LFKv3Ozmd/qljpjdcHy0cUpW5bSbTMVEEg+ElysJfO4e5GYA2tcee0BodM93cy7qzpGR Nv3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678224560; 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=zl004Ztdx+ncMhjo78lnbFMoRF4r79GXD1PmC56py4I=; b=PpV07+MOcnvekujYDSdNXU5iW28YCR4Fb2HTP8WwK8NWFpDZ8I/xhMDo3JecZBLLLj rOCp1KSETyYOlJvy4Ofa4K6OfIqPVJ9jcSHBrTtPhiHBLhSsns8DelRi3M22xOvCRkXM M4e4JFd21r3lRd4Cy48w4G6nwK99tuHRUd9nFpVjxdDz+orv9ROMQPsiub9XvyPqnWNU UPCaPX6FeOcXLegY22ANk5KXqzRxdUNk9ZeKIupP8eBROzNi1PyBQqW/xFKihF3YCPy0 +mQ3ZQ+K+tfpul8B/dL4qxBiFPpFH+NmbJvpXhMEm0LMb7frGAD0MBhv0bm90aNYXYVH 5+wQ== X-Gm-Message-State: AO0yUKU9AwkiDzgszruNpY7HJU6nOfeuhdMoEgc48ddzK/30Yq0/Q+uw VdlgYrxYH/C+F9VmIKgsz9pRcw== X-Received: by 2002:adf:fe90:0:b0:2bf:b199:c7eb with SMTP id l16-20020adffe90000000b002bfb199c7ebmr9348108wrr.54.1678224560549; Tue, 07 Mar 2023 13:29:20 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id s17-20020adfea91000000b002c6e8cb612fsm13267973wrm.92.2023.03.07.13.29.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 13:29:20 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 5A05C1FFD8; Tue, 7 Mar 2023 21:21:43 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PULL 29/30] gdbstub: Build syscall.c once Date: Tue, 7 Mar 2023 21:21:38 +0000 Message-Id: <20230307212139.883112-30-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230307212139.883112-1-alex.bennee@linaro.org> References: <20230307212139.883112-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x435.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 From: Richard Henderson There is no longer anything target specific. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée Message-Id: <20230303025805.625589-29-richard.henderson@linaro.org> diff --git a/gdbstub/syscalls.c b/gdbstub/syscalls.c index 9f479010b1..02e3a8f74c 100644 --- a/gdbstub/syscalls.c +++ b/gdbstub/syscalls.c @@ -2,9 +2,7 @@ * GDB Syscall Handling * * GDB can execute syscalls on the guests behalf, currently used by - * the various semihosting extensions. As this interfaces with a guest - * ABI we need to build it per-guest (although in reality its a 32 or - * 64 bit target_ulong that is the only difference). + * the various semihosting extensions. * * Copyright (c) 2003-2005 Fabrice Bellard * Copyright (c) 2023 Linaro Ltd @@ -14,7 +12,6 @@ #include "qemu/osdep.h" #include "qemu/error-report.h" -#include "cpu.h" #include "semihosting/semihost.h" #include "sysemu/runstate.h" #include "gdbstub/user.h" diff --git a/gdbstub/meson.build b/gdbstub/meson.build index d679c7ab86..bd5c5cd67d 100644 --- a/gdbstub/meson.build +++ b/gdbstub/meson.build @@ -31,8 +31,7 @@ user_ss.add(gdb_user) gdb_softmmu = declare_dependency(link_whole: libgdb_softmmu) softmmu_ss.add(gdb_softmmu) -# These have to built to the target ABI -specific_ss.add(files('syscalls.c')) +common_ss.add(files('syscalls.c')) # The user-target is specialised by the guest specific_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user-target.c'))