Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2226462/?format=api
{ "id": 2226462, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2226462/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260422125250.1303100-11-alex.bennee@linaro.org/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/1.1/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": "" }, "msgid": "<20260422125250.1303100-11-alex.bennee@linaro.org>", "date": "2026-04-22T12:52:27", "name": "[v3,10/32] target/arm: migrate fault syndromes to registerfields", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "e0389f1c3b0ddb7b98bb95311946f799fe56b2e4", "submitter": { "id": 39532, "url": "http://patchwork.ozlabs.org/api/1.1/people/39532/?format=api", "name": "Alex Bennée", "email": "alex.bennee@linaro.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260422125250.1303100-11-alex.bennee@linaro.org/mbox/", "series": [ { "id": 501008, "url": "http://patchwork.ozlabs.org/api/1.1/series/501008/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=501008", "date": "2026-04-22T12:52:20", "name": "target/arm: fully model WFxT instructions for A-profile", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/501008/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2226462/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2226462/checks/", "tags": {}, "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=U2Gn7jYZ;\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 4g0zhS49VWz1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 22:54:48 +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 1wFX5a-0006Ng-OM; Wed, 22 Apr 2026 08:53:58 -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 1wFX4k-00060O-43\n for qemu-devel@nongnu.org; Wed, 22 Apr 2026 08:53:06 -0400", "from mail-wm1-x333.google.com ([2a00:1450:4864:20::333])\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 1wFX4g-0005U0-3a\n for qemu-devel@nongnu.org; Wed, 22 Apr 2026 08:53:05 -0400", "by mail-wm1-x333.google.com with SMTP id\n 5b1f17b1804b1-488ba840146so49869625e9.1\n for <qemu-devel@nongnu.org>; Wed, 22 Apr 2026 05:53:00 -0700 (PDT)", "from draig.lan ([185.124.0.195]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-48a5aa3ae83sm83319095e9.12.2026.04.22.05.52.55\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 22 Apr 2026 05:52:55 -0700 (PDT)", "from draig.lan (localhost [IPv6:::1])\n by draig.lan (Postfix) with ESMTP id B7D6C60EE9;\n Wed, 22 Apr 2026 13:52:51 +0100 (BST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1776862379; x=1777467179; 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=VPvaC3auN+3Ca9Dko/At0hA0QqcpQF6nrnCTiO0WhDI=;\n b=U2Gn7jYZATyYZDJF25skhhQfSNxCa83ATsxr24EkTT6dqWxXYKveP65ES76/6fuV/L\n 05URbu0Jw67K4hhkgu8MZ2l0h8A3tXKI22WMEl8DNeXv6PrPKT90uBqlV2mNssFLkKT0\n 8rFu+Mqr4NxSgUzbe+mwS126deeA6nEyl3jT+MyiHFJX1G8UUMulw7boja8mG2bjTazI\n SwEmhaAFFVmgMLGYXrYnT+c8AJfsPG22iKJWWWALnr1hBiGWshEFfOMcjmtAg3OAW4wP\n Q4nbgHYZ21DB8A917I4q1/ahsmcZTII556rikgUJTyV/4qtEcM8z4RPC6MVWpLS7HYEc\n 7ILA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776862379; x=1777467179;\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=VPvaC3auN+3Ca9Dko/At0hA0QqcpQF6nrnCTiO0WhDI=;\n b=JRCzGXPUW1A8fxDoTGL+PKwXxhgxNLh9bd3UZtIHu1gRRF0t0ss9HgEf5cSF0MMUdK\n mxBKJlRXssNF2eH9uDoX9cdScvC3ZDg3HrSfr4wW/92vcoMOk8a0/dV61d+T1PDBL+Lq\n QYIe/Rw+CIRIZSgwnfOJGAqx88godtWfmKc9i8kp+i6RQ9EiCY57wXC2KIhuNLq2H/Mi\n RJYPJ4Q9XWJduhzEaKI2ShOFDgAD93Ek7AKxPG2P6MscPmFK2TiDVOP8aJRO9qBpB5VS\n r6vWoTb8fvWRQaHM6+CDsQxH/xmejngsqg576NnfSmQ0AyO9FUL9Tuo/yknyuNgEhjxY\n 8fTg==", "X-Gm-Message-State": "AOJu0YyihjNZBKOTgLm5S68Ikpcd3923N57cLFK5ldBalwP7V9FRnzb9\n ED8Bb1t/zq8OMUWUCx10KDJ3muXiunhz2sUKEwqIhKVCj8P7lZzOHsBkVs3xPLu6hVw=", "X-Gm-Gg": "AeBDiet7VgU4TnqUWP5LHX5uIFHfSl/yJ/Sv6H9hiHvtuh1bEfRpd9KvJeAD/8K5gTd\n 7FSsImNLQXjJ5QUb6xbP9OnVVWtXsimxXe5Fp+jVLvguc77ccSAF5sMWQUFYRsJoblpODmgR763\n 2YkxusnOIPI/xO9Wfh7v8Rb9lZL+J0MoFG2v6F0Zyq+gdUS9c28CGESWzVzshLow/CmkXQPdW3r\n O97N1wMFGyEDHA1D47rG9sPKO8hphsO4eDpbozWGQ9ESJ0VaTwjHez/8hHgt5NrVEcHeWpafBDx\n GqE+4DOEDcrg6/KWJwphnPloz2e+GPvOsD/N0RQjuPPlJhNa50jHo+znHcrw+Y3LDKromxyJr2F\n G319jomNRiQVTIUVRqE12TKjERJcHESELRXZNJj2wwRg2RCXFsQQ7KG32ioqu7Nl8+PDiYE6k5p\n WJD6I0Phop+CcGImVzIZtSFP+jVKcw8yhbKw==", "X-Received": "by 2002:a05:600c:450c:b0:487:55c:e0c1 with SMTP id\n 5b1f17b1804b1-488fb768816mr309582475e9.14.1776862378790;\n Wed, 22 Apr 2026 05:52:58 -0700 (PDT)", "From": "=?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>", "To": "qemu-devel@nongnu.org", "Cc": "Pedro Barbuda <pbarbuda@microsoft.com>, Alexander Graf <agraf@csgraf.de>,\n Peter Maydell <peter.maydell@linaro.org>,\n Paolo Bonzini <pbonzini@redhat.com>,\n Mohamed Mediouni <mohamed@unpredictable.fr>, kvm@vger.kernel.org,\n qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>,\n Richard Henderson <richard.henderson@linaro.org>", "Subject": "[PATCH v3 10/32] target/arm: migrate fault syndromes to\n registerfields", "Date": "Wed, 22 Apr 2026 13:52:27 +0100", "Message-ID": "<20260422125250.1303100-11-alex.bennee@linaro.org>", "X-Mailer": "git-send-email 2.47.3", "In-Reply-To": "<20260422125250.1303100-1-alex.bennee@linaro.org>", "References": "<20260422125250.1303100-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::333;\n envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x333.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_insn_abort and syn_data_abort_* to the registerfields API.\n\nReviewed-by: Richard Henderson <richard.henderson@linaro.org>\nSigned-off-by: Alex Bennée <alex.bennee@linaro.org>\n\n---\nv2\n - use !is_16bit directly\n---\n target/arm/syndrome.h | 87 ++++++++++++++++++++++++++++++++++++-------\n 1 file changed, 74 insertions(+), 13 deletions(-)", "diff": "diff --git a/target/arm/syndrome.h b/target/arm/syndrome.h\nindex bc65106c61a..2031b3704fb 100644\n--- a/target/arm/syndrome.h\n+++ b/target/arm/syndrome.h\n@@ -494,20 +494,64 @@ static inline uint32_t syn_gpc(int s2ptw, int ind, int gpcsc, int vncr,\n return res;\n }\n \n+/*\n+ * ISS encoding for an exception from an Instruction Abort\n+ *\n+ * (aka instruction abort)\n+ */\n+FIELD(IABORT_ISS, IFSC, 0, 6)\n+FIELD(IABORT_ISS, S1PTW, 7, 1)\n+FIELD(IABORT_ISS, EA, 9, 1)\n+FIELD(IABORT_ISS, FnV, 10, 1) /* FAR not Valid */\n+FIELD(IABORT_ISS, SET, 11, 2)\n+FIELD(IABORT_ISS, PFV, 14, 1)\n+FIELD(IABORT_ISS, TopLevel, 21, 1) /* FEAT_THE */\n+\n static inline uint32_t syn_insn_abort(int same_el, int ea, int s1ptw, int fsc)\n {\n- return (EC_INSNABORT << ARM_EL_EC_SHIFT) | (same_el << ARM_EL_EC_SHIFT)\n- | ARM_EL_IL | (ea << 9) | (s1ptw << 7) | fsc;\n+ uint32_t res = syn_set_ec(0, EC_INSNABORT + same_el);\n+ res = FIELD_DP32(res, SYNDROME, IL, 1);\n+\n+ res = FIELD_DP32(res, IABORT_ISS, EA, ea);\n+ res = FIELD_DP32(res, IABORT_ISS, S1PTW, s1ptw);\n+ res = FIELD_DP32(res, IABORT_ISS, IFSC, fsc);\n+\n+ return res;\n }\n \n+/*\n+ * ISS encoding for an exception from a Data Abort\n+ */\n+FIELD(DABORT_ISS, DFSC, 0, 6)\n+FIELD(DABORT_ISS, WNR, 6, 1)\n+FIELD(DABORT_ISS, S1PTW, 7, 1)\n+FIELD(DABORT_ISS, CM, 8, 1)\n+FIELD(DABORT_ISS, EA, 9, 1)\n+FIELD(DABORT_ISS, FnV, 10, 1)\n+FIELD(DABORT_ISS, LST, 11, 2)\n+FIELD(DABORT_ISS, VNCR, 13, 1)\n+FIELD(DABORT_ISS, AR, 14, 1)\n+FIELD(DABORT_ISS, SF, 15, 1)\n+FIELD(DABORT_ISS, SRT, 16, 5)\n+FIELD(DABORT_ISS, SSE, 21, 1)\n+FIELD(DABORT_ISS, SAS, 22, 2)\n+FIELD(DABORT_ISS, ISV, 24, 1)\n+\n static inline uint32_t syn_data_abort_no_iss(int same_el, int fnv,\n int ea, int cm, int s1ptw,\n int wnr, int fsc)\n {\n- return (EC_DATAABORT << ARM_EL_EC_SHIFT) | (same_el << ARM_EL_EC_SHIFT)\n- | ARM_EL_IL\n- | (fnv << 10) | (ea << 9) | (cm << 8) | (s1ptw << 7)\n- | (wnr << 6) | fsc;\n+ uint32_t res = syn_set_ec(0, EC_DATAABORT + same_el);\n+ res = FIELD_DP32(res, SYNDROME, IL, 1);\n+\n+ res = FIELD_DP32(res, DABORT_ISS, FnV, fnv);\n+ res = FIELD_DP32(res, DABORT_ISS, EA, ea);\n+ res = FIELD_DP32(res, DABORT_ISS, CM, cm);\n+ res = FIELD_DP32(res, DABORT_ISS, S1PTW, s1ptw);\n+ res = FIELD_DP32(res, DABORT_ISS, WNR, wnr);\n+ res = FIELD_DP32(res, DABORT_ISS, DFSC, fsc);\n+\n+ return res;\n }\n \n static inline uint32_t syn_data_abort_with_iss(int same_el,\n@@ -517,11 +561,22 @@ static inline uint32_t syn_data_abort_with_iss(int same_el,\n int wnr, int fsc,\n bool is_16bit)\n {\n- return (EC_DATAABORT << ARM_EL_EC_SHIFT) | (same_el << ARM_EL_EC_SHIFT)\n- | (is_16bit ? 0 : ARM_EL_IL)\n- | ARM_EL_ISV | (sas << 22) | (sse << 21) | (srt << 16)\n- | (sf << 15) | (ar << 14)\n- | (ea << 9) | (cm << 8) | (s1ptw << 7) | (wnr << 6) | fsc;\n+ uint32_t res = syn_set_ec(0, EC_DATAABORT + same_el);\n+ res = FIELD_DP32(res, SYNDROME, IL, !is_16bit);\n+\n+ res = FIELD_DP32(res, DABORT_ISS, ISV, 1);\n+ res = FIELD_DP32(res, DABORT_ISS, SAS, sas);\n+ res = FIELD_DP32(res, DABORT_ISS, SSE, sse);\n+ res = FIELD_DP32(res, DABORT_ISS, SRT, srt);\n+ res = FIELD_DP32(res, DABORT_ISS, SF, sf);\n+ res = FIELD_DP32(res, DABORT_ISS, AR, ar);\n+ res = FIELD_DP32(res, DABORT_ISS, EA, ea);\n+ res = FIELD_DP32(res, DABORT_ISS, CM, cm);\n+ res = FIELD_DP32(res, DABORT_ISS, S1PTW, s1ptw);\n+ res = FIELD_DP32(res, DABORT_ISS, WNR, wnr);\n+ res = FIELD_DP32(res, DABORT_ISS, DFSC, fsc);\n+\n+ return res;\n }\n \n /*\n@@ -530,8 +585,14 @@ static inline uint32_t syn_data_abort_with_iss(int same_el,\n */\n static inline uint32_t syn_data_abort_vncr(int ea, int wnr, int fsc)\n {\n- return (EC_DATAABORT << ARM_EL_EC_SHIFT) | (1 << ARM_EL_EC_SHIFT)\n- | ARM_EL_IL | ARM_EL_VNCR | (wnr << 6) | fsc;\n+ uint32_t res = syn_set_ec(0, EC_DATAABORT_SAME_EL);\n+ res = FIELD_DP32(res, SYNDROME, IL, 1);\n+\n+ res = FIELD_DP32(res, DABORT_ISS, VNCR, 1);\n+ res = FIELD_DP32(res, DABORT_ISS, WNR, wnr);\n+ res = FIELD_DP32(res, DABORT_ISS, DFSC, fsc);\n+\n+ return res;\n }\n \n static inline uint32_t syn_swstep(int same_el, int isv, int ex)\n", "prefixes": [ "v3", "10/32" ] }