From patchwork Tue Mar 7 21:21:27 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: 659871 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2609023wrb; Tue, 7 Mar 2023 13:32:13 -0800 (PST) X-Google-Smtp-Source: AK7set/JAyxKWUrPWOk9Faj1/K+ATEk2S+6WJ8bZDJPcZGrbYnUTZa5RuEbh1NaaRAASxh3A9Xod X-Received: by 2002:a05:622a:18e:b0:3bb:7603:d68e with SMTP id s14-20020a05622a018e00b003bb7603d68emr26199278qtw.10.1678224733145; Tue, 07 Mar 2023 13:32:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678224733; cv=none; d=google.com; s=arc-20160816; b=UZWsrnD4l+na/wfmJWlfA67DNggtqKByE0yAzFkkAE+VJxHdre0P5i3e+wQkiFz20+ 7d6rJSAHHlZzErd7wBS3sUnwSS7ggLH5yHCA9MKUqKsX7QEp8/q8kXty6zDTghBd1ICk +qIuLu4HBdDFq/TZDGeD3MkLl2hPfYd8jYLEmR2JAu4/Z685Lt09H2XVe6+AEllf2ceb JJorxi0sjLa4AhBRgDX/Un1dkowI7HuXIszP4hm37KAqVpwujqTBrTceMA0T/cz229bW htlRy8quMzSRzMLiDoyWlKPc/P2wzOKQ9+GOQG9hZ3PrCXu6ahVjTLMIsshIxNG4xra1 2BRw== 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=JzvS0ZfKizcL9bVYi9aisZfhh6wOuTp26q2UwdGO7aY=; b=kWt/DDss8E5077b7OxcoAL85Z5wn+Jfn18yaNVmwLeOHOPuXe8fgN1KF9rryogdNmG Evj7rPIRivYP+Uft3HQZ7XHVVcQPSOAsIpJWPFq2P3NjoXwUmqNQe2lDfnfvmZ/b7cnT OsIA7lB8ddJTAlB3pFPjmAPngj17vEeGQaa1i9ruWfTlRs505H6Sm7CrnjWnto0aLsKf h+7JlQo39dOHAhLUzsSBJLf+uq4Iv/grDXqa0ij++ZvA9i9IatNu6qhf6rGbzdjRy3Qv 8XLFFFn2ZthUB2iFyBi9ZBjhk0WZzB5QRa0IVET61k+eJ+7+/wNoR8wV0lTiqcUD2vwM 1rVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w9NkaYQB; 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 n10-20020ac85a0a000000b003b63cc0efabsi10564082qta.510.2023.03.07.13.32.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Mar 2023 13:32:13 -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=w9NkaYQB; 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 1pZesD-0004js-BB; Tue, 07 Mar 2023 16:29:29 -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 1pZesB-0004i2-GO for qemu-devel@nongnu.org; Tue, 07 Mar 2023 16:29:27 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZes8-0000vq-NJ for qemu-devel@nongnu.org; Tue, 07 Mar 2023 16:29:27 -0500 Received: by mail-wm1-x333.google.com with SMTP id t25-20020a1c7719000000b003eb052cc5ccso5416wmi.4 for ; Tue, 07 Mar 2023 13:29:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678224563; 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=JzvS0ZfKizcL9bVYi9aisZfhh6wOuTp26q2UwdGO7aY=; b=w9NkaYQBAGSG6mPJf00YqCDKu2i1Hlbc2wfgJxK0iqoAW9PVAk9rxLRoPM0Lqto6NC 1aYdSWglNlPPbkoX4SBG492MkHrEbQoBGs5Ygc6KhwaKXqIcTVLdGmMjTyejwuDTsNZZ Fi9YLkKtlHysltOzddcIrE1a/DaslHfGlgLZOEZzkVzpAFKerLs3dktC8WXDduO6ZkwH r99c0cMuhAVsWB8FtOffjXUXOPg33KhQKTpYjiJnVdjS5e6VdAK9DocJp7/maZpn778v qvqSycPOFNbX5hH/CCcT2D5dkl6AYIyHjavfIz3Ak0xEZQuadjRxI6WmoFaQPpmIBGBo yXJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678224563; 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=JzvS0ZfKizcL9bVYi9aisZfhh6wOuTp26q2UwdGO7aY=; b=hOXjiUL5J6d0lMEN2uKkEYx1EW34EKeqMaDP9j94yaT7R6LLwde8O2BVYI5DUnChWq vxUY99QYOAGUE4NIv0wD4zMjDJbQpIOzir+yrBqk8iP0Nw8tcj3cq10tj6hr1ZzleJ+/ fzhbaaVC1UDXkoAqtlaSEqLYUwNGCPmJxqwBmt/GCdVmWa7X8nVsFrDruipc36yntpWJ J5R7h77wsP6VvVkFoPuiVGzwhru3s97TnHTJX6TX7YzeQxP7LEu/TATMdrhTh+M2XbSG e63appyzdKmH5necK/fvBauSg+LFwAWy+IcKRXm7u5/ldMbOgMELlUCKHX+xTNVqJZdv jKKg== X-Gm-Message-State: AO0yUKXNkYt7ZTaFEPAI2uNLcsfnZLrlf3YyPyQKztBMMa5QAn5Ekwsd 49Xxn9qD1gy2eHI6lZ+jeAEY0w== X-Received: by 2002:a05:600c:4fc2:b0:3eb:37ce:4c3e with SMTP id o2-20020a05600c4fc200b003eb37ce4c3emr14535608wmq.16.1678224563326; Tue, 07 Mar 2023 13:29:23 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id b5-20020a05600c150500b003e91b9a92c9sm13798864wmg.24.2023.03.07.13.29.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 13:29:22 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 76C481FFBC; Tue, 7 Mar 2023 21:21:41 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Richard Henderson Subject: [PULL 18/30] gdbstub: fix address type of gdb_set_cpu_pc Date: Tue, 7 Mar 2023 21:21:27 +0000 Message-Id: <20230307212139.883112-19-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::333; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x333.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 The underlying call uses vaddr and the comms API uses unsigned long long which will always fit. We don't need to deal in target_ulong here. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Signed-off-by: Alex Bennée Message-Id: <20230302190846.2593720-19-alex.bennee@linaro.org> Message-Id: <20230303025805.625589-19-richard.henderson@linaro.org> diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c index 7301466ff5..b8aead03bd 100644 --- a/gdbstub/gdbstub.c +++ b/gdbstub/gdbstub.c @@ -535,7 +535,7 @@ static void gdb_process_breakpoint_remove_all(GDBProcess *p) } -static void gdb_set_cpu_pc(target_ulong pc) +static void gdb_set_cpu_pc(vaddr pc) { CPUState *cpu = gdbserver_state.c_cpu; @@ -1290,7 +1290,7 @@ static void handle_file_io(GArray *params, void *user_ctx) static void handle_step(GArray *params, void *user_ctx) { if (params->len) { - gdb_set_cpu_pc((target_ulong)get_param(params, 0)->val_ull); + gdb_set_cpu_pc(get_param(params, 0)->val_ull); } cpu_single_step(gdbserver_state.c_cpu, gdbserver_state.sstep_flags);