From patchwork Thu Aug 24 09:23:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: gaosong X-Patchwork-Id: 716503 Delivered-To: patch@linaro.org Received: by 2002:adf:f747:0:b0:317:ecd7:513f with SMTP id z7csp1234546wrp; Thu, 24 Aug 2023 02:25:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHedMM2IaF5hom5rQkMvQQjO9St1ZYfMkaBWjDJOEg96cojmtds6UJV7RkDPwGXsXM9mwDr X-Received: by 2002:a05:6214:ac9:b0:64a:a902:2c2d with SMTP id g9-20020a0562140ac900b0064aa9022c2dmr20778251qvi.60.1692869119209; Thu, 24 Aug 2023 02:25:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692869119; cv=none; d=google.com; s=arc-20160816; b=iiY9vaaWhtZ61qz+TrT7XQCimScpALZe3nqlVyH3utFkcC4HuzhVefPcR+ahsYrFzZ phlQ5NAMjQv3TyUXMNzjEVDQK667F1eHM6r0KCchVfPe8nyfCKD89IyZiz0plOaRvON1 IkFjmkUGzFgw+ZedE6l+UUT1k4oaVKmVx3OzNipzfmciFTPcXU6TWj77dz438tzMTSH/ bPR9o3HVAl+ojIMlQ2nFxCYuQ3LT49CKYmJnlyd0gQtzlS9Qi9V6BHIt3K/gwRm4e3VG x9sb4E8W4DWOd+98WofYMlN2ryHKoTLs3x7YUBzCLHroP2iSVOYpj7NWJXY+DPrOMFWi jKIg== 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; bh=KxoHVjFYNlO21WdPmweLjOJjAeIzGPvfjsFe0d+M7rA=; fh=64Br0Hu6lV8heewipdJI9p0HjLAy9hStM6+wPm6jfNs=; b=GZC5LLsMXbKXp/QJ8wSJvi1vcMxt4iSVSWNVpOAqJX4htaKDFdkt1PYPgx2kgWY6Er 6I5wgHfFNqnFtsGapOCHmyb99otQIdsBA6grP5QgJianPNpNAKo9LiayKnl4GwVqJmWV yV47AYQZMXWjnAzAT7BZgZtCovLlgHflAxg5x+TJ0zvF4FV3/09bCfp7631nTmHJFNrP 1q2Gd3H9BmlpKWRY/k3o5WZr5wRBtqJh96WawESnM+5E7EXyIP2zV9BPjt+nBJZPv2Lh JHHCjj2+2meWD2FLDoJmlGMXPR0NjL0+2Wn2zjzQwGHasYCzFKxdSqBdhlKPTf8GhNS0 aCjg== ARC-Authentication-Results: i=1; mx.google.com; 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" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id z6-20020a0cf006000000b006364e5ef23csi3231625qvk.453.2023.08.24.02.25.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Aug 2023 02:25:19 -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; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZ6Zr-0003Xj-MS; Thu, 24 Aug 2023 05:24:31 -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 1qZ6Zn-0003J6-QU for qemu-devel@nongnu.org; Thu, 24 Aug 2023 05:24:27 -0400 Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZ6Zj-0003Kl-UE for qemu-devel@nongnu.org; Thu, 24 Aug 2023 05:24:27 -0400 Received: from loongson.cn (unknown [10.2.5.185]) by gateway (Coremail) with SMTP id _____8Dxl+i+IedkL3kbAA--.19962S3; Thu, 24 Aug 2023 17:24:14 +0800 (CST) Received: from localhost.localdomain (unknown [10.2.5.185]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxJ826IedkJjhiAA--.40637S4; Thu, 24 Aug 2023 17:24:14 +0800 (CST) From: Song Gao To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, richard.henderson@linaro.org, =?utf-8?q?Philippe_Ma?= =?utf-8?q?thieu-Daud=C3=A9?= Subject: [PULL 02/31] target/loongarch: Remove duplicated disas_set_info assignment Date: Thu, 24 Aug 2023 17:23:40 +0800 Message-Id: <20230824092409.1492470-3-gaosong@loongson.cn> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230824092409.1492470-1-gaosong@loongson.cn> References: <20230824092409.1492470-1-gaosong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8DxJ826IedkJjhiAA--.40637S4 X-CM-SenderInfo: 5jdr20tqj6z05rqj20fqof0/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== Received-SPF: pass client-ip=114.242.206.163; envelope-from=gaosong@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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: Philippe Mathieu-Daudé Commit 228021f05e ("target/loongarch: Add core definition") sets disas_set_info to loongarch_cpu_disas_set_info. Probably due to a failed git-rebase, commit ca61e75071 ("target/loongarch: Add gdb support") also sets it to the same value. Remove the duplication. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Reviewed-by: Song Gao Message-Id: <20230821125959.28666-3-philmd@linaro.org> Signed-off-by: Song Gao --- target/loongarch/cpu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/target/loongarch/cpu.c b/target/loongarch/cpu.c index 7107968699..dc617be36f 100644 --- a/target/loongarch/cpu.c +++ b/target/loongarch/cpu.c @@ -723,7 +723,6 @@ static void loongarch_cpu_class_init(ObjectClass *c, void *data) cc->disas_set_info = loongarch_cpu_disas_set_info; cc->gdb_read_register = loongarch_cpu_gdb_read_register; cc->gdb_write_register = loongarch_cpu_gdb_write_register; - cc->disas_set_info = loongarch_cpu_disas_set_info; cc->gdb_num_core_regs = 35; cc->gdb_core_xml_file = "loongarch-base64.xml"; cc->gdb_stop_before_watchpoint = true;