From nobody Thu Nov 28 08:50:02 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1693715534; cv=none; d=zohomail.com; s=zohoarc; b=Ikfl55BlV6uY/VUEIQmF/6sL6G05AcGR63TDWo8gXAZ3hCUchOvA/x//Zc63zj/y55+AnZAflTlIEPfkbMl5USdQ8DIUYkPi9lToANExuOky/WepgUO/fVKEYkJNREV1v7BhRzY5GoqNK9GIeVqTR0Ge6jCB9AzEPyV2ZgyrGbk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693715534; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject; bh=f1OoGlAFSrsHe5yxYX+ZMvZlZQ825ETdOqmrQ0CIV6k=; b=mEh6EJ1OG3uDgqW9XQCQExnQNVXWGJMD/g9Mxfc5vK7Qz+/KgOVw2V/SuHqdDLs+jwlbcWdhsNba/B2YtVF8ZSFHXTOXbdQ9Di81XmyCgG8l6tH2+vRRgK3ePg10CC+YV8ZsvUoK8NuFL9yX5rueajHDy6dqtAsEE09ZegRHApM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1693715533936335.0449532340225; Sat, 2 Sep 2023 21:32:13 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qcelp-0002Ch-4n; Sun, 03 Sep 2023 00:31:33 -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 1qcelk-0002Bb-9H for qemu-devel@nongnu.org; Sun, 03 Sep 2023 00:31:28 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0: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 1qceli-0006qH-40 for qemu-devel@nongnu.org; Sun, 03 Sep 2023 00:31:28 -0400 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1bf11b1c7d0so7491685ad.0 for ; Sat, 02 Sep 2023 21:31:25 -0700 (PDT) Received: from alarm.flets-east.jp ([2400:4050:a840:1e00:78d2:b862:10a7:d486]) by smtp.gmail.com with ESMTPSA id iz2-20020a170902ef8200b001bb9f104328sm5295792plb.146.2023.09.02.21.31.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Sep 2023 21:31:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20230601.gappssmtp.com; s=20230601; t=1693715485; x=1694320285; darn=nongnu.org; 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=f1OoGlAFSrsHe5yxYX+ZMvZlZQ825ETdOqmrQ0CIV6k=; b=kA4M3398WlSF5p2S3z6dHSLu+W19S67s9Sj/c15Cooqx4EdWUdXHOC12zULCKXbsyh PExPSTTEYWRJh/8DHD46f5bkOhV3SqLhiPPod05aWrK8F5Dvp/Wop/YQZRNyJTRt6/Fi TSNN53U3MW8ju2BsqP9YW4ybLiEeQhoYCxLUKebUw4EeZ+syuLaJJ4fUM9aipIJCWBPs mwTNze8OCLnLBAbMPsJrXvqs9DezF54rkAkchP1fqDwfAtK+6gRG7/MdctmXmtAiMKCk WTE3IXZ/uvDa0AWtHB7a4JH2Ol6RkVM/e9AnfK/phCWFnekrvdZxlqbL7yQ6i8Zd9Vg/ u8DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693715485; x=1694320285; 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=f1OoGlAFSrsHe5yxYX+ZMvZlZQ825ETdOqmrQ0CIV6k=; b=jzHlHpKekEALbncjmJhnf8p6ygjQ+c0E7UY8e9YDhnQ9Ub4LFbSqbcp+MUa+6vKU91 jOnej/tjo6UQ24DcTRVuLXmvCxUGBFBUbcEzmhsAt+ocD8dYsmjIphTAtksVpM6XkJgs uZ8z6qziR5QKRmkhDnXZOmmKNyK7+Ug3bjZeTai2QeYvddPC9aYCD0jS4kA15kE1AWbK oQbqXey1lYaaP+W/bxAlUmQUBbC4QMzmFGGV2frSNFUL2cGYphyt7Fw4YojvSzkuLdAn 6CGGkJZF1+K9ldnrdsStr/Udixpm6JCBe79FesKQZpTKQUVyLxuU9P0zyi6scyr57Fz1 VLlA== X-Gm-Message-State: AOJu0YzKUk19usVJ4m6X5wITlDElMLkq/Rt0RrxdU+tsz/w3Z2uVVYvX BIA2uv+CeCGEyQNk2ZaXD9CRYg== X-Google-Smtp-Source: AGHT+IGdm0kRAJURqufTgnNRidPox8bHlYkKt/8voSC1xGfWCJaCI3aeIWpP1XeXTFJk5XvdAstKBQ== X-Received: by 2002:a17:902:d2c5:b0:1c2:193e:1126 with SMTP id n5-20020a170902d2c500b001c2193e1126mr8068868plc.28.1693715484818; Sat, 02 Sep 2023 21:31:24 -0700 (PDT) From: Akihiko Odaki To: Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Mikhail Tyutin , Aleksandr Anenkov , qemu-devel@nongnu.org, Akihiko Odaki , Richard Henderson , Peter Maydell , qemu-arm@nongnu.org (open list:ARM TCG CPUs) Subject: [PATCH 3/8] target/arm: Move the reference to arm-core.xml Date: Sun, 3 Sep 2023 13:30:13 +0900 Message-ID: <20230903043030.20708-4-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230903043030.20708-1-akihiko.odaki@daynix.com> References: <20230903043030.20708-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::636; envelope-from=akihiko.odaki@daynix.com; helo=mail-pl1-x636.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @daynix-com.20230601.gappssmtp.com) X-ZM-MESSAGEID: 1693715535874100005 Content-Type: text/plain; charset="utf-8" Some subclasses overwrite gdb_core_xml_file member but others don't. Always initialize the member in the subclasses for consistency. This especially helps for AArch64; in a following change, the file specified by gdb_core_xml_file is always looked up even if it's going to be overwritten later. Looking up arm-core.xml results in an error as it will not be embedded in the AArch64 build. Signed-off-by: Akihiko Odaki Reviewed-by: Richard Henderson --- target/arm/cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 93c28d50e5..d71a162070 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -2354,7 +2354,6 @@ static void arm_cpu_class_init(ObjectClass *oc, void = *data) cc->sysemu_ops =3D &arm_sysemu_ops; #endif cc->gdb_num_core_regs =3D 26; - cc->gdb_core_xml_file =3D "arm-core.xml"; cc->gdb_arch_name =3D arm_gdb_arch_name; cc->gdb_get_dynamic_xml =3D arm_gdb_get_dynamic_xml; cc->gdb_stop_before_watchpoint =3D true; @@ -2376,8 +2375,10 @@ static void arm_cpu_instance_init(Object *obj) static void cpu_register_class_init(ObjectClass *oc, void *data) { ARMCPUClass *acc =3D ARM_CPU_CLASS(oc); + CPUClass *cc =3D CPU_CLASS(acc); =20 acc->info =3D data; + cc->gdb_core_xml_file =3D "arm-core.xml"; } =20 void arm_cpu_register(const ARMCPUInfo *info) --=20 2.42.0