From patchwork Fri Aug 5 19:55:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 595517 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:b345:0:0:0:0 with SMTP id w5csp1562835maz; Fri, 5 Aug 2022 13:02:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR5WvfpRHiD7s9+6oO9BHPt7Od0u8Lzqx12lKsv7fBUKh/8iZRs7DhytQ2Fj0aur+p2VWSpN X-Received: by 2002:a37:dc46:0:b0:6b6:3757:f376 with SMTP id v67-20020a37dc46000000b006b63757f376mr6486262qki.543.1659729720879; Fri, 05 Aug 2022 13:02:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659729720; cv=none; d=google.com; s=arc-20160816; b=yJHGlwvyW2RYKv4WHDeAMyiRilEcjJo3aqd47H3LPsQzrs2FP/D69hdw/kPHe3dxaS XVYpCOQ0cHH0Xfq07Huwm7Gmv4ye7dg6ii7WY2kEXGD5ZPjAbCpaVz6FAROHdwkZTiMZ rq0vdsBHV140Vk9uB+ZrggbKNkK7SRNAvOxx+06b5r2ihyJdvW0ju/XPNoWoGeCitfYZ NtZh6E/y51WXksk4QwlFBTVqvOr1Xx4zJRCXjHZVCxsbSUHGwFcYxo7xEwAw2ur52Eda IdSWEqobfBMtpgBbRhzMadP7xYmcYNXrqDUhGvuhl1J2jFawUei4NH2Uf07w1EjUcDaW XBmg== 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=GXhVqFyj2uRqAwlXF7c/Ivc+Hg/JsHzuWch+Fk+p75k=; b=AryDUj9DQghlqpBdmAIXFrk9wB+p3++tR8ZUuJ8LOdyjMu0KObIJDuTNlGNrJ5QumF GGC/6dBV0kPiMAmtdI2YwtZ0bB2lNzkzwzVavOf+y+Y5EpjAF55wOWv0LLKxNSsmHEwD c1VeJm1ciat5dloNBncLTLl/pjsELHwcE4JwRaY8/t8YtzYjeOXYgqnSj47wlXkrZLra Oyua9kKW1nAtvyWWRumFI6uqQ9X/fQNFGUv80uIyy0gRNrrOCytp2BD+l0h+0SKKxznv 29NL88JcdZBGLbjroIyV0GAf0ALNZIYtC+loR0QpJihD6zLN8G/gzwozVH8P8+lQGO5G d4Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EBGvIJfA; 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 s22-20020a05620a0bd600b006b8fa9a52d6si3386730qki.67.2022.08.05.13.02.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Aug 2022 13:02:00 -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=EBGvIJfA; 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]:49386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oK3WC-0008ED-Gg for patch@linaro.org; Fri, 05 Aug 2022 16:02:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oK3Pq-0006ay-Si for qemu-devel@nongnu.org; Fri, 05 Aug 2022 15:55:26 -0400 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]:42789) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oK3Po-0004WL-8l for qemu-devel@nongnu.org; Fri, 05 Aug 2022 15:55:26 -0400 Received: by mail-pj1-x1032.google.com with SMTP id d65-20020a17090a6f4700b001f303a97b14so3856495pjk.1 for ; Fri, 05 Aug 2022 12:55:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GXhVqFyj2uRqAwlXF7c/Ivc+Hg/JsHzuWch+Fk+p75k=; b=EBGvIJfA5Gyfc+E07cUyhypCHOY9RQOGqe3CrVFR855uUXSgeU94U9Tbai2TloGVP/ K6wA5lZ6S+IeqlUe6TdLDQi0MGuZcbWwmbSZPmFQVCXq5julbuxqa94Yci+LTebphWW0 0zCrbO/YsGL2bT4nZTaytu7FFTYwRd+TB99B0Fh5AM3QutoeSJ5OyUgaoxsRqeFxhlQu RgPYDeZHiudGlj1sRnU8hRJLY9RPekpvWLd6gRWb/LZ/e7ZzaP7bGA57a1VnStbe5cWj SEOT8tHEMezDIlgiFQCJk04VYzuGUa1m8r3v4j6p6zGswLNlH9UOVzIKcmMWL1GV4PLs Ocfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GXhVqFyj2uRqAwlXF7c/Ivc+Hg/JsHzuWch+Fk+p75k=; b=0akCeIOe1CSkvjchbUWHDo81hrQFcBFg/tlJYznqDpeSfmQUcaY8esiQu62+QeghsO x5F3CkakixKvGeBE/8Ux3lJBqUf8gY0Lu1hFBnXcYHJJUfVLJ0wAOw4BWDsbQsnWeE6W jt4r1tdxOOQ1Pqb2ZA1ioIFcwsMFGNR7I7q8adNjTI/WK8C8LTavI9yHSfN/6ESZHLlw SUg4L07JEx+Hs8xdUI58/3tfKOdUfta+HDkQ0QEnyG+liEwFnrHRJ+pYTOUUH5WJdHmY Ao0hijvYPhzgCYryluxY5OWyrqbSCpfb7Ddy4sSKYkTMHEL/U4Ill9lir+luAiAp/LJQ p+Wg== X-Gm-Message-State: ACgBeo1yKFTpe/pZspDhYQpAUoCi/3gsGbXPImhCUs9LubHacqGBtRfb xMEFTazi0WrpBf4SgnEK1Jm3BYBC08jt1Q== X-Received: by 2002:a17:902:8f91:b0:16c:151d:3e1b with SMTP id z17-20020a1709028f9100b0016c151d3e1bmr7976125plo.37.1659729322842; Fri, 05 Aug 2022 12:55:22 -0700 (PDT) Received: from stoup.. ([2602:ae:154e:e201:abf8:e436:f4c:9089]) by smtp.gmail.com with ESMTPSA id h13-20020a170902f70d00b0016f0c2ea158sm3393048plo.157.2022.08.05.12.55.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 12:55:22 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Song Gao , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PULL 4/7] target/loongarch: add gdb_arch_name() Date: Fri, 5 Aug 2022 12:55:12 -0700 Message-Id: <20220805195515.349768-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220805195515.349768-1-richard.henderson@linaro.org> References: <20220805195515.349768-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1032.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, T_SCC_BODY_TEXT_LINE=-0.01 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" From: Song Gao Matches bfd/cpu-loongarch.c, bfd_loongarch_arch. Reviewed-by: Richard Henderson Signed-off-by: Song Gao Acked-by: Alex Bennée Message-Id: <20220805033523.1416837-3-gaosong@loongson.cn> --- target/loongarch/cpu.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/target/loongarch/cpu.c b/target/loongarch/cpu.c index d84ec38cf7..941e2772bc 100644 --- a/target/loongarch/cpu.c +++ b/target/loongarch/cpu.c @@ -661,6 +661,11 @@ static const struct SysemuCPUOps loongarch_sysemu_ops = { }; #endif +static gchar *loongarch_gdb_arch_name(CPUState *cs) +{ + return g_strdup("loongarch64"); +} + static void loongarch_cpu_class_init(ObjectClass *c, void *data) { LoongArchCPUClass *lacc = LOONGARCH_CPU_CLASS(c); @@ -686,6 +691,7 @@ static void loongarch_cpu_class_init(ObjectClass *c, void *data) cc->gdb_num_core_regs = 35; cc->gdb_core_xml_file = "loongarch-base64.xml"; cc->gdb_stop_before_watchpoint = true; + cc->gdb_arch_name = loongarch_gdb_arch_name; #ifdef CONFIG_TCG cc->tcg_ops = &loongarch_tcg_ops;