Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2202570/?format=api
{ "id": 2202570, "url": "http://patchwork.ozlabs.org/api/patches/2202570/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260227203627.932864-30-brian.cain@oss.qualcomm.com/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api", "name": "QEMU Development", "link_name": "qemu-devel", "list_id": "qemu-devel.nongnu.org", "list_email": "qemu-devel@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260227203627.932864-30-brian.cain@oss.qualcomm.com>", "list_archive_url": null, "date": "2026-02-27T20:36:19", "name": "[v3,29/37] target/hexagon: Add TCG overrides for rte, nmi", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "cc0d4517ceed9fcfc405c8d7e351bdb6ae811fc4", "submitter": { "id": 89839, "url": "http://patchwork.ozlabs.org/api/people/89839/?format=api", "name": "Brian Cain", "email": "brian.cain@oss.qualcomm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260227203627.932864-30-brian.cain@oss.qualcomm.com/mbox/", "series": [ { "id": 493813, "url": "http://patchwork.ozlabs.org/api/series/493813/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=493813", "date": "2026-02-27T20:35:57", "name": "Hexagon system emulation - Part 1/3", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/493813/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2202570/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2202570/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=BvQKTxu0;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=Q80h2Ukh;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fN0Zs13bqz1xxx\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 28 Feb 2026 07:40:37 +1100 (AEDT)", "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1vw4aS-0007ah-Rx; Fri, 27 Feb 2026 15:37:24 -0500", "from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <brian.cain@oss.qualcomm.com>)\n id 1vw4aH-0007Jn-Qc\n for qemu-devel@nongnu.org; Fri, 27 Feb 2026 15:37:15 -0500", "from mx0b-0031df01.pphosted.com ([205.220.180.131])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <brian.cain@oss.qualcomm.com>)\n id 1vw4aG-0006tC-BW\n for qemu-devel@nongnu.org; Fri, 27 Feb 2026 15:37:13 -0500", "from pps.filterd (m0279872.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 61RH0HnY527514\n for <qemu-devel@nongnu.org>; Fri, 27 Feb 2026 20:37:11 GMT", "from mail-oi1-f199.google.com (mail-oi1-f199.google.com\n [209.85.167.199])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4cjw23c93g-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <qemu-devel@nongnu.org>; Fri, 27 Feb 2026 20:37:11 +0000 (GMT)", "by mail-oi1-f199.google.com with SMTP id\n 5614622812f47-46393ffb94eso31428120b6e.0\n for <qemu-devel@nongnu.org>; Fri, 27 Feb 2026 12:37:11 -0800 (PST)", "from hu-bcain-lv.qualcomm.com (Global_NAT1.qualcomm.com.\n [129.46.96.20]) by smtp.gmail.com with ESMTPSA id\n 586e51a60fabf-4160cbd405fsm5762935fac.0.2026.02.27.12.37.09\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 27 Feb 2026 12:37:10 -0800 (PST)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n cc:content-transfer-encoding:content-type:date:from:in-reply-to\n :message-id:mime-version:references:subject:to; s=qcppdkim1; bh=\n W7+bXpvCeyS6OfLlZNZAmQmj+Ty2xeRkND9UhhfsRJ8=; b=BvQKTxu0bkIL4o8w\n jtRN5lOcj64VF9qRpOqvwtiRSLomzCEqC2edQEf0lwOFaGhkLDZLE8VrmyX6nVsK\n Yl1w0nfseM4GZy7w8bXNGlr1ziMF1mS+79I5IIKKzj94VwsBROvICRWa65gWDpge\n h/qwuq1YSZHzc/XL+0d/iDjhzlp6bNFECV+Uxd07KezNbIv2hj92lh+srNJ1LbAT\n pYcBsP/zhzC60KCrMjl8O2Kx8elMGXS+WA3gZTvkdlPl/5Idf4quhbcRnoBNEUW6\n 1KVulByxrsEaqsTQohcPGL4SGBnomaKRDwuPz2nzrccEu42hQIPKqq/y4SOmYlcj\n bIcjdg==", "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1772224631; x=1772829431; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=W7+bXpvCeyS6OfLlZNZAmQmj+Ty2xeRkND9UhhfsRJ8=;\n b=Q80h2UkhGjukoSJgiLvnk2kitFE4Z/jpByFmspmywQeu+bMmC5EIvVXJtmgln1krLA\n CHC+srTbljxBF0He/gTazm3WN96h/YbkaPv1NeVJAyaAhKyn1ZYqdK3X/WsHjyGTUQg5\n RshVGnlUxLiLGYj76tRS5KBFVh2D398I+JlVz+57AIEKn8orcLMxLECHKjRp3fR8lxRK\n Q/p6dTFno73FKhSULy0J8KhTEevhJMFjs6JGL7Wx1bHPCNOkEA8YjuI2RaNzXgwU+8ep\n PqrcTxmt7FisqwnFfGPBYKc7D3cGoBpkHCn47WzQ6RPWxiM9EQVZmaY1ENH8inKcfYr0\n AW1g==" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1772224631; x=1772829431;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=W7+bXpvCeyS6OfLlZNZAmQmj+Ty2xeRkND9UhhfsRJ8=;\n b=bxL7Zk7vs7zNEwfWPxzlrjxrJlqeoLMHOdmjZ7RSLvVjZ79YERdb/r2/hfdiMDzkJA\n WnxHFXj9/UY4HR0ZlTNaFX54bv07wJAD7FK1RDjfJCaHySqFyhs6mfvn5x3jZAV4kTYA\n +d/gBrF607t8EaUbbj7eJEolczjmHdQ1seFltGu1FPCBy62nndKaH/HdACf34nNjIuhH\n Pn5IE8icuhfn6pqxiSDGftwCPSL0+XuYkJJgdmAlKfmPLfE6AregVfzgZzDA3rif3/CR\n 30D5foUpjnxvmIOkdpaXK72cx56WAnovqw5vVAC+kggB+h27/yiE/nEwXOtxvZOJrWa0\n xjyA==", "X-Gm-Message-State": "AOJu0YxFDPXpUH8LtSeAXNZy2IMZccKzIq9KgsS99InwajqzFRzfkqtr\n wDy1KGxaGA540WNSGXAOuxgtlK+K/XNtFj8De/f2cGwqgkvjCv9juTDyuEbOaH1Tx0R5culBzhE\n UKSolMt8yD/dkqLbyPBGy2sqsMsYZmnfWWhhKgcp0ufWrmrDhUgqSiTyOXHy1MM21sQ==", "X-Gm-Gg": "ATEYQzz25GjIuvEqm19Z+VnVHWlgOGtCiY0ioMDqqezyB9izJqmQWZk/0ZqN1YA8GkK\n NIyW6XxldSZF4N5DuRUe6YtQO7rvQASgESYOkC0FdzGVQaKjaWgZGzJ7yPzUhPKweaLtSuDjLk5\n 4dYXlpVLofQ91XYkz5OAHvjRiDgiqZTimcDJwyu6cohoNpta0k8PQUb0TNPZMu/ZGRSeF1DqSgb\n 96oJqh4XstquwvkleZIDjb89IA0G3xFPqjsF341D7NImldMRtzwgWMMEuTRUkK4a30LjEX8vw0l\n 2J5p/8nfmzaUQTNbzinVtJGR0MPPk3IkM2luet8CrGpm3h5wtuiRd+TRIJZjVx0s/MTL74ZkZQm\n R53L8bQbnX04jGPZMHrKYJ5X7TmDX1FcFWzVblr0q7V1q3G7WjMfTXsE2rQ/Rou2meDm1Gw==", "X-Received": [ "by 2002:a05:6808:1645:b0:45a:6adf:4d44 with SMTP id\n 5614622812f47-464a5dac614mr4128741b6e.12.1772224630745;\n Fri, 27 Feb 2026 12:37:10 -0800 (PST)", "by 2002:a05:6808:1645:b0:45a:6adf:4d44 with SMTP id\n 5614622812f47-464a5dac614mr4128731b6e.12.1772224630379;\n Fri, 27 Feb 2026 12:37:10 -0800 (PST)" ], "From": "Brian Cain <brian.cain@oss.qualcomm.com>", "To": "qemu-devel@nongnu.org", "Cc": "brian.cain@oss.qualcomm.com, ltaylorsimpson@gmail.com,\n matheus.bernardino@oss.qualcomm.com, marco.liebel@oss.qualcomm.com,\n quic_mburton@quicinc.com, sid.manning@oss.qualcomm.com, ale@rev.ng,\n anjo@rev.ng, Brian Cain <bcain@quicinc.com>", "Subject": "[PATCH v3 29/37] target/hexagon: Add TCG overrides for rte, nmi", "Date": "Fri, 27 Feb 2026 12:36:19 -0800", "Message-Id": "<20260227203627.932864-30-brian.cain@oss.qualcomm.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20260227203627.932864-1-brian.cain@oss.qualcomm.com>", "References": "<20260227203627.932864-1-brian.cain@oss.qualcomm.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "X-Proofpoint-GUID": "bBaJG8_RRodk_0Yk70hnJfJ0NxwZySaK", "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwMjI3MDE4MSBTYWx0ZWRfXxtWe4nSApLBp\n w79RLtmK3Lk60jwZ4FTV3KedXlRzlVICzrrKLfQdNCgotZUPh4ISz7w4boM9h8pitOTFHQfgwxS\n AY3WUY/xvW5Bu0sGD022LEkFdfVzFoD200ptJw66862D87oSdm5aDM3FnJPTggUTljiLxHhgpu6\n qKavrBvQJ7B/QbHSADKag5J0AQ/7UKAyqI+JPbv4QulnY0VYvk329VUevOnHiIcz98ICrnjLmgu\n d7odE+WgzBuUJ/0TkI0KejReL3uAUl7k97xI4CI7Mq6bhQxO66bAi58t/d8FK0VzB0VbRXq1F2v\n oOUxoRyfn7SeKsuIINvdBcxxX2XK753O/bptMUR70Pojx1PoCyelshC7QNwV4iYynJ6uWeyWw6X\n KPJe+Cl0sHsGkqLwDJeP8uAYAUU4nmXSrl0O2WOqjOyLoP2NOacpSg6SKSaPGheDxsBzSI2Sndr\n /aDlmCSWmmq6Ysa528g==", "X-Authority-Analysis": "v=2.4 cv=cJHtc1eN c=1 sm=1 tr=0 ts=69a20077 cx=c_pps\n a=yymyAM/LQ7lj/HqAiIiKTw==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17\n a=IkcTkHD0fZMA:10 a=HzLeVaNsDn8A:10 a=s4-Qcg_JpJYA:10\n a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22\n a=COk6AnOGAAAA:8 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=zRxYJKy5J8nCns2dKEsA:9\n a=QEXdDO2ut3YA:10 a=efpaJB4zofY2dbm2aIRb:22 a=TjNXssC_j7lpFel5tvFf:22", "X-Proofpoint-ORIG-GUID": "bBaJG8_RRodk_0Yk70hnJfJ0NxwZySaK", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-02-27_04,2026-02-27_03,2025-10-01_01", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n bulkscore=0 impostorscore=0 lowpriorityscore=0 phishscore=0 adultscore=0\n spamscore=0 clxscore=1015 priorityscore=1501 suspectscore=0 malwarescore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2602130000 definitions=main-2602270181", "Received-SPF": "pass client-ip=205.220.180.131;\n envelope-from=brian.cain@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com", "X-Spam_score_int": "-16", "X-Spam_score": "-1.7", "X-Spam_bar": "-", "X-Spam_report": "(-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.706,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=0.401, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=no 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 <qemu-devel.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>", "List-Post": "<mailto:qemu-devel@nongnu.org>", "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>", "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org" }, "content": "From: Brian Cain <bcain@quicinc.com>\n\nReviewed-by: Taylor Simpson <ltaylorsimpson@gmail.com>\nSigned-off-by: Brian Cain <brian.cain@oss.qualcomm.com>\n---\n target/hexagon/gen_tcg_sys.h | 19 +++++++++++++++++++\n target/hexagon/helper.h | 1 +\n target/hexagon/op_helper.c | 4 ++++\n 3 files changed, 24 insertions(+)", "diff": "diff --git a/target/hexagon/gen_tcg_sys.h b/target/hexagon/gen_tcg_sys.h\nindex 0453e3bb2c4..85602f1e3fd 100644\n--- a/target/hexagon/gen_tcg_sys.h\n+++ b/target/hexagon/gen_tcg_sys.h\n@@ -80,4 +80,23 @@\n gen_helper_stop(tcg_env); \\\n } while (0)\n \n+/*\n+ * rte (return from exception)\n+ * Clear the EX bit in SSR\n+ * Jump to ELR\n+ */\n+#define fGEN_TCG_J2_rte(SHORTCODE) \\\n+ do { \\\n+ TCGv new_ssr = tcg_temp_new(); \\\n+ tcg_gen_deposit_tl(new_ssr, hex_t_sreg[HEX_SREG_SSR], \\\n+ tcg_constant_tl(0), \\\n+ reg_field_info[SSR_EX].offset, \\\n+ reg_field_info[SSR_EX].width); \\\n+ gen_log_sreg_write(ctx, HEX_SREG_SSR, new_ssr); \\\n+ gen_jumpr(ctx, hex_t_sreg[HEX_SREG_ELR]); \\\n+ } while (0)\n+\n+#define fGEN_TCG_Y4_nmi(SHORTCODE) \\\n+ gen_helper_nmi(tcg_env, RsV)\n+\n #endif\ndiff --git a/target/hexagon/helper.h b/target/hexagon/helper.h\nindex b2cce4b47ba..04c01649683 100644\n--- a/target/hexagon/helper.h\n+++ b/target/hexagon/helper.h\n@@ -128,4 +128,5 @@ DEF_HELPER_2(start, void, env, i32)\n DEF_HELPER_1(stop, void, env)\n DEF_HELPER_2(wait, void, env, i32)\n DEF_HELPER_2(resume, void, env, i32)\n+DEF_HELPER_2(nmi, void, env, i32)\n #endif\ndiff --git a/target/hexagon/op_helper.c b/target/hexagon/op_helper.c\nindex 689e79d83e7..6754c491ff5 100644\n--- a/target/hexagon/op_helper.c\n+++ b/target/hexagon/op_helper.c\n@@ -1487,6 +1487,10 @@ void HELPER(setprio)(CPUHexagonState *env, uint32_t thread, uint32_t prio)\n g_assert_not_reached();\n }\n \n+void HELPER(nmi)(CPUHexagonState *env, uint32_t thread_mask)\n+{\n+ g_assert_not_reached();\n+}\n #endif\n \n \n", "prefixes": [ "v3", "29/37" ] }