From nobody Tue Feb 10 17:14:19 2026 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; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1717413617; cv=none; d=zohomail.com; s=zohoarc; b=IQOg33g4TpM3tlscWJGEZYJJOpn9M2IvR/o1mx6eGjWClaSSuvggPtufwMraVX8Xx8vl9WbajeOeeH5H//6Lue4mbc5zBqaXp/i39mrkB8e1S0+D50Z+VcO/VPfwnpwvqUi8UKQd4YgnlAGGway6ExqZRXCbPtoZuvpBGpVFCEA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1717413617; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=SPVDknq2+BTuhMMVK1D5LD3yvwRgzrMP0W6CSFXWWAk=; b=W+F6jksbWbYosyN7DoS3PrXFgU9srnRpGmVIohIvx5466RmENlAJLpFuVmcTXG3/1dOuFozWszd1Aw0Y/+aWk9eMndgF0bVqUfvW6MrEIbGg0iDhy9s8WqzMs/EsPlyLgbvkxvZwNKSS41X+FqYZA3ICcHE9hbgLPw0vd3fvpOo= 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1717413617460808.4080200309913; Mon, 3 Jun 2024 04:20:17 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sE5hD-0004px-TV; Mon, 03 Jun 2024 07:17:48 -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 1sE5h7-0004YH-H5 for qemu-devel@nongnu.org; Mon, 03 Jun 2024 07:17:41 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sE5gz-0006Fk-8x for qemu-devel@nongnu.org; Mon, 03 Jun 2024 07:17:41 -0400 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1f62217f806so35449695ad.2 for ; Mon, 03 Jun 2024 04:17:32 -0700 (PDT) Received: from toolbox.alistair23.me (2403-580b-97e8-0-82ce-f179-8a79-69f4.ip6.aussiebb.net. [2403:580b:97e8:0:82ce:f179:8a79:69f4]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6323e18c7sm62375435ad.177.2024.06.03.04.17.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 04:17:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717413452; x=1718018252; 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=SPVDknq2+BTuhMMVK1D5LD3yvwRgzrMP0W6CSFXWWAk=; b=WqXr1P0zfAmXf/LlZhR8LhtpJHsLpj53jf8hdgdeC2JMlWlcchUgJ29xRDa75piqkN /tCFn+QaffL5Dln+ar5zXBei2tFFFCnxQ9d3sNi1U6ZAY6T41NNicscjY3n/XAS96iGZ qOmTd7Lqi5RYrJQFTsH6d1ed3xLchmuzBIkle5HmSYXOOUknPy8H2LyP2A4sMCfH1gcd 60JdOxrydJz5MLr+56j1Ae+1R6fdexkykPN4owIv68wHpfO+TbkvPegHYfn3tCG75elm 8sejGFyoyqVjETSeiA8LYHBGZPXQXDKH1CWE40SC5XhHUOS/yXoeNByIAeBgLLk8GVPs klmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717413452; x=1718018252; 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=SPVDknq2+BTuhMMVK1D5LD3yvwRgzrMP0W6CSFXWWAk=; b=Tu/f4CHp/XcVvWrtqwz6pe8q2qyVGKcnz4foebpk3hlXzmSr8KVJGscGg6BXRTsHeb 5h0Xa8PpY66fltPtsNTji6AkmBTnL8gt6U2hMtx3ORtO1QlC3c4tswiekMAHpgdWRegq dI2sSI2dDMVGhpq1o9iwMsgVaEuoqP39HYunwp2YyqXVB6cJAr5weVyBNlgyLCRrcWJt p2+T1XG9o/8mMOrUcp32fsXjd3uPCHK1gmFYG5MRYWoAPvPr3zLC8Lf2useexAOyVQ0L jKGRPXjQc3s697EEJsW9vY6705ihHi5sFg524KuJR8fM3n2XwrZmxcPzCgq0Br5kXT0S khiQ== X-Gm-Message-State: AOJu0YzLhBXUqpNTJgN2PHOM2NVOHMQ3hK7iKuSXIFQSqMrQeMoR6B07 GEAwlnbskPxD/oQC8DmJVpSjxHzAZF8XwbD2TLyD8opQ5tkmOiy6umBN9A== X-Google-Smtp-Source: AGHT+IEDZ/jq8I4QpITLMalpleF8gtBHxBeTLH8NVRIKf9KkSDavmPhbot2Eh3/NLRUL6Mfxz2O1IQ== X-Received: by 2002:a17:902:e5cb:b0:1f6:6cd5:d003 with SMTP id d9443c01a7336-1f66cd5d823mr48930605ad.37.1717413451700; Mon, 03 Jun 2024 04:17:31 -0700 (PDT) From: Alistair Francis X-Google-Original-From: Alistair Francis To: qemu-devel@nongnu.org Cc: alistair23@gmail.com, Jason Chien , Frank Chang , Max Chou , Alistair Francis Subject: [PULL v2 12/27] target/riscv: Relax vector register check in RISCV gdbstub Date: Mon, 3 Jun 2024 21:16:28 +1000 Message-ID: <20240603111643.258712-13-alistair.francis@wdc.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240603111643.258712-1-alistair.francis@wdc.com> References: <20240603111643.258712-1-alistair.francis@wdc.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: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=alistair23@gmail.com; helo=mail-pl1-x62f.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1717413618645100003 Content-Type: text/plain; charset="utf-8" From: Jason Chien In current implementation, the gdbstub allows reading vector registers only if V extension is supported. However, all vector extensions and vector crypto extensions have the vector registers and they all depend on Zve32x. The gdbstub should check for Zve32x instead. Signed-off-by: Jason Chien Reviewed-by: Frank Chang Reviewed-by: Max Chou Message-ID: <20240328022343.6871-4-jason.chien@sifive.com> Signed-off-by: Alistair Francis --- target/riscv/gdbstub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/riscv/gdbstub.c b/target/riscv/gdbstub.c index be7a02cd90..d0cc5762c2 100644 --- a/target/riscv/gdbstub.c +++ b/target/riscv/gdbstub.c @@ -338,7 +338,7 @@ void riscv_cpu_register_gdb_regs_for_features(CPUState = *cs) gdb_find_static_feature("riscv-32bit-fpu.= xml"), 0); } - if (env->misa_ext & RVV) { + if (cpu->cfg.ext_zve32x) { gdb_register_coprocessor(cs, riscv_gdb_get_vector, riscv_gdb_set_vector, ricsv_gen_dynamic_vector_feature(cs, cs->= gdb_num_regs), --=20 2.45.1