From patchwork Fri Aug 18 17:20:10 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: 714677 Delivered-To: patch@linaro.org Received: by 2002:a5d:484e:0:b0:317:ecd7:513f with SMTP id n14csp632332wrs; Fri, 18 Aug 2023 10:21:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFWLRIAiSENuHyP/3EzoSDBeSoHEiXb+gxupslFw4A1nVNdWj5ECk2XeDUKbW7WjGfdlFbM X-Received: by 2002:a05:6870:1603:b0:1bb:b025:3e87 with SMTP id b3-20020a056870160300b001bbb0253e87mr3748233oae.58.1692379267431; Fri, 18 Aug 2023 10:21:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692379267; cv=none; d=google.com; s=arc-20160816; b=a8qaVtzcJnzvHr08UL7qJwTXNLPmt27vW4Q5pfcLqzQ5Mknu47xMUc/vUJNyo2cBMv gZ+hwFQcm31jq2l3JHiwub4dMoANgQavatmiOuGwrrbficcYfTlvhRku3dhDQhvpXXZn 9y6qdEJLC020WK3zJeeTEyHM3am8mwQVbtlQoPisDzRku8GdMHahUpN9s9csL8jdpn1k +FSatRDQj9Rbc400N1vobeO8AGTQZonIiSLVc1+vAxkmNHyqITcOs3MHapTax+MpRWiK L0ts5IWtk/Z/X2Sxd6mDd8khuc7h+nEh54GvcF3lgADYpicK8GnQQRoVkm+hERviZXVp z4pQ== 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=KDDiUObgQlqnPEjumWcjcKFBdygOD4fC1QpRcXk6j3k=; fh=r/JHKP8J9R2uTR7nHOCSLBWmfdDcyFCnoeAYTYM6zJY=; b=oKdzxE2k/TuyXzX2QjfIPLnhK057PRWmhO07FcOzkJRt4VxbM1pNAzOz0ww6y9sx0a JYRGr7GCmPSBzQTp4KKZArqNI9H/8bUvUrxHoZ8ENHph2sxkSYgpTuO9HvrLuvYQfxXh QCTznjyWvipmQ1PFRn3rXgrufhsJsLuweQk7HhpFjOC1x0l/8dj3agN07JQ1AvOYckYM Oo+ER69rdxVfZIr4k0Nxp1S1oNe+2cRpeHoL/xyU4i0TyDm06pvGSDfeIt/cekE2RUQ/ 2afO5fUCj7HA3J9cW8c5VHuZ0Yv+MfAAvOaASQxKupZZ6+fh6tlFxN0i7yGwIfZ5BTb7 yviA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tApuWAVl; 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 b2-20020a0c9b02000000b0062576870bd1si1022879qve.498.2023.08.18.10.21.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Aug 2023 10:21:07 -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=tApuWAVl; 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 1qX39V-0004Zk-6k; Fri, 18 Aug 2023 13:20:51 -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 1qX39H-0004N9-3P for qemu-devel@nongnu.org; Fri, 18 Aug 2023 13:20:36 -0400 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qX39E-0001oh-Ul for qemu-devel@nongnu.org; Fri, 18 Aug 2023 13:20:34 -0400 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-991c786369cso150621966b.1 for ; Fri, 18 Aug 2023 10:20:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692379231; x=1692984031; 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=KDDiUObgQlqnPEjumWcjcKFBdygOD4fC1QpRcXk6j3k=; b=tApuWAVlN1MtgISqy2WC8FafcdIJ9bADz/SLym8mhNl5XlTKnOFBQiEQB//eg5uTXe khfYNw7iCnk1mFmoHZRzxNp1HRg6zIAba3debOO2YwFsYwBgL6TAFP7ZCjv0MYj5rLcc RGJp8dD8DZaqiDxzAKH5IA05zYOIkkDv8qzXSPIvcpSXHBc2zesXmFHRzPkDsWWRxcxw zCaecx6qeRwVghCleb/T8GiMR6t9cD+Oy6j+qjX96w1VTKHzeRi9k+JzVgaPOhRLaS/K Dn6Jewi/xNiSn7Z0ZNVxoHUX76GSNs1eIgD0csMA0jXvaR1GqO2WFG960HHcFBTtcNOn T6jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692379231; x=1692984031; 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=KDDiUObgQlqnPEjumWcjcKFBdygOD4fC1QpRcXk6j3k=; b=UFKOqacEd6T+lu51sJjMwrS3F82zRPP8r/4ChDq3NttfxU96Q+tnXB+7tXzxf4UA/n vMkitbTQ2KbDBRxA1Z289CL9Y4Cfgz0oSbnPrr+ewrQ7KNBZArvux1lFFZh462LoRC8m WetW6qRY8u9xzeK9CBhAbrddFcQRhyq1yi59lejbXY0xXN+HpWfb8S8SIec3nFhZ8Dzr /xDeQKg4I2c2fmmOmLKTHWoodvtrq7OWmXDXQe1GXHAyDW8jBQcLgOhNVOkAq8gSQMD5 TZjHBLqARFTtJQI4A0oK8danxaqQ1n2deA3MAtJ+XaLStblSkkavuckGLsB6u33hdZQC +0Ow== X-Gm-Message-State: AOJu0Yw5Lb859ItVhFlLzIQA2zrUTZKuCBaZw7xBgwPXZheMU07jlO8+ g39HI8cjNP0y8z7n6VkKcXwMmEYI5j/nUbfL3YY= X-Received: by 2002:a17:906:9bf6:b0:99c:e3b6:eafe with SMTP id de54-20020a1709069bf600b0099ce3b6eafemr2428252ejc.64.1692379231077; Fri, 18 Aug 2023 10:20:31 -0700 (PDT) Received: from m1x-phil.lan (cnf78-h01-176-184-27-79.dsl.sta.abo.bbox.fr. [176.184.27.79]) by smtp.gmail.com with ESMTPSA id c17-20020a1709060fd100b0098ce63e36e9sm1444269ejk.16.2023.08.18.10.20.29 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 18 Aug 2023 10:20:30 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Huacai Chen , Xiaojuan Yang , =?utf-8?q?Alex_Benn=C3=A9e?= , Jiajie Chen , Song Gao , Richard Henderson Subject: [PATCH v2 2/8] target/loongarch: Remove duplicated disas_set_info assignment Date: Fri, 18 Aug 2023 19:20:10 +0200 Message-ID: <20230818172016.24504-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230818172016.24504-1-philmd@linaro.org> References: <20230818172016.24504-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::636; envelope-from=philmd@linaro.org; helo=mail-ej1-x636.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 Reviewed-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;