Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2234669/?format=api
{ "id": 2234669, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2234669/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260507234413.643512-9-richard.henderson@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": "<20260507234413.643512-9-richard.henderson@linaro.org>", "list_archive_url": null, "date": "2026-05-07T23:43:21", "name": "[v4,08/60] target/arm: Introduce FPMR", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "2cc6533c169c1b1f36aa58549a030c72eb0f9cc8", "submitter": { "id": 72104, "url": "http://patchwork.ozlabs.org/api/1.2/people/72104/?format=api", "name": "Richard Henderson", "email": "richard.henderson@linaro.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260507234413.643512-9-richard.henderson@linaro.org/mbox/", "series": [ { "id": 503296, "url": "http://patchwork.ozlabs.org/api/1.2/series/503296/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=503296", "date": "2026-05-07T23:43:14", "name": "target/arm: Implement FEAT_FP8", "version": 4, "mbox": "http://patchwork.ozlabs.org/series/503296/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2234669/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2234669/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=SJtK7+3+;\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 4gBTVJ4jtsz1yCg\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 08 May 2026 09:48:56 +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 1wL8OK-0000Fy-QB; Thu, 07 May 2026 19:44:28 -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 <richard.henderson@linaro.org>)\n id 1wL8OI-0000Cd-39\n for qemu-devel@nongnu.org; Thu, 07 May 2026 19:44:26 -0400", "from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>)\n id 1wL8OG-00010o-Ar\n for qemu-devel@nongnu.org; Thu, 07 May 2026 19:44:25 -0400", "by mail-ot1-x32d.google.com with SMTP id\n 46e09a7af769-7de46b8e432so1308061a34.1\n for <qemu-devel@nongnu.org>; Thu, 07 May 2026 16:44:23 -0700 (PDT)", "from stoup.attlocal.net ([2600:381:c938:6375:9641:bbb2:a93a:bb4c])\n by smtp.gmail.com with ESMTPSA id\n 46e09a7af769-7e367d8feb1sm84320a34.23.2026.05.07.16.44.22\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 07 May 2026 16:44:22 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1778197463; x=1778802263; 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=Z1VZFehutszRylMZ00j2dss6V52WWHugec2ZAPoOXzw=;\n b=SJtK7+3+WS+DJum3wWwxHRb8cuFeINXeeob09Y2O/rHagTeD9jIAyYzVTleWMQbzzJ\n DxfaoWQSfiq/zFQf+8KWItUE4hcnEv1qAjJiE/dADMpSl9nr1OxVFLeqOz6cCT80c2ev\n 9YHJmLXif1U/7LWO++KApqm5OL7d8MYWcQ1s5wd+t7snSKyJYifQSk36/V7IhEeXao4c\n EaVh2XyqbGJWwuCJDwvZ/Nw2p8yP1+XebksE/bbCiYHPD8TIbiTX8Ju5/r2HdljUROHy\n aHcMOrcxz9MxZa7iFACKTMws9d2ZAxkFvdDE0EA4EpscxzpYCidYYHq8eUA3U+w2mDwy\n GJfQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1778197463; x=1778802263;\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=Z1VZFehutszRylMZ00j2dss6V52WWHugec2ZAPoOXzw=;\n b=g3U9kWRJVaU3+iX1Zd0u1LtxagJesJYTn4GOmwE+K5WNndenTx6v43cXeRAKOvmIUq\n nc5MZt90j0o8CkXsPWrg6IOIaxguDjC/9oImV/ixNfggJy5uAqIH0cI1ySkaiOiaADP8\n 3Iz8eP3YYC1JPulJWmR5oP0gtLh44EdidqpcmkUAJJBXZtgulaWlFMXpQBEAPR66P19B\n h4gYozG0ay9BAYqdcN/pjbXHLy9usRUtW1yoHoHc8e8BXd4QoRIvDHULTfc8bitn7dhZ\n PLz2bKgmzdWM88EKuBw1vShgaVeNqvWUk+DWVUPPuXWCAmU97bYbqU5dZ6VT4Iln8e4h\n 8w8A==", "X-Gm-Message-State": "AOJu0Yxq0Sq211eTUsuUtwV9wgyw2Rf/WrXtzH4pSUpstpFCoC53tB6J\n jFqGOqEeq+LkiVkyvYqA9Eye/lRnBPeABIeFpOGNsvJBRi8C6x2jE4JSvmxZP8m0AL4wqPAT1ME\n 7e4BA", "X-Gm-Gg": "AeBDietZbn7XQnaU0OrQvK3ryp9WHwVZsXiUZ3WZAGW6j2eWr1bedEsogWgzfZZRYTH\n lf0Rl+jSaeg/1BgY8FQojbV01JaOlRWPc2cG+zPXcXWvEcCeDTnvy+M3nHkYHXHBRqwM1Vju43V\n c5CeDcSejh4bmd25VXXiuBmpzKhiL9oBx6jZod5MXuqjJB9lvzt/ICUWTPsrHMUQmaI+/pvY00U\n RRk3ObNTAApBB8N2Nqq958Q12wAihWlhaJAZzQC/2T7AGGb8uJ+m/b5oAOI7YbiBJga4T2U2Xmu\n PJWjxV4nYM2aTGNnvdI2jjjbuAdw5cYbqIyh+PQLYx5Da5tyuSCmJKW57Oy7ETc/7Iregauo1wR\n vVsjnZQqYgC3SK/WVxz0g4UX67JW6UVgQ0g8lMV4hSBV3nOmI3DFEc2vW4SlmVZe0VvCnlfQfZX\n Xi29sPWTv0cy7MNKv+vJtx8c0R+YI/srxtNyAqiY2Qud3GtQ==", "X-Received": "by 2002:a05:6830:608c:b0:7df:5fc:3fd8 with SMTP id\n 46e09a7af769-7e1dee91018mr6345297a34.1.1778197463081;\n Thu, 07 May 2026 16:44:23 -0700 (PDT)", "From": "Richard Henderson <richard.henderson@linaro.org>", "To": "qemu-devel@nongnu.org", "Cc": "qemu-arm@nongnu.org", "Subject": "[PATCH v4 08/60] target/arm: Introduce FPMR", "Date": "Thu, 7 May 2026 18:43:21 -0500", "Message-ID": "<20260507234413.643512-9-richard.henderson@linaro.org>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260507234413.643512-1-richard.henderson@linaro.org>", "References": "<20260507234413.643512-1-richard.henderson@linaro.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Received-SPF": "pass client-ip=2607:f8b0:4864:20::32d;\n envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32d.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": "Introduce the special register FPMR and its fields.\nMigrate it when present.\n\nSigned-off-by: Richard Henderson <richard.henderson@linaro.org>\n---\n target/arm/cpregs.h | 5 +++++\n target/arm/cpu-features.h | 5 +++++\n target/arm/cpu.h | 1 +\n target/arm/internals.h | 9 +++++++++\n target/arm/helper.c | 12 +++++++++++-\n target/arm/machine.c | 20 ++++++++++++++++++++\n 6 files changed, 51 insertions(+), 1 deletion(-)", "diff": "diff --git a/target/arm/cpregs.h b/target/arm/cpregs.h\nindex f5ec7484c1..391c0e322b 100644\n--- a/target/arm/cpregs.h\n+++ b/target/arm/cpregs.h\n@@ -149,6 +149,11 @@ enum {\n * should not trap to EL2 when HCR_EL2.NV is set.\n */\n ARM_CP_NV_NO_TRAP = 1 << 22,\n+ /*\n+ * Flag: Access check for this sysreg is constrained by the\n+ * ARM pseudocode function CheckFPMREnabled().\n+ */\n+ ARM_CP_FPMR = 1 << 23,\n };\n \n /*\ndiff --git a/target/arm/cpu-features.h b/target/arm/cpu-features.h\nindex 4ce661d7fe..4ab2a51c99 100644\n--- a/target/arm/cpu-features.h\n+++ b/target/arm/cpu-features.h\n@@ -1186,6 +1186,11 @@ static inline bool isar_feature_aa64_gcs(const ARMISARegisters *id)\n return FIELD_EX64_IDREG(id, ID_AA64PFR1, GCS) != 0;\n }\n \n+static inline bool isar_feature_aa64_fpmr(const ARMISARegisters *id)\n+{\n+ return FIELD_EX64_IDREG(id, ID_AA64PFR2, FPMR) != 0;\n+}\n+\n static inline bool isar_feature_aa64_tgran4_lpa2(const ARMISARegisters *id)\n {\n return FIELD_SEX64_IDREG(id, ID_AA64MMFR0, TGRAN4) >= 1;\ndiff --git a/target/arm/cpu.h b/target/arm/cpu.h\nindex aeba70e6fc..c6f1f1a688 100644\n--- a/target/arm/cpu.h\n+++ b/target/arm/cpu.h\n@@ -691,6 +691,7 @@ typedef struct CPUArchState {\n */\n uint64_t fpsr;\n uint64_t fpcr;\n+ uint64_t fpmr;\n \n uint32_t xregs[16];\n \ndiff --git a/target/arm/internals.h b/target/arm/internals.h\nindex 6376ae1ca3..08024943c3 100644\n--- a/target/arm/internals.h\n+++ b/target/arm/internals.h\n@@ -292,6 +292,15 @@ FIELD(CNTHCTL, EVNTIS, 17, 1)\n FIELD(CNTHCTL, CNTVMASK, 18, 1)\n FIELD(CNTHCTL, CNTPMASK, 19, 1)\n \n+FIELD(FPMR, F8S1, 0, 3)\n+FIELD(FPMR, F8S2, 3, 3)\n+FIELD(FPMR, F8D, 6, 3)\n+FIELD(FPMR, OSM, 14, 1)\n+FIELD(FPMR, OSC, 15, 1)\n+FIELD(FPMR, LSCALE, 16, 7)\n+FIELD(FPMR, NSCALE, 24, 8)\n+FIELD(FPMR, LSCALE2, 32, 6)\n+\n /* We use a few fake FSR values for internal purposes in M profile.\n * M profile cores don't have A/R format FSRs, but currently our\n * get_phys_addr() code assumes A/R profile and reports failures via\ndiff --git a/target/arm/helper.c b/target/arm/helper.c\nindex 66813bb298..304db1a479 100644\n--- a/target/arm/helper.c\n+++ b/target/arm/helper.c\n@@ -6209,6 +6209,14 @@ static const ARMCPRegInfo aie_reginfo[] = {\n .type = ARM_CP_CONST, .resetvalue = 0 },\n };\n \n+static const ARMCPRegInfo fpmr_reginfo[] = {\n+ { .name = \"FPMR\", .state = ARM_CP_STATE_AA64,\n+ .opc0 = 3, .opc1 = 3, .crn = 4, .crm = 4, .opc2 = 2,\n+ .access = PL0_RW, .type = ARM_CP_FPU | ARM_CP_FPMR,\n+ .fieldoffset = offsetof(CPUARMState, vfp.fpmr),\n+ }\n+};\n+\n void register_cp_regs_for_features(ARMCPU *cpu)\n {\n /* Register all the coprocessor registers based on feature bits */\n@@ -7481,10 +7489,12 @@ void register_cp_regs_for_features(ARMCPU *cpu)\n define_arm_cp_regs(cpu, mec_mte_reginfo);\n }\n }\n-\n if (cpu_isar_feature(aa64_aie, cpu)) {\n define_arm_cp_regs(cpu, aie_reginfo);\n }\n+ if (cpu_isar_feature(aa64_fpmr, cpu)) {\n+ define_arm_cp_regs(cpu, fpmr_reginfo);\n+ }\n \n if (cpu_isar_feature(any_predinv, cpu)) {\n define_arm_cp_regs(cpu, predinv_reginfo);\ndiff --git a/target/arm/machine.c b/target/arm/machine.c\nindex 8dc766d322..58f8dfd53c 100644\n--- a/target/arm/machine.c\n+++ b/target/arm/machine.c\n@@ -960,6 +960,25 @@ static const VMStateDescription vmstate_syndrome64 = {\n },\n };\n \n+static bool fpmr_needed(void *opaque)\n+{\n+ ARMCPU *cpu = opaque;\n+\n+ return arm_feature(&cpu->env, ARM_FEATURE_AARCH64)\n+ && cpu_isar_feature(aa64_fpmr, cpu);\n+}\n+\n+static const VMStateDescription vmstate_fpmr = {\n+ .name = \"cpu/fpmr\",\n+ .version_id = 1,\n+ .minimum_version_id = 1,\n+ .needed = fpmr_needed,\n+ .fields = (const VMStateField[]) {\n+ VMSTATE_UINT64(env.vfp.fpmr, ARMCPU),\n+ VMSTATE_END_OF_LIST()\n+ },\n+};\n+\n static int cpu_pre_save(void *opaque)\n {\n ARMCPU *cpu = opaque;\n@@ -1323,6 +1342,7 @@ const VMStateDescription vmstate_arm_cpu = {\n &vmstate_syndrome64,\n &vmstate_pstate64,\n &vmstate_event,\n+ &vmstate_fpmr,\n NULL\n }\n };\n", "prefixes": [ "v4", "08/60" ] }