From patchwork Fri Aug 18 10:34:23 2023 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: 714633 Delivered-To: patch@linaro.org Received: by 2002:a5d:484e:0:b0:317:ecd7:513f with SMTP id n14csp523789wrs; Fri, 18 Aug 2023 07:13:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHGqzv3aL9rJyxZAsq6ptdC8Kq2W+Y1C7PDT9YQ895TkXY0Id09uhPt9MfH8dmF2BhSIAJZ X-Received: by 2002:a05:6808:4e:b0:3a7:4c81:875d with SMTP id v14-20020a056808004e00b003a74c81875dmr2927652oic.25.1692367986472; Fri, 18 Aug 2023 07:13:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692367986; cv=none; d=google.com; s=arc-20160816; b=JnvM1hS2Pr0yd6XAltW1l6rjoJitQoKeDuZl/8pBcSFPJYLgqGgbB1bBZscb+mq0RU wyCkRJFVA3aHNexV54w7TGSQ7XA+BsgjfxrDvIcgbiQ780dMCbaB6Kuh2aVV1cNvEPBW XjF6P9UaFj2ihTyjS+zvzD5fDMToUfQOiksV2awo6p5KivQYRxff4VaWxiTnUqruZhhu RB8SmrA8TIXvsPPKLX5lY0pjdTD6/FLfhexbSvvkp+UrMTGpSRscol2fjkJyV19hBt1u csPpaaGkhlOehGcwCq8Lz1oHBtFWCRMyu4pHVgfKMDY1Nzee2ysU1lXxy+3EURU/ZKLI t06Q== 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=ymM53Ev0232IoCe+uLOGROzpIIU7OjxGy8keEyXRRBo=; fh=BVT+wNaEQ6DYU2fJ+3RLrSAfhPFgaPFe1wC3+pPOUB8=; b=nW05u7Ix/I+WhmH63uiHucbZIIcfG0hQIsWI7YPczwzT70CsfX2pIYfgQe1gtoOS6T KmVgBvXshxLTf0lbYwxaASoxNzd1o+ISgXy7k5TWQ5HejjIod8g7E3vQ7usRugqpZDAG 0Ja5HOGEAKwCKW8YFwuVmpSV2f8luZ7wf6IrvhKNSnpC6ZHyP/tZNPuBrwq70Lmf02po 8iNJQaSzQN9kOt66dE6BquZDVgPLZ/RzkD9ok0upnm0aaHoqFDGZZdmEw5IVG21hboIo DpLJiK/EqnjnBMb2z0VzSZW8tOVLFcvqUhbdT/TA+rtg0AhF9cy6S7iFnBQYG7uLXTqt ljpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xLu7PcdH; 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 p6-20020a0ccb86000000b0064730f53eeesi1285152qvk.21.2023.08.18.07.13.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Aug 2023 07:13:06 -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=xLu7PcdH; 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 1qX05u-000528-5w; Fri, 18 Aug 2023 10:04:54 -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 1qWwoY-0006Mi-Vo for qemu-devel@nongnu.org; Fri, 18 Aug 2023 06:34:48 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qWwoV-0002xA-Q2 for qemu-devel@nongnu.org; Fri, 18 Aug 2023 06:34:46 -0400 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3fe24dd8898so7235045e9.2 for ; Fri, 18 Aug 2023 03:34:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692354882; x=1692959682; 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=ymM53Ev0232IoCe+uLOGROzpIIU7OjxGy8keEyXRRBo=; b=xLu7PcdHMfuNwzZ0Mzv4tNdHLkrl5YILGI4QzYlzjaEJL8Tfgiu8wtGI51WoFQF0eW 35/8Gyag7jrFo8ArapSj7PrZCiTcxcqrSAnNI0bdPzn9J4RoizUO7l1ZiF63WKw4yOr4 c7YblFlFyr1RPNxgIsrNUZ1/3cYuKEnu58DpJXJg/x7dKapPgnVdQGSYt8eibgR5WM2r W2ROSmWozRZyuDu1swDDdE4v6w/eTTOlU8kkeq7egcZhDdx+8O70y6fPjPmtP5D+zeur ceAH8UsCS+ySDa8K9T7yo+1zUmS+K+f70jd6R22zxIZxoGolWXg2dfpM7xgaldaEkJ0Q +36w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692354882; x=1692959682; 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=ymM53Ev0232IoCe+uLOGROzpIIU7OjxGy8keEyXRRBo=; b=cuIxGkPjTfnR0D2PWx5IiL1gbruFgM6DQBJC5FabLJsrOFwAwTre5Y6VWUgksx3KCd FQ616Lh1bxR+MzWAqmdjuBQB+GDFuwZrr9U9CCQIgvx5q9TDe8HUKVkwpQ0xGstIL22o Ulbk0uYQFYxIhWazruY5kOdzYVjpTzoK4xtD9rmqHnRVCQ2MBH9mKgb5j8oGHJMLp0Al RqFVW2+Uh3l5LtbNEUWgyieZiKCfFNvaKvokyjGQilH9BOBqYe3aDKw4il6w5lXU+uBM rQ7Igp3/8hirWakD+q+NjIzUcHc/0m6IReJ+XNMV4ZX3tg9dmc9zgu37gv6w2TkCPYbv LL9A== X-Gm-Message-State: AOJu0YzlNztxKhhksU3Bj/G8tsQdH9dcSXAF5ay8EJTfCtgfZa9FLrez K8YIdjVk6RheOgMz+NFIeqw+T1U1NK7HT+xijDs= X-Received: by 2002:a05:600c:28f:b0:3fe:26bf:6605 with SMTP id 15-20020a05600c028f00b003fe26bf6605mr1700877wmk.26.1692354882279; Fri, 18 Aug 2023 03:34:42 -0700 (PDT) Received: from localhost.localdomain ([92.88.170.41]) by smtp.gmail.com with ESMTPSA id l11-20020a1c790b000000b003fbca942499sm5762728wme.14.2023.08.18.03.34.41 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 18 Aug 2023 03:34:41 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Huacai Chen , Song Gao , Xiaojuan Yang , Jiajie Chen , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 2/4] target/loongarch: Remove duplicated disas_set_info assignment Date: Fri, 18 Aug 2023 12:34:23 +0200 Message-ID: <20230818103425.16271-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230818103425.16271-1-philmd@linaro.org> References: <20230818103425.16271-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=philmd@linaro.org; helo=mail-wm1-x331.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 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 --- 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;