Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2226142/?format=api
{ "id": 2226142, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2226142/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260422101043.1234229-12-alex.bennee@linaro.org/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260422101043.1234229-12-alex.bennee@linaro.org>", "list_archive_url": null, "date": "2026-04-22T10:10:22", "name": "[v2,11/31] target/arm: migrate debug syndromes to registerfields", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "ecdb26468f68b6033c008f884d888d2f0f8dcb04", "submitter": { "id": 39532, "url": "http://patchwork.ozlabs.org/api/1.2/people/39532/?format=api", "name": "Alex Bennée", "email": "alex.bennee@linaro.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260422101043.1234229-12-alex.bennee@linaro.org/mbox/", "series": [ { "id": 500957, "url": "http://patchwork.ozlabs.org/api/1.2/series/500957/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=500957", "date": "2026-04-22T10:10:11", "name": "target/arm: fully model WFxT instructions for A-profile", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/500957/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2226142/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2226142/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=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=vr8xjoqi;\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=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from lists1p.gnu.org (lists1p.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 4g0w6B4zYhz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 20:13:22 +1000 (AEST)", "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wFUYm-0007Pe-Lu; Wed, 22 Apr 2026 06:11:56 -0400", "from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <alex.bennee@linaro.org>)\n id 1wFUXv-0006wV-7n\n for qemu-devel@nongnu.org; Wed, 22 Apr 2026 06:11:03 -0400", "from mail-wm1-x334.google.com ([2a00:1450:4864:20::334])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <alex.bennee@linaro.org>)\n id 1wFUXr-0000oc-Nw\n for qemu-devel@nongnu.org; Wed, 22 Apr 2026 06:11:02 -0400", "by mail-wm1-x334.google.com with SMTP id\n 5b1f17b1804b1-488b8bc6bc9so37091935e9.3\n for <qemu-devel@nongnu.org>; Wed, 22 Apr 2026 03:10:59 -0700 (PDT)", "from draig.lan ([185.124.0.195]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-488fb794e26sm184086025e9.6.2026.04.22.03.10.48\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 22 Apr 2026 03:10:52 -0700 (PDT)", "from draig.lan (localhost [IPv6:::1])\n by draig.lan (Postfix) with ESMTP id 4F1F060EFD;\n Wed, 22 Apr 2026 11:10:44 +0100 (BST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1776852658; x=1777457458; 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=7nsukKtrqlrIyVc1W2h4m0opSAHZeyebGQjoHRKe/ww=;\n b=vr8xjoqiSr/A9Q5vma+MiQS4ObghBSjoCH18IKJZY6b1nrDG0pOJom4JUHdhvXajq0\n YF9v0HufFyUiofn4gSpATaTxbY+WIFFBfn8EHnFmAFrYIQnn6Cxdxw5apKp1kd4MGoYs\n KPXhlxZRzdK8Hgm0e+bExCdmn6gEAa8SMngWy2zsOMwv2MbHes07f6LiKoC3sneEpdwg\n RhtMFN8kzx8SC41YcSyhiyR4kAxgDcaST8ri6ldNgc7XHzMbr7Tj4Hg2bKZ4oSqhH7Dw\n 9V3paGeCDIqOcJ210B+sqqaSjAGR1cEhY1KuHKtqU8D9yuPf9kgHynA3P8HOqbIZV3f0\n AQww==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776852658; x=1777457458;\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=7nsukKtrqlrIyVc1W2h4m0opSAHZeyebGQjoHRKe/ww=;\n b=VtHS04/McFuATiKFKA3Tp9ahw7sOAuaAnxm9Bf0oQB2L1f6oHmMlr8fNEaZWZ5sp/i\n V4/QQK5QEtXLnuB69Fd5kV7Mp9CRGGeKqCM3O/A5ylduiO+Y6k7V8p1Su+ZpQyPI5Lk5\n 64CLncNYphP0TSpll7mGj8Q6cP4sdXCz2OsWQhEUSXBR+9HFlfgUmVh2acREoXDv7/Qi\n S+FGNFk3zrO58fxfYIgiqSkgDjTHhAdsDWqEwTmOU3Q2Eb9pXimVwoVnMauq8VICR0OU\n Ra6N4mWEOXVthnoIZXtm/c9d+lkBQtwoS6pMj4uxCqsGhnhlIIWAb4VSQLg868CT84Ag\n zMmg==", "X-Gm-Message-State": "AOJu0YzQhySsFrL14cSlMr3wrS3nf7rz2CQy08ZHW5fMcFmLvigk9tPE\n hWZzQiD/+4iHpTPN5dgW1b0+vv+2mK1bZew8qFI98CQOSTLoYQoGWDTJ1gDsuFRNEaw=", "X-Gm-Gg": "AeBDiet+sklk6onk1oowckh8zlS6G1fAmgHKeVCEDa9fY8LNDMaJRpTj+pfK7QZj+oN\n 6nOw2ibWZh14l1VkR6RLOiByoeUUvoWoDLxy4v2F205roVuiFEFotpgecq+hxKnLDC09KVk4qot\n zDAIAm0Pj8dgiusCilH79SK03y3+kE9AYUZ9/uI3A08IqSwhDRgOcndgWkTaiK97mtfXAawrUkD\n uH5INzDFYtbbhThQYcP6Uvh04YAdoUWPb1GMdawVK5dLJGKBtsYzu59Peq4S/wNAulrfCbo1ZMi\n un0U4dd0RjTMl61SpUCuVhErZi19XdxBxrBOSaJ23M18EElJOPOz0iDBjDdxwmxhBMTmyNlH6ou\n 8ymP1D5q7rEgS2P/S6Wx16D+kJFEwQgIoDflRyqVtrVhHzPgY6ytTEvM9dkjKZvdW+hdm0ddX6X\n fn44GyrtfSPoiRdUGI2Jddgk39rlkNFIiBGQ==", "X-Received": "by 2002:a05:600c:888b:b0:488:c40b:c8bf with SMTP id\n 5b1f17b1804b1-488fb73d234mr256866985e9.2.1776852657985;\n Wed, 22 Apr 2026 03:10:57 -0700 (PDT)", "From": "=?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>", "To": "qemu-devel@nongnu.org", "Cc": "Alexander Graf <agraf@csgraf.de>, qemu-arm@nongnu.org,\n Peter Maydell <peter.maydell@linaro.org>,\n Paolo Bonzini <pbonzini@redhat.com>,\n Mohamed Mediouni <mohamed@unpredictable.fr>, kvm@vger.kernel.org,\n Pedro Barbuda <pbarbuda@microsoft.com>,\n =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>,\n Richard Henderson <richard.henderson@linaro.org>", "Subject": "[PATCH v2 11/31] target/arm: migrate debug syndromes to\n registerfields", "Date": "Wed, 22 Apr 2026 11:10:22 +0100", "Message-ID": "<20260422101043.1234229-12-alex.bennee@linaro.org>", "X-Mailer": "git-send-email 2.47.3", "In-Reply-To": "<20260422101043.1234229-1-alex.bennee@linaro.org>", "References": "<20260422101043.1234229-1-alex.bennee@linaro.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Received-SPF": "pass client-ip=2a00:1450:4864:20::334;\n envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x334.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,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=unavailable 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": "Migrate syn_swstep, syn_watchpoint and syn_breakpoint to the\nregisterfields API.\n\nReviewed-by: Richard Henderson <richard.henderson@linaro.org>\nSigned-off-by: Alex Bennée <alex.bennee@linaro.org>\n---\n target/arm/syndrome.h | 54 ++++++++++++++++++++++++++++++++++++++-----\n 1 file changed, 48 insertions(+), 6 deletions(-)", "diff": "diff --git a/target/arm/syndrome.h b/target/arm/syndrome.h\nindex 2031b3704fb..2ad6b97aea5 100644\n--- a/target/arm/syndrome.h\n+++ b/target/arm/syndrome.h\n@@ -595,22 +595,64 @@ static inline uint32_t syn_data_abort_vncr(int ea, int wnr, int fsc)\n return res;\n }\n \n+/*\n+ * ISS encoding for an exception from a Software Step exception.\n+ */\n+FIELD(SOFTSTEP_ISS, IFSC, 0, 6)\n+FIELD(SOFTSTEP_ISS, EX, 6, 1)\n+FIELD(SOFTSTEP_ISS, ISV, 24, 1)\n+\n static inline uint32_t syn_swstep(int same_el, int isv, int ex)\n {\n- return (EC_SOFTWARESTEP << ARM_EL_EC_SHIFT) | (same_el << ARM_EL_EC_SHIFT)\n- | ARM_EL_IL | (isv << 24) | (ex << 6) | 0x22;\n+ uint32_t res = syn_set_ec(0, EC_SOFTWARESTEP + same_el);\n+ res = FIELD_DP32(res, SYNDROME, IL, 1);\n+\n+ res = FIELD_DP32(res, SOFTSTEP_ISS, ISV, isv);\n+ res = FIELD_DP32(res, SOFTSTEP_ISS, EX, ex);\n+ res = FIELD_DP32(res, SOFTSTEP_ISS, IFSC, 0x22);\n+\n+ return res;\n }\n \n+/*\n+ * ISS encoding for an exception from a Watchpoint exception\n+ */\n+FIELD(WATCHPOINT_ISS, DFSC, 0, 6)\n+FIELD(WATCHPOINT_ISS, WNR, 6, 1)\n+FIELD(WATCHPOINT_ISS, CM, 8, 1)\n+FIELD(WATCHPOINT_ISS, FnV, 10, 1)\n+FIELD(WATCHPOINT_ISS, VNCR, 13, 1) /* FEAT_NV2 */\n+FIELD(WATCHPOINT_ISS, FnP, 15, 1)\n+FIELD(WATCHPOINT_ISS, WPF, 16, 1)\n+/* bellow mandatory from FEAT_Debugv8p9 */\n+FIELD(WATCHPOINT_ISS, WPTV, 17, 1) /* FEAT_Debugv8p2 - WPT valid */\n+FIELD(WATCHPOINT_ISS, WPT, 18, 6) /* FEAT_Debugv8p2 - missing WP number */\n+\n static inline uint32_t syn_watchpoint(int same_el, int cm, int wnr)\n {\n- return (EC_WATCHPOINT << ARM_EL_EC_SHIFT) | (same_el << ARM_EL_EC_SHIFT)\n- | ARM_EL_IL | (cm << 8) | (wnr << 6) | 0x22;\n+ uint32_t res = syn_set_ec(0, EC_WATCHPOINT + same_el);\n+ res = FIELD_DP32(res, SYNDROME, IL, 1);\n+\n+ res = FIELD_DP32(res, WATCHPOINT_ISS, CM, cm);\n+ res = FIELD_DP32(res, WATCHPOINT_ISS, WNR, wnr);\n+ res = FIELD_DP32(res, WATCHPOINT_ISS, DFSC, 0x22);\n+\n+ return res;\n }\n \n+/*\n+ * ISS encoding for an exception from a Breakpoint or a Vector Catch\n+ * debug exception.\n+ */\n+FIELD(BREAKPOINT_ISS, IFSC, 0, 6)\n+\n static inline uint32_t syn_breakpoint(int same_el)\n {\n- return (EC_BREAKPOINT << ARM_EL_EC_SHIFT) | (same_el << ARM_EL_EC_SHIFT)\n- | ARM_EL_IL | 0x22;\n+ uint32_t res = syn_set_ec(0, EC_BREAKPOINT + same_el);\n+ res = FIELD_DP32(res, SYNDROME, IL, 1);\n+ res = FIELD_DP32(res, BREAKPOINT_ISS, IFSC, 0x22);\n+\n+ return res;\n }\n \n static inline uint32_t syn_wfx(int cv, int cond, int ti, bool is_16bit)\n", "prefixes": [ "v2", "11/31" ] }