From patchwork Fri Aug 5 19:55:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 595515 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:b345:0:0:0:0 with SMTP id w5csp1560824maz; Fri, 5 Aug 2022 12:59:03 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Aeh08HbtQKmx4zHOr70P2TPvA4ndk1qOKlNFi1ptcTRs3y8MEksaXuidCEfSlr9HYJzCN X-Received: by 2002:ac8:5c46:0:b0:31f:2135:17c3 with SMTP id j6-20020ac85c46000000b0031f213517c3mr7045890qtj.281.1659729543607; Fri, 05 Aug 2022 12:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659729543; cv=none; d=google.com; s=arc-20160816; b=eIuLAgG5xLSB9R+ze4hlpk2Zo75xbrS1NbHkw8GB24o9UNltNr2sokNDt1OqtsLEI9 0yKtTvWIOR0jERGPRalBbNce7dU6J6tQ83zBbY4N+Ee52VxbaBpfTw6XlrcQMGcpDy2A wnJarNIWpmL4iVSQ09cbUty1AZ0zuh8s6kC/v/JFPSVBsvkPIMa8yGPscH3Ea4hrsIHq IOSU9u8Sk1kkO+mU6fOvOhPKHMItYHzaOjsyiTErv1aCt9mTPeSf+26b+2YEMnrOOj0E t+Ei3U9k906PwO4njQkczCddmpY9Wr6jqj/2PnB5PisLQL3zcSoPjum3i5KzaRMMdM2b wqXw== 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=oZUb/U1CrEMY4E4q2fV4JdxPwe4neVYstLVzHAJ5JHM=; b=h1rqA3x/7VTb3Sy+15Ycfw5zEvLF/Tv1hR5727KE8Zmx73Fdeq0kj61s12JFAHMl0t EFlOGqDOz7uYmkRt1IzTSG0hKvAs3POStDwKrh/eOlKYtoE2DyDOZwVMSTOVPnwr/UwK OunROU6RJ428hmYq4EcW703V4tglOtnI5vsKOy/9/vbi29BwoDhNg2RZXfBgV6jIXCOX uJud39tgLifgCdW/c7qo6aHRZENBrIYv3ydYBroAPe+4ewQaTmEeUk8wAvLl01/+BKMw 1uDbCCI7+P2KUY+1073rfY41u643/GB7N/c2iTGstC6btJCraz4C9Ww4tyuc9yQVQm5d bR6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mX9uQ+L3; 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 h8-20020ac846c8000000b00317e856bce7si2611404qto.362.2022.08.05.12.59.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Aug 2022 12:59:03 -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=mX9uQ+L3; 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]:43310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oK3TL-0003Xx-75 for patch@linaro.org; Fri, 05 Aug 2022 15:59:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oK3Pt-0006gc-2M for qemu-devel@nongnu.org; Fri, 05 Aug 2022 15:55:29 -0400 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]:46850) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oK3Pq-0004Ve-28 for qemu-devel@nongnu.org; Fri, 05 Aug 2022 15:55:28 -0400 Received: by mail-pj1-x1029.google.com with SMTP id q7-20020a17090a7a8700b001f300db8677so3811091pjf.5 for ; Fri, 05 Aug 2022 12:55:25 -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=oZUb/U1CrEMY4E4q2fV4JdxPwe4neVYstLVzHAJ5JHM=; b=mX9uQ+L35vVf9OC+8vUO17Y1DYJi8uWqJf1UD/OaDCwlbLdQMPbpndMaQ/sSM3kg8a FU6QgOpA+MVAkkobDnagHKDIXL8tkQhC8hWlWSSRnfgS57narJAxb+Mos3BYK3MzQFHN xFp1tnaXZpO6i1N4AWCyedQXWwmYogLfS4CuYmfPQNb3e1axxNqIYfKxUSNN5VzofKgw JCpTLsU+vIqfunmAbvu2qk7zEc4qgygXB+twYTdM44e38iU+eIxMBt3KEw8UfKpvMvsK 7mFCl0GUXM711aBmhdIHJe7j4pOBUF7JmuKA0Ff5bhJWe7/kgxV5+YlfmGgrO67XF4Pm J2aw== 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=oZUb/U1CrEMY4E4q2fV4JdxPwe4neVYstLVzHAJ5JHM=; b=z0sIlyeJDpLVyZi+ypABocr3dYwWe1/Z8AqAJMyP26qSoHXIPJ9wE3gV3u5KNma312 eJvIZx2b8nQV6Qg5NNmv36y7c6m0HbGCuQytRQOEk0Q4KaDildad9CNISRhXqneFwa9v 35wgY09L5vC+c1Wnwq/3CQdzVEZSad93eebLI8Y9E48vUoar21hGZ2wVsfAMHNkENWTZ hTGO605PUAIXgKtEVQGcZkwTDnmnQpXros3duhsfzxZKwW0VcOVnPNp76Jpg7dVJLYKH 1uFDItXS+iZ+IRqHPFLpXxYTqnxZx0o1Ae6HjwVZglcyhJzzu03dk2m0KzsQVcfj+eY5 1Ucg== X-Gm-Message-State: ACgBeo1jy1I+lZ7t+6tTjEAdEgAOBloFqjxdNUB8KyDvzq5NuWXJ471T Tua5PSDvbwW/WZT62vg4NGgYNLREEATqmg== X-Received: by 2002:a17:902:f68d:b0:16f:2314:7483 with SMTP id l13-20020a170902f68d00b0016f23147483mr8329770plg.18.1659729325282; Fri, 05 Aug 2022 12:55:25 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 12:55:24 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Song Gao , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PULL 6/7] target/loongarch: Update loongarch-fpu.xml Date: Fri, 5 Aug 2022 12:55:14 -0700 Message-Id: <20220805195515.349768-7-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::1029; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1029.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 Rename loongarch-fpu64.xml to loongarch-fpu.xml and update loongarch-fpu.xml to match upstream GDB [1] [1]:https://github.com/bminor/binutils-gdb/blob/master/gdb/features/loongarch/fpu.xml Signed-off-by: Song Gao Reviewed-by: Richard Henderson Acked-by: Alex Bennée Message-Id: <20220805033523.1416837-5-gaosong@loongson.cn> --- configs/targets/loongarch64-softmmu.mak | 2 +- target/loongarch/gdbstub.c | 2 +- gdb-xml/loongarch-fpu.xml | 50 ++++++++++++++++++++++ gdb-xml/loongarch-fpu64.xml | 57 ------------------------- 4 files changed, 52 insertions(+), 59 deletions(-) create mode 100644 gdb-xml/loongarch-fpu.xml delete mode 100644 gdb-xml/loongarch-fpu64.xml diff --git a/configs/targets/loongarch64-softmmu.mak b/configs/targets/loongarch64-softmmu.mak index 483474ba93..9abc99056f 100644 --- a/configs/targets/loongarch64-softmmu.mak +++ b/configs/targets/loongarch64-softmmu.mak @@ -1,5 +1,5 @@ TARGET_ARCH=loongarch64 TARGET_BASE_ARCH=loongarch TARGET_SUPPORTS_MTTCG=y -TARGET_XML_FILES= gdb-xml/loongarch-base64.xml gdb-xml/loongarch-fpu64.xml +TARGET_XML_FILES= gdb-xml/loongarch-base64.xml gdb-xml/loongarch-fpu.xml TARGET_NEED_FDT=y diff --git a/target/loongarch/gdbstub.c b/target/loongarch/gdbstub.c index 5feb43445f..d3a5e404b0 100644 --- a/target/loongarch/gdbstub.c +++ b/target/loongarch/gdbstub.c @@ -80,5 +80,5 @@ static int loongarch_gdb_set_fpu(CPULoongArchState *env, void loongarch_cpu_register_gdb_regs_for_features(CPUState *cs) { gdb_register_coprocessor(cs, loongarch_gdb_get_fpu, loongarch_gdb_set_fpu, - 41, "loongarch-fpu64.xml", 0); + 41, "loongarch-fpu.xml", 0); } diff --git a/gdb-xml/loongarch-fpu.xml b/gdb-xml/loongarch-fpu.xml new file mode 100644 index 0000000000..78e42cf5dd --- /dev/null +++ b/gdb-xml/loongarch-fpu.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gdb-xml/loongarch-fpu64.xml b/gdb-xml/loongarch-fpu64.xml deleted file mode 100644 index e52cf89fbc..0000000000 --- a/gdb-xml/loongarch-fpu64.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -