Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 35889CD8CB9 for ; Wed, 10 Jun 2026 11:50:56 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wXHSG-0002Gv-En; Wed, 10 Jun 2026 07:50:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wXHS4-0002Ez-RU for qemu-devel@nongnu.org; Wed, 10 Jun 2026 07:50:34 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wXHS2-0003Ei-0C for qemu-devel@nongnu.org; Wed, 10 Jun 2026 07:50:31 -0400 Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65ABNY9B1031521 for ; Wed, 10 Jun 2026 11:50:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= ofKX77HFJiSTCtCdtIsMu/Cm2CTBxsJrU93iTnPYt7k=; b=LrzmNr+sZibs+cmt ZlgLmxGrIudtnubHdgy3lTooON9owgbuEflUhBTykKwnkm6SZFVIiIAvkRBaeQx5 Lq6H5/BFjzLcn7giJNPMqKSatZQ6nU2tUvQ3rx31cv1DGS1GfmIs+16ordXBvUe6 9Z0MOr0Mk56/0SnwIzbWjSi+UC70Cqqg4jMc7IUwCPozybRNmgvbpfN/RwT/yE/G fI9oKrfYSLATyMiPUNxoYipHYrEsCpSj1IeLfaN61zYgnNyZZbWPttG6QrKkYr3o kV+Bp5CX5+iOHSIG7PSUaZCC70SRcU6JzAbLg7jROjewEgWd/0yT6CldNEgMehwN MYzDeQ== Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4eq0m1sn1x-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 10 Jun 2026 11:50:27 +0000 (GMT) Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-5177f07ea82so162323851cf.3 for ; Wed, 10 Jun 2026 04:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1781092226; x=1781697026; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ofKX77HFJiSTCtCdtIsMu/Cm2CTBxsJrU93iTnPYt7k=; b=SQ28LVUuujki3sG/M1Fl/bSeYYtn4lO5gO4HmHerm9c+qQDCAjbInkoLJfX1UF+5qX JzOjfe4te0Yxtq8+XT6CPAIwm5hHq3lh4OUnzxmJzJBOu+/Y6+H/RZ4/NB3Smhs7YrwH y6gBfU3VaLSh6eqeBfEEkJVH2KBKuhfcEKdxvrjI4DX1UEJJOi1NS40M62hzejmHvYoF rVYrtmXRR/ftmNdiN9zT21uP6esk1XDLwgTfucBwk3feJMr6abw7z/WJXiNnJubmXOYu L+QLB94QAveVySYJgEN/+4UKiF+NRkmNgOaDuNje0yqibUpcjkbs4MxiePA5I2WdICR4 vhEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781092226; x=1781697026; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ofKX77HFJiSTCtCdtIsMu/Cm2CTBxsJrU93iTnPYt7k=; b=Xl4Q8n1TLaqK//LwXfEvy/YUTyDPemx+R6WlSLQs5qX4lc+gPv5C4+y9NG5yS5dmCj 483iOxPe8Q19XnWO6mHBgrmbWYTRTI2B8T5ZQPVb7XKhL3bERrGhsV6rJ5pbig7Bg9cB 6vVOQeSzq4EwMSG8CKeJTUdKYo3pIWr9KI+hXDDhxrYIGK8dg7LzUkjtebkxpZClGv1I wZexiQPREJYGubGHy9/jqORTOPvhAo/cJrzZyDkxs4fNGT2DH7qybA+XmsQIyyuCV5/J bHdh7x2gH2HqFh/goDIuthxWCFR+W0/+/xWsMEbiRT9S1CQpJgR4LO3bLF4j5yWbfX+V vzyQ== X-Forwarded-Encrypted: i=1; AFNElJ8j2qbVNTFhV1IBnscSn5sVej93Z83s/KCYn7VbPHmuhhYqOVPSsytsl9cvl32yohlOsH9d4FScsTGN@nongnu.org X-Gm-Message-State: AOJu0YxSruqqDcpKn82QMT2lP9pk5xb8V6Erc46dtps1hGMRWzUFC+gc HNdlsb1s++zwCO7nODJW+J/jey5g0hcYAE8rR9xPaQjuzMLlFegm05ad01MN0x75gefYL5KtRWo Hh6KkaNgTvr68IHgxgo0W5QMm/2YQIT3b6SrWIbsGHaeEMeOCsQzpmf5XBA== X-Gm-Gg: Acq92OFxEQ7hAZTMWdY+N8BKwAmBTCr0tYGt/xW6LsnwYmXN5ssPMaeQRxXbHfeO4J6 y/ylMluWqLga0VcaXGHBnEM66yYRKtQMGUkReFJxkgqu/0Cpc1zTbMN2Q3jy0t5Le4k+b92EWh/ mPxUiFV7L0Nps146L8CZ2WJ+/q0RYkQs0Z5eI2sxkIth73/kt+Zro+Jsju0CLsERGjiO8ZJ4hLf GBwHRLb6IYWSkNXghu2iPS6W+UglLaul6y273/43efD5Vv39cNgbRRPHDAtaZs7zEjCYBVfMpph gUUqmRVFckk+bOPROtCY73Wefm3C9i5Gp0+4C00HaLlGiO658CytmWg9yJdIfSiBJPMTpuSaY7g 8gPA+8aUsOW8LoliRHtjRXRsGV94N4xJvseFxKojE85D1bMeMfJxYPppFvslBK7VteKOACgURF2 w3EgQ= X-Received: by 2002:ac8:7c46:0:b0:517:6dbe:4973 with SMTP id d75a77b69052e-51795a2c054mr348998361cf.14.1781092226423; Wed, 10 Jun 2026 04:50:26 -0700 (PDT) X-Received: by 2002:ac8:7c46:0:b0:517:6dbe:4973 with SMTP id d75a77b69052e-51795a2c054mr348997841cf.14.1781092225915; Wed, 10 Jun 2026 04:50:25 -0700 (PDT) Received: from [10.156.84.244] (49.170.88.92.rev.sfr.net. [92.88.170.49]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-bf0522834dbsm1163008966b.27.2026.06.10.04.50.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Jun 2026 04:50:25 -0700 (PDT) Message-ID: Date: Wed, 10 Jun 2026 13:50:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] target/riscv: add 'trigger-count' debug property Content-Language: en-US To: Daniel Henrique Barboza , qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, alistair.francis@wdc.com, liwei1518@gmail.com, zhiwei_liu@linux.alibaba.com, chao.liu.zevorn@gmail.com, Palmer Dabbelt References: <20260609213905.1126795-1-daniel.barboza@oss.qualcomm.com> <6db02c91-83fb-4021-91ec-72e6b56afeb3@oss.qualcomm.com> <25dc379c-7421-44e2-98a7-15593db4f93c@oss.qualcomm.com> <33a655e5-2f4f-498e-92f7-38f0fdb7f10b@oss.qualcomm.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= In-Reply-To: <33a655e5-2f4f-498e-92f7-38f0fdb7f10b@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjEwMDExMyBTYWx0ZWRfXzTDZbpbQ0kT2 Umjm8keYTkUNEJH6uyE2o9dUDUQxO0qzLLHneWVTzKJPq+AIBci53oJprkVtEkLReADtf76TFC8 n5uDAdxAky2G0/ERGZqiGwFojDPAfrPL4JOn2iBDm/vkVI8opXUIs7cuF4bMiMnqIS++d3LH7y7 O725GRTTFAcq6CDKXOBOwjlhjpWxMnZRrDQUJEa17MqY8xNUYTx0BXg6H6kYcViMWcf07sfVusL FWCv+L11tUfKuR3wMkIBBk5T9CqcLbFV10IEmrzhaVCIhRzkNkltH2zBYcOjp0MYqQW2JXvTaaW aAb33yeFwcovIjfZ2cYkNkuanTEegYlhTOxoM2xoDYKWYUc088tXF/KKd0Eu637WLGty8krLNbu CiazfcLdlpq2K05w4Bc1R+uUUllHE1rcCsAUz+GhRKBgjL+xupgFWpd6iN9CBSmBmQgaeh938c4 4PfSxxx8E7uzHJ/Hijw== X-Proofpoint-GUID: expF2yooTHbfwQ9fXVr3dtsrKHOBjnj0 X-Authority-Analysis: v=2.4 cv=UdJhjqSN c=1 sm=1 tr=0 ts=6a294f83 cx=c_pps a=EVbN6Ke/fEF3bsl7X48z0g==:117 a=YLXAUxGLE6hMr2F5uSHVqQ==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=RQG9ARxXRu_TNfJd-fIA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=a_PwQJl-kcHnX1M80qC6:22 X-Proofpoint-ORIG-GUID: expF2yooTHbfwQ9fXVr3dtsrKHOBjnj0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-10_02,2026-06-09_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 suspectscore=0 phishscore=0 priorityscore=1501 bulkscore=0 malwarescore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605210000 definitions=main-2606100113 Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_LOW=-0.7, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On 10/6/26 12:59, Daniel Henrique Barboza wrote: > On 6/10/2026 7:54 AM, Philippe Mathieu-Daudé wrote: >> On 10/6/26 11:37, Daniel Henrique Barboza wrote: >>> On 6/10/2026 6:04 AM, Philippe Mathieu-Daudé wrote: >>>> Orthogonal, we'd need to replace these target_ulong at some point >>>> (likely bumping the version number again). >>> >>> I suppose we should do that in a separated patch that handles all ulongs >>> from all vmstate objects of this file.  Then we can do a mass bump on >>> everything. >> >> Sure :) > > Btw, on Alistair's branch, this change was already made.  This code is now: > >     .fields = (const VMStateField[]) { >         VMSTATE_UINT16(env.mcontext, RISCVCPU), >         VMSTATE_UINT8(env.trigger_cur, RISCVCPU), >         VMSTATE_UINT64_ARRAY(env.tdata1, RISCVCPU, RV_MAX_TRIGGERS), >         VMSTATE_UINT64_ARRAY(env.tdata2, RISCVCPU, RV_MAX_TRIGGERS), >         VMSTATE_UINT64_ARRAY(env.tdata3, RISCVCPU, RV_MAX_TRIGGERS), >         VMSTATE_END_OF_LIST() > > > This was done by a patch from Anton Johansson in that branch: > > "target/riscv: Fix size of trigger data > > mcontext is at most 14 bits in size with the H extension, fix to 16 > bits. trigger_cur indexes into tdata*[RV_MAX_TRIGGERS] which holds 2 > elements, fix to 8 bits. > > This patch also adds a migration entry for mcontext which is used in > tandem with other debug data that is already migrated. > Note, the cpu/debug VMSTATE version is bumped, breaking migration from > older versions." Ah great! Too many series to track, I forgot about this recent change.