From nobody Fri Nov 14 19:45:35 2025 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=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1760040039; cv=none; d=zohomail.com; s=zohoarc; b=e3EITfFJ2+prt9y5xlEPs7KZS2Cmciqup+eDsHMmXGW+OlwDCVD2LT+fRNRwm0K7HQaDMUeWQ8nzYVJ4EdFmRgS4nWmhwZZbfLc6rMotz4E57xlGNzmH9oEYq0VWoRycrOqQJXTiINum2mTipjPUOV1FIWdAUzm2aCTLP/dAMzQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1760040039; h=Content-Type: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=oA4ozt3fYHKu9orcATS/76PnZrz9p+EYtMwaMzHl5GE=; b=fnJpImTZLDqPBJSAj65tfHeL3+pRm2V7QvGuvcI3fKzP/myWpWg/uCUuIMbZc8mR3c0kXhy/Jr4G5CMQqFTJ5VNhpgex08zzLy92bbcFydSpHOZDDJssEAAeecCbRd8qwciWbnSYRvs3UABJUNl5BWkkLnbqtYNDBz7mxBaEO3I= 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=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1760040039377789.8384357506098; Thu, 9 Oct 2025 13:00:39 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1v6wo8-0003p0-HZ; Thu, 09 Oct 2025 16:00:16 -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 1v6wny-0003j9-TY for qemu-devel@nongnu.org; Thu, 09 Oct 2025 16:00:02 -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 1v6wnu-0005Bt-SH for qemu-devel@nongnu.org; Thu, 09 Oct 2025 16:00:01 -0400 Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 599EbccT029641 for ; Thu, 9 Oct 2025 19:59:57 GMT Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 49nv4kv608-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 09 Oct 2025 19:59:57 +0000 (GMT) Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-28d1747f23bso22998265ad.3 for ; Thu, 09 Oct 2025 12:59:57 -0700 (PDT) Received: from hu-bcain-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29034f32d6fsm36678805ad.96.2025.10.09.12.59.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Oct 2025 12:59:55 -0700 (PDT) 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= oA4ozt3fYHKu9orcATS/76PnZrz9p+EYtMwaMzHl5GE=; b=gseuXUS3mHxiD/bA +28j6/Fixs3wkdale0QEGhwodETHMpmeS7SXMOQ3Y3rLrR92NmsjB1hf8L4lHEGt R31gyH0b7e65rt7+GqVBfShk9pEjgAjeaql1pocVL7G9/4KfphSjZBIpkyq41Jrk ahPvBR9Un8ibDJkglTpcfnf2Q7bxgTZaRnbkLDEYxj1/aPgVKwWUcNIZFLwYZAcx 5tBmxjH62+G5q8Ui0ULJs+zEW6DmfickzwsfVY403/Z/M/nz/97iRBgGD75XuVKF zHHgieequeuqZ9xU+Td+B3OPR60cqcfJgJEgLu8zcqhuo9VZBaxzr5MoE4NkMhMB hyh/IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760039996; x=1760644796; 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=oA4ozt3fYHKu9orcATS/76PnZrz9p+EYtMwaMzHl5GE=; b=L81R2hGCxexqzgKELyaNFodcCA2ODElefI3XsqUkClyUkgecPFT598Fr8zAvBuGoqM dwEkvIvcaWgI3UT1BR3MZHenH3tJeVzqkPbdWURfVn0AMjSMVPwFOzfZ/F8hIXrnYhx/ odmSXRfBcUQXhVN9BeKB3EcwdjEw+fcKiPJCNemnyNywVG584RUQU97D9BhuWdzlvZlx A0mXa8qLGoQLaXao+zLL77QLe7E8LqBNNN3p09c9DbRfVzF0MvIufFUnJeFJUAq2ycJU sL9uN6ScI6raUsGEk0o0vjcvDm5ODHQKbsII+FGt6xeezrIyE27mduQAPWc5ojIIwMQg XK1A== X-Gm-Message-State: AOJu0YylmjNQeFtIkOaZkRqY8Hw6DGTlwNt2KNNX5QT08I5Ic3LGQx1L MUhAOLm+Tt0v2AOfgvEYo2blG0Dnakf3CwaHcmoBVunuTe2FXqWEo1cgj786//KPOKkqi2a4eLj bSz/vnw4Fcj8UzcWDOxrbrRrpxo0seh3uby2T4p4EeXNthBN1syyeAtYgfdXl9Kq1Iw== X-Gm-Gg: ASbGncvSPeh1HOhQUPEAyqRTqK5z00fe8MTV8OyvbfUT5f/4Q/UtD54dNrN9UberLGs gIECh4Je8RwBXSDqhgf8cHkHCIvPcrx63LVtoY5ylJqFpz0anU32GqGA8wGC21NBbQFd1D5WfCg qAQf38VNK1u7dPW6Vih1Yc7XiByRRubOwKXwd21c4vcsCLJgHO6w93Vs3xGCeVhO8ds9uOl75fs sTRKZVyZdMx+ExxpLLREldVGihv3JI/ETkhj6aoLn7ePd3eW/BnjHQq6o7jCG9nn8DHFo+Z/5hw Hk6TEj10x73OPE2fWZVlXsfnnYr7j/6cscJIrwYtov5LJlsF17R9j5O/3hiAmQFFuG0g5OumDqE QwYsqQmpe1giuYAzkzw== X-Received: by 2002:a17:903:fa7:b0:275:f156:965c with SMTP id d9443c01a7336-2902741e441mr114877005ad.52.1760039996091; Thu, 09 Oct 2025 12:59:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF6JPwHDxY1Abm3u/N6B92ykde+YxsugwgeYUjSJ9gtqZumYL7qDAdT0Fu79lvIglc/oR8hTw== X-Received: by 2002:a17:903:fa7:b0:275:f156:965c with SMTP id d9443c01a7336-2902741e441mr114876655ad.52.1760039995622; Thu, 09 Oct 2025 12:59:55 -0700 (PDT) From: Brian Cain To: qemu-devel@nongnu.org Cc: brian.cain@oss.qualcomm.com, richard.henderson@linaro.org, philmd@linaro.org, matheus.bernardino@oss.qualcomm.com, ale@rev.ng, anjo@rev.ng, marco.liebel@oss.qualcomm.com, ltaylorsimpson@gmail.com, alex.bennee@linaro.org, quic_mburton@quicinc.com, sid.manning@oss.qualcomm.com Subject: [PATCH v2 4/4] tests/tcg/hexagon: Add cs{0,1} coverage Date: Thu, 9 Oct 2025 12:59:43 -0700 Message-Id: <20251009195943.438454-5-brian.cain@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251009195943.438454-1-brian.cain@oss.qualcomm.com> References: <20251009195943.438454-1-brian.cain@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMDA4MDEyMSBTYWx0ZWRfX1RRXsFTxijZ+ umicJvcB6AIjieRjYh3krQ/Byj9XKYY0MLBg73GnpnctQRrLlH7JruiU188xNXq87+7dPyaHVKG oNG3dblSss3qUEwFJHLnlocscjeumRcA0krD86rdvLZPqDdwS83cOs8i9W1krKpzcYQt6lclJMX m4vIzGwUiQDYzqrk6hFPkSWLecmun1gIDsde1a4eAv5WOiUYgsjm67eoyfJpb9SXAYZYudkEqeT 70odvwMjcgebKredE0tip1fyPXJvH782lPLJwq8MjNYKXWOm/j+5reuNRkURy81wfS2uoWQd785 B3prjCHRbylPZetiOkvuiKTGVNwc3sWcWR8EIXDEMNIyR7INIpqSXxS7ctdyFIvdcgP92F+9O7L bVZIGv0fjjbeGTAWBYRKjjp+6d0G9Q== X-Authority-Analysis: v=2.4 cv=CbcFJbrl c=1 sm=1 tr=0 ts=68e8143d cx=c_pps a=JL+w9abYAAE89/QcEU+0QA==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=x6icFKpwvdMA:10 a=EUspDBNiAAAA:8 a=gohRq8mKNrDRu6Qpr2AA:9 a=QEXdDO2ut3YA:10 a=324X-CrmTo6CU4MGRt3R:22 X-Proofpoint-GUID: YZ4NzGsv1LZokb-VrD1yqPCjuHrQJVLw X-Proofpoint-ORIG-GUID: YZ4NzGsv1LZokb-VrD1yqPCjuHrQJVLw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-10-09_07,2025-10-06_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 priorityscore=1501 malwarescore=0 spamscore=0 impostorscore=0 lowpriorityscore=0 bulkscore=0 clxscore=1015 phishscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2510020000 definitions=main-2510080121 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=205.220.168.131; envelope-from=brian.cain@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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: 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 @qualcomm.com) X-ZM-MESSAGEID: 1760040041902154100 Cover cs0,1 register corruption in the signal_context test case. Reviewed-by: Anton Johansson Signed-off-by: Brian Cain --- tests/tcg/hexagon/signal_context.c | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/tests/tcg/hexagon/signal_context.c b/tests/tcg/hexagon/signal_= context.c index 7202fa64b6..00bbb3efc7 100644 --- a/tests/tcg/hexagon/signal_context.c +++ b/tests/tcg/hexagon/signal_context.c @@ -26,7 +26,11 @@ void sig_user(int sig, siginfo_t *info, void *puc) "p1 =3D r7\n\t" "p2 =3D r7\n\t" "p3 =3D r7\n\t" - : : : "r7", "p0", "p1", "p2", "p3"); + "r6 =3D #0x12345678\n\t" + "cs0 =3D r6\n\t" + "r6 =3D #0x87654321\n\t" + "cs1 =3D r6\n\t" + : : : "r6", "r7", "p0", "p1", "p2", "p3"); } =20 int main() @@ -52,7 +56,11 @@ int main() it.it_value.tv_nsec =3D 100000; timer_settime(tid, 0, &it, NULL); =20 - asm("loop0(1f, %1)\n\t" + asm("r9 =3D #0xdeadbeef\n\t" + " cs0 =3D r9\n\t" + " r9 =3D #0xbadc0fee\n\t" + " cs1 =3D r9\n\t" + " loop0(1f, %1)\n\t" "1: r8 =3D #0xff\n\t" " p0 =3D r8\n\t" " p1 =3D r8\n\t" @@ -74,10 +82,18 @@ int main() " r8 =3D p3\n\t" " p0 =3D cmp.eq(r8, #0xff)\n\t" " if (!p0) jump 2b\n\t" + " r8 =3D cs0\n\t" + " r9 =3D #0xdeadbeef\n\t" + " p0 =3D cmp.eq(r8, r9)\n\t" + " if (!p0) jump 2b\n\t" + " r8 =3D cs1\n\t" + " r9 =3D #0xbadc0fee\n\t" + " p0 =3D cmp.eq(r8, r9)\n\t" + " if (!p0) jump 2b\n\t" "4: {}: endloop0\n\t" : : "r"(&err), "r"(i) - : "memory", "r8", "p0", "p1", "p2", "p3"); + : "memory", "r8", "r9", "p0", "p1", "p2", "p3"); =20 puts(err ? "FAIL" : "PASS"); return err; --=20 2.34.1